kdebase 3.1 fails to compile on ppc. Following is the error: /bin/sh ../../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/kde/3.1/include -I/usr/qt/3/include -I/usr/X11R6/include -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -DNDEBUG -DNO_DEBUG -O2 -O2 -pipe -mcpu=7450 -maltivec -mabi=altivec -mpowerpc-gfxopt -fsigned-char -fno-exceptions -fno-check-new -DQT_CLEAN_NAMESPACE -DQT_NO_COMPAT -DQT_NO_ASCII_CAST -D_GNU_SOURCE -c -o usbdb.lo `test -f 'usbdb.cpp' || echo './'`usbdb.cpp In file included from /usr/include/g++-v32/backward/iostream.h:31, from usbdb.cpp:12: /usr/include/g++-v32/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated. usbdevices.cpp: In member function `void USBDevice::parseLine(QString)': usbdevices.cpp:78: warning: unsigned int format, int arg (arg 3) usbdevices.cpp:78: warning: unsigned int format, int arg (arg 4) usbdevices.cpp:78: warning: unsigned int format, int arg (arg 5) usbdevices.cpp:78: warning: unsigned int format, int arg (arg 7) usbdevices.cpp:78: warning: unsigned int format, int arg (arg 8) usbdevices.cpp:84: warning: unsigned int format, int arg (arg 3) usbdevices.cpp:84: warning: unsigned int format, int arg (arg 4) usbdevices.cpp:84: warning: unsigned int format, int arg (arg 5) usbdevices.cpp:84: warning: unsigned int format, int arg (arg 6) usbdb.cpp: In member function `USBDB::USBDB()': usbdb.cpp:43: warning: unused variable `int len' /bin/sh ../../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/kde/3.1/include -I/usr/qt/3/include -I/usr/X11R6/include -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -DNDEBUG -DNO_DEBUG -O2 -O2 -pipe -mcpu=7450 -maltivec -mabi=altivec -mpowerpc-gfxopt -fsigned-char -fno-exceptions -fno-check-new -DQT_CLEAN_NAMESPACE -DQT_NO_COMPAT -DQT_NO_ASCII_CAST -D_GNU_SOURCE -c -o kcmusb.lo `test -f 'kcmusb.cpp' || echo './'`kcmusb.cpp /bin/sh ../../libtool --silent --mode=link --tag=CXX g++ -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -DNDEBUG -DNO_DEBUG -O2 -O2 -pipe -mcpu=7450 -maltivec -mabi=altivec -mpowerpc-gfxopt -fsigned-char -fno-exceptions -fno-check-new -DQT_CLEAN_NAMESPACE -DQT_NO_COMPAT -DQT_NO_ASCII_CAST -D_GNU_SOURCE -o kcm_usb.la.closure kcm_usb_la_closure.lo -L/usr/X11R6/lib -L/usr/qt/3/lib -L/usr/kde/3.1/lib -module -avoid-version -no-undefined kcmusb.lo usbdevices.lo usbdb.lo -lkdeui /bin/sh ../../libtool --silent --mode=link --tag=CXX g++ -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -DNDEBUG -DNO_DEBUG -O2 -O2 -pipe -mcpu=7450 -maltivec -mabi=altivec -mpowerpc-gfxopt -fsigned-char -fno-exceptions -fno-check-new -DQT_CLEAN_NAMESPACE -DQT_NO_COMPAT -DQT_NO_ASCII_CAST -D_GNU_SOURCE -o kcm_usb.la -rpath /usr/kde/3.1/lib/kde3 -L/usr/X11R6/lib -L/usr/qt/3/lib -L/usr/kde/3.1/lib -module -avoid-version -no-undefined kcmusb.lo usbdevices.lo usbdb.lo -lkdeui /usr/lib/gcc-lib/powerpc-unknown-linux-gnu/3.2.1/../../../../powerpc-unknown-linux-gnu/bin/ld: .libs/kcm_usb.so: Not enough room for program headers (allocated 3, need 4) /usr/lib/gcc-lib/powerpc-unknown-linux-gnu/3.2.1/../../../../powerpc-unknown-linux-gnu/bin/ld: final link failed: Bad value collect2: ld returned 1 exit status make[3]: *** [kcm_usb.la] Error 1 make[3]: Leaving directory `/var/tmp/portage/kdebase-3.1/work/kdebase-3.1/kcontrol/usbview' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/kdebase-3.1/work/kdebase-3.1/kcontrol' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/kdebase-3.1/work/kdebase-3.1' make: *** [all] Error 2
Yep, I saw the same thing last night as well. It worked fine on 2 other occasions, I think this may be related to a binutils issue which I heard talk about. Here's my error: /bin/sh ../../libtool --silent --mode=link --tag=CXX g++ -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -DNDEBUG -DNO_DEBUG -O2 -fno-exceptions -fno-check-new -DQT_CLEAN_NAMESPACE -DQT_NO_COMPAT -DQT_NO_ASCII_CAST -D_GNU_SOURCE -o sysguard_panelapplet.la -rpath /usr/kde/3.1/lib/kde3 -module -avoid-version -module -no-undefined -R /usr/kde/3.1/lib -R /usr/qt/3/lib -R /usr/X11R6/lib -L/usr/X11R6/lib -L/usr/qt/3/lib -L/usr/kde/3.1/lib KSysGuardApplet.lo KSGAppletSettings.lo KSGAppletSettingsWidget.lo ksgrd/libksgrd.la SensorDisplayLib/libsensordisplays.la -lkdeui -lkio /usr/lib/gcc-lib/powerpc-unknown-linux-gnu/3.2.1/../../../../powerpc-unknown-linux-gnu/bin/ld: .libs/sysguard_panelapplet.so: Not enough room for program headers (allocated 3, need 4) /usr/lib/gcc-lib/powerpc-unknown-linux-gnu/3.2.1/../../../../powerpc-unknown-linux-gnu/bin/ld: final link failed: Bad value collect2: ld returned 1 exit status make[4]: *** [sysguard_panelapplet.la] Error 1 make[4]: Leaving directory `/var/tmp/portage/kdebase-3.1/work/kdebase-3.1/ksysguard/gui' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/var/tmp/portage/kdebase-3.1/work/kdebase-3.1/ksysguard/gui' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/kdebase-3.1/work/kdebase-3.1/ksysguard' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/kdebase-3.1/work/kdebase-3.1' make: *** [all] Error 2 !!! ERROR: kde-base/kdebase-3.1 failed. !!! Function kde_src_compile, Line -9144, Exitcode 2 !!! died running emake, kde_src_compile:make
roughneck: Can you try updating to the .18 binutils, seems to have cleared it up according to nall (whos fighting with it on my box currently). If you can rebuild that version and rebuild KDE and report results would be great. I tiwll probably get bumped to ppc stable tonight or tomorrow (once we've ounded on it a bit more).
sure -- I will run that compile when I get home tonight -- I will hopefully get reports before the morning :P
roughneck, before binutils merging, can you post what gcc/glibc/binutils you have installed? gerk's machine was: glibc-2.3.1-r2 gcc-3.2.1 binutils-2.13.0.90.16 upgrading to binutils-2.13.0.90.18 did the trick thanks. nall.
sure -- I am running: glibc-2.3.1-r2 gcc-3.2.1 binutils-2.13.90.0.16 You still want me to upgrade binutils and retry kde ?
if you don't mind. .18 is going to move to stable assuming this works for everyone w/ kde linker problems. thanks.
It worked perfectly for me here, kde + mozilla all compiled happily, so I think that .18 will be promoted to stable for us very soon provided no one else has problems with it
Thanks -- the binutils upgrade has fixed this problem -- kde is happily compiling along ( about to finish kdentwork now...)
this is fixed by bumping binutils stable to 2.13.90.0.18. committed and in CVS.
*** Bug 15209 has been marked as a duplicate of this bug. ***