Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 934376 - media-sound/audacity-3.4.2-r1 fails to compile on musl/llvm due to undefined symbols and references
Summary: media-sound/audacity-3.4.2-r1 fails to compile on musl/llvm due to undefined ...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Professional Audio Applications Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-15 20:23 UTC by ray
Modified: 2025-01-07 14:54 UTC (History)
4 users (show)

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


Attachments
emerge --info (emerge-info.txt,15.52 KB, text/plain)
2024-06-15 20:23 UTC, ray
Details
audacity-3.4.2-r1 build.log (audacity-3.4.2-r1-build.log.bz2,113.63 KB, application/x-bzip2)
2024-06-15 20:25 UTC, ray
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ray 2024-06-15 20:23:54 UTC
Created attachment 895886 [details]
emerge --info

ld.lld: error: undefined symbol: typeinfo for wxNavigationEnabled<wxWindow>
>>> referenced by ListNavigationPanel.cpp
>>>               src/CMakeFiles/Audacity.dir/ListNavigationPanel.cpp.o:(typeinfo for ListNavigationEnabled<wxWindow>)

ld.lld: error: undefined reference due to --no-allow-shlib-undefined: __kmpc_fork_call
>>> referenced by /usr/lib/libSoundTouch.so

ld.lld: error: undefined reference due to --no-allow-shlib-undefined: __kmpc_for_static_init_4u
>>> referenced by /usr/lib/libSoundTouch.so

ld.lld: error: undefined reference due to --no-allow-shlib-undefined: __kmpc_for_static_fini
>>> referenced by /usr/lib/libSoundTouch.so

ld.lld: error: undefined reference due to --no-allow-shlib-undefined: __kmpc_for_static_init_4
>>> referenced by /usr/lib/libSoundTouch.so

ld.lld: error: undefined reference due to --no-allow-shlib-undefined: __kmpc_end_critical
>>> referenced by /usr/lib/libSoundTouch.so

ld.lld: error: undefined reference due to --no-allow-shlib-undefined: __kmpc_critical
>>> referenced by /usr/lib/libSoundTouch.so
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
Comment 1 ray 2024-06-15 20:25:06 UTC
Created attachment 895887 [details]
audacity-3.4.2-r1 build.log
Comment 2 Andrey Volkov 2024-11-21 20:38:34 UTC
Fixed for me by rebuilding /usr/lib/libSoundTouch.so (media-libs/libsoundtouch) with CXXFLAGS+=" -fopenmp=libomp"

My env:
clang-19
ThinLTO
libc++
ld.lld


See also
https://bugs.gentoo.org/740310
Comment 3 aryan 2025-01-07 14:54:53 UTC
I am having the exact same issue for media-sound/audacity-3.7.1. I am a bit confused on how specifying -fopenmp=libomp in CXXFLAGS for libsoundtouch fixes things. Could you elaborate?