Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 739612 - [musl] sys-libs/binutils-libs-2.34-r2: libbfd.so depends on libintl_dgettext
Summary: [musl] sys-libs/binutils-libs-2.34-r2: libbfd.so depends on libintl_dgettext
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-30 09:05 UTC by Andrew Savchenko
Modified: 2021-05-25 02:30 UTC (History)
3 users (show)

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


Attachments
emerge --info (emerge.info,8.96 KB, text/plain)
2020-08-30 09:05 UTC, Andrew Savchenko
Details

Note You need to log in before you can comment on or make changes to this bug.
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 (RETIRED) 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 (RETIRED) gentoo-dev 2020-08-30 13:40:52 UTC
As a workaround you can use USE=-nls
Comment 4 Michael 'veremitz' Everitt 2021-05-25 02:30:36 UTC
(In reply to Sergei Trofimovich from comment #3)
> As a workaround you can use USE=-nls

should this be a package.use.mask for musl profiles?