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
F174694058: D54527.diff
Mon, Oct 5, 6:35 AM
Unknown Object (File)
Sun, Sep 27, 3:48 AM
Unknown Object (File)
Sat, Sep 26, 10:30 PM
Unknown Object (File)
Thu, Sep 24, 9:01 AM
Unknown Object (File)
Thu, Sep 17, 7:55 PM
Unknown Object (File)
Wed, Sep 16, 4:53 PM
Unknown Object (File)
Wed, Sep 9, 6:13 PM
Unknown Object (File)
Sep 4 2026, 7:01 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)