Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 740310 - media-sound/audacity-2.4.2-r1: ld.lld: error: /usr/lib64/libSoundTouch.so: undefined reference to __kmpc_for_static_fini
Summary: media-sound/audacity-2.4.2-r1: ld.lld: error: /usr/lib64/libSoundTouch.so: un...
Status: CONFIRMED
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:
Depends on:
Blocks:
 
Reported: 2020-09-04 07:45 UTC by Agostino Sarubbo
Modified: 2020-09-07 09:17 UTC (History)
2 users (show)

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


Attachments
build.log.xz (build.log.xz,26.40 KB, application/x-xz)
2020-09-04 07:45 UTC, Agostino Sarubbo
Details
1-CMakeError.log (1-CMakeError.log,14.72 KB, text/plain)
2020-09-04 07:45 UTC, Agostino Sarubbo
Details
1-CMakeOutput.log (1-CMakeOutput.log,64.95 KB, text/plain)
2020-09-04 07:45 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2020-09-04 07:45:36 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: media-sound/audacity-2.4.2-r1 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 07:45:39 UTC
Created attachment 658288 [details]
build.log.xz

build log and emerge --info (compressed because it exceeds attachment limit, use 'xzless' to read it)
Comment 2 Agostino Sarubbo gentoo-dev 2020-09-04 07:45:40 UTC
Created attachment 658290 [details]
1-CMakeError.log

1-CMakeError.log
Comment 3 Agostino Sarubbo gentoo-dev 2020-09-04 07:45:41 UTC
Created attachment 658292 [details]
1-CMakeOutput.log

1-CMakeOutput.log
Comment 4 Miroslav Šulc gentoo-dev 2020-09-04 10:13:41 UTC
this is the error (shortened command):

[31mFAILED: [0mbin/Gentoo/audacity 
: && /usr/lib/llvm/10/bin/x86_64-pc-linux-gnu-clang++ -O2 -pipe -march=native -frecord-gcc-switches -fno-diagnostics-color -std=gnu++14 -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -fuse-ld=lld   -Wl,--export-dynamic  -rdynamic ... -o bin/Gentoo/audacity  -lm  -latomic  -ldl  lib64/audacity/libportaudio-v19.a  lib64/audacity/liblibnyquist.a  lib64/audacity/libportmixer.a  -lz  -lpthread  -L/usr/lib64  -pthread  /usr/lib64/libwx_gtk3u_adv-3.0-gtk3.so  /usr/lib64/libwx_baseu-3.0-gtk3.so  /usr/lib64/libwx_gtk3u_core-3.0-gtk3.so  /usr/lib64/libwx_gtk3u_html-3.0-gtk3.so  /usr/lib64/libwx_baseu_net-3.0-gtk3.so  /usr/lib64/libwx_gtk3u_qa-3.0-gtk3.so  -lz  /usr/lib64/libexpat.so  /usr/lib64/libmp3lame.so  /usr/lib64/libsoxr.so  /usr/lib64/libFLAC++.so  /usr/lib64/libFLAC.so  /usr/lib64/libvorbis.so  /usr/lib64/libvorbisenc.so  /usr/lib64/libvorbisfile.so  /usr/lib64/liblilv-0.so  /usr/lib64/libdl.so  /usr/lib64/libsratom-0.so  /usr/lib64/libsord-0.so  /usr/lib64/libserd-0.so  /usr/lib64/libsuil-0.so  /usr/lib64/libsndfile.so  lib64/audacity/libportaudio-v19.a  /usr/lib64/libSoundTouch.so  /usr/lib64/libgtk-3.so  /usr/lib64/libgdk-3.so  /usr/lib64/libpangocairo-1.0.so  /usr/lib64/libpango-1.0.so  /usr/lib64/libatk-1.0.so  /usr/lib64/libcairo-gobject.so  /usr/lib64/libcairo.so  /usr/lib64/libgdk_pixbuf-2.0.so  /usr/lib64/libgio-2.0.so  /usr/lib64/libgobject-2.0.so  /usr/lib64/libglib-2.0.so && :
ld.lld: error: /usr/lib64/libSoundTouch.so: undefined reference to __kmpc_for_static_fini
ld.lld: error: /usr/lib64/libSoundTouch.so: undefined reference to __kmpc_for_static_init_4
ld.lld: error: /usr/lib64/libSoundTouch.so: undefined reference to __kmpc_for_static_init_4u
ld.lld: error: /usr/lib64/libSoundTouch.so: undefined reference to __kmpc_fork_call
ld.lld: error: /usr/lib64/libSoundTouch.so: undefined reference to __kmpc_critical
ld.lld: error: /usr/lib64/libSoundTouch.so: undefined reference to __kmpc_end_critical
clang-10: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.


but i can't reproduce it with the following command (am i missing something?):

CC=x86_64-pc-linux-gnu-clang CXX=x86_64-pc-linux-gnu-clang++ LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -fuse-ld=lld" emerge -va1 audacity
Comment 5 Andy Figueroa 2020-09-06 17:25:56 UTC
Stable x86, up-to-date, compiling fails at the same spot last three days. Currently running version 2.2.2.

ninja: build stopped: subcommand failed.
* ERROR: media-sound/audacity-2.4.2-r1::gentoo failed (compile phase):
* ninja -v -j4 -l0 failed 

I wrote about it with emerge --info on the forums here:
https://forums.gentoo.org/viewtopic.php?p=8497778

Also put the full build log as a .txt file here:
https://2chronicles36.org/media-sound-audacity-2.4.2-r1-20200906-135527.txt
Comment 6 Miroslav Šulc gentoo-dev 2020-09-07 08:12:11 UTC
(In reply to Andy Figueroa from comment #5)
> Stable x86, up-to-date, compiling fails at the same spot last three days.
> Currently running version 2.2.2.
> 
> ninja: build stopped: subcommand failed.
> * ERROR: media-sound/audacity-2.4.2-r1::gentoo failed (compile phase):
> * ninja -v -j4 -l0 failed 
> 
> I wrote about it with emerge --info on the forums here:
> https://forums.gentoo.org/viewtopic.php?p=8497778
> 
> Also put the full build log as a .txt file here:
> https://2chronicles36.org/media-sound-audacity-2.4.2-r1-20200906-135527.txt

could you please upload the log here? i get something weird from the provided link.
Comment 7 Miroslav Šulc gentoo-dev 2020-09-07 08:17:43 UTC
according to what i found, it seems to need -openmp option for the linking.
Comment 8 Miroslav Šulc gentoo-dev 2020-09-07 08:20:15 UTC
is your media-libs/libsoundtouch built with openmp use flag?
Comment 9 Andreas Sturmlechner gentoo-dev 2020-09-07 09:17:08 UTC
(In reply to Andy Figueroa from comment #5)
> Also put the full build log as a .txt file here:
> https://2chronicles36.org/media-sound-audacity-2.4.2-r1-20200906-135527.txt

This the wrong bug for you. Please *attach* your logs, not link, to the correct one.

Of course this would be greatly improved with a meaningful $summary.