Summary: | x11-libs/qt-webkit-4.4.2 fails to compile on ppc64 due to full TOC | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Andrew John Hughes <gnu_andrew> |
Component: | [OLD] Library | Assignee: | ppc64 architecture team <ppc64> |
Status: | VERIFIED WORKSFORME | ||
Severity: | normal | CC: | andreas.thalhammer, qt, toolchain, vapier |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | PPC64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
Build log
updated ebuild |
Description
Andrew John Hughes
2008-10-14 09:05:15 UTC
Created attachment 168382 [details]
Build log
since the ppc64 toolchain sucks, this probably needs to be worked around by appending the toc flags mentioned in the log in the ebuild Created attachment 169568 [details]
updated ebuild
Confirmed. Same problem here.
Changed the ebuild to include the -mminimal-toc flag. Had to add a src_unpack section since the qt build uses the flags from qmake. This works for me on ppc64. The -fno-optimize-sibling-calls flag did not work, however.
thanks, ive added that to cvs for now ... http://sources.gentoo.org/x11-libs/qt-webkit/qt-webkit-4.4.2.ebuild?r1=1.2&r2=1.3 also had to commit this: http://sources.gentoo.org/eclass/flag-o-matic.eclass?r1=1.125&r2=1.126 ppc64 just upgrades to gcc-4.3.2-rX which should begin to resolve these TOC issues. @vapier - how do you want to proceed on this? could you fill in the lower details ? last i looked at how the ppc64/TOC stuff worked, it seems like it was broken by design and there wasnt really anything we could do about it other than me whine like a little ho. I don't like to do this, but I am not able to recreate this bug. I'm on gcc 4.3.3-r2. What's changed between gcc 4.1.2 and gcc 4.3.*? I'm not the guy to ask. I'd recommend talking to the ppc toolchain folks, bergner or bje. I thought they had done some things to be a bit more intelligent about the TOC but that could be complete BS. Anyway, I'm going to mark this works for me. 1) upgrade your gcc if you haven't already gotten to gcc 4.3.* 2) make sure when you do the upgrade you follow the ugprade instructions on http://www.gentoo.org/doc/en/gcc-upgrading.xml If you think things are still majorly hosed, please get on #gentoo-powerpc and get in my face. I don't want to see these class of errors and want to get to the bottom of it. sticking a fork in it... I don't like the resolution anymore than you do, I'd like to see a root cause. Hi! I hate to do this, since my problem isn't at all related to x11-libs/qt-webkit, but I get a very similar error message: --- START --- Linking CXX executable kstars /usr/lib/gcc/powerpc64-unknown-linux-gnu/4.3.4/../../../../powerpc64-unknown-linux-gnu/bin/ld: CMakeFiles/kstars.dir/skyobjects/starobject.o(.text+0x18b0): sibling call optimization to `qStringComparisonHelper(QString const&, char const*)' does not allow automatic multiple TOCs; recompile with -mminimal-toc or -fno-optimize-sibling-calls, or make `qStringComparisonHelper(QString const&, char const*)' extern --- zap out --- (here come a dozen of the same message, with different ".text+0xXXXX" values) --- zap in --- /usr/lib/gcc/powerpc64-unknown-linux-gnu/4.3.4/../../../../powerpc64-unknown-linux-gnu/bin/ld: final link failed: Bad value collect2: ld gab 1 als Ende-Status zurück make[2]: *** [kstars/kstars/kstars] Fehler 1 make[1]: *** [kstars/kstars/CMakeFiles/kstars.dir/all] Fehler 2 make: *** [all] Fehler 2 * ERROR: kde-base/kstars-4.3.3 failed: * Make failed! * * Call stack: * ebuild.sh, line 54: Called src_compile * environment, line 4147: Called kde4-meta_src_compile * environment, line 3241: Called kde4-base_src_compile * environment, line 2921: Called cmake-utils_src_compile * environment, line 1088: Called _execute_optionaly 'src_compile' * environment, line 523: Called enable_cmake-utils_src_compile * environment, line 1463: Called cmake-utils_src_make * environment, line 1107: Called die * The specific snippet of code: * emake "$@" || die "Make failed!"; * * If you need support, post the output of 'emerge --info =kde-base/kstars-4.3.3', * the complete build log and the output of 'emerge -pqv =kde-base/kstars-4.3.3'. * The complete build log is located at '/var/log/portage/kde-base:kstars-4.3.3:20100309-134747.log'. * The ebuild environment file is located at '/var/tmp/portage/kde-base/kstars-4.3.3/temp/environment'. * S: '/var/tmp/portage/kde-base/kstars-4.3.3/work/kstars-4.3.3' >>> Failed to emerge kde-base/kstars-4.3.3, Log file: >>> '/var/log/portage/kde-base:kstars-4.3.3:20100309-134747.log' --- END --- The same happens when I try to emerge kmail. --- START --- # emerge -DuvN world Calculating dependencies... done! [ebuild N ] kde-base/kstars-4.3.3 USE="handbook (-aqua) -debug -fits -indi (-kdeenablefinal) (-kdeprefix)" 0 kB [ebuild NS ] kde-base/kdeedu-meta-4.3.3-r1 [3.5.10] USE="(-aqua) (-kdeprefix)" 0 kB [ebuild N ] kde-base/kmail-4.3.3 USE="handbook kontact semantic-desktop (-aqua) -debug (-kdeenablefinal) (-kdeprefix)" 0 kB [ebuild NS ] kde-base/kdepim-meta-4.3.3 [3.5.10] USE="(-aqua) (-kdeprefix)" 0 kB [ebuild NS ] kde-base/kde-meta-4.3.3 [3.5.10] USE="nls -accessibility (-aqua) (-kdeprefix)" 0 kB Total: 5 packages (2 new, 3 in new slots), Size of downloads: 0 kB --- END --- Other stuff like doing a revdep-rebuild on media-libs/jasper and media-video/transcode compiled just fine. The gcc version is: sys-devel/gcc-4.3.4, # LC_ALL="C" gcc -v --- OUTPUT START --- Using built-in specs. Target: powerpc64-unknown-linux-gnu Configured with: /var/tmp/portage/sys-devel/gcc-4.3.4/work/gcc-4.3.4/configure --prefix=/usr --bindir=/usr/powerpc64-unknown-linux-gnu/gcc-bin/4.3.4 --includedir=/usr/lib/gcc/powerpc64-unknown-linux-gnu/4.3.4/include --datadir=/usr/share/gcc-data/powerpc64-unknown-linux-gnu/4.3.4 --mandir=/usr/share/gcc-data/powerpc64-unknown-linux-gnu/4.3.4/man --infodir=/usr/share/gcc-data/powerpc64-unknown-linux-gnu/4.3.4/info --with-gxx-include-dir=/usr/lib/gcc/powerpc64-unknown-linux-gnu/4.3.4/include/g++-v4 --host=powerpc64-unknown-linux-gnu --build=powerpc64-unknown-linux-gnu --enable-altivec --disable-fixed-point --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --enable-secureplt --disable-multilib --enable-libmudflap --disable-libssp --enable-libgomp --disable-libgcj --enable-languages=c,c++,treelang,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --with-bugurl=http://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.3.4 p1.1, pie-10.1.5' Thread model: posix gcc version 4.3.4 (Gentoo 4.3.4 p1.1, pie-10.1.5) --- OUTPUT END --- Should I open a new bug for this? Do you need any logs? Which ones? Should I try something (like re-emerging gcc ???) to fix this? Thanks, Andreas. Never mind. My KMail issue became bug #308903 |