Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 914511 - media-libs/alsa-lib-1.2.10-r3 requires -Wl,--undefined version on LLVM 17 - ld.lld: error: version script assignment of 'ALSA_0.9.5' to symbol 'alsa_lisp' failed: symbol not defined
Summary: media-libs/alsa-lib-1.2.10-r3 requires -Wl,--undefined version on LLVM 17 - l...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: PATCH
: 914643 919417 919468 (view as bug list)
Depends on: 930396 930587
Blocks: 912821 939918
  Show dependency tree
 
Reported: 2023-09-22 08:20 UTC by Mia Neufeld
Modified: 2024-09-20 20:09 UTC (History)
7 users (show)

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


Attachments
build log (build.log,101.62 KB, text/x-log)
2023-09-22 08:20 UTC, Mia Neufeld
Details
emerge --info (emerge.info,19.21 KB, text/plain)
2023-09-22 08:20 UTC, Mia Neufeld
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mia Neufeld 2023-09-22 08:20:39 UTC
Created attachment 871095 [details]
build log

Another package affected by the LLVM17 changes

Short excerpt:
ld.lld: error: version script assignment of 'ALSA_0.9.5' to symbol 'alsa_lisp' failed: symbol not defined
ld.lld: error: version script assignment of 'ALSA_1.2.10' to symbol 'snd_seq_seq_client_info_get_ump_group_enabled' failed: symbol not defined
ld.lld: error: version script assignment of 'ALSA_1.2.10' to symbol 'snd_seq_seq_client_get_ump_conversion' failed: symbol not defined
ld.lld: error: version script assignment of 'ALSA_1.2.10' to symbol 'snd_seq_seq_client_info_set_ump_group_enabled' failed: symbol not defined
ld.lld: error: version script assignment of 'ALSA_1.2.10' to symbol 'snd_seq_seq_client_set_ump_conversion' failed: symbol not defined

