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 packages | Assignee: | 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 |
Created attachment 871096 [details]
emerge --info
I have created a pull request to address this issue. Currently, the ebuild always calls python_setup, and in turn, python_check_deps, however with USE="-test" the necessary dependencies will not be installed. The link to the PR: https://github.com/gentoo/gentoo/pull/32987 I meant to post these comments on a different bug. I'm sorry for the inconvenience *** Bug 914643 has been marked as a duplicate of this bug. *** (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 *** Bug 919417 has been marked as a duplicate of this bug. *** *** Bug 919468 has been marked as a duplicate of this bug. *** 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(+) *** Bug 914643 has been marked as a duplicate of this bug. *** 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 Upstream bug: https://github.com/alsa-project/alsa-lib/issues/305 A simple fix for this is to pass '--without-versioned' to configure as that disables all symbol versioning. python-3.12_tinderbox has reproduced this issue with version 1.2.10-r3 - Updating summary. 1.2.11 builds fine on musl/clang with clang-17 + lld-17. I can confirm this error still exists with =media-libs/also-lib-1.2.10-r3 |
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?