Summary: | sys-apps/systemd-249.1[abi_x86_32] with ld.gold src/udev/libudev-core.a(udev-event.c.o)(.note.stapsdt+0x144): error: relocation refers to local symbol "" [43], which is defined in a discarded section | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Dennis Schridde <dschridde+gentoobugs> |
Component: | Current packages | Assignee: | Gentoo systemd Team <systemd> |
Status: | RESOLVED WONTFIX | ||
Severity: | normal | CC: | esigra, toolchain |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 269315 | ||
Attachments: | build.log.xz |
Description
Dennis Schridde
2021-07-21 06:04:19 UTC
P.S. The same already affected other versions that were in the Gentoo tree after 248.3-r1 (which was the last to successfully build). Could oyu attach the build.log too please (as always)? Created attachment 725395 [details]
build.log.xz
It works for me, so there must be something different on your system. I'll take a look at your log when I have some time. (In reply to Mike Gilbert from comment #4) > It works for me, so there must be something different on your system. I'll > take a look at your log when I have some time. Could it be because of sys-devel/binutils-2.36.1-r1[default-gold]? (In reply to Dennis Schridde from comment #5) > Could it be because of sys-devel/binutils-2.36.1-r1[default-gold]? I have no idea. You could try disabling yourself. (In reply to Dennis Schridde from comment #5) > (In reply to Mike Gilbert from comment #4) > > It works for me, so there must be something different on your system. I'll > > take a look at your log when I have some time. > > Could it be because of sys-devel/binutils-2.36.1-r1[default-gold]? Setting: CFLAGS="${CFLAGS} -fuse-ld=bfd" CXXFLAGS="${CXXFLAGS} -fuse-ld=bfd" allowed me to build sys-apps/systemd. So yes, this appears to be because of `ld.gold`. I attempted to extract the failure as https://sourceware.org/PR28139. Note that the trigger is systemtap annotations that come from <sys/sdt.h>. I don't see it in systemd's depends. Is it an automagic depend? One of workarounds would be to guard annotations behind USE=systemtap if systemd provides a knob. (In reply to Sergei Trofimovich from comment #8) > Note that the trigger is systemtap annotations that come from <sys/sdt.h>. I > don't see it in systemd's depends. Is it an automagic depend? One of > workarounds would be to guard annotations behind USE=systemtap if systemd > provides a knob. It seems to be an automagic build-time dependency with no "off" switch. https://github.com/systemd/systemd/blob/v249/meson.build#L663 https://github.com/systemd/systemd/blob/v249/src/shared/udev-util.h#L4 Closing as WONTFIX since ld.gold is dead upstream. |