Summary: | sys-apps/systemd: fails to build with the gold linker (/usr/bin/x86_64-pc-linux-gnu-ld: internal error in segment_precedes, at /var/tmp/portage/sys-devel/binutils-2.37_p1/work/binutils-2.37/gold/layout.cc:3721) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | pranav1000 |
Component: | Current packages | Assignee: | Gentoo Toolchain Maintainers <toolchain> |
Status: | UNCONFIRMED --- | ||
Severity: | normal | CC: | dschridde+gentoobugs, esigra, filakhtov, sam, systemd |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 269315 | ||
Attachments: | build.log |
Description
pranav1000
2021-08-30 10:46:56 UTC
IMHO default-gold should not be used. The Gold linker is not well-maintained now. See https://www.phoronix.com/scan.php?page=news_item&px=GNU-Gold-Stagnate-F31 Can you please include the full build.log too (always with reports)? That said, it's right that gold is pretty dead. This looks like a possible binutils/gold bug. No idea what that error means. Passing to toolchain. Apparently the openembedded people noticed this and just decided to go back to bfd: https://www.mail-archive.com/openembedded-core@lists.openembedded.org/msg151410.html. This should be reported upstream at https://sourceware.org/bugzilla/ but as another commenter noted, I'm not sure if gold is being actively maintained now. Also not clear if systemd upstream are testing with gold. I am sorry but I am unable to post the build log. It is bigger than the 100kb limit. What can I do? (In reply to pranav1000 from comment #5) Compress it. Created attachment 737539 [details]
build.log
Thank you for your reply. I have attached the build log.
FAILED: src/boot/efi/linuxx64.elf.stub /usr/bin/x86_64-pc-linux-gnu-ld -o src/boot/efi/linuxx64.elf.stub -T /usr/lib64/elf_x86_64_efi.lds -shared -Bsymbolic -nostdlib -znocombreloc --build-id=sha1 -L /usr/lib64 /usr/lib64/crt0-efi-x 86_64.o src/boot/efi/string-util-fundamental.c.o src/boot/efi/disk.c.o src/boot/efi/graphics.c.o src/boot/efi/measure.c.o src/boot/efi/pe.c.o src/boot/efi/secure-boot.c.o src/boot/efi/util.c.o src/boot/efi/linux.c.o src/boot/efi/splash.c.o src/boot/efi/stub.c.o -lefi -lgnuefi /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/libgcc.a /usr/bin/x86_64-pc-linux-gnu-ld: internal error in segment_precedes, at /var/tmp/portage/sys-devel/binutils-2.37_p1/work/binutils-2.37/gold/layout.cc:3721 Not much we can do except reporting upstream. https://lists.openembedded.org/g/openembedded-core/topic/patch_systemd_boot_use/84646246?p= mentions it. I don't see an upstream report but not looked very hard. |