# cd /var/tmp/portage/dev-qt/qtcore-4.8.6-r2/work/qt-everywhere-opensource-src-4.8.6-abi_x86_32.x86/src/tools/bootstrap/ # ar x libbootstrap.a # file qabstractfileengine.o ELF 32-bit LSB relocatable, Intel 80386, version 1 (SYSV), not stripped (The same for other objects) # emerge --info '=dev-qt/qtcore-4.8.6-r2::gentoo' Portage 2.2.18 (python 2.7.9-final-0, default/linux/amd64/13.0/desktop, gcc-4.8.4, glibc-2.20-r2, 3.18.11-gentoo-goblin-0.3.4 x86_64) ================================================================= System Settings ================================================================= System uname: Linux-3.18.11-gentoo-goblin-0.3.4-x86_64-Intel-R-_Core-TM-_i5-3570K_CPU_@_3.40GHz-with-gentoo-2.2 KiB Mem: 8129068 total, 1627184 free KiB Swap: 8388604 total, 5920400 free Timestamp of repository gentoo: Tue, 12 May 2015 23:45:01 +0000 sh bash 4.2_p53 ld GNU ld (Gentoo 2.24 p1.4) 2.24 distcc 3.1 x86_64-pc-linux-gnu [disabled] app-shells/bash: 4.2_p53::gentoo dev-java/java-config: 2.2.0::gentoo dev-lang/perl: 5.20.2::gentoo dev-lang/python: 2.7.9-r1::gentoo, 3.3.5-r1::gentoo, 3.4.1::gentoo dev-util/cmake: 2.8.12.2-r1::gentoo dev-util/pkgconfig: 0.28-r2::gentoo sys-apps/baselayout: 2.2::gentoo sys-apps/openrc: 0.13.11::gentoo sys-apps/sandbox: 2.6-r1::gentoo sys-devel/autoconf: 2.69::gentoo sys-devel/automake: 1.11.6-r1::gentoo, 1.13.4::gentoo sys-devel/binutils: 2.24-r3::gentoo sys-devel/gcc: 4.6.4::gentoo, 4.8.4::gentoo sys-devel/gcc-config: 1.7.3::gentoo sys-devel/libtool: 2.4.6::gentoo sys-devel/make: 4.1-r1::gentoo sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers) sys-libs/glibc: 2.20-r2::gentoo Repositories: gentoo location: /var/portage sync-type: rsync sync-uri: rsync://rsync.ru.gentoo.org/gentoo-portage priority: -1000 crossdev location: /usr/local/portage-crossdev masters: gentoo priority: 0 local location: /usr/local/portage masters: gentoo priority: 1 axs location: /var/lib/layman/axs sync-type: laymansync sync-uri: git://anongit.gentoo.org/dev/axs.git masters: gentoo axs priority: 50 benf location: /var/lib/layman/benf sync-type: laymansync sync-uri: git://anongit.gentoo.org/user/benf.git masters: gentoo priority: 50 bobwya location: /var/lib/layman/bobwya sync-type: laymansync sync-uri: https://github.com/bobwya/miscellaneous_ebuilds.git masters: gentoo priority: 50 gamerlay location: /var/lib/layman/gamerlay sync-type: laymansync sync-uri: git://anongit.gentoo.org/proj/gamerlay.git masters: gentoo priority: 50 hacking-gentoo location: /var/lib/layman/hacking-gentoo sync-type: laymansync sync-uri: rsync://rsync.mad-hacking.net/hacking-gentoo-overlay/ masters: gentoo hacking-gentoo priority: 50 kde location: /var/lib/layman/kde sync-type: laymansync sync-uri: https://anongit.gentoo.org/git/proj/kde.git masters: gentoo priority: 50 kde-sunset location: /var/lib/layman/kde-sunset sync-type: laymansync sync-uri: https://anongit.gentoo.org/git/proj/kde-sunset.git masters: gentoo priority: 50 qutim location: /var/lib/layman/qutim sync-type: laymansync sync-uri: https://github.com/qutIM/gentoo-portage-overlay masters: gentoo priority: 50 roslin location: /var/lib/layman/roslin sync-type: laymansync sync-uri: https://git.gitorious.org/roslin/roslin.git masters: gentoo priority: 50 science location: /var/lib/layman/science sync-type: laymansync sync-uri: git://github.com/gentoo-science/sci.git masters: gentoo priority: 50 sunrise location: /var/lib/layman/sunrise sync-type: laymansync sync-uri: git://anongit.gentoo.org/proj/sunrise-reviewed.git masters: gentoo priority: 50 trinity location: /var/lib/layman/trinity sync-type: laymansync sync-uri: https://github.com/Fat-Zer/trinity.git masters: gentoo priority: 50 vaca location: /var/lib/layman/vaca sync-type: laymansync sync-uri: git://github.com/hashashin/gentoo-vaca-overlay.git masters: gentoo priority: 50 wavilen location: /var/lib/layman/wavilen sync-type: laymansync sync-uri: https://wavilen.googlecode.com/hg/ masters: gentoo priority: 50 x11 location: /var/lib/layman/x11 sync-type: laymansync sync-uri: git://anongit.gentoo.org/proj/x11 masters: gentoo priority: 50 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA PUEL dlj-1.1 AdobeFlash-10.1 AdobeFlash-11.x Intel-SDP google-chrome Oracle-BCLA-JavaSE Q3AEULA Q3AEULA-20000111 FraunhoferFDK RTCW cadsoft skype-4.0.0.7-copyright TeamViewer" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=corei7-avx -mfpmath=sse -mmmx -msse -msse2 -msse3 -mssse3 -msse4 -msse4.2 -msse4.1 -maes -pipe " CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/trinity/14/env /usr/trinity/14/share/config /usr/trinity/14/shutdown" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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="-O2 -march=corei7-avx -mfpmath=sse -mmmx -msse -msse2 -msse3 -mssse3 -msse4 -msse4.2 -msse4.1 -maes -pipe " DISTDIR="/home/portage/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles/ http://trumpetti.atm.tut.fi/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://ftp.linux.ee/pub/gentoo/distfiles/" LANG="ru_RU.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j5" 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" USE="X a52 aac acl acpi alsa amd64 arts avahi bash-completion berkdb branding bzip2 cairo cdda cddb cdr chm cjk cli consolekit cracklib crypt cups cxx dbus declarative dga directfb djvu dri dts dvd dvdr emboss encode exif faac faad fam fbcon ffmpeg firefox flac fontconfig fortran ftp gdbm gif git glamor gpm gsm gtk hal iconv icu java jpeg jpeg2k kde kipi lcms ldap libav libnotify lto lzma lzo mad mercurial mmap mmx mmxext mng modules mp3 mp4 mpeg multilib mysql ncurses network nls nptl ogg openal openexr opengl openmp pam pango pch pcre pdf png policykit postgres postscript ppds private-headers qt qt3 qt3support qt4 radio readline samba sdl semantic-desktop session smp sound speex spell sqlite sqlite3 sse sse2 ssl startup-notification subversion svg tcpd teletext theora threads tiff truetype udev udisks unicode upower usb v4l v4l2 vaapi vdpau video vorbis wavpack webkit wmf wxwidgets x264 xcb xcomposite xdmcp xft xinerama xml xrandr xscreensaver xv xvid xvmc zeroconf zip zlib" ABI_X86="32 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_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="mmx mmxext sse sse2 sse3 ssse3 sse4 sse4_1 sse4_2 aes avx popcnt" 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="evdev mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="ru ru_RU" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" QEMU_SOFTMMU_TARGETS="i386 x86_64 arm armeb" QEMU_USER_TARGETS="i386 x86_64 arm armeb" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="intel i915 i965 vesa nvidia" 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: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON Reproducible: Always
Created attachment 403226 [details] build.log
This is the link command: x86_64-pc-linux-gnu-g++ -m32 -Wl,-O1 -Wl,--as-needed -Wl,-rpath-link,/var/tmp/portage/dev-qt/qtcore-4.8.6-r2/work/qt-everywhere-opensource-src-4.8.6-abi_x86_32.x86/lib -m64 -o ../../../bin/moc release-shared/moc.o release-shared/preprocessor.o release-shared/generator.o release-shared/parser.o release-shared/token.o release-shared/main.o -L/var/tmp/portage/dev-qt/qtcore-4.8.6-r2/work/qt-everywhere-opensource-src-4.8.6-abi_x86_32.x86/src/tools/bootstrap -lbootstrap -L/usr/lib32/qt4 -lz -lz Where does that -m64 come from?? What's the output of $ grep -r m64 /var/tmp/portage/dev-qt/qtcore-4.8.6-r2/work/qt-everywhere-opensource-src-4.8.6-abi_x86_32.x86
(In reply to Davide Pesavento from comment #2) > This is the link command: > > Where does that -m64 come from?? What's the output of > > $ grep -r m64 > /var/tmp/portage/dev-qt/qtcore-4.8.6-r2/work/qt-everywhere-opensource-src-4. > 8.6-abi_x86_32.x86 ./src/plugins/codecs/tw/Makefile:LFLAGS = -Wl,-O1 -Wl,--as-needed -Wl,-rpath-link,/var/tmp/portage/dev-qt/qtcore-4.8.6-r2/work/qt-everywhere-opensource-src-4.8.6-abi_x86_32.x86/lib -m64 -shared ./src/plugins/codecs/kr/Makefile:LFLAGS = -Wl,-O1 -Wl,--as-needed -Wl,-rpath-link,/var/tmp/portage/dev-qt/qtcore-4.8.6-r2/work/qt-everywhere-opensource-src-4.8.6-abi_x86_32.x86/lib -m64 -shared ./src/plugins/codecs/jp/Makefile:LFLAGS = -Wl,-O1 -Wl,--as-needed -Wl,-rpath-link,/var/tmp/portage/dev-qt/qtcore-4.8.6-r2/work/qt-everywhere-opensource-src-4.8.6-abi_x86_32.x86/lib -m64 -shared ./src/plugins/codecs/cn/Makefile:LFLAGS = -Wl,-O1 -Wl,--as-needed -Wl,-rpath-link,/var/tmp/portage/dev-qt/qtcore-4.8.6-r2/work/qt-everywhere-opensource-src-4.8.6-abi_x86_32.x86/lib -m64 -shared ./src/xml/Makefile:LFLAGS = -Wl,-O1 -Wl,--as-needed -Wl,-rpath-link,/var/tmp/portage/dev-qt/qtcore-4.8.6-r2/work/qt-everywhere-opensource-src-4.8.6-abi_x86_32.x86/lib -m64 -Wl,--no-undefined -shared -Wl,-Bsymbolic-functions -Wl,-soname,libQtXml.so.4 ./src/network/Makefile:LFLAGS = -Wl,-O1 -Wl,--as-needed -Wl,-rpath-link,/var/tmp/portage/dev-qt/qtcore-4.8.6-r2/work/qt-everywhere-opensource-src-4.8.6-abi_x86_32.x86/lib -m64 -Wl,--no-undefined -shared -Wl,-Bsymbolic-functions -Wl,-soname,libQtNetwork.so.4 ./src/tools/rcc/Makefile:LFLAGS = -Wl,-O1 -Wl,--as-needed -Wl,-rpath-link,/var/tmp/portage/dev-qt/qtcore-4.8.6-r2/work/qt-everywhere-opensource-src-4.8.6-abi_x86_32.x86/lib -m64 ./src/tools/moc/Makefile:LFLAGS = -Wl,-O1 -Wl,--as-needed -Wl,-rpath-link,/var/tmp/portage/dev-qt/qtcore-4.8.6-r2/work/qt-everywhere-opensource-src-4.8.6-abi_x86_32.x86/lib -m64 ./src/tools/uic/Makefile:LFLAGS = -Wl,-O1 -Wl,--as-needed -Wl,-rpath-link,/var/tmp/portage/dev-qt/qtcore-4.8.6-r2/work/qt-everywhere-opensource-src-4.8.6-abi_x86_32.x86/lib -m64 ./src/corelib/Makefile:LFLAGS = -Wl,-O1 -Wl,--as-needed -Wl,-rpath-link,/var/tmp/portage/dev-qt/qtcore-4.8.6-r2/work/qt-everywhere-opensource-src-4.8.6-abi_x86_32.x86/lib -m64 -Wl,--no-undefined -Wl,-e,qt_core_boilerplate -shared -Wl,-Bsymbolic-functions -Wl,--dynamic-list,/var/tmp/portage/dev-qt/qtcore-4.8.6-r2/work/qt-everywhere-opensource-src-4.8.6/src/corelib/QtCore.dynlist -Wl,-soname,libQtCore.so.4 ./tools/linguist/lupdate/Makefile:LFLAGS = -Wl,-O1 -Wl,--as-needed -Wl,-rpath-link,/var/tmp/portage/dev-qt/qtcore-4.8.6-r2/work/qt-everywhere-opensource-src-4.8.6-abi_x86_32.x86/lib -m64 ./tools/linguist/lconvert/Makefile:LFLAGS = -Wl,-O1 -Wl,--as-needed -Wl,-rpath-link,/var/tmp/portage/dev-qt/qtcore-4.8.6-r2/work/qt-everywhere-opensource-src-4.8.6-abi_x86_32.x86/lib -m64 ./tools/linguist/lrelease/Makefile:LFLAGS = -Wl,-O1 -Wl,--as-needed -Wl,-rpath-link,/var/tmp/portage/dev-qt/qtcore-4.8.6-r2/work/qt-everywhere-opensource-src-4.8.6-abi_x86_32.x86/lib -m64
Is this a fresh install or are you upgrading from 4.8.5? If you're upgrading, what's the output of `readlink /usr/share/qt4/mkspecs/default`?
(In reply to Davide Pesavento from comment #4) > Is this a fresh install or are you upgrading from 4.8.5? If you're > upgrading, what's the output of `readlink /usr/share/qt4/mkspecs/default`? I'm upgrading. $ readlink /usr/share/qt4/mkspecs/default linux-g++
Created attachment 403764 [details] temp/environment I've tried next: ########### cd /var/tmp/portage/dev-qt/qtcore-4.8.6-r2/work/qt-everywhere-opensource-src-4.8.6-abi_x86_32.x86/src/corelib/ /var/tmp/portage/dev-qt/qtcore-4.8.6-r2/work/qt-everywhere-opensource-src-4.8.6-abi_x86_32.x86/bin/qmake CONFIG+=nostrip LIBS+=-L/usr/lib32/qt4 -o Makefile /var/tmp/portage/dev-qt/qtcore-4.8.6-r2/work/qt-everywhere-opensource-src-4.8.6/src/corelib/corelib.pro # as shown in the Makefile head and it produced a file without -m64 in LDFLAGS source /var/tmp/portage/dev-qt/qtcore-4.8.6-r2/temp/environment /var/tmp/portage/dev-qt/qtcore-4.8.6-r2/work/qt-everywhere-opensource-src-4.8.6-abi_x86_32.x86/bin/qmake CONFIG+=nostrip LIBS+=-L/usr/lib32/qt4 -o Makefile /var/tmp/portage/dev-qt/qtcore-4.8.6-r2/work/qt-everywhere-opensource-src-4.8.6/src/corelib/corelib.pro # which produced the wrong fils as during compulation ########### So the problem is somewhere in the environment
Ok, I've got QMAKESPEC=linux-g++-64 from my qt3 installation...
So that's my problem fill free to close the bug.
(In reply to Fat-Zer from comment #7) > Ok, I've got QMAKESPEC=linux-g++-64 from my qt3 installation... where exactly? in /etc/env.d?
(In reply to Davide Pesavento from comment #9) > (In reply to Fat-Zer from comment #7) > > Ok, I've got QMAKESPEC=linux-g++-64 from my qt3 installation... > > where exactly? in /etc/env.d? yep
Are you sure you didn't change the QMAKESPEC value locally, i.e. after the installation of qt3 put that file there? Anyway, closing.
(In reply to Davide Pesavento from comment #11) > Are you sure you didn't change the QMAKESPEC value locally, i.e. after the > installation of qt3 put that file there? > > Anyway, closing. Sure. Strictly speaking it is tqt (qt3 fork by trinity project), but qt3 behaved the same way...
You may want to talk to whoever maintains the gentoo packages for it then. Tell them to revise the env.d files and remove all the useless/redundant stuff... e.g. by default QMAKESPEC should be linux-g++, and it should work without having to set it to something different.
(In reply to Davide Pesavento from comment #13) > You may want to talk to whoever maintains the gentoo packages for it then. > Tell them to revise the env.d files and remove all the useless/redundant > stuff... e.g. by default QMAKESPEC should be linux-g++, and it should work > without having to set it to something different. I am the maintainer of all those gentoo packages)) (and as I suppose the only their user), and I'm filling an upstream bug right now with request to rename those variables... I suppose you are right and everything will be fine if I'll drop QMAKECPEC declaration and make it default to linux-g++... If it won't do the trick I'll consider to move it setup to the ebuilds... Thanks for advices...