Summary: | sys-boot/systemd-boot-249.9 fails to compile: meson.build:54:16: ERROR: Problem encountered: lld does not support COFF relocations Use different linker for EFI image | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Agostino Sarubbo <ago> |
Component: | Current packages | Assignee: | Mike Gilbert <floppym> |
Status: | RESOLVED UPSTREAM | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://bugs.gentoo.org/show_bug.cgi?id=914008 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
build.log
1-meson-log.txt |
Description
Agostino Sarubbo
2022-01-25 08:39:59 UTC
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. |