I'm trying to update my qt3 installation to qt4, but it's failing on qt-sql: <snip> Xrender support ..... no FontConfig support .. no XKB Support ......... no immodule support .... yes MySQL support ....... plugin SQLite support ...... plugin (system) OpenSSL support ..... no Could not find mkspecs for your QMAKESPEC(linux-g++) after trying: /usr/bin/mkspecs Error processing project file: /var/tmp/portage/x11-libs/qt-sql-4.4.2/work/qt-x1 1-opensource-src-4.4.2/src/sql/sql.pro * * ERROR: x11-libs/qt-sql-4.4.2 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 2750: Called qt4-build_src_compile * environment, line 2521: Called build_target_directories * environment, line 359: Called build_directories 'src/sql src/pl ugins/sqldrivers' * environment, line 353: Called die * The specific snippet of code: * "${S}"/bin/qmake "LIBS+=-L${QTLIBDIR}" "CONFIG+=nostrip" || die "qm ake failed"; * The die message: * qmake failed * * If you need support, post the topmost build error, and the call stack if rele vant. * A complete build log is located at '/var/tmp/portage/x11-libs/qt-sql-4.4.2/te mp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/x11-libs/qt-sql-4 .4.2/temp/environment'. * >>> Failed to emerge x11-libs/qt-sql-4.4.2, Log file: >>> '/var/tmp/portage/x11-libs/qt-sql-4.4.2/temp/build.log' * Messages for package x11-libs/qt-sql-4.4.2: * * ERROR: x11-libs/qt-sql-4.4.2 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 2750: Called qt4-build_src_compile * environment, line 2521: Called build_target_directories * environment, line 359: Called build_directories 'src/sql src/pl ugins/sqldrivers' * environment, line 353: Called die * The specific snippet of code: * "${S}"/bin/qmake "LIBS+=-L${QTLIBDIR}" "CONFIG+=nostrip" || die "qm ake failed"; * The die message: * qmake failed * * If you need support, post the topmost build error, and the call stack if rele vant. * A complete build log is located at '/var/tmp/portage/x11-libs/qt-sql-4.4.2/te mp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/x11-libs/qt-sql-4 .4.2/temp/environment'. * tombstone ~ # Reproducible: Always Steps to Reproduce: 1. Upgrade from qt3 to qt4 2. 3. Actual Results: Fails, see description for actual error message. Expected Results: qt4 emerged. I'm don't have qt-embedded installed. tombstone ~ # emerge --info Portage 2.1.6_rc2 (default-linux/amd64/2007.0, gcc-4.3.2, glibc-2.8_p20080602-r0, 2.6.23-gentoo-r8 x86_64) ================================================================= System uname: Linux-2.6.23-gentoo-r8-x86_64-Dual_Core_AMD_Opteron-tm-_Processor_165-with-glibc2.2.5 Timestamp of tree: Mon, 01 Dec 2008 15:30:01 +0000 app-shells/bash: 3.2_p39 dev-java/java-config: 1.3.7, 2.1.6-r1 dev-lang/python: 2.4.4-r13, 2.5.2-r8 dev-python/pycrypto: 2.0.1-r5 dev-util/cmake: 2.6.1 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.2.18.1-r3 sys-devel/autoconf: 2.13, 2.63 sys-devel/automake: 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1 sys-devel/binutils: 2.18.50.0.9 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.26 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=k8" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-O2 -pipe -march=k8" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://adelie.polymtl.ca/ http://gentoo.arcticnetwork.ca/source/ http://gentoo.mirrors.tera-byte.com/ " LDFLAGS="" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X acl alsa amd64 apache2 berkdb cdr cli cracklib crypt cups dbus dri dvd dvdr firefox flax fortran gdbm gif gpm gtk iconv imap imlib isdnlog jpeg kde mad maildir midi mmx mp3 mudflap mysql ncurses nls nptl nptlonly opengl openmp pam pcre pdf perl png pppd python qt qt3 readline reflection samba session spl sse sse2 ssl tcpd tetex tiff truetype unicode xinerama xorg zlib" ALSA_CARDS="snd-intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia vesa" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Check if /usr/share/qt4/mkspecs/linux-g++ dir exists, if not reemerge qt-core.
(In reply to comment #1) > Check if /usr/share/qt4/mkspecs/linux-g++ dir exists, > if not reemerge qt-core. > It exists: wyvern@tombstone ~ $ ls -al /usr/share/qt4/mkspecs/linux-g++/ total 15 drwxr-xr-x 2 root root 112 Dec 9 09:49 . drwxr-xr-x 87 root root 2968 Dec 9 09:49 .. -rw-r--r-- 1 root root 260 Dec 9 09:49 qmake.conf -rw-r--r-- 2 root root 5522 Dec 9 09:49 qplatformdefs.h wyvern@tombstone ~ $
Did you try to re-emerge qt-core?
(In reply to comment #3) > Did you try to re-emerge qt-core? > I did - it started by trying to emerge qt-dbus-4.4.2, which failed: tombstone ~ # emerge qt-core Calculating dependencies... done! >>> Verifying ebuild manifests >>> Starting parallel fetch >>> Emerging (1 of 6) x11-libs/qt-dbus-4.4.2 * qt-x11-opensource-src-4.4.2-headers.tar.bz2 RMD160 SHA1 SHA256 size ;-) ... [ ok ] * qt-x11-opensource-src-4.4.2.tar.bz2 RMD160 SHA1 SHA256 size ;-) ... [ ok ] * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] >>> Unpacking source... <snip> Xrender support ..... yes FontConfig support .. yes XKB Support ......... yes immodule support .... yes MySQL support ....... plugin SQLite support ...... plugin (qt) OpenSSL support ..... yes (run-time) Could not find mkspecs for your QMAKESPEC(linux-g++) after trying: /usr/bin/mkspecs Error processing project file: /var/tmp/portage/x11-libs/qt-dbus-4.4.2/work/qt-x 11-opensource-src-4.4.2/src/dbus/dbus.pro * * ERROR: x11-libs/qt-dbus-4.4.2 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 2735: Called qt4-build_src_compile * environment, line 2517: Called build_target_directories * environment, line 362: Called build_directories ' * src/dbus * tools/qdbus/qdbus * tools/qdbus/qdbusxml2cpp * tools/qdbus/qdbuscpp2xml' * environment, line 356: Called die * The specific snippet of code: * "${S}"/bin/qmake "LIBS+=-L${QTLIBDIR}" "CONFIG+=nostrip" || die "qm ake failed"; * The die message: * qmake failed * * If you need support, post the topmost build error, and the call stack if rele vant. * A complete build log is located at '/var/tmp/portage/x11-libs/qt-dbus-4.4.2/t emp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/x11-libs/qt-dbus- 4.4.2/temp/environment'. * >>> Failed to emerge x11-libs/qt-dbus-4.4.2, Log file: >>> '/var/tmp/portage/x11-libs/qt-dbus-4.4.2/temp/build.log' * Messages for package x11-libs/qt-dbus-4.4.2: * * ERROR: x11-libs/qt-dbus-4.4.2 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 2735: Called qt4-build_src_compile * environment, line 2517: Called build_target_directories * environment, line 362: Called build_directories ' * src/dbus * tools/qdbus/qdbus * tools/qdbus/qdbusxml2cpp * tools/qdbus/qdbuscpp2xml' * environment, line 356: Called die * The specific snippet of code: * "${S}"/bin/qmake "LIBS+=-L${QTLIBDIR}" "CONFIG+=nostrip" || die "qm ake failed"; * The die message: * qmake failed * * If you need support, post the topmost build error, and the call stack if rele vant. * A complete build log is located at '/var/tmp/portage/x11-libs/qt-dbus-4.4.2/t emp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/x11-libs/qt-dbus- 4.4.2/temp/environment'. *
Could you please update to the latest stable version of portage ( 2.1.6.4 ) and reproduce it? There is nothing wrong with the packages since I am able to install them on 4 different machines. So I am guessing there is something wrong with your configuration We will figure it out, but first use the stable portage :) Thanks
(In reply to comment #5) > Could you please update to the latest stable version of portage ( 2.1.6.4 ) and > reproduce it? I've done so: tombstone ~ # emerge -pv portage These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] sys-apps/portage-2.1.6.4 USE="-build -doc -epydoc (-selinux)" LINGUAS="-pl" 0 kB Total: 1 package (1 reinstall), Size of downloads: 0 kB tombstone ~ # emerge -pv qt-core These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild N ] x11-libs/qt-dbus-4.4.2 USE="-debug -pch" 0 kB [ebuild N ] x11-libs/qt-script-4.4.2 USE="-debug -pch" 0 kB [ebuild N ] x11-libs/qt-sql-4.4.2 USE="mysql qt3support sqlite -debug (-firebird) -odbc -pch -postgres" 0 kB [ebuild R ] x11-libs/qt-core-4.4.2 USE="qt3support ssl -debug -doc -glib -pch" 0 kB [ebuild N ] x11-libs/qt-gui-4.4.2 USE="accessibility cups dbus qt3support tiff xinerama -debug -glib -mng -nas -nis -pch" INPUT_DEVICES="-wacom" 0 kB [ebuild N ] x11-libs/qt-qt3support-4.4.2 USE="accessibility -debug -pch" 0 kB Total: 6 packages (5 new, 1 reinstall), Size of downloads: 0 kB tombstone ~ # tombstone ~ # emerge qt-core Calculating dependencies... done! >>> Verifying ebuild manifests >>> Starting parallel fetch >>> Emerging (1 of 6) x11-libs/qt-dbus-4.4.2 * qt-x11-opensource-src-4.4.2-headers.tar.bz2 RMD160 SHA1 SHA256 size ;-) ... [ ok ] * qt-x11-opensource-src-4.4.2.tar.bz2 RMD160 SHA1 SHA256 size ;-) ... [ ok ] * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] >>> Unpacking source... <snip> Build type: linux-g++ Architecture: x86_64 qmake vars .......... cat: .qmake.vars: No such file or directory qmake switches ...... <snip> immodule support .... yes MySQL support ....... plugin SQLite support ...... plugin (qt) OpenSSL support ..... yes (run-time) Could not find mkspecs for your QMAKESPEC(linux-g++) after trying: /usr/bin/mkspecs Error processing project file: /var/tmp/portage/x11-libs/qt-dbus-4.4.2/work/qt-x11-opensource-src-4.4.2/src/dbus/dbus.pro * * ERROR: x11-libs/qt-dbus-4.4.2 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 2737: Called qt4-build_src_compile * environment, line 2519: Called build_target_directories * environment, line 364: Called build_directories ' * src/dbus * tools/qdbus/qdbus * tools/qdbus/qdbusxml2cpp * tools/qdbus/qdbuscpp2xml' * environment, line 358: Called die * The specific snippet of code: * "${S}"/bin/qmake "LIBS+=-L${QTLIBDIR}" "CONFIG+=nostrip" || die "qmake failed"; * The die message: * qmake failed * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/x11-libs/qt-dbus-4.4.2/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/x11-libs/qt-dbus-4.4.2/temp/environment'. * >>> Failed to emerge x11-libs/qt-dbus-4.4.2, Log file: >>> '/var/tmp/portage/x11-libs/qt-dbus-4.4.2/temp/build.log' * Messages for package x11-libs/qt-dbus-4.4.2: * * ERROR: x11-libs/qt-dbus-4.4.2 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 2737: Called qt4-build_src_compile * environment, line 2519: Called build_target_directories * environment, line 364: Called build_directories ' * src/dbus * tools/qdbus/qdbus * tools/qdbus/qdbusxml2cpp * tools/qdbus/qdbuscpp2xml' * environment, line 358: Called die * The specific snippet of code: * "${S}"/bin/qmake "LIBS+=-L${QTLIBDIR}" "CONFIG+=nostrip" || die "qmake failed"; * The die message: * qmake failed * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/x11-libs/qt-dbus-4.4.2/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/x11-libs/qt-dbus-4.4.2/temp/environment'. It seems to be a qmake problem, but I don't know where to begin debugging it!
After unmerging every ebuild containing the word 'qt', blowing away every configuration variable I could find relating to Qt, deleting every directory that looked remotely associated with Qt and restarting the machine, I was finally able to emerge qt-core and its associated packages successfully. Huzzah!