From nobody Tue Aug 15 20:54:20 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 4RQNmt0FSDz4qQ5P for ; Tue, 15 Aug 2023 20:54:38 +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 4RQNmr179Rz3bs3 for ; Tue, 15 Aug 2023 20:54:36 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=uRgtgSJx; 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=1692132873; bh=7msghKQp/uyIgRdRIhuk0LEv7ElkECJMN1dJo2mBuBs=; h=From:Subject:Date:To:References:From:Subject:Reply-To; b=uRgtgSJxYHYnsXKpKuYPG4VURQiObtfzdNhzMuC/AYU9gE8fE4lhsCSjEliafHMliSY7rH+ruca8sHRg/+sMA2rQlPJ7PE1lVo/GtUV5yS+iOQ0UBJMklESmXp5I3ru1P96OKgGuN3OiBNdgL8AEieA/K4vRCqqVWA2ipcbTR719SLmii7eDr0/bQxY+PNNwPLL//jddoGCMYksIaTjv+E5nBnzt11fVicfN2EIQYMxUvrsAshnC+18qVFJjxIp18c6Y4ciN2z7yBAqph048NR+5VGB4YvKQgkjVTusAMT6UaHrV8NkZFreWlUR/YW05A5p+FP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_Uf1V9oPvThOVKCl3tbc4_fooIrtqzttLBhF9G.qz omImxaVQZn4vMTSF2J68tr84DYATdRZl6D_xY65DllIL_CSYU.4qZ7QEw3TZksCJX.zLjJgGPjIB tjl70y0wKhI3QVLSI5NaxeStM3hqRn6Z8LwLvgpeO6iJ1wpRwMRcisfzvKuZUgoq4OnOxppM.4LA Z_b1EL68lIZvE_c2gfRJaUekoosq_dFEkdJkCCCpN1XTs4FI3OkcT7hvrpjic2y1svdRcw4fPBdn LY8W.CpONrZF0oq.nPzT0raUmNQCYiNHv0RtALmUnToz.zuBxnTNRTMwxwDtvVkADBr1cy_748_V O6kDW4ns.Tdsy9Ey8z8CWLVjP7R.mJxXHlKfTyv8r5c_bXgMR6H5tls4clwqL0kC7tC92TRCrt51 SEA78s1H4bhZPtnOPQM2VLCmHLeelpVG5sQRWwKAug9Qx9N3DNP9.Nb_NAstu1BZKgSbsTAZwBbq .QrHuXkp.vusMYLTIQ58r2LUH.F3kAybgTovgZnlUQlk_2qpDleNduA3IHg.3CUmjdlTwShB8.yl qvuBaTmXkCvC9hVUnQ0BwMir6RpANgxbFdIHq7L6ZJHtLl.Z03vuyrSVNqUHxtdUeWPZXFr2GPct RPTbYQZu95RqNGCiBjJvXF0.r6zdFfhbH3tH73VwUOYG1_S_AymwRQ3EWatcZ.Cu0AfqfP4_6EQ- - X-Sonic-MF: X-Sonic-ID: d9485ae4-c873-4dda-8264-ff4e0e451087 Received: from sonic.gate.mail.ne1.yahoo.com by sonic301.consmr.mail.gq1.yahoo.com with HTTP; Tue, 15 Aug 2023 20:54:33 +0000 Received: by hermes--production-gq1-6b7c87dcf5-rj4xx (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 8c48c3ab19bf87692ea874fda1d96928; Tue, 15 Aug 2023 20:54:31 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii 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 Message-Id: <9A9C620C-B8D0-4366-AEEC-CF59E0848A16@yahoo.com> Date: Tue, 15 Aug 2023 13:54:20 -0700 To: John F Carr , freebsd-arm X-Mailer: Apple Mail (2.3731.700.6) References: <9A9C620C-B8D0-4366-AEEC-CF59E0848A16.ref@yahoo.com> 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: 4RQNmr179Rz3bs3 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 Exploring my context that does not get the problem . . . # 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 So: aarch64 But . . .=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 . . . # 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 So: an armv7 poudriere jail context on an aarch64 system. . . . [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 Looking at the log file: . . . =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 But: # 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 So my buildworld and installworld sequence into: /usr/obj/DESTDIRs/main-CA7-poud-bulk_a got clang for a default of: armv7-unknown-freebsd14.0-gnueabihf 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 . =3D=3D=3D Mark Millard marklmi at yahoo.com