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

Bug 915041

Summary: media-sound/audacity-3.3.3 fails to build with clang-17: ld.lld: error: undefined symbol: typeinfo for wxNavigationEnabled<wxWindow>
Product: Gentoo Linux Reporter: ppw0
Component: Current packagesAssignee: Professional Audio Applications Maintainers <proaudio>
Status: UNCONFIRMED ---    
Severity: normal CC: ppw0, StormByte, waltercool
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271094
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 912821    
Attachments: build log
emerge --info
audacity-3.3.3-drop-template.patch

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.