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

Bug 740396

Summary: media-sound/mixxx-2.2.4-r1: when linking with ld.lld - error: /usr/lib64/libSoundTouch.so: undefined reference to __kmpc_for_static_fini
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Professional Audio Applications Maintainers <proaudio>
Status: RESOLVED DUPLICATE    
Severity: normal CC: fordfrog, kripton
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=740310
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log.xz

Description Agostino Sarubbo gentoo-dev 2020-09-04 15:08:49 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: media-sound/mixxx-2.2.4 fails to compile.
Discovered on: amd64 (internal ref: tinderbox)

NOTE:
This machine uses a clang/LLVM toolchain.
If you think that this issue is strictly related to clang/LLVM please block bug 408963. If you think that this issue is strictly related to the LLD linker, please block bug 731004.
This machine uses also GLIBC-2.32. If you think that this issue is strictly related to GLIBC please block bug 736174.
Comment 1 Agostino Sarubbo gentoo-dev 2020-09-04 15:08:53 UTC
Created attachment 658404 [details]
build.log.xz

build log and emerge --info (compressed because it exceeds attachment limit, use 'xzless' to read it)
Comment 2 Miroslav Ć ulc gentoo-dev 2020-09-05 11:05:14 UTC
this is the same issue as with audacity, the executable cannot be linked because of undefined reference related to /usr/lib64/libSoundTouch.so:

ld.lld: [0;31merror: [0m/usr/lib64/libSoundTouch.so: undefined reference to __kmpc_for_static_fini
ld.lld: [0;31merror: [0m/usr/lib64/libSoundTouch.so: undefined reference to __kmpc_for_static_init_4
ld.lld: [0;31merror: [0m/usr/lib64/libSoundTouch.so: undefined reference to __kmpc_for_static_init_4u
ld.lld: [0;31merror: [0m/usr/lib64/libSoundTouch.so: undefined reference to __kmpc_fork_call
ld.lld: [0;31merror: [0m/usr/lib64/libSoundTouch.so: undefined reference to __kmpc_critical
ld.lld: [0;31merror: [0m/usr/lib64/libSoundTouch.so: undefined reference to __kmpc_end_critical
Comment 3 Andreas Sturmlechner gentoo-dev 2020-09-07 09:19:27 UTC
Looking forward to meaningful summaries.
Comment 4 Agostino Sarubbo gentoo-dev 2022-01-14 08:53:59 UTC
tinderbox has reproduced this issue with version 2.2.4-r1 - Updating summary.
Comment 5 Alec Ari 2022-12-18 05:07:36 UTC
Try compiling media-libs/libsoundtouch with CXXFLAGS="-O2 -fopenmp=libomp"

i.e.

/etc/portage/env/openmp.conf:

CXXFLAGS="-O2 -march=x86-64-v2 -fopenmp=libomp"

grep "libsoundtouch" /etc/portage/package.env:

media-libs/libsoundtouch openmp.conf

This solved the undefined references for me when compiling audacity.

Cheers!
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-03-24 07:45:03 UTC

*** This bug has been marked as a duplicate of bug 740310 ***