From nobody Sun Aug 13 21:13:51 2023 X-Original-To: freebsd-toolchain@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 4RP9JL3SWTz4qCfm for ; Sun, 13 Aug 2023 21:14:10 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic301-22.consmr.mail.gq1.yahoo.com (sonic301-22.consmr.mail.gq1.yahoo.com [98.137.64.148]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4RP9JK15kLz4Lmy for ; Sun, 13 Aug 2023 21:14:09 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=p71GXC7C; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.64.148 as permitted sender) smtp.mailfrom=marklmi@yahoo.com; dmarc=pass (policy=reject) header.from=yahoo.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1691961247; bh=uJw5nFDkRA9M1LrYsf2HW+JNlQdSdnEVaGS40+cI51A=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=p71GXC7Cup9/c7++w4KEDmZAy3+VLWW+tpoOD33oJVh+dp0E9jM1QbQSSd+t07k8qLWe66YCDhl7Kp5SqsU+cQeYWgspv1Mh4TKqx5uOXo/MFnYTsW9/ZiewghRh1TQHOZpl3NPwhQP4NEXktGtjZ2Oqw+QXchFhs1uSCkISF5CpR3uoRs5hjPdbCdl7q6x7DIbGNv0BMu70BGKa/4X5UH867Or1PEKFyxtLsrd90xyaJEA6Vk8f4RNWcjxWk7ixzFaZd5zvn/Hgi3G/HVC85+x3s9EadpAY1Xqa+jd7++JKCLKB0jzswi+ITrjQRfWIRK3ApR7FRZXoP9hQtlYbEg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1691961247; bh=CItglXEWCl3zjPn7/bAsoCaqbJ7TWQ7hnH7oyjTNag+=; h=X-Sonic-MF:Subject:From:Date:To:From:Subject; b=ZbBVPFEy9zWXCYpoawqvSliCvWrkY30RCwcfv6bQnYA0a0JAVGHeAAhh1CpP6cuNXOIJ/9RygmolL/0bpqYwJuHMLcpxo6NsKLY+P4bR38vcTItdcllEoXwIUlpazs7T70RpyjDAZaVOWTripf5gtp5kwXTwrT8EAKrHVfDvQgXAYGz63UDtWhhA76LbKEZ5eG+hJndcvkinlnOxor6sZ/W4ZQTR1I/MOKu7ViyVNtcCzTj1cLP3kLl9ptE+14RSqwD7+NA2HqsMF1/7re0BIacTfPmlEC0PaiZuIX5sUEC9TkkIMG2m2DGJ3K4pil0LDs4OA+5Jhg70hkuLhlMOtQ== X-YMail-OSG: q6ZN3tkVM1nopCKqpoSIxYg2g6BIWiRUJSicoklv18_t14XKJyF1hJedR2I.5vC MrqABOaLiALFalo0tgAyPpslXzPxswIlck6N9GpHcMWi6ugaUe4b4_Uw.qSOnz0TCQLS3_Y4MUq8 dM9PS6FlrAIT5sJL0qlZbTke5RrItc77PJOLDkoLKeZPKoFOiHjSSJ3jnB2k0VXn7rdwZPduOyIw pxtTI1SAyHZdmFViQ6e0nUDYoDe_niVXmsUM_0G.VfiVpFyzpx8Msc9wDBl3XRyJBdztiwaifXMd TGqC8iqioJn0riSwDpaA9cAggK4Whae5dmhHS6WYt5aRP889g3RwFkaDo5ouGHGVGBC638kduJoz 6KQAkQlbzd0FoPwgS.qiv5DdOPQOHiX0CW5f0W7poWmuJrOt.fP8MykARjzZrma7doVjAXh4CrFr 7WV2G6J0v31k.mNBbR2vgXspSTWQrZaPE8kn8einrthVmsF_ZwkBL7JuC_LijwJzE4vMFfLisZ.7 CeLVDSVB_F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fr4mf4ylME3J3Pu6XgCMnqhDJJx81iktD812NZFvBkivRgyUQ78KRWJgGCiuxKhJHX E70VQbT8RwmYPBqWG_H.Kkxf53DjOlEt00ypZkdY44uMQVN0G6RBfkwgwO3rgfWkI7jeBXJeNM53 waldqKYZLMKQac7merYRL9tqZG.wZyWEAJdtAPuBuqmjckGsAXRpygRR1m0.WacoWxtCcK7upPBC uggBxcwI2sPzbfWvtpPzihJur2Mc67BAir57QyJiJsJvxz3_brcQgF7e5stQtcJhLdzMOK5sHrBx JuOcEfl_Vi2Nr.qckPWHsNI.c9rUuVmr6Ez_5ydg2ykoaI4lcVT0a6L30f.bfghdlxo69vB4L3GK WtxPBMqep7yUGxYMfKISbW5nzs1JjWoDx.3fT0E7E.0CZXzF6H5VcX1qqKyhf2WcrZbPuHpp1RlW 1ayG_2mtAQbUEHeZIOLfiwGGDlQr0aEUKzWA9NerqOrjZnSCg5Nnv.Z4wCcJv4r_U.mDDrIP7WVU 0I.HXoyFu6Nng5jsAOqk5wW_To_HX.z8BgJlppedxjMY8MQ00XksOxv6wsw_yvfM7NgRiGyyNfgv aWeSNh2ksxZWe5PyGIHywcGtYySp.PWqs8Kqfax.Q.VFTdoh0zEOSwLuxkiWmU0Xz3zJP5AhO2GI 2CYhEzSlnCH03pTjK81XpCjMtzCggbmXpiAG354Ji0ioSv6C2SSxl.LtCauD7wWAJns7HP2Xl4Fq 0eQ-- X-Sonic-MF: X-Sonic-ID: 71b70aec-fa2f-4bc2-ae6a-d6f6c7b4bfd6 Received: from sonic.gate.mail.ne1.yahoo.com by sonic301.consmr.mail.gq1.yahoo.com with HTTP; Sun, 13 Aug 2023 21:14:07 +0000 Received: by hermes--production-ne1-7b767b77cc-fbxjt (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 2f9a19c08e2536d61c8059334967766a; Sun, 13 Aug 2023 21:14:03 +0000 (UTC) Content-Type: text/plain; charset=utf-8 List-Id: Maintenance of FreeBSD s integrated toolchain List-Archive: https://lists.freebsd.org/archives/freebsd-toolchain List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-toolchain@freebsd.org X-BeenThere: freebsd-toolchain@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.700.6\)) Subject: Re: Error crosscompiling 14.0-ALPHA1 on amd64 for arm64.aarch64 From: Mark Millard In-Reply-To: Date: Sun, 13 Aug 2023 14:13:51 -0700 Cc: Mike Karels , FreeBSD Toolchain , Current FreeBSD Content-Transfer-Encoding: quoted-printable Message-Id: <3C630E2F-959E-46BC-8DAE-DA19C3A6912E@yahoo.com> References: <3B0BBEB1-D16C-405A-B2FA-F53022CFC925.ref@yahoo.com> <3B0BBEB1-D16C-405A-B2FA-F53022CFC925@yahoo.com> <3AE647E3-B988-4387-BF56-A2DB6533B5FD@FreeBSD.org> To: Juraj Lutter X-Mailer: Apple Mail (2.3731.700.6) X-Spamd-Result: default: False [-3.50 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; MV_CASE(0.50)[]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; MIME_GOOD(-0.10)[text/plain]; RCPT_COUNT_THREE(0.00)[4]; FROM_HAS_DN(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[98.137.64.148:from]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MLMMJ_DEST(0.00)[freebsd-toolchain@freebsd.org]; ARC_NA(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.64.148:from]; DKIM_TRACE(0.00)[yahoo.com:+]; TO_DN_ALL(0.00)[]; FREEMAIL_FROM(0.00)[yahoo.com]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; RCVD_COUNT_TWO(0.00)[2] X-Spamd-Bar: --- X-Rspamd-Queue-Id: 4RP9JK15kLz4Lmy On Aug 13, 2023, at 14:01, Mark Millard wrote: > On Aug 13, 2023, at 13:19, Juraj Lutter wrote: >=20 >>> On 13 Aug 2023, at 21:13, Mark Millard wrote: >>>=20 >>> But the offical CI builds on amd64 do not have the problem. >>>=20 >>> 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. >>=20 >> My src.conf: >>=20 >> WITHOUT_PROFILE=3Dyes >> WITHOUT_TESTS=3Dyes >> WITHOUT_STATIC=3Dyes >>=20 >> WITHOUT_LLVM_TARGET_ALL=3Dyes >=20 > Starting below this is wrong presuming all > builds are actually done on amd64: >=20 >> .if "${TARGET}" =3D=3D "arm64" && "${TARGET_ARCH}" =3D=3D "aarch64" >> KERNCONF?=3DGENERIC-MMCCAM >> REPODIR?=3D/data/poudriere/packages/pkgbase >> MODULES_EXTRA=3D"rpi_ft5406" >> WITH_LLVM_TARGET_AARCH64=3Dyes >> WITH_LLVM_TARGET_ARM=3Dyes >> .else >> KERNCONF?=3DGENERIC-NODEBUG >> REPODIR?=3D/data/poudriere/packages/pkgbase >> WITH_LLVM_TARGET_AARCH64=3Dyes >> WITH_LLVM_TARGET_X86=3Dyes >> .endif >=20 > Ending here. >=20 > This is written as if there were separate toolchains for > each target. That is not how llvm/clang/lld works, > unlike gcc. One toolchain covers all the targets. That > is what the FreBSD llvm support is structured for. >=20 > You want the one llvm/clang/lld toolchain that includes > everything required to build any/all of: >=20 > A) amd64 > B) i386 for amd64's lib32 > C) aarch64 > D) armv7 for aarch64's lib32 >=20 > So the *_LLVM_TARGET_* parts would be more like: >=20 > WITHOUT_PROFILE=3Dyes > WITHOUT_TESTS=3Dyes > WITHOUT_STATIC=3Dyes >=20 > WITHOUT_LLVM_TARGET_ALL=3Dyes > WITH_LLVM_TARGET_AARCH64=3Dyes > WITH_LLVM_TARGET_X86=3Dyes > WITH_LLVM_TARGET_AARCH64=3Dyes > WITH_LLVM_TARGET_ARM=3Dyes Dumb editing error, not having an AMD64 line and having two AARCH64 lines. So, instead: WITHOUT_LLVM_TARGET_ALL=3Dyes WITH_LLVM_TARGET_AMD64=3Dyes WITH_LLVM_TARGET_X86=3Dyes WITH_LLVM_TARGET_AARCH64=3Dyes WITH_LLVM_TARGET_ARM=3Dyes > So: outside the later conditional logic. >=20 > (Your REPODIR?=3D lines are identical and could also be factored > out of the conditional logic if they are not expected to be > independently changed. Only the KERNCONF?=3D lines are actually > target specific, needing to be in the conditional logic.) >=20 >> make.conf is empty, git workdir has `main=E2=80=99 checked out, = without any modifications (git status reports clean workdir) >>=20 >=20 I should have noted that if the existing toolchain does not cover all of ARM64, X86, AARCH64, and ARM then it may take special activity to get to the point of having all 4 spanned in each instance of the toolchain. Once in place, things should be more self-propagating. =3D=3D=3D Mark Millard marklmi at yahoo.com