Summary: | dev-qt/qtsql-4.8.7-r1 emerge fails | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Loop <mosaic_loop> |
Component: | Current packages | Assignee: | Qt Bug Alias <qt> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | arttuv69, cctsurf, dblaci, diazona, dschridde+gentoobugs, gef.kornflakes, landshark, michalzielanski, orodruinlair, public, rose, vivo75 |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://github.com/gentoo/gentoo/pull/6712 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | 643038 | ||
Bug Blocks: | |||
Attachments: |
build.log of dev-qt/qtsql-4.8.7-r1
emerge info qtsql ebuild patch to pass 32bit version of -mysql_config to configure build.log |
Why is it looking for libbfd? I don't have that on my command line... What is the output of i686-pc-linux-gnu-mysql_config? you mean "i686-pc-linux-gnu-mysql_config --libs" ? it returns: -L/usr/lib32 -lmysqlclient -lpthread -lz -lm -ldl -lssl -lcrypto No I meant just "i686-pc-linux-gnu-mysql_config", that should output everything. But don't worry, --libs is sufficient. Also what's the output of "mysql_config" (which should point to the x86_64 version)? And the output of `scanelf -qn` on /usr/lib64/libmysqlclient.so and /usr/lib32/libmysqlclient.so ? Oh, sorry, i figured that without options it printed out examples rather than real output. Here is the output of commands you asked: $ i686-pc-linux-gnu-mysql_config Usage: /usr/bin/i686-pc-linux-gnu-mysql_config [OPTIONS] Options: --cflags [-I/usr/include/mysql -I/usr/include/mysql/.. ] --include [-I/usr/include/mysql -I/usr/include/mysql/..] --libs [-L/usr/lib32 -lmysqlclient -lpthread -lz -lm -ldl -lssl -lcrypto] --libs_r [-L/usr/lib32 -lmysqlclient -lpthread -lz -lm -ldl -lssl -lcrypto] --plugindir [/usr/lib32/mysql/plugin] --socket [/var/run/mysqld/mysqld.sock] --port [0] --version [10.1.8] --libmysqld-libs [-L/usr/lib32/mysql -lmysqld] --variable=VAR VAR is one of: pkgincludedir [/usr/include/mysql] pkglibdir [/usr/lib32] plugindir [/usr/lib32/mysql/plugin] $ mysql_config Usage: /usr/bin/mysql_config [OPTIONS] Options: --cflags [-I/usr/include/mysql -I/usr/include/mysql/.. ] --include [-I/usr/include/mysql -I/usr/include/mysql/..] --libs [-L/usr/lib64 -lmysqlclient -lpthread -lz -lm -ldl -lbfd -lssl -lcrypto] --libs_r [-L/usr/lib64 -lmysqlclient -lpthread -lz -lm -ldl -lbfd -lssl -lcrypto] --plugindir [/usr/lib64/mysql/plugin] --socket [/var/run/mysqld/mysqld.sock] --port [0] --version [10.1.8] --libmysqld-libs [-L/usr/lib64/mysql -lmysqld] --variable=VAR VAR is one of: pkgincludedir [/usr/include/mysql] pkglibdir [/usr/lib64] plugindir [/usr/lib64/mysql/plugin] $ scanelf -qn /usr/lib64/libmysqlclient.so libz.so.1,libssl.so.1.0.0,libcrypto.so.1.0.0,libdl.so.2,libpthread.so.0,libm.so.6,libc.so.6 /usr/lib64/libmysqlclient.so $ scanelf -qn /usr/lib32/libmysqlclient.so libz.so.1,libssl.so.1.0.0,libcrypto.so.1.0.0,libdl.so.2,libpthread.so.0,libgcc_s.so.1,libc.so.6 /usr/lib32/libmysqlclient.so Get same issue. Get same issue. For dev-qt/qtsql-4.8.7 (without -r1) too. The direct cause of the problem is that the -m32 and -L/usr/lib64 options to the command below appear to prevent the linker from looking in /usr/lib32 where the correct libraries actually are. x86_64-pc-linux-gnu-g++ -m32 -Wl,--hash-style=gnu -Wl,-O1 -Wl,--as-needed -Wl,--sort-common -o mysql_r mysql.o -L/usr/lib32/mysql -L/usr/lib64 -lmysqlclient -lpthread -lz -lm -ldl -lbfd -lssl -lcrypto -lmysqlclient_r I know this because I did an ebuild configure. Then after it failed, I changed into the directory and issued the exact command above, except I removed the -L/usr/lib64. It compiled/linked with no error. It seems the logic is in the multilib eclass files. And I'm having trouble tracking down the logic that causes -L/usr/lib64 to be added. I am using gcc-5.3.0 with the git version of binutils (synced yesterday). It seems this may be a multilib problem. Maybe someone who has experience with that should take a look at it. dev-db/mariadb-10.1.8 must not be used. https://bugs.gentoo.org/show_bug.cgi?id=568506 Same here, this blocks world emerges. One thing that's strange in the output of ebuild ... configure is this: Performing shadow build... Preparing build tree... Determining system architecture... (Linux:4.4.1-gentoo:x86_64) 64-bit AMD 80x86 (x86_64) 'i386' is supported 'x86_64' is supported System architecture: 'i386' The system is x86_64, but when I installed skype recently, tons of 32 bit use flags were automatically added, such as >=dev-qt/qtcore-4.8.7-r1:4 abi_x86_32 ... >=dev-qt/qtsql-4.8.7-r1:4 abi_x86_32 >=virtual/libmysqlclient-18 abi_x86_32 Seems somehow related, but I can't really tell how ... Created attachment 425564 [details]
emerge info qtsql
emerge --info reports
dev-qt/qtsql-4.8.7-r1::gentoo was built with the following:
USE="exceptions mysql qt3support sqlite (-aqua) -debug -freetds -oci8 -odbc -pch -postgres" ABI_X86="64 -32 -x32"
But now it is getting rebuilt with 32 bit support:
[ebuild R ] dev-qt/qtsql-4.8.7-r1:4::gentoo USE="exceptions mysql qt3support sqlite (-aqua) -debug -freetds -oci8 -odbc -pch -postgres" ABI_X86="32* (64) (-x32)" 0 KiB
As for the error with -lbfd: binutils-libs and binutils need to be compiled with the abi_x86_32 (and probably multitiarget) USE flag to build 32 bit binaries. Well, drastic measures, but enabling the abi_x86_32 USE flag globally and recompiling near to everything allows qtsql to build. Seems like nobody is looking at this (or ever will). I can't complete an 'emerge -e' with this. I spent several hours looking into this to point out the specific error with -L/usr/lib64 being added to the link command. And I tracked it down to somewhere in the eclass. That was in January. Who maintains this package? What is it going to take to get this looked at? The problem is in work/qt-everywhere-opensource-src-4.8.7/configure line numbers 5534 and 5535. The logic here runs whatever version of mysql_config is installed on the platform to determine which library dirs to add to the link line. The problem is that the mysql_config on the platform (from dev-db/mysql) is 64 bit and returns -L/usr/lib64. But since qtsql is being build for 32 bit ABI in my case, adding -L/usr/lib64 breaks finding base 32 bit libraries. Here is a snippet of the code: mysql) if [ "$CFG_SQL_mysql" != "no" ]; then [ -z "$CFG_MYSQL_CONFIG" ] && CFG_MYSQL_CONFIG=`"$WHICH" mysql_config` if [ -x "$CFG_MYSQL_CONFIG" ]; then QT_CFLAGS_MYSQL=`$CFG_MYSQL_CONFIG --include 2>/dev/null` QT_LFLAGS_MYSQL_R=`$CFG_MYSQL_CONFIG --libs_r 2>/dev/null` QT_LFLAGS_MYSQL=`$CFG_MYSQL_CONFIG --libs 2>/dev/null` QT_MYSQL_VERSION=`$CFG_MYSQL_CONFIG --version 2>/dev/null` QT_MYSQL_VERSION_MAJOR=`echo $QT_MYSQL_VERSION | cut -d . -f 1` Basically, they run work/qt-everywhere-opensource-src-4.8.7/configure is being called for both the 32bit and 64bit abi builds. When called for the 32bit abi, it should be getting called with command line option mysql_config set to /usr/bin/i686-pc-linux-gnu-mysql_config. This would call the proper version of mysql_config. But it's not. It's being called with the following options: -prefix /usr -bindir /usr/lib32/qt4/bin -libdir /usr/lib32/qt4 -docdir /usr/share/doc/qt-4.8.7 -headerdir /usr/include/qt4 -plugindir /usr/lib32/qt4/plugins -importdir /usr/lib32/qt4/imports -datadir /usr/share/qt4 -translationdir /usr/share/qt4/translations -sysconfdir /etc/qt4 -examplesdir /usr/share/qt4/examples -demosdir /usr/share/qt4/demos -release -no-separate-debug-info -opensource -confirm-license -shared -dont-process -largefile -exceptions -stl -arch i386 -platform linux-g++ -system-zlib -nomake examples -nomake demos -no-rpath -verbose -pch -reduce-relocations -no-sql-tds -plugin-sql-mysql -I/usr/include/mysql -L/usr/lib32/mysql -no-sql-oci -plugin-sql-odbc -I/usr/include/iodbc -no-sql-psql -plugin-sql-sqlite -system-sqlite -no-sql-db2 -no-sql-ibase -no-sql-sqlite2 -no-sql-symsql -qt3support -no-accessibility -no-xmlpatterns -no-multimedia -no-audio-backend -no-phonon -no-phonon-backend -no-svg -no-webkit -no-script -no-scripttools -no-declarative -system-zlib -no-gif -no-libtiff -no-libpng -no-libmng -no-libjpeg -no-openssl -no-cups -no-dbus -no-gtkstyle -no-nas-sound -no-opengl -no-sm -no-xshape -no-xvideo -no-xsync -no-xinerama -no-xcursor -no-xfixes -no-xrandr -no-xrender -no-mitshm -no-fontconfig -no-freetype -no-xinput -no-xkb -no-glib I'm still looking for what builds the options to pass to this. Created attachment 451526 [details, diff]
ebuild patch to pass 32bit version of -mysql_config to configure
This patch is a change to the ebuild so that configure gets called with -mysql_config /usr/bin/i686-pc-linux-gnu-mysql_config when the mysql use flag is specified and it's being built for 32bit ABI.
There is probably a better way to do this. Hopefully the ebuild maintainer will take this patch as is or provide a fix that integrates better with the ebuild multilib framework.
The patch in the previous comment fixes the issue. I'm experiencing the same issue and the patch also works for me. Faced the same problem and this patch fixed it. Thanks. Same problem different source for the bug: # i686-pc-linux-gnu-mysql_config --libs -L/usr/lib64 -lmariadb -lpthread -lz -ldl -lm -lssl -lcrypto notice the -L/usr/lib64 dev-db/mariadb-10.2.7::gentoo was built with the following: USE="backup cracklib openssl pam perl server systemd xml -bindist -debug -embedded -extraengine -galera -innodb-lz4 -innodb-lzo -innodb-snappy -jdbc -jemalloc -kerberos -latin1 -libressl -mroonga -odbc -oqgraph -profiling -rocksdb (-selinux) -sphinx -sst-rsync -sst-xtrabackup -static -static-libs -systemtap -tcmalloc -test -tokudb -yassl" ABI_X86="32 (64) (-x32)" naaa, bad reading skill, the patch fix the bug for me too Still a problem for as many closed source binaries still require qtsql:4. Suggested patch worked fine for me. Shouldn't this be integrated into official ebuild? Should the topic include "MySQL support cannot be enabled due to functionality tests!" ? P.S. media-sound/mumble-1.2.19, media-sound/clementine-1.3.1_p20171113, sci-geosciences/qgis-2.18.14 depend on dev-qt/qtsql:4, which means this bug potentially still affects lots of people (including me). *** Bug 641578 has been marked as a duplicate of this bug. *** Created attachment 512646 [details] build.log Due to the no-symlink-lib migration (bug #506276, GLEP-42 2017-12-26-experimental-amd64-17-1-profiles), I am running into this again: MySQL (thread-safe) auto-detection... () x86_64-pc-linux-gnu-g++ -m32 -c -pipe -O2 -march=bdver3 -std=gnu++98 -Wall -W -I/var/tmp/portage/dev-qt/qtsql-4.8.7-r1/work/qt-everywhere-opensource-src-4.8.7/mkspecs/linux-g++ -I/var/tmp/portage/dev-qt/qtsql-4.8.7-r1/work/qt-everywhere-opensource-src-4.8.7/config.tests/u nix/mysql_r -I/usr/include/mysql -I/usr/include -I/var/tmp/portage/dev-qt/qtsql-4.8.7-r1/work/qt-everywhere-opensource-src-4.8.7/config.tests/unix/mysql_r -I. -o mysql.o /var/tmp/portage/dev-qt/qtsql-4.8.7-r1/work/qt-everywhere-opensource-src-4.8.7/config.tests/unix/mysql/ mysql.cpp x86_64-pc-linux-gnu-g++ -m32 -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -o mysql_r mysql.o -L/usr/lib/mysql -L/usr/lib64 -lmariadb -lpthread -lnsl -lz -ldl -lm -lssl -lcrypto -lmysqlclient_r /usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib64/libmariadb.so when searching for -lmariadb /usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib64/libpthread.so when searching for -lpthread /usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib64/libpthread.a when searching for -lpthread /usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib64/libnsl.so when searching for -lnsl /usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lnsl /usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib64/libz.so when searching for -lz /usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib64/libz.a when searching for -lz /usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib64/libdl.so when searching for -ldl /usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib64/libdl.a when searching for -ldl /usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib64/libssl.so when searching for -lssl /usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib64/libcrypto.so when searching for -lcrypto /usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lmysqlclient_r /usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib64/libm.so when searching for -lm /usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib64/libm.a when searching for -lm collect2: error: ld returned 1 exit status gmake: *** [Makefile:101: mysql_r] Error 1 MySQL (thread-safe) disabled. MySQL (thread-unsafe) auto-detection... () x86_64-pc-linux-gnu-g++ -m32 -c -pipe -O2 -march=bdver3 -std=gnu++98 -Wall -W -I/var/tmp/portage/dev-qt/qtsql-4.8.7-r1/work/qt-everywhere-opensource-src-4.8.7/mkspecs/linux-g++ -I/var/tmp/portage/dev-qt/qtsql-4.8.7-r1/work/qt-everywhere-opensource-src-4.8.7/config.tests/u nix/mysql -I/usr/include/mysql -I/usr/include -I/var/tmp/portage/dev-qt/qtsql-4.8.7-r1/work/qt-everywhere-opensource-src-4.8.7/config.tests/unix/mysql -I. -o mysql.o /var/tmp/portage/dev-qt/qtsql-4.8.7-r1/work/qt-everywhere-opensource-src-4.8.7/config.tests/unix/mysql/mysq l.cpp x86_64-pc-linux-gnu-g++ -m32 -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -o mysql mysql.o -L/usr/lib/mysql -L/usr/lib64 -lmariadb -lpthread -lnsl -lz -ldl -lm -lssl -lcrypto -lmysqlclient /usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib64/libmariadb.so when searching for -lmariadb /usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib64/libpthread.so when searching for -lpthread /usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib64/libpthread.a when searching for -lpthread /usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib64/libnsl.so when searching for -lnsl /usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lnsl /usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib64/libz.so when searching for -lz /usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib64/libz.a when searching for -lz /usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib64/libdl.so when searching for -ldl /usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib64/libdl.a when searching for -ldl /usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib64/libssl.so when searching for -lssl /usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib64/libcrypto.so when searching for -lcrypto /usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib64/libmysqlclient.so when searching for -lmysqlclient /usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib64/libm.so when searching for -lm /usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib64/libm.a when searching for -lm collect2: error: ld returned 1 exit status gmake: *** [Makefile:101: mysql] Error 1 MySQL (thread-unsafe) disabled. MySQL support cannot be enabled due to functionality tests! Portage 2.3.19 (python 2.7.13-final-42, default/linux/amd64/17.1/desktop/plasma/systemd, gcc-7.2.0, glibc-2.26-r3, 4.14.10-gentoo x86_64) ================================================================= System Settings ================================================================= System uname: Linux-4.14.10-gentoo-x86_64-AMD_A10-7800_Radeon_R7,_12_Compute_Cores_4C+8G-with-gentoo-2.4.1 KiB Mem: 15274188 total, 4460740 free KiB Swap: 0 total, 0 free Timestamp of repository gentoo: Sun, 31 Dec 2017 18:15:01 +0000 Head commit of repository gentoo: 4386b5aca77a2e60261792ebf93758c018ce57e6 Head commit of repository flatpak-overlay: 0c261d1847f392b5f194eb1ecfddda1a86ce5884 Timestamp of repository sage-on-gentoo: Fri, 29 Dec 2017 22:09:31 +0000 Head commit of repository sage-on-gentoo: 3122f434b021a6e902fa83f2c313a740a2fea267 Timestamp of repository science: Fri, 29 Dec 2017 22:09:46 +0000 Head commit of repository science: e0b6b424b4d7f26bd83a2e899cf8ca4a76ba966d Timestamp of repository steam-overlay: Sun, 17 Dec 2017 08:29:11 +0000 Head commit of repository steam-overlay: 4ed28cd479de62ffc690c3fd8db63fab2a5ecda2 sh bash 4.4_p12 ld GNU ld (Gentoo 2.29.1 p3) 2.29.1 ccache version 3.3.4 [disabled] app-shells/bash: 4.4_p12::gentoo dev-java/java-config: 2.2.0-r3::gentoo dev-lang/perl: 5.26.1-r1::gentoo dev-lang/python: 2.7.14-r101::sage-on-gentoo, 3.5.4-r1::gentoo, 3.6.3-r1::gentoo dev-util/ccache: 3.3.4-r1::gentoo dev-util/cmake: 3.10.1::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.4.1-r2::gentoo sys-apps/sandbox: 2.12::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69-r4::gentoo sys-devel/automake: 1.11.6-r2::gentoo, 1.15.1-r1::gentoo sys-devel/binutils: 2.29.1-r1::gentoo sys-devel/gcc: 7.2.0::gentoo sys-devel/gcc-config: 1.9.1::gentoo sys-devel/libtool: 2.4.6-r4::gentoo sys-devel/make: 4.2.1-r1::gentoo sys-kernel/linux-headers: 4.14::gentoo (virtual/os-headers) sys-libs/glibc: 2.26-r3::gentoo Repositories: gentoo location: /var/cache/portage/gentoo sync-type: rsync sync-uri: rsync://rsync.de.gentoo.org/gentoo-portage priority: -1000 sync-rsync-extra-opts: flatpak-overlay location: /var/db/repos/flatpak-overlay sync-type: git sync-uri: git://github.com/fosero/flatpak-overlay.git masters: gentoo sage-on-gentoo location: /var/db/repos/sage-on-gentoo sync-type: git sync-uri: https://github.com/gentoo-mirror/sage-on-gentoo.git masters: gentoo science science location: /var/db/repos/science sync-type: git sync-uri: https://github.com/gentoo-mirror/science.git masters: gentoo steam-overlay location: /var/db/repos/steam-overlay sync-type: git sync-uri: https://github.com/gentoo-mirror/steam-overlay.git masters: gentoo local location: /var/cache/portage/local masters: gentoo priority: 100 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-pipe -O2 -march=bdver3" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /etc/grs/systems.conf /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.2/ext-active/ /etc/php/cgi-php7.2/ext-active/ /etc/php/cli-php7.2/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-pipe -O2 -march=bdver3" DISTDIR="/var/cache/portage/distfiles" EMERGE_DEFAULT_OPTS="--keep-going --nospinner --verbose-conflicts" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs buildsyspkg cgroup compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ http://distfiles.gentoo.org" LANG="en_GB.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu" MAKEOPTS="-j4" PKGDIR="/var/cache/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" USE="X a52 aac aacplus aacs acl acpi activities alsa amd64 appindicator appstream archive audit avahi bash-completion bdplus berkdb bluetooth bluray branding bs2b bzip2 cairo caps cdda cddb cdio cdr celt chromaprint cjk clang cli colord colorio conntrack cracklib crypt cups cxx d3d9 dbus declarative dirac djvu dri dts dvb dvd dvdr egl emboss encode epub exif fam fax fbcon ffmpeg fftw firefox fish-completion fits flac fontconfig fortran fribidi gdbm geoclue geolocation gif git glamor gles gmp google googledrive gpg gpm gps graphicsmagick gstreamer gtk gtk3 harfbuzz hdf5 ibus iconv icu idn imlib inotify introspection ipv6 jemalloc jpeg jpeg2k kde kipi kwallet ladspa latex lcms ldap libidn2 libinput libnotify libproxy libsecret libsoxr lv2 lz4 lzma lzo mad markdown mercurial metis mjpeg mng mobi modemmanager modplug modules mp3 mp4 mpeg mplayer mtp multilib mysql ncurses netlink networkmanager nls nptl office ogg openal opencl opencv openexr opengl openh264 openmax openmp opus pam pango pcap pch pcre pcre2 pdf phonon plasma png policykit postscript ppds prison pulseaudio python qml qt3support qt4 qt5 raw readline rtmp samba scanner schroedinger sctp sdl seccomp semantic-desktop session share snappy sparse speech speex spell ssl startup-notification svg systemd tbb tcpd teamd telepathy tga theora threads tiff timezone truetype tslib udev udisks unicode unwind upnp upnp-av upower usb v4l v4l2 vaapi vdpau vorbis vpx vulkan wavpack wayland webp widgets x264 x265 xattr xcb xcomposite xinerama xkb xml xmp xrandr xscreensaver xv xvid xwayland xz zeroconf zeromq zlib" ABI_X86="64" ALSA_CARDS="hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_EXPERIMENTAL_FEATURES="stage" CALLIGRA_FEATURES="words sheets karbon plan" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx f16c fma3 fma4 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 xop" ELIBC="glibc" ENLIGHTENMENT_MODULES="*" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="joystick libinput" KERNEL="linux" L10N="de en en-GB ar fa tr ja ko zh zh-CN zh-TW" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en en_GB ar fa tr" LIRC_DEVICES="devinput" LUA_TARGET="lua5-2" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5 pypy pypy3" RUBY_TARGETS="ruby22" STEAMGAMES="dirt_rally dont_starve portal source_engine te120 trine2 witcher2" USERLAND="GNU" VIDEO_CARDS="amdgpu virgl" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS ================================================================= Package Settings ================================================================= dev-db/mariadb-10.2.11::gentoo was built with the following: USE="backup cracklib innodb-lz4 innodb-lzo innodb-snappy jemalloc pam perl server systemd -bindist -debug -embedded -extraengine -galera -jdbc -kerberos -latin1 -libressl -mroonga -numa -odbc -oqgraph -profiling -rocksdb (-selinux) -sphinx -sst-mariabackup -sst-rsync -sst-xtrabackup -static -static-libs -systemtap -tcmalloc -test -tokudb -xml -yassl" ABI_X86="32 (64) (-x32)" CFLAGS="-pipe -O2 -march=bdver3 -fno-strict-aliasing" CXXFLAGS="-pipe -O2 -march=bdver3 -felide-constructors -fno-strict-aliasing" dev-qt/qtsql-4.8.7-r1::gentoo was built with the following: USE="exceptions mysql pch qt3support sqlite (-aqua) -debug -freetds -oci8 -odbc -postgres" ABI_X86="32 (64) (-x32)" CXXFLAGS="-pipe -O2 -march=bdver3 -std=gnu++98" Please note how dev-qt/qtsql-4.8.7-r1 uses `-L/usr/lib/mysql -L/usr/lib64 -lmariadb` when building the x86-32 version. Also notice how it tries to link against `-lnsl` and fails to find it, because the ebuild does not depend on net-libs/libnsl[${MULTILIB_USEDEP}]. See-Also: https://bugs.gentoo.org/643038 The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0e97e70e79fed8cf61bfb8f5470c72e08cd6fd6a commit 0e97e70e79fed8cf61bfb8f5470c72e08cd6fd6a Author: Dennis Schridde <devurandom@gmx.net> AuthorDate: 2018-01-01 19:29:24 +0000 Commit: Davide Pesavento <pesa@gentoo.org> CommitDate: 2018-01-11 06:12:23 +0000 dev-qt/qtsql: use correct mysql_config for multilib ABIs Closes: https://bugs.gentoo.org/564554 dev-qt/qtsql/qtsql-4.8.7-r1.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Additionally, it has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=934145c70fbe9131cde39bd51da9cb52d44a37ec commit 934145c70fbe9131cde39bd51da9cb52d44a37ec Author: Dennis Schridde <devurandom@gmx.net> AuthorDate: 2018-01-01 21:18:55 +0000 Commit: Davide Pesavento <pesa@gentoo.org> CommitDate: 2018-01-11 06:14:22 +0000 dev-qt/qtsql: pass -no-nis to configure qtsql does not use NIS, only qtgui does. Bug: https://bugs.gentoo.org/564554 Closes: https://github.com/gentoo/gentoo/pull/6712 dev-qt/qtsql/qtsql-4.8.7-r1.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)} |
Created attachment 415792 [details] build.log of dev-qt/qtsql-4.8.7-r1 64 bit with abi_x86_32 mysql. Build log reports: "skipping incompatible /usr/lib64/libmysqlclient.so" and other libs and "cannot find -lbfd". reverting to dev-qt/qtsql-4.8.7 works.