Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 741942

Summary: sys-boot/elilo-3.16-r3 fails to compile on llvm-objcopy (missing support for EFI target)
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: No maintainer - Look at if you want to take care of it <maintainer-needed>
Status: CONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Attachments: build.log

Description Agostino Sarubbo gentoo-dev 2020-09-12 18:41:39 UTC

Issue: sys-boot/elilo-3.16-r3 fails to compile.
Discovered on: amd64 (internal ref: tinderbox)

This machine uses a clang/LLVM toolchain.
If you think that this issue is strictly related to clang/LLVM please block bug 408963. If you think that this issue is strictly related to the LLD linker, please block bug 731004.
This machine uses also GLIBC-2.32. If you think that this issue is strictly related to GLIBC please block bug 736174.
Comment 1 Agostino Sarubbo gentoo-dev 2020-09-12 18:41:40 UTC
Created attachment 659847 [details]

build log and emerge --info
Comment 2 Sergei Trofimovich (RETIRED) gentoo-dev 2020-09-12 19:25:20 UTC
ld.lld does not support EFI app output:

ld.lld -nostdlib -znocombreloc -T /usr/lib64/ -shared -Bsymbolic -L/usr/lib64 -L/usr/lib64 /usr/lib64/crt0-efi-x86_64.o elilo.o getopt.o strops.o loader.o fileops.o util.o vars.o alloc.o chooser.o config.o initrd.o alternate.o bootparams.o gunzip.o console.o fs/fs.o choosers/choosers.o devschemes/devschemes.o x86_64/sysdeps.o glue_localfs.o glue_netfs.o -o -lefi -lgnuefi /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/libgcc.a
llvm-objcopy -j .text -j .sdata -j .data -j .dynamic -j .dynsym -j .rel \
	   -j .rela -j .reloc --target=efi-app-x86_64 elilo.efi
llvm-objcopy: [0;1;31merror: [0minvalid output format: 'efi-app-x86_64'
Comment 3 Sergei Trofimovich (RETIRED) gentoo-dev 2021-07-05 07:31:51 UTC
Ah, it's objcopy, not ld.lld.