https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: sys-boot/systemd-boot-249.9 fails to compile. Discovered on: amd64 (internal ref: tinderbox) NOTE: This machine uses CLANG as a compiler and LLD as a linker
Created attachment 763575 [details] build.log build log and emerge --info
Created attachment 763576 [details] 1-meson-log.txt 1-meson-log.txt
Error(s) that match a know pattern in addition to what has been reported in the summary: Program bpftool /usr/sbin/bpftool found: NO Program kexec /usr/sbin/kexec /sbin/kexec found: NO Program quotacheck /usr/sbin/quotacheck /sbin/quotacheck found: NO Program quotaon /usr/sbin/quotaon /sbin/quotaon found: NO Run-time dependency libbpf found: NO (tried pkgconfig and cmake) Run-time dependency libfido2 found: NO (tried pkgconfig and cmake) Run-time dependency p11-kit-1 found: NO (tried pkgconfig and cmake) Run-time dependency pwquality found: NO (tried pkgconfig and cmake) Run-time dependency tss2-esys tss2-rc tss2-mu found: NO (tried pkgconfig and cmake) src/boot/efi/meson.build:54:16: ERROR: Problem encountered: LLVM/lld does not support PE/COFF relocations. Use different linker for EFI image.
This will be resolved by the changes coming in systemd-254.
(In reply to Mike Gilbert from comment #4) > This will be resolved by the changes coming in systemd-254. https://github.com/systemd/systemd/blame/main/src/boot/efi/meson.build#L147 It seems like the change was to force ld.bfd when building systemd-boot. This breaks Clang thin LTO with systemd with +boot and requires either a patch to disable LTO when using clang in the efi_c_ld_args or the use of package.cflags locally to disable LTO for systemd entirely.
(In reply to Ali Abdel-Qader from comment #5) Take it up with upstream. Nothing I can do about it.
Fixed upstream by forcing bfd.