: && /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"
Created attachment 621378 [details] emerge-info.txt
Created attachment 621380 [details] dev-db:mariadb-10.4.12:20200318-005257.log
Created attachment 621382 [details] emerge-history.txt
Created attachment 621384 [details] environment
Created attachment 621386 [details] etc.portage.tbz2
Created attachment 621388 [details] logs.tbz2
Created attachment 621390 [details] temp.tbz2
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).
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.
(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.
thanks, if we can't fix binutils-libs, I think the USE-flag should be masked for the time being for the package in the musl profiles