Re: How to build with cross gcc?
- In reply to: Konstantin Belousov : "How to build with cross gcc?"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 02 May 2025 09:21:55 UTC
> What is the right way to build with gcc? Here is one data point. > exa% MAKEOBJDIRPREFIX=/tmp/obj/ make -j 16 -s buildworld __MAKE_CONF=/dev/null SRCCONF=/dev/null TARGET=amd64 TARGET_ARCH=amd64 CROSS_TOOLCHAIN=amd64-gcc14 With a not-that-recent stable/14 (based on 6f34788b4e24ecbd602 from 01/29, heavily modified by local MFCs) and amd64-gcc13-13.2.0_2, and a more or less similar command-line to yours (it has no __MAKE_CONF (only have some generic arch tuning in make.conf) but with WITHOUT_CROSS_COMPILER and WITHOUT_TOOLCHAIN), I can build latest main (100dd7d5c7bc01a398)'s kernel without errors. For buildworld, I get the errors that I reported and are in the process of being fixed (D50089, D50090, D50091). I have never had any of the problems you've just reported. Maybe try with devel/freebsd-gcc13 to see if that fixes things for you? Regards. -- Olivier Certner