Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 914867 - media-sound/sox-14.4.2_p20210509-r2 - [clang] ld.lld: error: version script assignment of global to symbol lsx_lpc10_create_decoder_state failed: symbol not d
Summary: media-sound/sox-14.4.2_p20210509-r2 - [clang] ld.lld: error: version script a...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 912821
  Show dependency tree
 
Reported: 2023-09-27 20:32 UTC by Toralf Förster
Modified: 2024-04-02 20:22 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.59 KB, text/plain)
2023-09-27 20:32 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,164.52 KB, text/plain)
2023-09-27 20:32 UTC, Toralf Förster
Details
environment (environment,75.31 KB, text/plain)
2023-09-27 20:32 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.05 KB, application/x-xz)
2023-09-27 20:32 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,15.46 KB, application/x-xz)
2023-09-27 20:32 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,9.74 KB, application/x-xz)
2023-09-27 20:32 UTC, Toralf Förster
Details
media-sound:sox-14.4.2_p20210509-r2:20230927-180839.log (media-sound:sox-14.4.2_p20210509-r2:20230927-180839.log,123.74 KB, text/plain)
2023-09-27 20:32 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,27.96 KB, application/x-xz)
2023-09-27 20:32 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2023-09-27 20:32:00 UTC
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"
Comment 1 Toralf Förster gentoo-dev 2023-09-27 20:32:01 UTC
Created attachment 871609 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-09-27 20:32:02 UTC
Created attachment 871610 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2023-09-27 20:32:03 UTC
Created attachment 871611 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2023-09-27 20:32:04 UTC
Created attachment 871612 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2023-09-27 20:32:05 UTC
Created attachment 871613 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2023-09-27 20:32:06 UTC
Created attachment 871614 [details]
logs.tar.xz
Comment 7 Toralf Förster gentoo-dev 2023-09-27 20:32:07 UTC
Created attachment 871615 [details]
media-sound:sox-14.4.2_p20210509-r2:20230927-180839.log
Comment 8 Toralf Förster gentoo-dev 2023-09-27 20:32:08 UTC
Created attachment 871616 [details]
temp.tar.xz
Comment 9 Bryce Glover 2023-10-21 02:27:09 UTC
     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
Comment 10 Bryce Glover 2023-10-21 02:29:15 UTC
Almost forgot to add that the obvious work-around of `emerge`-ing with GCC instead of Clang naturally worked.
Comment 11 Neko-san 2024-04-02 20:22:27 UTC
Using the bfd linker works in this instance as a workaround