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: depends on libintl_dgettext
Summary: [musl] sys-libs/binutils-libs-2.34-r2: depends on libintl_dgettext
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
Depends on:
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: ---

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

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

$ objdump -T /usr/lib/binutils/x86_64-gentoo-linux-musl/2.34/ | 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/ 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
    # 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?