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

Bug 739612

Summary: [musl] sys-libs/binutils-libs-2.34-r2: libbfd.so depends on libintl_dgettext
Product: Gentoo Linux Reporter: Andrew Savchenko <bircoph>
Component: Current packagesAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: CONFIRMED ---    
Severity: normal CC: herrtimson, hydrapolic, musl
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info

Description Andrew Savchenko gentoo-dev 2020-08-30 09:05:03 UTC
Hi!

$ objdump -T /usr/lib/binutils/x86_64-gentoo-linux-musl/2.34/libbfd-2.34.0.gentoo-sys-devel-binutils-st.so | grep libintl
0000000000000000      D  *UND*  0000000000000000              libintl_dgettext

And there is no libintl_dgettext on musl, so this renders libbfd unusable and leads to build failures like:

/usr/lib/gcc/x86_64-gentoo-linux-musl/10.2.0/../../../../x86_64-gentoo-linux-musl/bin/ld: /usr/lib/gcc/x86_64-gentoo-linux-musl/10.2.0/../../../../lib/libbfd.so: undefined reference to `libintl_dgettext'

(I'm trying to build dev-util/oprofile on musl and can't due to this problem.)
Comment 1 Andrew Savchenko gentoo-dev 2020-08-30 09:05:49 UTC
Created attachment 657464 [details]
emerge --info
Comment 2 Sergei Trofimovich gentoo-dev 2020-08-30 12:26:43 UTC
Confirmed.
    # LDFLAGS=-Wl,--no-undefined emerge -v1 sys-libs/binutils-libs
yields build failure for me as well.
Comment 3 Sergei Trofimovich gentoo-dev 2020-08-30 13:40:52 UTC
As a workaround you can use USE=-nls