Re: Not bootstrapping a cross-compiler

From: Yuri Pankov <yuri_at_aetern.org>
Date: Wed, 20 Nov 2024 20:53:46 UTC
Jochen Neumeister wrote:
> Alloah ML,
> 
> I have a problem here after I just wanted to update CURRENT:
> 
> After a “git pull” in /usr/src I get this error at buildworld:
> 
> 
> make -j12 buildworld
> --- buildworld ---
> make[1]: "/usr/src/Makefile.inc1" line 362: SYSTEM_COMPILER: Determined
> that CC=cc matches the source tree.  Not bootstrapping a cross-compiler.
> make[1]: "/usr/src/Makefile.inc1" line 367: SYSTEM_LINKER: Determined
> that LD=ld matches the source tree.  Not bootstrapping a cross-linker.
> --- buildworld_prologue ---
> --------------------------------------------------------------
>>>> World build started on Wed Nov 20 17:54:39 CET 2024
> --------------------------------------------------------------
> --- _cleanworldtmp ---
>>>> Deleting stale files in build tree...
>         0.13 real         0.22 user         0.11 sys
> *** [_cleanworldtmp] Error code 6
> 
> make[1]: stopped making "buildworld" in /usr/src
> make[1]: 1 error
> 
> make[1]: stopped making "buildworld" in /usr/src
> 
> make: stopped making "buildworld" in /usr/src
> 
> 
> Does anyone have any tips? I can't find anything on google.

The subject is a bit misleading, there are other reports of buildworld
failing in the cleanworld step, e.g.
https://lists.freebsd.org/archives/freebsd-current/2024-October/006494.html
(with somewhat misleading subject as well).

Did you do a `make delete-old-libs` recently? If yes, most likely some
of the bootstrapped binaries that buildworld tries to run were linked to
now removed libraries. Try specifying WITH_CLEAN=yes as WITHOUT_CLEAN is
a default now (or simply remove the relevant /usr/obj/ tree).