WITH_LLVM_BINUTILS: objcopy: error: invalid output format: 'efi-app-x86_64' *** [boot1.efi]

From: FreeBSD User <freebsd_at_walstatt-de.de>
Date: Wed, 22 Sep 2021 17:48:41 UTC
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hello list,

Trying to "crosscompile" a 13-STABLE appliance on 14-CURRENT ( FreeBSD 14.0-CURRENT #8
main-n249550-8db1669959ce: Wed Sep 22 05:39:53 CEST 2021 amd64) with

WITH_LLVM_BINUTILS=YES

set in /etc/src.conf (and a complete fresh rebuild of the whole OS afterwards) results in some
serious fallout lately.

Compiling a recent, just updated this minute, 13-STABLE source, I face this error now and
relate this to the llvm-binutils: 

[...]
- --- boot1.efi ---
if nm boot1.sym | grep ' U '; then  echo "Undefined symbols in boot1.sym";  exit 1;  fi
SOURCE_DATE_EPOCH=1451606400  objcopy -j .peheader -j .text -j .sdata -j .data  -j .dynamic -j
.dynsym -j .rel.dyn  -j .rela.dyn -j .reloc -j .eh_frame  --output-target=efi-app-x86_64
boot1.sym boot1.efi 
objcopy: error: invalid output format: 'efi-app-x86_64' *** [boot1.efi]
Error code 1

I guess this is fallout from the binutils migration and compiling 13-STABLE on 14-CURRENT host
is a special case. Can this be fixed easily or is the migration process to immature at this
point?

Kind regards,

Oliver Hartmann 



- -- 
O. Hartmann

Ich widerspreche der Nutzung oder Übermittlung meiner Daten für
Werbezwecke oder für die Markt- oder Meinungsforschung (§ 28 Abs. 4 BDSG).
-----BEGIN PGP SIGNATURE-----

iHUEARYKAB0WIQSy8IBxAPDkqVBaTJ44N1ZZPba5RwUCYUtsZgAKCRA4N1ZZPba5
R9JSAQDozG5xwFhGxPTbhOPCJ731/GrxdI0lfjERziGMbXbg7QEApvkWChAKg9NM
Ztgos3LH/+1Q9/gQ9CTYQbebxgcRgQM=
=8J4u
-----END PGP SIGNATURE-----


-- 
O. Hartmann