From nobody Tue Aug 15 21:02:25 2023 X-Original-To: freebsd-arm@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 4RQNy82bGxz4qQNj for ; Tue, 15 Aug 2023 21:02:40 +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 4RQNy7526gz3cTC for ; Tue, 15 Aug 2023 21:02:39 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=Nmtxa6m2; 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=1692133358; bh=WS3G4r9Qw3tKf7dQhLcsAhR39ZNZcqUWuL+pICiG6CQ=; h=From:Subject:Date:References:To:In-Reply-To:From:Subject:Reply-To; b=Nmtxa6m2osVipOSi+l8avnneClOajLQU9WzYpA4XyAQJwMYqF4ifTczHCgMUO6yiiAb7b/aUc1+G2LYtAqEWV2ZGbt6g6lT+i7FGkXoqLcEr51gaZK90sxIU/qRgDUqQDOg2L66fOPbIMtsBi+hDf+6dYVTBz6YCTH3JT3E9+K3uC2trwbpvD9ReHbHwbbz8t35lwk3GETxTI3QgAIle9+NtKBXebr39eYh7Q+0XuB2RDlQCOryg17YxHnB5pduAJeMijgVs/yLbnU1oDCTv2QcK3DTxpfUPRKOqn8CRuDaDVIT4E+mkb5fr9bXWsMRmhLYpqycZluEkmt6agwR8Nw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1692133358; bh=ZpyPf3nK5TrTh8/HbyYj1Znn9AQjsYcdNkLdXItFi4T=; h=X-Sonic-MF:From:Subject:Date:To:From:Subject; b=LBPn2KA217s/qt3ULx1h8/mfWp3ahyzWQEIX2ANe5d55NXJHMSFiV2NW0I8KzHZa7RruYt+EhdJSigC/qE5emcpQZj7stjqFcARuxuu+P1wFBkcPXwFWaTYcKm9r7fi8fpmT27RaG8qtiQ5OjnBiEIbCJogoL2vu33IRsZSC4fXzIMdXTecr6DpyemDc1UQKoExbMw8sKEby2tluvLoQpTJk2hVnA76pLqyeTiNVrR45oqVBenQqS47iEAv9wYCOAQcVia6hfoYdzTaB5jppAI0Wito4X1AC0jpVa1lVnBlB++5s80aqEJLCFkKwL6ZCTq35wEVkDzY+bPXyUEpr0Q== X-YMail-OSG: IItbTtQVM1ntVH4vlBr3IUblL7Ea3VULshpKvULE.4ZQX4EMYl18lKwNyBu7giC WhomhaOINyNjbQ4voW5C1M9TVoRJqr93ZbwhTanwrVb3PS0bAdS3WofeEruvXMjdHj2PCVjuERGw LPJzhqiciGFC8.tCFdczWfIFkttIMR9ti3mznXCF.u_ZV5T_PcaLCCCnzVNUy4fgMFqdBlZw7x_c Vd3XUlgMZYJigpFw539ablNwkhQjQUf2Bu02AHUTcQMzq08l8wk6rBc7ETmJKYtJd7kA0xnSmDg4 eYAR8DdnDbPHA9qZbMoL7gRuQZMQsESIXSOjADRYxSEm_V5VONOgGXztP8oofsWhy6rY2zSoIaT_ Jyj4QgxbkYPNmjbECAeoHIsH39BkuVV.cV3kuF3AoI1M4_t.u1uEKJ8IWkjAyGKZ8YLf4_IaawnI I7.YLpiAvFzNjKrMInMN.aXvddCDUdQ7C7lkp2jdtoclb4Wm61eSGi_C6zvNqMM7l6E4tPwguJKg LMokNiUrGiLkfNZw7EEV1YJWS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rOhmD.G45c0L1vanb9c67LWdtOdB7llZ2 MlL30dBJRjJBKeqH0jJvdxkxT8rAv2Ls82W0Twnh7K6pW72uhWK24lai_BIGGh3S6jaLXlAkD5L8 zFOEEFTYFnmwRDSb6HX9sfMMASBfV62DqKcvD2UvBxRixN8_PJuygrw.WxXvzqBqEUYBgOaMzxOQ O_Pr7Y0raCa7pqT.2JWX7Da4uJjp0c1.ixSLAtV68xxWOIaD1dLo3FnpOuDCv8p3y1SfUR5GEkDJ wZpXx73t8Etf2hUPc269.LC.EN0qtqRp9XlR9wICw5vjME_GPBDJseJbCkV6ifTcuavn45nqBWbK 7xkINKLu_bEzYU6Wj009ziaurmfI4hzaGWduZHqT_KKvhtVld6muBP.LO3qa1Tlnpuuiv5Wy.G3p 0gUxcnrMJDDbCOTrr2gHzadsjcHAO4ndGXmeAWnb7B7oocf5BHRPLMfecIaJQKo9IWhRCnVMhh1y RIxcxzdx227kvWq77Xb4ffjj5t06rJ4CtWGhRjygUxilBQuNEV98ZxUdj286xCzAtJ9Uv1TKUxst UlkBodYw89K5ECsnw8gbRQNcMrXT5pWsz.VLNlm7Zxo_I84c1N6VBtbYGFmlQhJKDDard1xA6lwm jX1f1iV.BbGNFcUaXiIrnESlvw.9iPL4h2Bsu.Y19fsmI0TTZd9cBU0CJn53S5.99yaid8zbbEzA v X-Sonic-MF: X-Sonic-ID: 663dd266-95ad-44af-b885-32f9395945da Received: from sonic.gate.mail.ne1.yahoo.com by sonic301.consmr.mail.gq1.yahoo.com with HTTP; Tue, 15 Aug 2023 21:02:38 +0000 Received: by hermes--production-ne1-7b767b77cc-7tm2h (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID adf9928e37854217bc295f890c09f82e; Tue, 15 Aug 2023 21:02:36 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.700.6\)) Subject: Re: Float ABI confusion for armv7 Date: Tue, 15 Aug 2023 14:02:25 -0700 References: <9A9C620C-B8D0-4366-AEEC-CF59E0848A16@yahoo.com> To: John F Carr , freebsd-arm In-Reply-To: <9A9C620C-B8D0-4366-AEEC-CF59E0848A16@yahoo.com> Message-Id: <488A7616-5500-47F6-9BDD-2472D3CA21FC@yahoo.com> X-Mailer: Apple Mail (2.3731.700.6) X-Spamd-Result: default: False [-3.49 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.99)[-0.995]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; MIME_GOOD(-0.10)[text/plain]; FROM_HAS_DN(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; ARC_NA(0.00)[]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org]; RCVD_IN_DNSWL_NONE(0.00)[98.137.64.148:from]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; 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]; MID_RHS_MATCH_FROM(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; RCVD_TLS_LAST(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2] X-Spamd-Bar: --- X-Rspamd-Queue-Id: 4RQNy7526gz3cTC On Aug 15, 2023, at 13:54, Mark Millard wrote: > John F Carr write on > Date: Tue, 15 Aug 2023 13:51:24 UTC : >>=20 >> Has something changed in llvm to cause soft float to be the default = for armv7? >>=20 >> I am cross-compiling using poudriere on a 64 bit ARM host to target = armv7. >> This used to work. After updating my jail (poudriere jail -u = -msrc=3D...) I get an >> unnecessarily mysterious failure building pkg. Poudriere erases the = evidence, >> poudriere -i does not work as advertised, pkg's configure script = spawns subshells >> to prevent set -x from working, and the subshell directs error = messages to /dev/null. >> After getting past all that, >>=20 >> # cc -target armv7-freebsd -o /tmp/a.out autosetup/jimsh0.c=20 >>=20 >> in the pkg source directory results in undefined symbols such as = __eqdf2. >>=20 >> # cc -target armv7-freebsd-gnueabihf -o /tmp/a.out autosetup/jimsh0.c >>=20 >> works fine. >>=20 >> # cc -v >> FreeBSD clang version 16.0.6 = (https://github.com/llvm/llvm-project.git = llvmorg-16.0.6-0-g7cbf1a259152) >> Target: armv7-unknown-freebsd14.0 >> Thread model: posix >> InstalledDir: /usr/bin >>=20 >=20 > Exploring my context that does not get the problem . . . >=20 > # uname -apKU > FreeBSD CA72-16Gp-ZFS 14.0-ALPHA1 FreeBSD 14.0-ALPHA1 aarch64 1400094 = #107 main-n264683-6b405053c997-dirty: Sat Aug 12 23:43:37 PDT 2023 = root@CA72-16Gp-ZFS:/usr/obj/BUILDs/main-CA72-nodbg-clang/usr/main-src/arm6= 4.aarch64/sys/GENERIC-NODBG-CA72 arm64 aarch64 1400094 1400094 >=20 > So: aarch64 >=20 > But . . .=20 >=20 > # poudriere jail -jmain-CA7-bulk_a -i > Jail name: main-CA7-bulk_a > Jail version: 14.0-ALPHA1 > Jail arch: arm.armv7 > Jail method: null > Jail mount: /usr/obj/DESTDIRs/main-CA7-poud-bulk_a > . . . >=20 > # chroot /usr/obj/DESTDIRs/main-CA7-poud-bulk_a uname -apKU > FreeBSD CA72-16Gp-ZFS 14.0-ALPHA1 FreeBSD 14.0-ALPHA1 aarch64 1400094 = #107 main-n264683-6b405053c997-dirty: Sat Aug 12 23:43:37 PDT 2023 = root@CA72-16Gp-ZFS:/usr/obj/BUILDs/main-CA72-nodbg-clang/usr/main-src/arm6= 4.aarch64/sys/GENERIC-NODBG-CA72 arm armv7 1400094 1400094 >=20 > So: an armv7 poudriere jail context on an aarch64 system. >=20 > . . . > [00:00:09] [01] [00:00:00] Building ports-mgmt/pkg | pkg-1.20.4 > [00:03:05] [01] [00:02:56] Finished ports-mgmt/pkg | pkg-1.20.4: = Success >=20 > Looking at the log file: >=20 > . . . > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > =3D=3D=3D=3D=3D env: NO_DEPENDS=3Dyes USER=3Droot UID=3D0 GID=3D0 > =3D=3D=3D> Configuring for pkg-1.20.4 > No installed jimsh or tclsh, building local bootstrap jimsh0 > Host System...armv7-unknown-freebsd14.0 > Build System...armv7-unknown-freebsd14.0 > . . .=20 >=20 > But: >=20 > # chroot /usr/obj/DESTDIRs/main-CA7-poud-bulk_a cc -v > FreeBSD clang version 16.0.6 (https://github.com/llvm/llvm-project.git = llvmorg-16.0.6-0-g7cbf1a259152) > Target: armv7-unknown-freebsd14.0-gnueabihf > Thread model: posix > InstalledDir: /usr/bin >=20 >=20 > So my buildworld and installworld sequence into: >=20 > /usr/obj/DESTDIRs/main-CA7-poud-bulk_a >=20 > got clang for a default of: armv7-unknown-freebsd14.0-gnueabihf >=20 > The only thing that I know of that might contribute that is specific > to my environment is that I cause use of -mcpu=3Dcortex-a7 in the > buildworld used to fill in /usr/obj/DESTDIRs/main-CA7-poud-bulk_a . >=20 >=20 Never mind. I see Warner has fixed it and that my context somewhat predates the bad commit (2023-Aug-12): =E2=80=A2 git: 0bc26e325450 - main - clang: Minor build = simplification now that armv[45] is not supported Warner Losh fixed by (2023-Aug-14): =E2=80=A2 git: 43b41bee90c7 - main - llvm: fix armv[67] after = 0bc26e325450 Warner Losh =3D=3D=3D Mark Millard marklmi at yahoo.com