Hi, kdelibs-3.4.0 won't compile for me on ppc64. kdelibs-3.4.0_beta1 compiled fine. Output follows..
Created attachment 53679 [details] kde-3.4.0 compile output
> ../../dcop/dcopidl2cpp/dcopidl2cpp --c++-suffix cpp --no-signals --no-skel observer.kidl > make[3]: *** [observer_stub.h] Segmentation fault > make[3]: *** Deleting file `observer_stub.h' > make[3]: *** Waiting for unfinished jobs.... Can you reproduce this again in the same point? Usually these kind of gcc segfaults are due to hardware problems if they happens randomly.
yes, it is reprocedurable. kdelibs-3.4.0_beta2 compiled just fine... :-/
s/kdelibs-3.4.0_beta2/kdelibs-3.4.0_beta1
This problem reproduce also in my environment. I will investigate about this problem, when I have free time. It seems that this package can be compiled normally in PPC64 port of Fedora. I will investigate about the difference between Gentoo/PPC64 and Fedora.
Created attachment 54605 [details, diff] patch for kdelibs-3.4.0.ebuild The problem in which Segmentation fault occurs during compile is because 'use ppc64 && append-flags -mminimal-toc' was deleted from ebuild. (please see Bug #58179 if necessary) And, kdelibs-3.4.0 still need the patch about a keyboard shortcut problem. (please see Bug #63529 if necessary)
Created attachment 54606 [details, diff] patch as a workaround for kdelibs-3.4.0 Moreover, kdelibs-3.4.0 has the problem which displays 'undefined symbol'. This was not displayed on version 3.3.x. For example, the following messages are displayed. kdecore (KLibLoader): WARNING: KLibrary: /usr/kde/3.4/lib/kde3/kcm_kdnssd.so: undefined symbol: init_kdnssd The attached file is the patch as a workaround of this problem.
good job nigoro! I think we should make this upstream, should we? Then we'll get a "real" solution, which will fix this for any further releases of kdelibs. Or do I miss an argument? Markus
Yes, I would be interested in going deeper with this issue, too, because the connection between -mminimal-toc and dcopidl2cpp segfaulting is not trivial, and maybe it's a symptom of something else going wrong at a deeper level that should be discussed with kde devs.
here we go: http://bugs.kde.org/show_bug.cgi?id=102777
I'm sorry to be unable to react quickly. I know that kdelibs-3.3.0 have compiled without -mminimal-toc in the past. It's a time of glibc-20040605 being marked as a stable version. (please see Bug #62121 if necessary) I think that we also need to suspect the possibility of the problem by gcc, binutils, and glibc. In addition, the problem of comment 7 is a duplicate of Bug #78720. It's solved by gcc-3.4.3-20050110-r1. Thank you.
Created attachment 55476 [details, diff] patch as a workaround for kdelibs-3.4.0.ebuild Please try this patch, if you want to compile now.
On my system this bug disappeared after change the -O2 cflag to -O1
It seems that ppc64 gcc is at fault then, can someone try to see if there's a specific gcc flag included in "-O2" that triggers the bug?
Created attachment 56178 [details, diff] new patch for kdelibs-3.4.0.ebuild Gregorio, I found that it could compile by adding "-fno-gcse" .
Created attachment 56179 [details, diff] new patch for kdelibs-3.4.0.ebuild I'm sorry. I attached the wrong file in comment #15.
Thx nigoro!! I can confirm that the latest patch for the ebuild works. I've added it to portage and added ~ppc64 to kde-libs-3.4.0-r1. Currently I'm adding ~ppc64 to kde-meta and the deps. So we'll have a ~ppc64'd kde-3.4 in the next future :-)