From nobody Sun Aug 13 14:58:20 2023 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RP0yy38Zgz4TtGv for ; Sun, 13 Aug 2023 14:58:34 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RP0yy1G0Hz3Zlv for ; Sun, 13 Aug 2023 14:58:34 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-lf1-x130.google.com with SMTP id 2adb3069b0e04-4fe82ac3ab4so5182783e87.1 for ; Sun, 13 Aug 2023 07:58:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20221208.gappssmtp.com; s=20221208; t=1691938712; x=1692543512; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=iPkFbWWLYeuEDhAkGvg5a6zogkexMby3+FTaKH8k2Cw=; b=XLGJrlv/6VtegC2QcN0pOmhghkjzGDfGbnNGstwAfSeY/S7VrnwkJKVSwfL61Re8jb winmpQgx3NsR2VRR2kZAudlT868CLixY/J+Yq1ZTS9x/JC96HL+Gzph0skNxdc706/Mw h43N7He50OrqjIRwb1pf/UyGQMkPpRTqLESpWlTHzPQAILO2+41LcgUAamtD3GmcITXN zqqEcdKuu+N01kbKELxPxsUm5mzY5nWv5/0vX9WvOnaY9P4EqbLe/MZUhAJ1Qe/uZK5r ufG7JIHOOiqbXUuE+y9aHm2MxKCJJmmmufvxctv/mZdoQPHxVrpOLtOw7zM+yRE+QxF/ jKLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691938712; x=1692543512; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=iPkFbWWLYeuEDhAkGvg5a6zogkexMby3+FTaKH8k2Cw=; b=drcNDTUojHhSia6mLznSgLLzY0pPN9JYNmAU/zZqKDUIqAcD5nM0gpHPzQdoqBvc1s ld3aAQ7gBrMmzUgL0qe5JxrM4VvMbAqtIm0fQbVdB0eyHeiJr9qYT9xGMYEKd6ICuvSX NtM1qz/693AMzVEbqYzzAKefQuo7br2ZQcv25MpY3kx4VXIId4ku9Wyvn3el1PMqUQCo KbijDU+63Y22Y1f9sgwdCPmMsl+ETDxMrT6XDgByboEnsIG7nM8WPkDdmfUC3n8HNtnk eSIFm2GF9Jm+q59UlYWo/AVE55YIWro0LxLNpmKuhi2gQQm1cGAMKrSowJkhXvNkpCaw fXeA== X-Gm-Message-State: AOJu0YyQQ5eu1vwshBtGtduwAwI2OjdtyfCz/thykJZnIBGTFsyu+7Uc w6helgq8uuJic8i1Pm7EVKYmyIRWpNYWaWp/5C6DGw== X-Google-Smtp-Source: AGHT+IHQnYohdMYVowBrc68pO4lEjCS73n3fTkdRW/9rMrIIlTC3r8l/CK0GBa6s16U9E9Xi2o1Y/M9uc7iZP+XUIOI= X-Received: by 2002:a05:6512:10d4:b0:4fe:25bc:71f5 with SMTP id k20-20020a05651210d400b004fe25bc71f5mr5299524lfg.11.1691938712015; Sun, 13 Aug 2023 07:58:32 -0700 (PDT) List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 References: <68CBFC44-9C0A-43D1-A0C2-530207E0762F@FreeBSD.org> <0FA5C2F2-6639-4522-AA29-537F596A5F81@karels.net> <8A772467-B246-4C6B-AD7E-81AD16903196@FreeBSD.org> In-Reply-To: From: Warner Losh Date: Sun, 13 Aug 2023 08:58:20 -0600 Message-ID: Subject: Re: Error crosscompiling 14.0-ALPHA1 on amd64 for arm64.aarch64 To: Mike Karels Cc: Juraj Lutter , FreeBSD CURRENT Content-Type: multipart/alternative; boundary="000000000000e96c8c0602cf2d10" X-Rspamd-Queue-Id: 4RP0yy1G0Hz3Zlv X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US] --000000000000e96c8c0602cf2d10 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, Aug 13, 2023, 8:55 AM Mike Karels wrote: > On 13 Aug 2023, at 9:25, Juraj Lutter wrote: > > >> On 13 Aug 2023, at 14:42, Juraj Lutter wrote: > >> > >> Hi, > >> > >>> On 13 Aug 2023, at 00:17, Mike Karels 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 h= ow > >>> 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=3Darm64 TARGET_ARCH=3Daarch64). 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 =E2=80=9Cnative-xtools=E2=80=9D and associated targets= are not being > built. > > If I do =E2=80=9Cmake TARGET=3Darm64 TARGET_ARCH=3Daarch64 native-xtool= s=E2=80=9D, 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 > > > > > > =E2=80=94 > > Juraj Lutter > > XMPP: juraj (at) lutter.sk > > GSM: +421907986576 > > --000000000000e96c8c0602cf2d10 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


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> wr= ote:
>>
>> 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?=C2=A0 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.=C2=A0 I = tested
a build just now on amd64 with empty /usr/obj, and it worked (make -j$NCU buildworld TARGET=3Darm64 TARGET_ARCH=3Daarch64).=C2=A0 However, the host w= as
approximately at the level of ALPHA1, and the first lines of the output
showed that a cross-compiler was not needed.=C2=A0 However, my earlier buil= ds
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 =E2=80=9Cnative-xtools=E2=80=9D and associated target= s are not being built.
> If I do =E2=80=9Cmake TARGET=3Darm64 TARGET_ARCH=3Daarch64 native-xtoo= ls=E2=80=9D, 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-xto= ols are for poudriere and cross building jails.

=
Warner=C2=A0

Have you checked src.conf?

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Mike

> The commit I suspect that lead into this was eafd028327cee688b54bc526e= 088c2a3b98f94e0 (there sees
> to not be any other related changes fiddling with make targets).
>
> otis
>
>
> =E2=80=94
> Juraj Lutter
> XMPP: juraj (at) lutter.sk
> GSM: +421907986576

--000000000000e96c8c0602cf2d10--