Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 564554 - dev-qt/qtsql-4.8.7-r1 emerge fails
Summary: dev-qt/qtsql-4.8.7-r1 emerge fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
: 641578 (view as bug list)
Depends on: 643038
Blocks:
  Show dependency tree
 
Reported: 2015-10-31 11:26 UTC by Loop
Modified: 2018-01-11 06:15 UTC (History)
12 users (show)

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


Attachments
build.log of dev-qt/qtsql-4.8.7-r1 (build.log,341.72 KB, text/plain)
2015-10-31 11:26 UTC, Loop
Details
emerge info qtsql (qtsql-4.8.7-r1.emerge.info.txt,6.14 KB, text/plain)
2016-02-15 13:52 UTC, Markus Wernig
Details
ebuild patch to pass 32bit version of -mysql_config to configure (qtsql.patch,620 bytes, patch)
2016-10-27 03:21 UTC, Joe Harvell
Details | Diff
build.log (build.log,341.34 KB, text/x-log)
2018-01-01 18:50 UTC, Dennis Schridde
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Loop 2015-10-31 11:26:37 UTC
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.
Comment 1 Davide Pesavento (RETIRED) gentoo-dev 2015-10-31 16:05:54 UTC
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?
Comment 2 Loop 2015-10-31 16:23:46 UTC
you mean "i686-pc-linux-gnu-mysql_config --libs" ?

it returns:

-L/usr/lib32  -lmysqlclient -lpthread -lz -lm -ldl -lssl -lcrypto
Comment 3 Davide Pesavento (RETIRED) gentoo-dev 2015-10-31 17:26:00 UTC
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 ?
Comment 4 Loop 2015-11-01 11:47:29 UTC
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
Comment 5 Alexey Shvetsov archtester gentoo-dev 2016-01-02 17:09:09 UTC
Get same issue.
Comment 6 Michał Zielański 2016-01-09 20:04:44 UTC
Get same issue. For dev-qt/qtsql-4.8.7 (without -r1) too.
Comment 7 Joe Harvell 2016-01-31 04:01:00 UTC
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.
Comment 8 quilosaq 2016-02-01 20:11:05 UTC
dev-db/mariadb-10.1.8 must not be used.

https://bugs.gentoo.org/show_bug.cgi?id=568506
Comment 9 Markus Wernig 2016-02-15 13:20:54 UTC
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 ...
Comment 10 Markus Wernig 2016-02-15 13:52:48 UTC
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
Comment 11 Markus Wernig 2016-02-26 18:31:40 UTC
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.
Comment 12 Markus Wernig 2016-02-26 19:52:26 UTC
Well, drastic measures, but enabling the abi_x86_32 USE flag globally and recompiling near to everything allows qtsql to build.
Comment 13 Joe Harvell 2016-10-26 23:58:54 UTC
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?
Comment 14 Joe Harvell 2016-10-27 01:02:24 UTC
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
Comment 15 Joe Harvell 2016-10-27 02:35:23 UTC
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.
Comment 16 Joe Harvell 2016-10-27 03:21:42 UTC
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.
Comment 17 Joe Harvell 2016-10-27 03:22:42 UTC
The patch in the previous comment fixes the issue.
Comment 18 David Zaslavsky 2016-11-04 06:52:45 UTC
I'm experiencing the same issue and the patch also works for me.
Comment 19 Gurjyot 2017-07-18 05:16:29 UTC
Faced the same problem and this patch fixed it. Thanks.
Comment 20 Francesco Riosa 2017-07-27 19:57:08 UTC
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)"
Comment 21 Francesco Riosa 2017-07-27 20:07:38 UTC
naaa, bad reading skill, the patch fix the bug for me too
Comment 22 Mark J. Olah 2017-12-16 12:26:58 UTC
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?
Comment 23 Dennis Schridde 2017-12-17 10:55:31 UTC
Should the topic include "MySQL support cannot be enabled due to functionality tests!" ?
Comment 24 Dennis Schridde 2017-12-17 10:58:13 UTC
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).
Comment 25 Michael Palimaka (kensington) gentoo-dev 2017-12-22 12:21:20 UTC
*** Bug 641578 has been marked as a duplicate of this bug. ***
Comment 26 Dennis Schridde 2018-01-01 18:50:52 UTC
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"
Comment 27 Dennis Schridde 2018-01-01 18:55:48 UTC
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}].
Comment 28 Dennis Schridde 2018-01-01 19:37:30 UTC
Fixed by: https://github.com/gentoo/gentoo/pull/6712
Comment 29 Dennis Schridde 2018-01-01 20:44:28 UTC
See-Also: https://bugs.gentoo.org/643038
Comment 30 Larry the Git Cow gentoo-dev 2018-01-11 06:15:00 UTC
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(-)}