Summary: | x11-libs/qt-core-4.7.3 install_mkspecs | ||
---|---|---|---|
Product: | Gentoo/Alt | Reporter: | shawnleblanc |
Component: | Prefix Support | Assignee: | Gentoo Prefix <prefix> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | junghans, mattmatteh, naota, VED03370 |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | OS X | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
build log
emerge info emerge --info emerge --info |
Description
shawnleblanc
2011-06-25 23:40:43 UTC
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 |