Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 85593 - kdelibs-3.4.0 does not compile on ppc64
Summary: kdelibs-3.4.0 does not compile on ppc64
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC64 All
: High normal
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-16 23:32 UTC by Markus Rothe (RETIRED)
Modified: 2005-04-27 10:43 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
kde-3.4.0 compile output (kde-3.4.0-output.txt,5.11 KB, text/plain)
2005-03-16 23:33 UTC, Markus Rothe (RETIRED)
Details
patch for kdelibs-3.4.0.ebuild (kdelibs-3.4.0.ebuild.patch,946 bytes, patch)
2005-03-27 09:24 UTC, Yuta SATOH (RETIRED)
Details | Diff
patch as a workaround for kdelibs-3.4.0 (kdelibs-3.4.0-ppc64.patch,1.10 KB, patch)
2005-03-27 09:26 UTC, Yuta SATOH (RETIRED)
Details | Diff
patch as a workaround for kdelibs-3.4.0.ebuild (kdelibs-3.4.0.ebuild.patch,818 bytes, patch)
2005-04-06 07:48 UTC, Yuta SATOH (RETIRED)
Details | Diff
new patch for kdelibs-3.4.0.ebuild (kdelibs-3.4.0-ppc64.patch,1.10 KB, patch)
2005-04-13 10:02 UTC, Yuta SATOH (RETIRED)
Details | Diff
new patch for kdelibs-3.4.0.ebuild (kdelibs-3.4.0.ebuild.patch,816 bytes, patch)
2005-04-13 10:07 UTC, Yuta SATOH (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Rothe (RETIRED) gentoo-dev 2005-03-16 23:32:53 UTC
Hi,

kdelibs-3.4.0 won't compile for me on ppc64. kdelibs-3.4.0_beta1 compiled fine.

Output follows..
Comment 1 Markus Rothe (RETIRED) gentoo-dev 2005-03-16 23:33:27 UTC
Created attachment 53679 [details]
kde-3.4.0 compile output
Comment 2 Simone Gotti (RETIRED) gentoo-dev 2005-03-17 00:19:02 UTC
> ../../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.

Comment 3 Markus Rothe (RETIRED) gentoo-dev 2005-03-17 09:11:22 UTC
yes, it is reprocedurable. kdelibs-3.4.0_beta2 compiled just fine... :-/
Comment 4 Markus Rothe (RETIRED) gentoo-dev 2005-03-17 09:12:02 UTC
s/kdelibs-3.4.0_beta2/kdelibs-3.4.0_beta1
Comment 5 Yuta SATOH (RETIRED) gentoo-dev 2005-03-22 09:14:48 UTC
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. 
Comment 6 Yuta SATOH (RETIRED) gentoo-dev 2005-03-27 09:24:23 UTC
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)
Comment 7 Yuta SATOH (RETIRED) gentoo-dev 2005-03-27 09:26:14 UTC
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.
Comment 8 Markus Rothe (RETIRED) gentoo-dev 2005-03-28 10:40:23 UTC
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
Comment 9 Gregorio Guidi (RETIRED) gentoo-dev 2005-03-28 10:53:54 UTC
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.
Comment 10 Markus Rothe (RETIRED) gentoo-dev 2005-03-29 09:43:11 UTC
here we go: http://bugs.kde.org/show_bug.cgi?id=102777
Comment 11 Yuta SATOH (RETIRED) gentoo-dev 2005-03-30 10:56:51 UTC
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.
Comment 12 Yuta SATOH (RETIRED) gentoo-dev 2005-04-06 07:48:19 UTC
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.
Comment 13 Kraml Liu 2005-04-08 09:31:05 UTC
On my system this bug disappeared after change the -O2 cflag to -O1
Comment 14 Gregorio Guidi (RETIRED) gentoo-dev 2005-04-13 06:59:27 UTC
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?
Comment 15 Yuta SATOH (RETIRED) gentoo-dev 2005-04-13 10:02:27 UTC
Created attachment 56178 [details, diff]
new patch for kdelibs-3.4.0.ebuild

Gregorio, I found that it could compile by adding "-fno-gcse" .
Comment 16 Yuta SATOH (RETIRED) gentoo-dev 2005-04-13 10:07:34 UTC
Created attachment 56179 [details, diff]
new patch for kdelibs-3.4.0.ebuild

I'm sorry.
I attached the wrong file in comment #15.
Comment 17 Markus Rothe (RETIRED) gentoo-dev 2005-04-27 10:43:50 UTC
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 :-)