nowinter (nowinter) wrote in gentoo,
nowinter
nowinter
gentoo

qt-4.1.4 emerge fails..

I tried many times to search the forum.. emerge fails with the this message:
[...]
X11 headers look good.
Xcursor auto-detection... ()
/var/tmp/portage/qt-4.1.4/work/qt-x11-opensource-src-4.1.4/config.tests/unix/compile.test: line 49: 3483 Segmentation fault $OUTDIR/bin/qmake -nocache -spec "$QMKSPEC" "LIBS*=$LIBPATH" "INCLUDEPATH*=$INCLUDEPATH" "QMAKE_CXXFLAGS*=$CXXFLAGS" $SRCDIR/$TEST/$EXE.pro -o $OUTDIR/$TEST/Makefile >/dev/null 2>&1
make: *** No targets specified and no makefile found. Stop.
Xcursor disabled.
Xrandr auto-detection... ()
/var/tmp/portage/qt-4.1.4/work/qt-x11-opensource-src-4.1.4/config.tests/unix/compile.test: line 49: 3491 Segmentation fault $OUTDIR/bin/qmake -nocache -spec "$QMKSPEC" "LIBS*=$LIBPATH" "INCLUDEPATH*=$INCLUDEPATH" "QMAKE_CXXFLAGS*=$CXXFLAGS" $SRCDIR/$TEST/$EXE.pro -o $OUTDIR/$TEST/Makefile >/dev/null 2>&1
make: *** No targets specified and no makefile found. Stop.
Xrandr disabled.
Xrandr support cannot be enabled due to functionality tests!
Turn on verbose messaging (-v) to ./configure to see the final report.
If you believe this message is in error you may use the continue
switch (-continue) to ./configure to continue.

!!! ERROR: x11-libs/qt-4.1.4 failed.
Call stack:
ebuild.sh, line 1546: Called dyn_compile
ebuild.sh, line 937: Called src_compile
qt-4.1.4.ebuild, line 167: Called die

!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if relevant.

... done!

But the thing is it has segmentation faults before that:

#grep fault qt.log
/var/tmp/portage/qt-4.1.4/work/qt-x11-opensource-src-4.1.4/config.tests/unix/compile.test: line 49: 3483 Segmentation fault $OUTDIR/bin/qmake -nocache -spec "$QMKSPEC" "LIBS*=$LIBPATH" "INCLUDEPATH*=$INCLUDEPATH" "QMAKE_CXXFLAGS*=$CXXFLAGS" $SRCDIR/$TEST/$EXE.pro -o $OUTDIR/$TEST/Makefile >/dev/null 2>&1
/var/tmp/portage/qt-4.1.4/work/qt-x11-opensource-src-4.1.4/config.tests/unix/compile.test: line 49: 3491 Segmentation fault $OUTDIR/bin/qmake -nocache -spec "$QMKSPEC" "LIBS*=$LIBPATH" "INCLUDEPATH*=$INCLUDEPATH" "QMAKE_CXXFLAGS*=$CXXFLAGS" $SRCDIR/$TEST/$EXE.pro -o $OUTDIR/$TEST/Makefile >/dev/null 2>&1

line 49 in the file is this:
$OUTDIR/bin/qmake -nocache -spec "$QMKSPEC" "LIBS*=$LIBPATH" "INCLUDEPATH*=$INCLUDEPATH" "QMAKE_CXXFLAGS*=$CXXF$

and what could be wrong with qmake, i can't even think. I tried to do the things manualyy, but I'm not so good at Makefile[s], so I couldn't match all the specs, and it installed stuff somewhere out of sight.. In brief, it didn't work, but for definitely different reasons.
I tried it with the most safe flags and options, like LDFLAGS="" CFLAGS="-O0 -march=pentium4 -pipe -fomit-frame-pointer" CXXFLAGS=$CFLAGS MAKEOPTS=-j1, with the very same result.

Anyone met this kind of trouble?
  • Post a new comment

    Error

    default userpic

    Your IP address will be recorded 

  • 14 comments
I'm use qt 4.1.4,but i don't have this problem.
I find in Google solution for problem '!!! ERROR: x11-libs/qt-4.1.4 failed.
http://www.linuxforen.de/forums/archive/index.php/t-220341.html
P.S.
Sorry for my english :)
for what applications you use Qt 4.1.x? :)
I think I've seen that before, but I didn't understand how to imply it.. There are hundreds of qmake.conf in the work directory. I don't know German so well )))))
also, can you please specify your #emerge -pv qt
or explicitly #emerge -pv =qt-4.1.4
?
Just wondering but are you a programmer interested in QT4? If not, there's no reason to touch it. KDE 3 won't use it.. and KDE4 isn't anywhere near complete yet.
I was wondering myself why i have qt-4.1.2 on my systems, checked deps - nothing. I unmerged it, but my system insisted on it being installed ))) now I understand there was qt4 USE flag on my system, can't really say where. Well, even if i uncheck it at make.conf, i.e. explicitly USE=-qt4, emerge -DNup world wants qt-4 back, nevertheless. What can it be?
Try masking it.
try the -t flag for emerge, it'll display the dependency tree, so you can see which package requires qt-4
no one
grep qt /var/lib/portage/world ??
too obvious ))) there are also equery depends and ecatmurs's udept to see dependences.. nothing helped. apropos a reply above (about qt-4 being kinda devs only) it seems that qt4 USE flag is on by default in 2006.1 desktop profile.
anyway, what greps out of my world file is
qtparted and qt itself.
qt is definitely unneded there, it's perhaps just me forgotten to specify a -1 when reemerged it recently.
that's what i was getting at - forgetting -1 when reemerging it.
does it help to remove it from world?
No. I've just issued an emerge -pv qt command before and after deleting x11-libs/qt from the world file. In both cases the output was NS:

[ebuild NS ] x11-libs/qt-4.1.4-r2 USE="cups gif jpeg mng mysql opengl png sqlite zlib -accessibility -debug -doc -examples -firebird -nas -nis -odbc -postgres -xinerama" 0 kB
hm, i think an earlier suggestion of masking it might work, but then again, it might give you an error of not being able to update world because it's masked. worth a try.