make -j3 INSTALL_ROOT=/Users/shawn2/Gentoo/var/tmp/portage/x11-libs/qt-core-4.7.3/image/ install_mkspecs make: *** No rule to make target `install_mkspecs'. Stop Reproducible: Always
Created attachment 278173 [details] build log
Created attachment 278175 [details] emerge info
hmmm, this just installs for me.
I have the same problem. The versions I tried are 4.7.3-r1 and 4.7.4.
Created attachment 293065 [details] emerge --info
This is because we are using different OS version, I think. On my environment (System uname: Darwin-10.8.0-i386-32bit), qmake died while creating Makefile and that cause incomplete Makefile which lack install_mkspecs rule. Steps to reproduce: % emerge -1 qt-core (failed with install_mkspec error) % cd ~/Gentoo/var/tmp/portage/x11-libs/qt-core-4.7.4/work/qt-everywhere-opensource-src-4.7.4 % ./bin/qmake -spec mkspecs/macx-g++ -o Makefile projects.pro WARNING: /Users/naota/Gentoo/var/tmp/portage/x11-libs/qt-core-4.7.4/work/qt-everywhere-opensource-src-4.7.4/src/src.pro:12: Unable to find file for inclusion tools/tools.pro WARNING: /Users/naota/Gentoo/var/tmp/portage/x11-libs/qt-core-4.7.4/work/qt-everywhere-opensource-src-4.7.4/src/gui/image/qpnghandler.pri:9: Unable to find file for inclusion /Users/naota/Gentoo/var/tmp/portage/x11-libs/qt-core-4.7.4/work/qt-everywhere-opensource-src-4.7.4/src/3rdparty/libpng.pri WARNING: /Users/naota/Gentoo/var/tmp/portage/x11-libs/qt-core-4.7.4/work/qt-everywhere-opensource-src-4.7.4/projects.pro:46: Unable to find file for inclusion doc/doc.pri zsh: bus error ./bin/qmake -spec mkspecs/macx-g++ -o Makefile projects.pro above build.log is also showing the same error: ./configure: line 8438: 50739 Segmentation fault QTDIR="$outpath" "$outpath/bin/qmake" -spec "$XQMAKESPEC" "${relpath}/projects.pro" -o "$mkfile" I've changed if [[ ${CHOST} == *86*-apple-darwin* ]] ; then # qmake bus errors with -O2 but -O3 works replace-flags -O2 -O3 fi to if [[ ${CHOST} == *86*-apple-darwin* ]] ; then # qmake bus errors with -O2 and -O3 replace-flags -O3 -O2 replace-flags -O2 -O1 fi and it get built well. Please confirm this with your environment.
ah, this code snipet is in eclass/qt4-build.eclass > I've changed > > if [[ ${CHOST} == *86*-apple-darwin* ]] ; then > # qmake bus errors with -O2 but -O3 works > replace-flags -O2 -O3 > fi > > to > > if [[ ${CHOST} == *86*-apple-darwin* ]] ; then > # qmake bus errors with -O2 and -O3 > replace-flags -O3 -O2 > replace-flags -O2 -O1 > fi > > > and it get built well. Please confirm this with your environment.
Reopen to get comments from prefix team.
With naota's solution, I can emerge qt-core-4.7.4 and 4.7.4-r1.
I'm on Lion, using a 64-bits prefix. Compiler/linker should be the same for us.
Created attachment 295961 [details] emerge --info Still have ./configure: line 8403: 21222 Segmentation fault QTDIR="$outpath" "$outpath/bin/qmake" -spec "$XQMAKESPEC" "${relpath}/projects.pro" -o "$mkfile" and result to install_mkspec not available Pasting emerge --info output to work on it.
I can confirm, it fails with -O2, but builds with -O1 on both of my x86-macos (10.6).
The fix is already included in the Portage tree. http://tinderbox.dev.gentoo.org/portage-prefix/eclass/qt4-build.eclass