Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 915041 - media-sound/audacity-3.3.3 fails to build with clang-17: ld.lld: error: undefined symbol: typeinfo for wxNavigationEnabled<wxWindow>
Summary: media-sound/audacity-3.3.3 fails to build with clang-17: ld.lld: error: undef...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Professional Audio Applications Maintainers
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: 912821
  Show dependency tree
 
Reported: 2023-10-01 16:30 UTC by ppw0
Modified: 2024-04-02 03:22 UTC (History)
3 users (show)

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


Attachments
build log (media-sound:audacity-3.3.3:20231001-162117.log.gz,126.98 KB, application/gzip)
2023-10-01 16:31 UTC, ppw0
Details
emerge --info (emerge_info.log,7.36 KB, text/x-log)
2023-10-01 16:31 UTC, ppw0
Details
audacity-3.3.3-drop-template.patch (audacity-3.3.3-drop-template.patch,415 bytes, patch)
2023-10-01 19:26 UTC, ppw0
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description ppw0 2023-10-01 16:30:18 UTC
audacity-3.3.3 will fail to link under clang-17:
---
ld.lld: error: undefined symbol: typeinfo for wxNavigationEnabled<wxWindow>
>>> referenced by ListNavigationPanel.cpp
>>>               src/CMakeFiles/Audacity.dir/ListNavigationPanel.cpp.o:(typeinfo for ListNavigationEnabled<wxWindow>)
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
---
The stopgap solution is to add "-Wl,--undefined-version" to LDFLAGS.

(This is a clang[default-libcxx] environment and the openmp workaround has been applied to libsoundtouch prior)

Attaching logs.
Comment 1 ppw0 2023-10-01 16:31:09 UTC
Created attachment 871946 [details]
build log
Comment 2 ppw0 2023-10-01 16:31:33 UTC
Created attachment 871947 [details]
emerge --info
Comment 3 ppw0 2023-10-01 19:26:54 UTC
Created attachment 871967 [details, diff]
audacity-3.3.3-drop-template.patch

This patch resolves the error (taken from https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271094).
Comment 4 ppw0 2023-10-02 02:26:50 UTC
(In reply to ppw0 from comment #0)
> The stopgap solution is to add "-Wl,--undefined-version" to LDFLAGS.

And to correct myself, this doesn't actually work.
Comment 5 Pablo Cholaky 2024-03-27 05:00:21 UTC
(In reply to ppw0 from comment #3)
> Created attachment 871967 [details, diff] [details, diff]
> audacity-3.3.3-drop-template.patch
> 
> This patch resolves the error (taken from
> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271094).

This works to compile, but:

> /usr/bin/audacity: symbol lookup error: /usr/bin/../lib64/audacity/lib-audio-io.so: undefined symbol: __atomic_is_lock_free
Comment 6 ppw0 2024-04-02 03:22:06 UTC
> This works to compile, but:
> 
> > /usr/bin/audacity: symbol lookup error: /usr/bin/../lib64/audacity/lib-audio-io.so: undefined symbol: __atomic_is_lock_free

I don't think that's related.