Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 669086 - 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
Summary: media-libs/alsa-lib-1.1.7 with lto: Invalid attempt to declare external versi...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo ALSA team [DISABLED]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: lto
  Show dependency tree
 
Reported: 2018-10-20 16:41 UTC by cryptopsy
Modified: 2022-07-17 15:24 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (media-libs:alsa-lib-1.1.7:20181020-183516.log,154.11 KB, text/x-log)
2018-10-20 16:41 UTC, cryptopsy
Details
emerge --info (info,5.24 KB, text/plain)
2018-10-20 16:42 UTC, cryptopsy
Details

Note You need to log in before you can comment on or make changes to this bug.
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(-)