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

Bug 713156

Summary: dev-db/mariadb-10.4.12 : /.../ld: /.../libbfd.so: undefined reference to libintl_dgettext
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo musl team <musl>
Status: CONFIRMED ---    
Severity: normal CC: mysql-bugs, stijn+gentoo
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
dev-db:mariadb-10.4.12:20200318-005257.log
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
temp.tbz2

Description Toralf Förster gentoo-dev 2020-03-18 08:37:42 UTC
: && /usr/bin/x86_64-gentoo-linux-musl-g++  -O2 -pipe -march=native -fno-common -falign-functions=32:25:16 -felide-constructors -fno-strict-aliasing -pie -fPIC -Wl,-z,relro,-z,now -fstack-protector --param=ssp-buffer-size=4 -DNDEBUG -D_FORTIFY_SOURCE=2 -DDBUG_OFF  -Wl,-O1 -Wl,--as-needed   -Wl,--export-dynamic client/CMakeFiles/mysql.dir/completion_hash.cc.o client/CMakeFiles/mysql.dir/mysql.cc.o client/CMakeFiles/mysql.dir/readline.cc.o client/CMakeFiles/mysql.dir/__/sql/sql_string.cc.o  -o client/mysql  libmariadb/libmariadb/libmariadbclient.a  mysys/libmysys.a  -lreadline  -ltinfo  -lssl  -lcrypto  -lssl  -lcrypto  dbug/libdbug.a  mysys/libmysys.a  dbug/libdbug.a  -lz  strings/libstrings.a  -lbfd && :
/usr/lib/gcc/x86_64-gentoo-linux-musl/9.3.0/../../../../x86_64-gentoo-linux-musl/bin/ld: /usr/lib/gcc/x86_64-gentoo-linux-musl/9.3.0/../../../libbfd.so: undefined reference to libintl_dgettext
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
 * ERROR: dev-db/mariadb-10.4.12::gentoo failed (compile phase):

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0_musl-20200316-165821

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-gentoo-linux-musl-9.3.0 *
clang version 10.0.0 
Target: x86_64-gentoo-linux-musl
Thread model: posix
InstalledDir: /usr/lib/llvm/10/bin
/usr/lib/llvm/10
10.0.0
Available Python interpreters, in order of preference:
  [1]   python3.8
  [2]   python3.7
  [3]   python3.6
  [4]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Tue, 17 Mar 2020 23:38:29 +0000
emerge -qpvO dev-db/mariadb
[ebuild  N    ] dev-db/mariadb-10.4.12  USE="backup pam perl server -bindist -cracklib -debug -extraengine -galera -innodb-lz4 -innodb-lzo -innodb-snappy -jdbc -jemalloc -kerberos -latin1 -libressl -mroonga -numa -odbc -oqgraph -profiling -rocksdb (-selinux) -sphinx -sst-mariabackup -sst-rsync -static (-systemd) -systemtap -tcmalloc -test -tokudb -xml -yassl"
Comment 1 Toralf Förster gentoo-dev 2020-03-18 08:37:44 UTC
Created attachment 621378 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-03-18 08:37:47 UTC
Created attachment 621380 [details]
dev-db:mariadb-10.4.12:20200318-005257.log
Comment 3 Toralf Förster gentoo-dev 2020-03-18 08:37:50 UTC
Created attachment 621382 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2020-03-18 08:37:53 UTC
Created attachment 621384 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2020-03-18 08:37:56 UTC
Created attachment 621386 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-03-18 08:37:59 UTC
Created attachment 621388 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2020-03-18 08:38:03 UTC
Created attachment 621390 [details]
temp.tbz2
Comment 8 Stijn Tintel 2020-06-06 04:35:17 UTC
I'm also seeing this on dev-db/mariadb-10.2.29 which I was able to compile previously (2020-04-02T23:30:03 >>> dev-db/mariadb-10.2.29: 10 minutes, 39 seconds).
Comment 9 Stijn Tintel 2020-06-06 06:06:06 UTC
The problem seems to be in sys-libs/binutils libs:

icecap ~ # ldd /usr/lib/libbfd.so
        ldd (0x7f3d3db43000)
        libz.so.1 => /lib/libz.so.1 (0x7f3d3d9f6000)
        libc.so => ldd (0x7f3d3db43000)
Error relocating /usr/lib/libbfd.so: libintl_dgettext: symbol not found

Building sys-libs/binutils with USE=-nls allows me to build mariadb afterwards.
Comment 10 Stijn Tintel 2020-06-06 06:10:35 UTC
(In reply to Stijn Tintel from comment #9)
> The problem seems to be in sys-libs/binutils libs:
> 
> icecap ~ # ldd /usr/lib/libbfd.so
>         ldd (0x7f3d3db43000)
>         libz.so.1 => /lib/libz.so.1 (0x7f3d3d9f6000)
>         libc.so => ldd (0x7f3d3db43000)
> Error relocating /usr/lib/libbfd.so: libintl_dgettext: symbol not found
> 
> Building sys-libs/binutils with USE=-nls allows me to build mariadb
> afterwards.

That should read sys-libs/binutils-libs twice.