# emerge -pv kdelibs [ebuild U ] kde-base/kdelibs-3.2.0 [3.2.0_rc1] +alsa +cups +doc -ipv6 +ldap +ssl 0 kB # emerge -u kdelibs /bin/sh ../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../dcop -I../kio/kssl -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 -Wall -W -Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -DNDEBUG -DNO_DEBUG -O2 -march=pentium4 -O3 -pipe -fomit-frame-pointer -funroll-loops -frerun-loop-opt -frerun-cse-after-loop -falign-functions=4 -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 kstyle.lo `test -f 'kstyle.cpp' || echo './'`kstyle.cpp kcpuinfo.cpp:49: warning: `visibility' attribute ignored kcpuinfo.cpp:53: warning: `visibility' attribute ignored kcpuinfo.cpp:74: warning: `visibility' attribute ignored kcpuinfo.cpp: In function `int getCpuFeatures()': kcpuinfo.cpp:75: warning: variable `int features' might be clobbered by `longjmp' or `vfork' kstyle.cpp: In member function `virtual int KStyle::pixelMetric(QStyle::PixelMetric, const QWidget*) const': kstyle.cpp:975: error: `PM_MenuBarItemSpacing' undeclared (first use this function) kstyle.cpp:975: error: (Each undeclared identifier is reported only once for each function it appears in.) kstyle.cpp:978: error: `PM_ToolBarItemSpacing' undeclared (first use this function) make[2]: *** [kstyle.lo] Error 1 make[2]: Leaving directory `/var/tmp/portage/kdelibs-3.2.0/work/kdelibs-3.2.0/kdefx' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/kdelibs-3.2.0/work/kdelibs-3.2.0' make: *** [all] Error 2 !!! ERROR: kde-base/kdelibs-3.2.0 failed. !!! Function kde_src_compile, Line 127, Exitcode 2 !!! died running emake, kde_src_compile:make Reproducible: Always Steps to Reproduce: 1. emerge -u kdelibs Actual Results: kdelibs fails to emerge Expected Results: kdelibs should successfully emerge Portage 2.0.50_pre21 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20040117-r0, 2.6.0-gentoo-r1) ================================================================= System uname: 2.6.0-gentoo-r1 i686 Intel(R) Pentium(R) 4 CPU 2.26GHz Gentoo Base System version 1.4.3.12 ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59 Automake: sys-devel/automake-1.8.2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer -funroll-loops -frerun-loop-opt -frerun-cse-after-loop -falign-functions=4" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /opt/resin/conf /opt/tomcat/conf /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/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer -funroll-loops -frerun-loop-opt -frerun-cse-after-loop -falign-functions=4" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://128.213.5.34/gentoo/ http://gentoo.noved.org/ ftp://gentoo.mirrors.pair.com ftp://ftp.uesb.edu/pub/mirrors/linux/gentoo http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X aalib accessiblity acl acpi alsa apache2 apm arts avi berkdb bonobo cdr crypt cups curl dga directfb doc dvb dvd encode esd evo faad fbcon firebird flac flash foomaticdb freetds gd gdbm gif glut gnome gnomedb gpm gstreamer gtk gtk2 gtkhtml guile imagemagick imap imlib informix innodb jack java jikes joystick jpeg kde ladcca lcms ldap libg++ libgda libwww lirc mad mcal mikmod mmx motif mozcalendar mozilla mozp3p mozsvg mozxmlterm mpeg mysql nas ncurses netcdf nls nvidia oggvorbis opengl optional-tasks oss pam pdflib perl plotutils png pnp postgres python qt quicktime readline regexp rhino ruby samba sasl scanner sdl slang spell sqlite sse ssl svga tcltk tcpd tetex tiff transcode truetype unicode usb wmf wxwindows x86 xine xinerama xml xml2 xmms xosd xv xvid zlib"
You have to use a different version of Qt than 3.3.0 beta1.
I was on QT 3.2.3-r1 and was still getting the same thing, but someone recommended trying to update to QT 3.3b1 as they said that fixed the issue for them... I was getting an error before I upgraded to QT 3.3b1, and now I just downgraded back to QT 3.2.3-r1 and am still getting an error... how do I fix it now?
That doesn't make sense - this problem can only happen with Qt 3.3.0_beta1. Having 3.2.3-r1 will work fine. Look in the kstyle.cpp file and you'll see that the lines that cause you problems ONLY get compiled with 3.3.0_beta1. What's in "ls -l /usr/qt/3/lib" ?
Sorry, the actual error was different when compiled with qt-3.2.3-r1 /bin/sh ../../libtool --silent --mode=link --tag=CXX g++ -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -DNDEBUG -DNO_DEBUG -O2 -march=pentium4 -O3 -pipe -fomit-frame-pointer -funroll-loops -frerun-loop-opt -frerun-cse-after-loop -falign-functions=4 -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 -o libkscript.la -rpath /usr/kde/3.2/lib -L/usr/X11R6/lib -L/usr/qt/3/lib -L/usr/kde/3.2/lib -R /usr/kde/3.2/lib -R /usr/qt/3/lib -R /usr/X11R6/lib -no-undefined -Wl,--no-undefined -Wl,--allow-shlib-undefined scriptmanager.lo ../../kio/libkio.la /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/../../../../i686-pc-linux-gnu/bin/ld:.libs/scriptmanager.o: file format not recognized; treating as linker script /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/../../../../i686-pc-linux-gnu/bin/ld:.libs/scriptmanager.o:1: syntax error collect2: ld returned 1 exit status make[4]: *** [libkscript.la] Error 1 make[4]: Leaving directory `/var/tmp/portage/kdelibs-3.2.0/work/kdelibs-3.2.0/interfaces/kscript' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/var/tmp/portage/kdelibs-3.2.0/work/kdelibs-3.2.0/interfaces/kscript' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/kdelibs-3.2.0/work/kdelibs-3.2.0/interfaces' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/kdelibs-3.2.0/work/kdelibs-3.2.0' make: *** [all] Error 2 !!! ERROR: kde-base/kdelibs-3.2.0 failed. !!! Function kde_src_compile, Line 127, Exitcode 2 !!! died running emake, kde_src_compile:make
Could you attach the full build log, and look at what is actually in that scriptmanager.o file?
The scriptmanager.o file is apparently just binary... how do I get the full build log?
The easiest way is to use "emerge kdelibs &>some_log_file&" you can then use "tail -f" to watch things. (Remember that you need to use CTRL-C to exit tail -f)
Created attachment 25119 [details] kdelibs.log Attaching the build log...
Your cflags are pretty aggresive - tone them down and that should help fix the problem.
qt 3.3.0 is now unmasked, should I update to that or not now? Will try without updating to it with lower cflags tonight after xfree finishes updating ;)
I would definitely recommend upgrading Qt before you go to kde-3.2 if you have the time.
Hmm, its working now, before I even got a chance to do either of the previous things I mentioned, no idea what fixed it, I'll go ahead and close this bug again :)