make[1]: Entering directory '/var/tmp/portage/sys-boot/gnu-efi-3.0.18/work/gnu-efi-3.0.18/ia32/apps' clang -I/var/tmp/portage/sys-boot/gnu-efi-3.0.18/work/gnu-efi-3.0.18//apps -I/var/tmp/portage/sys-boot/gnu-efi-3.0.18/work/gnu-efi-3.0.18//apps/../inc -I/var/tmp/portage/sys-boot/gnu-efi-3.0.18/work/gnu-efi-3.0.18//apps/../inc/ia32 -I/v ar/tmp/portage/sys-boot/gnu-efi-3.0.18/work/gnu-efi-3.0.18//apps/../inc/protocol -Wno-error=pragmas -mno-mmx -mno-sse -mno-avx -fPIE -m32 -g -O2 -Wall -Wextra -Wno-pointer-sign -funsigned-char -fshort-wchar -fno-strict-aliasing -ffreest anding -fno-stack-protector -fno-stack-check -DCONFIG_ia32 -std=c11 -D__KERNEL__ -I/usr/src/sys/build/include -c /var/tmp/portage/sys-boot/gnu-efi-3.0.18/work/gnu-efi-3.0.18//apps/t.c -o t.o ld.lld -nostdlib --warn-common --no-undefined --fatal-warnings --build-id=sha1 -z nocombreloc -shared -Bsymbolic -L/var/tmp/portage/sys-boot/gnu-efi-3.0.18/work/gnu-efi-3.0.18//apps/../ia32/lib -L/var/tmp/portage/sys-boot/gnu-efi-3.0.18/work/gnu-efi-3.0.18//apps/../ia32/gnuefi /var/tmp/portage/sys-boot/gnu-efi-3.0.18/work/gnu-efi-3.0.18//apps/../ia32/gnuefi/crt0-efi-ia32.o t.o -o t.so -lefi -lgnuefi /usr/lib/llvm/18/bin/../../../../lib/clang/18/lib/linux/libclang_rt.b uiltins-i386.a -T /var/tmp/portage/sys-boot/gnu-efi-3.0.18/work/gnu-efi-3.0.18//apps/../gnuefi/elf_ia32_efi.lds ld.lld: error: section: .dynamic is not contiguous with other relro sections make[1]: *** [/var/tmp/portage/sys-boot/gnu-efi-3.0.18/work/gnu-efi-3.0.18//apps/../Make.rules:51: t.so] Error 1 make[1]: Leaving directory '/var/tmp/portage/sys-boot/gnu-efi-3.0.18/work/gnu-efi-3.0.18/ia32/apps' make: *** [Makefile:82: apps] Error 2
Created attachment 891597 [details] build.log
Created attachment 891598 [details] emerge --info
https://github.com/gmbr3/gnu-efi/commit/a0111e0df165d49cf34fc4f5fae46fc0921a756d Appears to fix this
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ebaac45475e2dbf861838769c38459dd6275d1b6 commit ebaac45475e2dbf861838769c38459dd6275d1b6 Author: Sam James <sam@gentoo.org> AuthorDate: 2024-05-03 05:00:53 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-05-03 05:05:43 +0000 sys-boot/gnu-efi: fix Clang build, backport refind fixes Closes: https://bugs.gentoo.org/930538 Signed-off-by: Sam James <sam@gentoo.org> sys-boot/gnu-efi/files/gnu-efi-3.0.18-clang.patch | 26 +++++ sys-boot/gnu-efi/files/gnu-efi-3.0.18-refind.patch | 126 +++++++++++++++++++++ sys-boot/gnu-efi/gnu-efi-3.0.18-r1.ebuild | 90 +++++++++++++++ 3 files changed, 242 insertions(+)
FYI, after this fix fwupd stated to work on some Lenovo laptops we have. Even if we use gcc-13.2.1_p20240210