The build.log is pretty short: >>> Emerging (1 of 1) dev-python/PyQt4-4.11.3::gentoo * PyQt-x11-gpl-4.11.3.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ] >>> ABI=x86 >>> Unpacking source (for ABI=x86)... >>> Unpacking PyQt-x11-gpl-4.11.3.tar.gz to /var/tmp/portage/dev-python/PyQt4-4.11.3/work >>> Source unpacked in /var/tmp/portage/dev-python/PyQt4-4.11.3/work >>> Preparing source in /var/tmp/portage/dev-python/PyQt4-4.11.3/work/PyQt-x11-gpl-4.11.3 (for ABI=x86) ... * Applying PyQt4-4.11.2-phonon.patch ... [ ok ] >>> Source prepared. >>> Configuring source in /var/tmp/portage/dev-python/PyQt4-4.11.3/work/PyQt-x11-gpl-4.11.3 (for ABI=x86) ... * python2_7: running run_in_build_dir configuration /usr/bin/python2.7 /var/tmp/portage/dev-python/PyQt4-4.11.3/work/PyQt-x11-gpl-4.11.3/configure-ng.py --confirm-license --qmake=/usr/lib32/qt4/bin/qmake --destdir=/usr/lib32/python2.7/site-packages --assume-shared --no-timestamp --qsci-api --enable=QtCore --enable=QtNetwork --enable=QtXml --enable=QtGui --enable=QtDBus --no-designer-plugin Error: Failed to determine the detail of your Qt installation. Try again using the --verbose flag to see more detail about the problem. Querying qmake about your Qt installation... Determining the details of your Qt installation... * ERROR: dev-python/PyQt4-4.11.3::gentoo failed (configure phase): * (no error message) * * Call stack: * ebuild.sh, line 97: Called src_configure * environment, line 3820: Called python_foreach_impl 'run_in_build_dir' 'configuration' * environment, line 3348: Called multibuild_foreach_variant '_python_multibuild_wrapper' 'run_in_build_dir' 'configuration' * environment, line 2492: Called _multibuild_run '_python_multibuild_wrapper' 'run_in_build_dir' 'configuration' * environment, line 2490: Called _python_multibuild_wrapper 'run_in_build_dir' 'configuration' * environment, line 931: Called run_in_build_dir 'configuration' * environment, line 3767: Called configuration * environment, line 3817: Called die * The specific snippet of code: * "${myconf[@]}" || die; * * If you need support, post the output of `emerge --info '=dev-python/PyQt4-4.11.3::gentoo'`, * the complete build log and the output of `emerge -pqv '=dev-python/PyQt4-4.11.3::gentoo'`. * The complete build log is located at '/var/tmp/portage/dev-python/PyQt4-4.11.3/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-python/PyQt4-4.11.3/temp/environment'. * Working directory: '/var/tmp/portage/dev-python/PyQt4-4.11.3/work/PyQt-x11-gpl-4.11.3-python2_7' * S: '/var/tmp/portage/dev-python/PyQt4-4.11.3/work/PyQt-x11-gpl-4.11.3' When running that command with the additional --verbose flag, it shows the used command for testing: /usr/bin/python2.7 /var/tmp/portage/dev-python/PyQt4-4.11.3/work/PyQt-x11-gpl-4.11.3/configure-ng.py --confirm-license --qmake=/usr/lib32/qt4/bin/qmake --destdir=/usr/lib32/python2.7/site-packages --assume-shared --no-timestamp --qsci-api --enable=QtCore --enable=QtNetwork --enable=QtXml --enable=QtGui --enable=QtDBus --no-designer-plugin --verbose Querying qmake about your Qt installation... Determining the details of your Qt installation... /usr/lib32/qt4/bin/qmake -o qtdetail.mk qtdetail.pro make -f qtdetail.mk g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4 -I. -o qtdetail.o qtdetail.cpp g++ -Wl,-O1 -o qtdetail qtdetail.o -L/usr/lib32/qt4 -lQtCore -L/usr/lib32/qt4 -lpthread /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib32/qt4/libQtCore.so when searching for -lQtCore /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib32/qt4/libQtCore.so when searching for -lQtCore /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lQtCore collect2: error: ld returned 1 exit status qtdetail.mk:103: recipe for target 'qtdetail' failed make: *** [qtdetail] Error 1 Error: Failed to determine the detail of your Qt installation. Try again using the --verbose flag to see more detail about the problem. Since i want to build the x86 variant on amd64 with multilib-portage, it already uses the right libdir (/usr/lib32 in this case), but would also need to support CXXFLAGS to get the additional -m32 argument. Since that is missing, it tries to build a 64bit object with 32bit libs, which obviously fails. emerge --info: Portage 2.2.15-multilib (python 2.7.9-final-0, hardened/linux/amd64, gcc-4.8.3, glibc-2.20-r2, 3.4.106-gentoo x86_64) ================================================================= System uname: Linux-3.4.106-gentoo-x86_64-Intel-R-_Core-TM-_i7-4790_CPU_@_3.60GHz-with-gentoo-2.2 KiB Mem: 32925704 total, 5099916 free KiB Swap: 1048572 total, 1030656 free Timestamp of tree: Unknown sh bash 4.3_p33-r2 ld GNU ld (Gentoo 2.25 p1.0) 2.25 app-shells/bash: 4.3_p33-r2 dev-java/java-config: 2.2.0 dev-lang/perl: 5.20.2 dev-lang/python: 2.7.9-r2 dev-util/cmake: 3.2.1 dev-util/pkgconfig: 0.28-r2 sys-apps/baselayout: 2.2 sys-apps/openrc: 0.15 sys-apps/sandbox: 2.6-r1 sys-devel/autoconf: 2.13, 2.69-r1 sys-devel/automake: 1.11.6-r1, 1.14.1, 1.15 sys-devel/binutils: 2.25 sys-devel/gcc: 4.8.3, 4.9.2 sys-devel/gcc-config: 1.8 sys-devel/libtool: 2.4.6-r1 sys-devel/make: 4.1-r1 sys-kernel/linux-headers: 4.0 (virtual/os-headers) sys-libs/glibc: 2.20-r2 Repositories: gentoo multilib enlightenment sunrise local Installed sets: @fonts ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe -ggdb -m32" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CPPFLAGS=" " CXXFLAGS="-march=native -O2 -pipe -ggdb -m32" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--keep-going" FCFLAGS="-O2 -pipe -m32" FEATURES="assume-digests binpkg-logs collision-protect distlocks ebuild-locks fixlafiles force-multilib merge-sync metadata-transfer news parallel-fetch preserve-libs protect-owned sandbox sfperms sign splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox xattr" FFLAGS="-O2 -pipe -m32" GENTOO_MIRRORS="http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo" LANG="de_DE.UTF8" LDFLAGS="-Wl,--as-needed -Wl,--hash-style=gnu -m32" MAKEOPTS="-j -l8" PKGDIR="/usr/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" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/var/lib/layman/multilib-portage /var/lib/layman/enlightenment /var/lib/layman/sunrise /usr/local/portage" SYNC="cvs://tommy@cvs.gentoo.org:/var/cvsroot" USE="3dnow X alsa amd64 berkdb cli cracklib crypt cups custom-cflags custom-cxxflags custom-optimization cxx dbus dri gpm hardened java5 java6 justify mmx mmxext modules ncurses nls nptl nsplugin ogg openmp pam readline scanner session sse sse2 ssl system-sqlite unicode urandom v4l vorbis xattr xtpax zlib" 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_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" MULTILIB_ABI="x86" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" 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" multilib_abi="x86" USE_PYTHON="2.6 2.7" Unset: CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 494758 [details, diff] update qt install test to respect *FLAGS This fixed the problem for me.
PyQt4 is gone.