Summary: | sys-auth/elogind-229.3 : /.../ccYhKf1V.ltrans0.ltrans.o:<artificial>:function main: error: undefined reference to 'elogind_set_program_name' | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
Component: | Current packages | Assignee: | Freedesktop bugs <freedesktop-bugs> |
Status: | RESOLVED TEST-REQUEST | ||
Severity: | normal | CC: | mgorny, sven.eden |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 618550 | ||
Attachments: |
emerge-info.txt
config.log.tbz2 emerge-history.txt environment etc.portage.tbz2 sys-auth:elogind-229.3:20170528-103529.log temp.tbz2 emerge.log.gz |
Description
Toralf Förster
2017-05-28 10:59:35 UTC
Created attachment 474536 [details]
emerge-info.txt
Created attachment 474538 [details]
config.log.tbz2
Created attachment 474542 [details]
emerge-history.txt
Created attachment 474544 [details]
environment
Created attachment 474546 [details]
etc.portage.tbz2
Created attachment 474548 [details]
sys-auth:elogind-229.3:20170528-103529.log
Created attachment 474550 [details]
temp.tbz2
I just rebuilt elogind-229.3 with your exact configure call, and it built flawlessly, using gcc-6.3.0. The resulting differences between both calls to libtool are: 1) -flto -ffunction-sections -fdata-sections 2) -Wl,--gc-sections -Wl,-O1 I have everything else, too. As systemd enforces the usage of the gold linker, let's see whether the LTO enforcement is creating the issue here. Results: - Adding 1) to CFLAGS does not lead to any problems. - Adding 2) to LDFLAGS does not lead to any problems. I am sorry, but apart from me having '-ftree-vectorize' in the CFLAGS, there is no difference now, and I can not reproduce your problem. Created attachment 474862 [details]
emerge.log.gz
elogind emerged at his image too successfully after that failure - I attached the emerge..log for completeness
If I understand the log right, it looks like: - emerge elogind-229.3 - FAILED - emerge elogind-226.4 - success - update to elogind-229.3 - success Weird. I have searched for a few (ok, obvious) package upgrades between the failed and the successful merge, but nothing sticks out. Maybe it was jut a badly written byte? Murphy's Law? Really, I am completely at sea here, sorry. This looks like it might be LTO-related. (In reply to Michael Palimaka (kensington) from comment #11) > This looks like it might be LTO-related. The weird thing is, that the systemd build system always enforced LTO where available. @Toralf: Can you, by any chance, reproduce this error? "elogind_set_program_name()" is a function of mine to circumvent problems with musl-libc and to add debug log support for some internal parts. (In reply to Sven Eden from comment #12) > (In reply to Michael Palimaka (kensington) from comment #11) > > This looks like it might be LTO-related. > > The weird thing is, that the systemd build system always enforced LTO where > available. ...and the systems team disabled it as soon as they noticed. (In reply to Michał Górny from comment #13) > (In reply to Sven Eden from comment #12) > > (In reply to Michael Palimaka (kensington) from comment #11) > > > This looks like it might be LTO-related. > > > > The weird thing is, that the systemd build system always enforced LTO where > > available. > > ...and the systems team disabled it as soon as they noticed. Maybe, but LTO worked on all my machines with gcc-4.9.x, gcc-5.3.0 and now gcc-6.3.0 flawlessly. However, I *think* I found the reason. Let me do some experiments... Two updates: 1) I think I found the reason. The fix will be included in version 231. 2) elogind, contrary to systemd, supports configure --disable-lto -> Please use this when in doubt. However, I am still not able to reproduce the issue, so 1) is guesswork. Hopefully someone can provide a reproducible way to trigger the linker error. (In reply to Sven Eden from comment #15) > 1) I think I found the reason. The fix will be included in version 231. I have backported the possible "fix" to v229.5 and opened a version bump request as bug 621596. Could you please test whether the issue remains once elogind is bumped to v229.5? It *should* be fixed now. |