Page MenuHomeFreeBSD

fix tinderbox for cross compiling on macOS
Needs ReviewPublic

Authored by wosch on Jan 5 2026, 3:05 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Jul 12, 12:28 AM
Unknown Object (File)
Tue, Jun 23, 3:41 PM
Unknown Object (File)
Mon, Jun 22, 12:15 AM
Unknown Object (File)
Wed, Jun 17, 1:29 AM
Unknown Object (File)
May 17 2026, 4:00 PM
Unknown Object (File)
May 16 2026, 11:58 PM
Unknown Object (File)
May 16 2026, 8:43 PM
Unknown Object (File)
May 14 2026, 12:33 PM
Subscribers

Details

Summary

For cross-compiling with an external toolchain, we can skip some clang/lld checks,
but we need to build other tools such as config(8).

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=287194

Test Plan

make tinderbox

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

wosch requested review of this revision.Jan 5 2026, 3:05 PM
Makefile
637

I'd just delete this block. There are other cases where you don't expect to have a compiler built, e.g. using CROSS_TOOLCHAIN=. If kernel-toolchain somehow screws up and doesn't build a compiler but buildworld/buildkernel expect it to exist then things will quickly fall over anyway.

707

This should just be unconditional

(Also this applies equally to Linux, and I believe also on FreeBSD with CROSS_TOOLCHAIN=, though the latter only gets noticed if the host's tools are old enough)