Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 930538 - sys-boot/gnu-efi-3.0.18 fails to link with lld-18 error: section: .dynamic is not contiguous with other relro sections
Summary: sys-boot/gnu-efi-3.0.18 fails to link with lld-18 error: section: .dynamic is...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2024-04-24 06:42 UTC by Chris Pritchard
Modified: 2024-05-03 13:40 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,26.17 KB, text/x-log)
2024-04-24 06:44 UTC, Chris Pritchard
Details
emerge --info (emerge-info,16.63 KB, text/plain)
2024-04-24 06:44 UTC, Chris Pritchard
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Pritchard 2024-04-24 06:42:06 UTC
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
Comment 1 Chris Pritchard 2024-04-24 06:44:33 UTC
Created attachment 891597 [details]
build.log
Comment 2 Chris Pritchard 2024-04-24 06:44:55 UTC
Created attachment 891598 [details]
emerge --info
Comment 3 Joakim Tjernlund 2024-04-24 12:30:48 UTC
https://github.com/gmbr3/gnu-efi/commit/a0111e0df165d49cf34fc4f5fae46fc0921a756d

Appears to fix this
Comment 4 Larry the Git Cow gentoo-dev 2024-05-03 05:06:02 UTC
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(+)
Comment 5 Joakim Tjernlund 2024-05-03 13:40:02 UTC
FYI, after this fix fwupd stated to work on some Lenovo laptops we have.
Even if we use gcc-13.2.1_p20240210