Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 826930 - media-libs/alsa-lib: consumers fail to build with "//usr/lib/libasound.so: error adding symbols: file in wrong format" (e.g. mpg123, portaudio, alsa-plugins, sox, libsdl2)
Summary: media-libs/alsa-lib: consumers fail to build with "//usr/lib/libasound.so: er...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal major (vote)
Assignee: Gentoo ALSA team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-23 15:38 UTC by Code_Bleu
Modified: 2021-11-24 02:06 UTC (History)
2 users (show)

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


Attachments
mpg123 build.log (build.log,151.63 KB, text/plain)
2021-11-23 15:38 UTC, Code_Bleu
Details
build.log of version 1.29.2 mpg123 (build.log.1.29.2,144.94 KB, text/plain)
2021-11-23 15:42 UTC, Code_Bleu
Details
emerge info of mpt123 (emerge_info_mpg123,5.74 KB, text/plain)
2021-11-23 15:42 UTC, Code_Bleu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Code_Bleu 2021-11-23 15:38:16 UTC
Created attachment 755594 [details]
mpg123 build.log

Compile fails with:
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: //usr/lib/libasound.so: error adding symbols: file in wrong format

see attached build.log of mpg123
Comment 1 Code_Bleu 2021-11-23 15:42:30 UTC
Created attachment 755598 [details]
build.log of version 1.29.2 mpg123
Comment 2 Code_Bleu 2021-11-23 15:42:51 UTC
Created attachment 755602 [details]
emerge info of mpt123
Comment 3 Code_Bleu 2021-11-23 15:43:29 UTC
Packages were installed with and without distcc enabled and get same result
Comment 4 Ionen Wolkens gentoo-dev 2021-11-23 19:29:09 UTC
x86_64-pc-linux-gnu-gcc <snip> -Wl,-rpath -Wl,//usr/lib -Wl,--as-needed -lm //usr/lib/libasound.so <snip>

Kind of remind me of bug #795315 comment #4

Never figured out why libtool(?) replaced -laa by a direct //usr/lib/libaa.so (with the same double //), which doesn't happen for me, so was never able to reproduce.

i.e. my own mpg123 link line has:
x86_64-pc-linux-gnu-gcc <snip>  -Wl,--as-needed -lm -lasound <snip>

no rpath too, and I do have alsa-lib[abi_x86_32]
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-11-24 02:05:41 UTC
(Seems sufficiently similar that I'll See Also it given debugging tips and such may end up being relevant.)