Page MenuHomeFreeBSD

Look for cross toolchain makefiles in /usr/share/toolchains.
ClosedPublic

Authored by jhb on Dec 31 2019, 8:51 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Nov 3, 4:33 AM
Unknown Object (File)
Fri, Oct 31, 3:51 AM
Unknown Object (File)
Oct 11 2025, 6:51 PM
Unknown Object (File)
Oct 11 2025, 6:51 PM
Unknown Object (File)
Oct 11 2025, 6:51 PM
Unknown Object (File)
Oct 11 2025, 10:03 AM
Unknown Object (File)
Sep 21 2025, 12:08 PM
Unknown Object (File)
Sep 16 2025, 11:24 AM
Subscribers

Details

Summary

The freebsd-binutils and freebsd-gcc* packages install toolchain
makefiles to /usr/share/toolchains rather than LOCALBASE.

Test Plan
  • native build/install of world/kernel in an amd64 VM using freebsd-binutils and freebsd-gcc6 as the toolchain from base/* packages

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This change and D22984 replace the older D19482 and D19720. D19482 had issues with cross-building, etc. so instead of making it automagical, this approach requires users to use an explicit CROSS_TOOLCHAIN setting. Users can set that in /etc/src.conf if they are not planning on doing cross-builds and only hosted, native builds in which case one can use 'make buildworld' etc. fairly transparently. The usage is 'make CROSS_TOOLCHAIN=freebsd-gcc6' or eventually 'make CROSS_TOOLCHAIN=freebsd-gcc9' once the base/gcc9 port is ready.

This revision is now accepted and ready to land.Jan 1 2020, 10:06 PM