Hi, I was updating my system to kdelibs-3.2.2-r1 because of the security issue 3.2.2 had. After upgrading I could no longer login because kdm doesn't load any more. Doing a bit more of debugging I found out, that virtually any Qt application fails to start: # export LC_ALL=C # konqueror Illegal instruction Same when trying to start e.q. "sim" please find "# strace konqueror > konqueror.strace 2>&1" attached FYI Ok, so I tought I would just re-merge kdebase and maybe kdelibs again. but... * emerging kdebase fails with: checking for Qt... libraries /usr/qt/3/lib, headers /usr/qt/3/include using -mt checking for moc... /usr/qt/3/bin/moc checking for uic... /usr/qt/3/bin/uic checking whether uic supports -L ... yes checking whether uic supports -nounload ... yes checking if Qt needs -ljpeg... no checking for rpath... yes checking for KDE... libraries /usr/kde/3.2/lib, headers /usr/kde/3.2/include checking if UIC has KDE plugins available... no configure: error: you need to install kdelibs first. !!! ERROR: kde-base/kdebase-3.2.2 failed. !!! Function kde_src_compile, Line 118, Exitcode 1 !!! died running ./configure, kde_src_compile:configure - and (re-)emerging kdelibs now also fails with: /bin/sh ../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../dcop -I../kio/kssl -I../kdefx -I../interfaces -I../dcop -I../libltdl -I../kdefx -I../kdecore -I../kdeui -I../kio -I../kio/kio -I../kio/kfile -I.. -I/usr/qt/3/include -I/usr/X11R6/include -I/usr/kde/3.2/include -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -march=athlon-xp -O3 -pipe -fomit-frame-pointer -fstack-protector -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -c -o ksplashscreen.lo ksplashscreen.cpp ktabbar.cpp:168:2: warning: #warning "Workaround for Qt 3.2.0, 3.2.1 bug" /bin/sh ../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../dcop -I../kio/kssl -I../kdefx -I../interfaces -I../dcop -I../libltdl -I../kdefx -I../kdecore -I../kdeui -I../kio -I../kio/kio -I../kio/kfile -I.. -I/usr/qt/3/include -I/usr/X11R6/include -I/usr/kde/3.2/include -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -march=athlon-xp -O3 -pipe -fomit-frame-pointer -fstack-protector -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -c -o kconfigdialog.lo kconfigdialog.cpp ../dcop/dcopidl2cpp/dcopidl2cpp --c++-suffix cpp --no-signals --no-stub kmainwindowiface.kidl rm -f kshortcutdialog_simple.cpp echo '#include <kdialog.h>' > kshortcutdialog_simple.cpp echo '#include <klocale.h>' >> kshortcutdialog_simple.cpp /usr/qt/3/bin/uic -nounload -tr tr2i18n -i kshortcutdialog_simple.h ./kshortcutdialog_simple.ui > kshortcutdialog_simple.cpp.temp ; ret=$?; \ /usr/bin/perl -pe "s,tr2i18n( \"\" ),QString::null,g" kshortcutdialog_simple.cpp.temp | /usr/bin/perl -pe "s,tr2i18n( \"\"\, \"\" ),QString::null,g" | /usr/bin/perl -pe "s,image([0-9][0-9]*)_data,img\$1_kshortcutdialog_simple,g" >> kshortcutdialog_simple.cpp ;\ rm -f kshortcutdialog_simple.cpp.temp ;\ if test "$ret" = 0; then echo '#include "kshortcutdialog_simple.moc"' >> kshortcutdialog_simple.cpp; else rm -f kshortcutdialog_simple.cpp ; exit $ret ; fi make[3]: *** [kshortcutdialog_simple.cpp] Error 132 make[3]: *** Waiting for unfinished jobs.... make[3]: Leaving directory `/var/tmp/portage/kdelibs-3.2.2-r1/work/kdelibs-3.2.2/kdeui' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/kdelibs-3.2.2-r1/work/kdelibs-3.2.2/kdeui' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/kdelibs-3.2.2-r1/work/kdelibs-3.2.2' make: *** [all] Error 2 !!! ERROR: kde-base/kdelibs-3.2.2-r1 failed. !!! Function kde_src_compile, Line 129, Exitcode 2 !!! died running emake, kde_src_compile:make This completely broke my Linux desktop so I'll mark this "critical" (tempted to choose blocker). :-( Reproducible: Always Steps to Reproduce: Portage 2.0.50-r6 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3_pre20040420-r0, 2.6.6) ================================================================= System uname: 2.6.6 i686 AMD Athlon(tm) XP 3200+ Gentoo Base System version 1.4.14 distcc 2.14 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -fstack-protector" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -fstack-protector" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache distcc sandbox" GENTOO_MIRRORS="http://gentoo.inode.at/ ftp://gentoo.inode.at/source/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage/" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow S3TC X aalib acpi acpi4linux alsa apache2 apm arts artswrappersuid avi berkdb bonobo cdr crypt cups dga directfb divx4linux dv dvb dvd dvdr encode esd ethereal evo fbcon fbdev foomaticdb freetype gb gcj gdbm gif gnome gphoto2 gpm gtk gtk2 gtk2i gtkhtml guile hbci icq imagemagick imap imlib java javascript jikes joystick jpeg kde lcms libg++ libwww linguas_de mad maildir mikmod mmx motif mozilla moznocompose moznoirc mpeg mysql ncurses nls nptl oav oggvorbis opengl pam pcmcia pdflib perl pic png pnp ppds python qt quicktime readline samba sdl slang spell sse ssl svga tcpd tiff transcode truetype trusted type1 usb v4l v4l2 videos x86 xml xml2 xmms xv xvid zlib" Notice: distcc is enabled but currently it is the only machine that's up, so in facts it is "disabled".
Created attachment 31714 [details] strace konqueror
PS: kdelibs-3.2.2-r1 _did_ merge fine the first time when updating. I also just disabled distcc and cleared/disabled ccache but that didn't change a thing regarding the failing emerges. I am currently re-emerging qt-3.3.2. Quite strange all of that. Thanks in advance for any help.
hm. so far with qt: g++ -c -pipe -I/usr/include/mysql -fno-exceptions -fPIC -Wall -W -O2 -D_REENTRANT -DDESIGNER -DQT_INTERNAL_XML -DQT_INTERNAL_WORKSPACE -DQT_INTERNAL_ICONVIEW -DQT_INTERNAL_TABLE -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_SHARED -I/var/tmp/portage/qt-3.3.2/work/qt-x11-free-3.3.2/mkspecs/linux-g++ -I. -I/usr/include/freetype2 -I../shared -I../uilib -I../../../include -I.moc/release-shared-mt/ -o ./tableeditorimpl.o tableeditorimpl.cpp /var/tmp/portage/qt-3.3.2/work/qt-x11-free-3.3.2/bin/uic -L /var/tmp/portage/qt-3.3.2/work/qt-x11-free-3.3.2/plugins listboxeditor.ui -i listboxeditor.h -o listboxeditor.cpp make[3]: *** [listboxeditor.cpp] Illegal instruction make[3]: *** Deleting file `listboxeditor.cpp' make[3]: *** Waiting for unfinished jobs.... make[3]: Leaving directory `/var/tmp/portage/qt-3.3.2/work/qt-x11-free-3.3.2/tools/designer/designer' make[2]: *** [sub-designer] Error 2 make[2]: Leaving directory `/var/tmp/portage/qt-3.3.2/work/qt-x11-free-3.3.2/tools/designer' make[1]: *** [sub-designer] Error 2 make[1]: Leaving directory `/var/tmp/portage/qt-3.3.2/work/qt-x11-free-3.3.2/tools' make: *** [sub-tools] Error 2 !!! ERROR: x11-libs/qt-3.3.2 failed. !!! Function src_compile, Line 94, Exitcode 2 !!! (no error message) Ouch, what happened here... :( I'm quite sure/confident that I have got neither bad memory nor heat problems.
confirmed here. I got this error on 2 different servers, after emerge sync. configure: error: you need to install kdelibs first. !!! ERROR: kde-base/kdemultimedia-3.2.2-r1 failed. !!! Function kde_src_compile, Line 118, Exitcode 1 !!! died running ./configure, kde_src_compile:configure !!! ERROR: kde-base/kdeartwork-3.2.2 failed. !!! Function kde_src_compile, Line 118, Exitcode 1 !!! died running ./configure, kde_src_compile:configure
Check the config.log and see exactly what the problem is. If you're having this problem, please re-emerge kdelibs then retry the other kde packages.
Alex/Caleb I should probably state that the problem I do face here isn't primarily the failure of merging kde packages because of a missing (or better: not found because it is there) kdelibs. This is just a side effect of some somehow severely "broken" qt/kde binaries that I have... For me kdelibs' config.log exits cleanly with 0 - as one would expect - kdebase with 1. This can be found just above "Cache variables" section: -------[ kdebase config.log ]------------------------------------ [...] configure:29693: checking if UIC has KDE plugins available configure:29720: /usr/qt/3/bin/uic -L /usr/kde/3.2/lib/kde3/plugins/designer -nounload -impl actest.h actest.ui > actest.cpp ./configure: line 1: 31391 Illegal instruction /usr/qt/3/bin/uic -L /usr/kde/3.2/lib/kde3/plugins/designer -nounload -impl actest.h actest.ui >actest.cpp configure:29723: $? = 132 configure:29737: result: no configure:29740: error: you need to install kdelibs first. --------------------------------------------------------------------------- So again the "Illegal instruction" on uic (btw. if that should matter - I am using latest binutils-2.14.90.0.8-r1). a curious ldd on my systems uic, konqueror, kmail or sim (net-im/sim) binaries showed me nothing that seems wrong: -------------------------------------------------------------------------- # ldd /usr/qt/3/bin/uic linux-gate.so.1 => (0xffffe000) libqt-mt.so.3 => /usr/qt/3/lib/libqt-mt.so.3 (0x42b60000) libmng.so.1 => /usr/lib/libmng.so.1 (0x42afe000) libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x42a15000) libpng.so.3 => /usr/lib/libpng.so.3 (0x42ac5000) libz.so.1 => /lib/libz.so.1 (0x428bd000) libXi.so.6 => /usr/X11R6/lib/libXi.so.6 (0x42a0b000) libXrender.so.1 => /usr/X11R6/lib/libXrender.so.1 (0x42a37000) libXrandr.so.2 => /usr/X11R6/lib/libXrandr.so.2 (0x42aac000) libXft.so.2 => /usr/X11R6/lib/libXft.so.2 (0x42a96000) libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x42999000) libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x42a41000) libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x42887000) libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x427a6000) libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x428b2000) libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x42899000) libdl.so.2 => /lib/libdl.so.2 (0x4277d000) libpthread.so.0 => /lib/libpthread.so.0 (0x42874000) libstdc++.so.5 => /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/libstdc++.so.5 (0x428d0000) libm.so.6 => /lib/libm.so.6 (0x42782000) libgcc_s.so.1 => /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/libgcc_s.so.1 (0x4298e000) libc.so.6 => /lib/libc.so.6 (0x4266c000) libexpat.so.0 => /usr/lib/libexpat.so.0 (0x42a6e000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x4216e000) -------------------------------------------------------------------------- -> hm. Seems nothing wrong with that, is it? First line was some kernel 2.6 sysinfo stuff, right?
You should try directly running uic and seeing if it faults on you somehow. If so, running it in strace may show what's going on.
calling just "uic" works (-> shows help). I then tried the command from the configure script (configure:29720: /usr/qt/3/bin/uic -L /usr/kde/3.2/lib/kde3/plugins/designer -nounload -impl actest.h actest.ui > actest.cpp) (digging into the configure script showed me how to create the missing actest.ui) Then I see (without output redirection as used above): ------------------------------------------------------------------------------- # /usr/qt/3/bin/uic -L /usr/kde/3.2/lib/kde3/plugins/designer -nounload -impl actest.h actest.ui /**************************************************************************** ** Form implementation generated from reading ui file 'actest.ui' ** ** Created: Thu May 20 18:27:21 2004 ** by: The User Interface Compiler ($Id: qt/main.cpp 3.3.2 edited Nov 24 13:47 $) ** ** WARNING! All changes made in this file will be lost! ****************************************************************************/ #include "actest.h" Illegal instruction ------------------------------------------------------------------------------ I'll attach an strace.
Created attachment 31765 [details] uic command's strace
All I can suggest here is that you attempt to get Qt re-installed so that uic doesn't crash, the re-emerge kdelibs. After that, all should work agian. It sounds like you're having some issues here with glibc or hardware.
Already tried to get qt reinstall at a few time but it also fails to compile. I will give re-merging gcc and glibc a try (but also already tried that a few days ago and though it worked it did not change a thing). I do still hope that this is some glibc issue as I am really quite sure that its not the hardware. Well, never mind. Else I'll have to give "emerge -e world" a try or I'll reinstall... :-/ ;-)
Nope, even after re-merging gcc and glibc qt compilation still fails. Exactly the same error as before and shown in comment #3. (now for 4-5 tries or so it _always_ failed at listboxeditor.cpp)
Try moving the existing Qt out of the first: mv /usr/qt/3 /usr/qt/3.bak then emerge.
yeah, that did it! qt merged. :-o Could have thought of this myself, but I would not have thought that an installed version could have influence on the compile, weird. Just still recompiling kdelibs... :) cheers, Daniel
works. :) this bug can be closed as far as I'm concerned. Thanks.
closing per above comment