Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 669086

Summary: media-libs/alsa-lib-1.1.7 with lto: Invalid attempt to declare external version name as default in symbol `snd_dlopen@@ALSA_1.1.6
Product: Gentoo Linux Reporter: cryptopsy
Component: Current packagesAssignee: Gentoo ALSA team <alsa-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: marc_heimann, paolo.pedroni, sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=616108
https://github.com/alsa-project/alsa-lib/issues/6
https://bugs.gentoo.org/show_bug.cgi?id=853280
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 618550    
Attachments: build.log
emerge --info

Description cryptopsy 2018-10-20 16:41:45 UTC
Created attachment 551972 [details]
build.log

Error: invalid attempt to declare external version name as default in symbol `snd_dlopen@@ALSA_1.1.6

/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld:
Comment 1 cryptopsy 2018-10-20 16:42:09 UTC
Created attachment 551974 [details]
emerge --info
Comment 2 cryptopsy 2018-10-20 16:47:41 UTC
worked it compiles forcing -fno-lto
Comment 3 Manoa 2020-04-18 07:17:50 UTC
hi I have this same problem with alsa-1.2.1.2 and 1.2.2 but I am using slackware 14 not gentoo
Comment 4 carytherock 2020-05-26 18:49:48 UTC
(In reply to Manoa from comment #3)
> hi I have this same problem with alsa-1.2.1.2 and 1.2.2 but I am using
> slackware 14 not gentoo

Manoa, as this is Gentoo and not Slackware 14, I cannot guarantee this will help, but like cryptospsy@gmx.com mentioned, forcing it to compile using the gcc option -fno-lto allowed it to compile. Please take a look at the links below for assistance as to how to force this compile option in Gentoo - I am not (at all) familiar with Slackware.

I suspect there will be a script that the make process calls (the source code itself?) that identifies what flags the code should be compiled with. My naive guess would be to start researching there.

https://wiki.gentoo.org/wiki/Handbook:AMD64/Portage/Advanced#Per-package_environment_variables
https://wiki.gentoo.org/wiki/GCC_optimization
Comment 5 Larry the Git Cow gentoo-dev 2022-06-18 15:19:54 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=31c929441087eb65c4cdcfc61b29acb3a50cb954

commit 31c929441087eb65c4cdcfc61b29acb3a50cb954
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-06-18 15:19:42 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-06-18 15:19:47 +0000

    media-libs/alsa-lib: filter LTO
    
    It's unsafe to use with alsa-lib (fails to build, can work with a hack, but that hack
    implies other issues).
    
    Closes: https://bugs.gentoo.org/616108
    Closes: https://bugs.gentoo.org/669086
    Signed-off-by: Sam James <sam@gentoo.org>

 media-libs/alsa-lib/alsa-lib-1.2.7.1.ebuild | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
Comment 6 Larry the Git Cow gentoo-dev 2022-07-17 15:24:50 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b380de62b52d318e12857c54a3d99c9c21e3b165

commit b380de62b52d318e12857c54a3d99c9c21e3b165
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-07-17 15:06:41 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-07-17 15:06:54 +0000

    media-libs/alsa-lib: use new filter-lto
    
    Bug: https://bugs.gentoo.org/616108
    Bug: https://bugs.gentoo.org/669086
    Signed-off-by: Sam James <sam@gentoo.org>

 media-libs/alsa-lib/alsa-lib-1.2.7.2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)