| Summary: | kdelibs 3.2 fails to compile | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | aent <aent> |
| Component: | [OLD] KDE | Assignee: | Gentoo KDE team <kde> |
| Status: | RESOLVED FIXED | ||
| Severity: | blocker | ||
| Priority: | High | ||
| Version: | 1.4 | ||
| Hardware: | x86 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: | kdelibs.log | ||
|
Description
aent
2004-02-04 17:12:54 UTC
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 :) |