Date: Sun, 13 Aug 2023 08:58:20 -0600 From: Warner Losh <imp@bsdimp.com> To: Mike Karels <mike@karels.net> Cc: Juraj Lutter <otis@freebsd.org>, FreeBSD CURRENT <freebsd-current@freebsd.org> Subject: Re: Error crosscompiling 14.0-ALPHA1 on amd64 for arm64.aarch64 Message-ID: <CANCZdfpqsRD9aHU9UdtoASUSGzhu9%2BrEQacSy=ybwDWZyt3iDA@mail.gmail.com> In-Reply-To: <CD57F058-0A74-4EE8-ABE5-7F186A566F62@karels.net> References: <68CBFC44-9C0A-43D1-A0C2-530207E0762F@FreeBSD.org> <0FA5C2F2-6639-4522-AA29-537F596A5F81@karels.net> <8A772467-B246-4C6B-AD7E-81AD16903196@FreeBSD.org> <ADBC05FC-E963-49E9-8C7B-737607309F5A@FreeBSD.org> <CD57F058-0A74-4EE8-ABE5-7F186A566F62@karels.net>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] On Sun, Aug 13, 2023, 8:55 AM Mike Karels <mike@karels.net> wrote: > On 13 Aug 2023, at 9:25, Juraj Lutter wrote: > > >> On 13 Aug 2023, at 14:42, Juraj Lutter <otis@FreeBSD.org> wrote: > >> > >> Hi, > >> > >>> On 13 Aug 2023, at 00:17, Mike Karels <mike@karels.net> wrote: > >>> > >>> On 12 Aug 2023, at 15:32, Juraj Lutter wrote: > >>> > >>> Did the buildworld start out by building a cross-compiler? > >>> > >>> Have you tried without meta mode? With a clean objdir, I don't see how > >>> it would matter, but I'm not sure I've tried it. > >>> > >>> The ALPHA1 builds seem to have worked, but I think they run on arm64. > >>> > >> > >> See here: https://files.wilbury.net/s/bJKKB5Kbta6DNqB for the full log. > >> > >> As I read it, lib32 is being built before crosscompiler. Is lib32 > supposed to be built on aarch64? > > 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. > > Yes, lib32 is supposed to be built on aarch64 as of a few weeks ago. > > > So it seems that “native-xtools” and associated targets are not being > built. > > If I do “make TARGET=arm64 TARGET_ARCH=aarch64 native-xtools”, cross > tools are > > being built and lib32 is built, in turn, also. > > I don't see native-xtools built either. but the build worked. > Native-xtools are for poudriere and cross building jails. Warner Have you checked src.conf? > > Mike > > > The commit I suspect that lead into this was > eafd028327cee688b54bc526e088c2a3b98f94e0 (there sees > > to not be any other related changes fiddling with make targets). > > > > otis > > > > > > — > > Juraj Lutter > > XMPP: juraj (at) lutter.sk > > GSM: +421907986576 > > [-- Attachment #2 --] <div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Aug 13, 2023, 8:55 AM Mike Karels <<a href="mailto:mike@karels.net">mike@karels.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 13 Aug 2023, at 9:25, Juraj Lutter wrote:<br> <br> >> On 13 Aug 2023, at 14:42, Juraj Lutter <otis@FreeBSD.org> wrote:<br> >><br> >> Hi,<br> >><br> >>> On 13 Aug 2023, at 00:17, Mike Karels <<a href="mailto:mike@karels.net" target="_blank" rel="noreferrer">mike@karels.net</a>> wrote:<br> >>><br> >>> On 12 Aug 2023, at 15:32, Juraj Lutter wrote:<br> >>><br> >>> Did the buildworld start out by building a cross-compiler?<br> >>><br> >>> Have you tried without meta mode? With a clean objdir, I don't see how<br> >>> it would matter, but I'm not sure I've tried it.<br> >>><br> >>> The ALPHA1 builds seem to have worked, but I think they run on arm64.<br> >>><br> >><br> >> See here: <a href="https://files.wilbury.net/s/bJKKB5Kbta6DNqB" rel="noreferrer noreferrer" target="_blank">https://files.wilbury.net/s/bJKKB5Kbta6DNqB</a> for the full log.<br> >><br> >> As I read it, lib32 is being built before crosscompiler. Is lib32 supposed to be built on aarch64?<br> <br> lib32 is not built until stage 4.3.1, after build and cross tools. I tested<br> a build just now on amd64 with empty /usr/obj, and it worked (make -j$NCU<br> buildworld TARGET=arm64 TARGET_ARCH=aarch64). However, the host was<br> approximately at the level of ALPHA1, and the first lines of the output<br> showed that a cross-compiler was not needed. However, my earlier builds<br> that required a cross-compiler worked fine.<br> <br> Yes, lib32 is supposed to be built on aarch64 as of a few weeks ago.<br> <br> > So it seems that “native-xtools” and associated targets are not being built.<br> > If I do “make TARGET=arm64 TARGET_ARCH=aarch64 native-xtools”, cross tools are<br> > being built and lib32 is built, in turn, also.<br> <br> I don't see native-xtools built either. but the build worked.<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Native-xtools are for poudriere and cross building jails.</div><div dir="auto"><br></div><div dir="auto">Warner </div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> Have you checked src.conf?<br> <br> Mike<br> <br> > The commit I suspect that lead into this was eafd028327cee688b54bc526e088c2a3b98f94e0 (there sees<br> > to not be any other related changes fiddling with make targets).<br> ><br> > otis<br> ><br> ><br> > —<br> > Juraj Lutter<br> > XMPP: juraj (at) <a href="http://lutter.sk" rel="noreferrer noreferrer" target="_blank">lutter.sk</a><br> > GSM: +421907986576<br> <br> </blockquote></div></div></div>help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfpqsRD9aHU9UdtoASUSGzhu9%2BrEQacSy=ybwDWZyt3iDA>
