too long lines were shrinked: libtool: compile: clang -DHAVE_CONFIG_H -I. -DLADSPA_PATH=\"/usr/lib64/ladspa\" -DPKGLIBDIR=\"/usr/lib64/sox\" -O2 -pipe -march=native -fno-diagnostics-color -fstack-protector-strong -Wall -Wmissing-prototypes -Wstrict-prototypes -fopenmp -c id3.c -fPIC -DPIC -o .libs/libsox_la-id3.o /bin/sh ../libtool --tag=CC --mode=link clang -O2 -pipe -march=native -fno-diagnostics-color -fstack-protector-strong -Wall -Wmissing-prototypes -Wstrict-prototypes -fopenmp -no-undefined -version-info 3:0:0 -export-symbols ./libsox.sym -Wl,-O1 -Wl,--as-needed -Wl,--as-needed -Wl,--defsym=__ libtool: link: echo "{ global:" > .libs/libsox.ver libtool: link: cat ./libsox.sym | /bin/sed -e "s/\(.*\)/\1;/" >> .libs/libsox.ver libtool: link: echo "local: *; };" >> .libs/libsox.ver libtool: link: clang -shared -fPIC -DPIC .libs/libsox_la-adpcms.o .libs/libsox_la-aiff.o .libs/libsox_la-cvsd.o .libs/libsox_la-g711.o .libs/libsox_la-g721.o .libs/libsox_la-g723_24.o .libs/libsox_la-g723_40.o .libs/libsox_la-g72x.o .libs/libsox_la-vox.o .libs/libsox_la-raw.o .libs/libsox_la-form ld.lld: error: version script assignment of 'global' to symbol 'lsx_lpc10_create_decoder_state' failed: symbol not defined ld.lld: error: version script assignment of 'global' to symbol 'lsx_lpc10_create_encoder_state' failed: symbol not defined ld.lld: error: version script assignment of 'global' to symbol 'lsx_lpc10_decode' failed: symbol not defined ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.1_clang-20230924-160600 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-13 * clang/llvm (if any): clang version 17.0.1 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/lib/llvm/17/bin Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg /usr/lib/llvm/17 17.0.1+libcxx Python 3.11.5 Available Ruby profiles: [1] ruby31 (with Rubygems) * Available Rust versions: [1] rust-1.72.0 * The following VMs are available for generation-2: *) Eclipse Temurin JDK 17.0.8.1_p1 [openjdk-bin-17] 2) Eclipse Temurin JDK 8.382_p05 [openjdk-bin-8] Available Java Virtual Machines: [1] openjdk-bin-8 [2] openjdk-bin-17 system-vm The Glorious Glasgow Haskell Compilation System, version 9.0.2 php cli (if any): [1] php8.1 * [2] php8.2 go version go1.21.1 linux/amd64 HEAD of ::gentoo commit f2306275d19cbe3af31c08d70c126832f0e2d1d7 Author: Repository mirror & CI <repomirrorci@gentoo.org> Date: Wed Sep 27 17:01:43 2023 +0000 2023-09-27 17:01:43 UTC emerge -qpvO media-sound/sox [ebuild N ] media-sound/sox-14.4.2_p20210509-r2 USE="openmp -alsa -amr -ao -encode -flac -id3tag -ladspa -mad -magic -ogg -opus -oss -png -pulseaudio -sndfile -sndio -static-libs -twolame -wavpack"
Created attachment 871609 [details] emerge-info.txt
Created attachment 871610 [details] emerge-history.txt
Created attachment 871611 [details] environment
Created attachment 871612 [details] etc.clang.tar.xz
Created attachment 871613 [details] etc.portage.tar.xz
Created attachment 871614 [details] logs.tar.xz
Created attachment 871615 [details] media-sound:sox-14.4.2_p20210509-r2:20230927-180839.log
Created attachment 871616 [details] temp.tar.xz
I'm a bit later on this, but I can also confirm that this is an issue; my logs are at <https://github.com/RandomDSdevel/Gentoo-in-WSL2-emerge-Logs/tree/main/2023-10-20/21_43_53/media-sound/sox>. This was in a WSL 2 Gentoo instance under: ```PowerShell PowerShell 7.3.8 PS …> wsl --version WSL version: 2.0.0.0 ⁝ # (Snipped…) WSLg version: 1.0.57 MSRDC version: 1.2.4485 Direct3D version: 10.0.25880.1000-230602-1350.main DXCore version: 10.0.22621.2428 PS …> wsl --distribution Gentoo -- uname -srvmpio Linux 5.15.123.1-microsoft-standard-WSL2 #1 SMP Mon Aug 7 19:01:48 UTC 2023 x86_64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz GenuineIntel GNU/Linux ``` on: - Windows 11 Pro 22H2 (64-bit,) build 22621.2428, with - Windows Feature Experience Pack v1000.22674.1000.0
Almost forgot to add that the obvious work-around of `emerge`-ing with GCC instead of Clang naturally worked.
Using the bfd linker works in this instance as a workaround
Another workaround that allows keeping lld and clang is setting LDFLAGS="${LDFLAGS} -Wl,--undefined-version" (from bug 914637)