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

Bug 914511

Summary: 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
Product: Gentoo Linux Reporter: Mia Neufeld <mia>
Component: Current packagesAssignee: Gentoo ALSA team <alsa-bugs>
Status: CONFIRMED ---    
Severity: normal CC: ajak, erhard_f, ezzieyguywuf, llvm, nvinson234, parona, toralf
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/alsa-project/alsa-lib/issues/356
https://github.com/alsa-project/alsa-lib/issues/305
https://github.com/alsa-project/alsa-lib/pull/376
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 930396, 930587    
Bug Blocks: 912821    
Attachments: build log
emerge --info

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