Re: git: f9df60975087 - main - Add support for host32 for DIRDEPS_BUILD

From: Mark Millard <marklmi_at_yahoo.com>
Date: Sat, 23 Sep 2023 22:29:26 UTC
[A resend, this time sending to the list as well, as I originally
intended.]

Simon J. Gerraty <sjg_at_FreeBSD.org> wrote on
Date: Sat, 23 Sep 2023 06:28:23 UTC :
> 
> The branch main has been updated by sjg:
> 
> URL: https://cgit.FreeBSD.org/src/commit/?id=f9df609750876be2c054dfac953316f513ccffce
> 
> commit f9df609750876be2c054dfac953316f513ccffce
> Author: Simon J. Gerraty <sjg@FreeBSD.org>
> AuthorDate: 2023-09-23 06:27:37 +0000
> Commit: Simon J. Gerraty <sjg@FreeBSD.org>
> CommitDate: 2023-09-23 06:27:37 +0000
> 
> Add support for host32 for DIRDEPS_BUILD
> 
> Allow building 32bit libs for host.
> 
> Move CFLAGS additions from local.sys.dirdeps.mk (which is too early
> and impacts CFLAGS defaults) to local.sys.mk
> 
> Reviewed by: stevek
> Sponsored by: Juniper Networks, Inc.
> Differential Revision: https://reviews.freebsd.org/D41946

. . .

Looks like this broke lib32 builds via it ending up using
the default:

-target armv7-unknown-freebsd

instead of the correct:

-target armv7-unknown-freebsd15.0-gnueabihf

I've suggested in the past that the default for FreeBSD's
-m32 for aarch64 should be made to be (stated for 15 now):

-target armv7-unknown-freebsd15.0-gnueabihf

but that has not happened and the build environment must
deal with provding the proper target explicitly.


For reference,

https://ci.freebsd.org/job/FreeBSD-main-aarch64-build/26609/console

shows:

03:50:51 --- fixunsdfsivfp.o ---
03:50:51 /usr/src/contrib/llvm-project/compiler-rt/lib/builtins/arm/fixunsdfsivfp.S:26:2: error: instruction requires: fp registers
03:50:51 vmov d7, r0, r1
03:50:51 ^
03:50:51 /usr/src/contrib/llvm-project/compiler-rt/lib/builtins/arm/fixunsdfsivfp.S:27:2: error: instruction requires: double precision VFP VFP2
03:50:51 vcvt.u32.f64 s15, d7
03:50:51 ^
03:50:51 /usr/src/contrib/llvm-project/compiler-rt/lib/builtins/arm/fixunsdfsivfp.S:28:2: error: instruction requires: fp registers
03:50:51 vmov r0, s15
03:50:51 ^
03:50:51 *** [fixunsdfsivfp.o] Error code 1

and its https://ci.freebsd.org/job/FreeBSD-main-aarch64-build/26609

shows:

Changes
   • Add support for host32 for DIRDEPS_BUILD (details / cgit)
   • ng_eiface: switch VNETs when injecting mbufs into netgraph (details / cgit)

===
Mark Millard
marklmi at yahoo.com


===
Mark Millard
marklmi at yahoo.com