Re: Error crosscompiling 14.0-ALPHA1 on amd64 for arm64.aarch64

From: Mark Millard <marklmi_at_yahoo.com>
Date: Sun, 13 Aug 2023 19:13:20 UTC
Juraj Lutter <otis_at_FreeBSD.org> wrote on
Date: Sun, 13 Aug 2023 17:49:16 UTC :

> > On 13 Aug 2023, at 17:22, Juraj Lutter <otis@FreeBSD.org> wrote:
> > 
> > 
> > 
> >> On 13 Aug 2023, at 17:17, Mike Karels <mike@karels.net> wrote:
> >> 
> >> 
> >> On 13 Aug 2023, at 10:00, Juraj Lutter wrote:
> >> 
> >>>> On 13 Aug 2023, at 16:55, Mike Karels <mike@karels.net> wrote:
> >>>> 
> >>>> 
> >>>> lib32 is not built until stage 4.3.1, after build and cross tools. I tested
> >>>> a build just now on amd64 with empty /usr/obj, and it worked (make -j$NCU
> >>>> buildworld TARGET=arm64 TARGET_ARCH=aarch64). However, the host was
> >>>> approximately at the level of ALPHA1, and the first lines of the output
> >>>> showed that a cross-compiler was not needed. However, my earlier builds
> >>>> that required a cross-compiler worked fine.
> >>>> 
> >>> 
> >>> Earlier builds worked for me as well. I use it for “make packages” that I use to upgrade my RPi.
> >>> 
> >>> It definitely worked on 20230712 when I did the build last time.
> >> 
> >> That was before the lib32 addition went in (20230725).
> > 
> > Yeah, that’s why I will try with commit just before eafd028327cee688b54bc526e088c2a3b98f94e0 or
> > with eafd028327cee688b54bc526e088c2a3b98f94e0 backed out to see if it will help.
> 
> To me it seems that f1d5183124d3e18d410ded61e45adb9a23b23c83 is the commit that broke it.
> I did “git revert” on that single commit, these were rebuilt:
> 
> Building /usr/obj/usr/src/arm64.aarch64/tmp/obj-tools/lib/clang/libllvmminimal/Support/Path.o
> Building /usr/obj/usr/src/arm64.aarch64/tmp/obj-tools/lib/clang/libllvmminimal/Support/Signals.o
> Building /usr/obj/usr/src/arm64.aarch64/tmp/obj-tools/lib/clang/libllvmminimal/libllvmminimal.a
> 
> And cross tools started to build as well.

But the offical CI builds on amd64 do not have the problem.

We still have not found what is different about your context from the
standard context used for CI builds and snapshot builds, all of which
have worked find building on amd64 to target aarch64 with armv7 support.

===
Mark Millard
marklmi at yahoo.com