Should I take such errors upstream in the future?
Comment 1 Mia Neufeld 2023-09-22 08:20:55 UTC
Created attachment 871096 [details]
emerge --info
Comment 2 Mia Neufeld 2023-09-22 09:12:59 UTC Comment hidden (obsolete)
Comment 3 Mia Neufeld 2023-09-22 09:13:10 UTC Comment hidden (obsolete)
Comment 4 Mia Neufeld 2023-09-22 09:14:11 UTC Comment hidden (obsolete)
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-09-26 00:31:22 UTC
*** Bug 914643 has been marked as a duplicate of this bug. ***
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-09-26 00:31:47 UTC
(In reply to Mia Neufeld from comment #0)
> 
> Should I take such errors upstream in the future?

yes please - but reports in gentoo are ok too as we want to track it
Comment 7 Alfred Wingate 2023-12-07 19:57:33 UTC
*** Bug 919417 has been marked as a duplicate of this bug. ***
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-12-13 01:18:25 UTC
*** Bug 919468 has been marked as a duplicate of this bug. ***
Comment 9 Larry the Git Cow gentoo-dev 2023-12-13 01:54:05 UTC
The bug has been closed via the following commit(s):

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

commit cc52c5e316ca5a61f4a85e34e513480e41801360
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-12-13 01:18:21 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-12-13 01:18:21 +0000

    media-libs/alsa-lib: backport lld 17 fix
    
    Closes: https://bugs.gentoo.org/914511
    Signed-off-by: Sam James <sam@gentoo.org>

 media-libs/alsa-lib/alsa-lib-1.2.10-r3.ebuild      | 103 +++++++++++++++++++++
 .../alsa-lib/files/alsa-lib-1.2.10-lld-17.patch    |  35 +++++++
 2 files changed, 138 insertions(+)
Comment 10 Alfred Wingate 2023-12-15 23:37:17 UTC
*** Bug 914643 has been marked as a duplicate of this bug. ***
Comment 11 Alfred Wingate 2023-12-15 23:39:50 UTC
ld.lld: error: version script assignment of 'ALSA_0.9.5' to symbol 'alsa_lisp' failed: symbol not defined

Only partially fixed, still occurs with USE="-alisp"

And with USE="alisp"

ld.lld: error: version script assignment of 'ALSA_0.9.0rc4' to symbol 'snd_pcm_hw_params_get_access' failed: symbol not defined
ld.lld: error: version script assignment of 'ALSA_0.9.0rc4' to symbol 'snd_pcm_hw_params_set_access_first' failed: symbol not defined
ld.lld: error: version script assignment of 'ALSA_0.9.0rc4' to symbol 'snd_pcm_hw_params_set_access_last' failed: symbol not defined
ld.lld: error: version script assignment of 'ALSA_0.9.0rc4' to symbol 'snd_pcm_hw_params_get_format' failed: symbol not defined
ld.lld: error: version script assignment of 'ALSA_0.9.0rc4' to symbol 'snd_pcm_hw_params_set_format_first' failed: symbol not defined
ld.lld: error: version script assignment of 'ALSA_0.9.0rc4' to symbol 'snd_pcm_hw_params_set_format_last' failed: symbol not defined
ld.lld: error: version script assignment of 'ALSA_0.9.0rc4' to symbol 'snd_pcm_hw_params_get_subformat' failed: symbol not defined
ld.lld: error: version script assignment of 'ALSA_0.9.0rc4' to symbol 'snd_pcm_hw_params_set_subformat_first' failed: symbol not defined
ld.lld: error: version script assignment of 'ALSA_0.9.0rc4' to symbol 'snd_pcm_hw_params_set_subformat_last' failed: symbol not defined
ld.lld: error: version script assignment of 'ALSA_0.9.0rc4' to symbol 'snd_pcm_hw_params_get_channels' failed: symbol not defined
ld.lld: error: version script assignment of 'ALSA_0.9.0rc4' to symbol 'snd_pcm_hw_params_get_channels_min' failed: symbol not defined
ld.lld: error: version script assignment of 'ALSA_0.9.0rc4' to symbol 'snd_pcm_hw_params_get_channels_max' failed: symbol not defined
ld.lld: error: version script assignment of 'ALSA_0.9.0rc4' to symbol 'snd_pcm_hw_params_set_channels_near' failed: symbol not defined
ld.lld: error: version script assignment of 'ALSA_0.9.0rc4' to symbol 'snd_pcm_hw_params_set_channels_first' failed: symbol not defined
ld.lld: error: version script assignment of 'ALSA_0.9.0rc4' to symbol 'snd_pcm_hw_params_set_channels_last' failed: symbol not defined
ld.lld: error: version script assignment of 'ALSA_0.9.0rc4' to symbol 'snd_pcm_hw_params_get_rate' failed: symbol not defined
ld.lld: error: version script assignment of 'ALSA_0.9.0rc4' to symbol 'snd_pcm_hw_params_get_rate_min' failed: symbol not defined
ld.lld: error: version script assignment of 'ALSA_0.9.0rc4' to symbol 'snd_pcm_hw_params_get_rate_max' failed: symbol not defined
ld.lld: error: version script assignment of 'ALSA_0.9.0rc4' to symbol 'snd_pcm_hw_params_set_rate_near' failed: symbol not defined
ld.lld: error: version script assignment of 'ALSA_0.9.0rc4' to symbol 'snd_pcm_hw_params_set_rate_first' failed: symbol not defined
Comment 12 nvinson234 2023-12-29 03:22:01 UTC
Upstream bug: https://github.com/alsa-project/alsa-lib/issues/305
Comment 13 nvinson234 2023-12-31 16:57:06 UTC
A simple fix for this is to pass '--without-versioned' to configure as that disables all symbol versioning.
Comment 14 Agostino Sarubbo gentoo-dev 2024-01-30 09:19:03 UTC
python-3.12_tinderbox has reproduced this issue with version 1.2.10-r3 - Updating summary.
Comment 15 ernsteiswuerfel archtester 2024-02-20 17:57:38 UTC
1.2.11 builds fine on musl/clang with clang-17 + lld-17.
Comment 16 wolfgang 2024-04-23 18:39:25 UTC
I can confirm this error still exists with =media-libs/also-lib-1.2.10-r3
Comment 17 Larry the Git Cow gentoo-dev 2024-06-12 04:26:25 UTC
The bug has been closed via the following commit(s):

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

commit 4df7f4ac02f210c93c4f2d94fcd30b34f33ddc2d
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-06-12 03:42:05 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-06-12 03:48:03 +0000

    media-libs/alsa-lib: add 1.2.12
    
    Closes: https://bugs.gentoo.org/914511
    Signed-off-by: Sam James <sam@gentoo.org>

 media-libs/alsa-lib/Manifest               |  1 +
 media-libs/alsa-lib/alsa-lib-1.2.12.ebuild | 98 ++++++++++++++++++++++++++++++
 2 files changed, 99 insertions(+)