-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sys-apps/nix and app-text/lowdown-nix fail to link with CFLAGS=-flto: ld: ...ccsAsSAj.ltrans0.ltrans.o:(.debug_info+0x2f): undefined reference to `document.c....' #19
Comments
It's the right place. Welcome! :) Let's try to figure out why it fails. Is it a fresh Posting build snippet here to ease the search:
|
It is a fresh install, and wow, thanks for the quick response |
While It likely comes from Or if you suspect |
Meanwhile I reproduced locally similar failure with
Looking as well. |
completely disabling lto and recompiling lowdown-nix fixed my issue. Now I just got to figure out the minimum number of settings to change and I'll report to the lto-overlay, as this is an LTO issue, not a nix one. Thanks for the help. |
Adding |
no I don't seem to have those set in my environment. |
Maybe it's OK. Chances are that binutils automatically discover linker plugin and use it. |
Gentoo uses the following to strip files:
I think it hints at missing plugin load. Worth exploring if |
The log is misleading. Those strip flags are used only for ELF files.
Looking at the What I'm not sure about is whether https://sourceware.org/PR21479 implies it might work, but is a "minefield". |
Filed https://gcc.gnu.org/PR105877 to see if we can clarify it upstream. |
By default portage runs 'strip -g' on .a files. This is known to break liblowdown.a when it's built with -flto: #19 Chances are it's a toolchain bug (or a limitation of LTO): https://gcc.gnu.org/PR105877 Reported-by: drnfc Bug: https://gcc.gnu.org/PR105877 Closes: #19
Meanwhile f9afe32 should allow building |
Not sure if this is the right place to ask this, but I am having issues emerging nix.
here's my portage build log:
https://pastebin.com/VYV27NJR
things I've tried:
The text was updated successfully, but these errors were encountered: