Bug 179218 - sys-devel/gcc-4.2.0 does not work on ppc64
Bug#: 179218 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: CLOSED Severity: normal Priority: P2
Resolution: WONTFIX Assigned To: ppc64@gentoo.org Reported By: corsair@gentoo.org
Component: Applications
URL: 
Summary: sys-devel/gcc-4.2.0 does not work on ppc64
Keywords:  
Status Whiteboard: 
Opened: 2007-05-20 13:20 0000
Description:   Opened: 2007-05-20 13:20 0000
I tried to use gcc 4.2.0 in a chroot. Although it doesn't work too good.

First I used an existing chroot and updated from 4.1.1-r3 to 4.2. After
compiling this and that paludis (one of the compiled packages) didn't work
anymore. It only produced segmentation faults from then on.

As I was not able to recompile paludis without a working paludis I started from
scratch.

I unpacked a stage1, unmasked gcc 4.2.0 and ran bootstrap.sh. Now I got a
segfault while compiling glibc.

What's this bug about? Please don't add ~ppc64 to gcc 4.2.0 unless those
problems are sorted out.

------- Comment #1 From Markus Rothe 2007-05-20 13:24:55 0000 -------
Created an attachment (id=119787) [details]
log for glibc merge (incl. segfault)

------- Comment #2 From SpanKY 2007-05-20 16:52:28 0000 -------
ive been using gcc-4.2.0 on my quad without troubles, but that only extends so
far to ppc64 ... and we've shown in the past that ppc64 tends to be much more
unstable than ppc in the toolchain ...

------- Comment #3 From Markus Rothe 2007-05-20 19:02:33 0000 -------
ok. so let's find out the differences between your and mine config. could you
please send me your 'emerge --info' output?

------- Comment #4 From SpanKY 2007-05-20 23:08:50 0000 -------
when i said "ppc" i meant "ppc" :)

i havent tried ppc64, just ppc32

------- Comment #5 From Markus Rothe 2007-05-21 05:31:13 0000 -------
(In reply to comment #4)
> when i said "ppc" i meant "ppc" :)
> 
> i havent tried ppc64, just ppc32
> 

Sorry, I think I don't understand that "ive been using gcc-4.2.0 on my quad
without troubles, but that only extends so far to ppc64" then :-/

/me catches a dictionary..

------- Comment #6 From Brent Baude 2007-05-21 13:52:01 0000 -------
I think he means he's using a 32bit userland corsair...

------- Comment #7 From Markus Rothe 2007-05-21 19:19:19 0000 -------
ahh.. stupid /me. I didn't thought about that possibility. thanks..

------- Comment #8 From SpanKY 2007-05-21 19:43:46 0000 -------
yeah, the ppc64 userland is just too unstable for me to use as a desktop, so i
have a 64bit kernel with a 32bit userland ... i need KDE/firefox actually
functioning :)

sorry about that

------- Comment #9 From Brent Baude 2007-05-21 20:36:52 0000 -------
fwiw, firefox and thunderbird work quite nicely on ppc64 64ul now thanks to
some patches from the moz Gentoo team.  Sorry to derail the point of this
bug...

------- Comment #10 From SpanKY 2007-05-21 20:45:10 0000 -------
unless anyone has crazy ideas as to the source of the troubles, i think the way
to tackle this would be to take a stage3/gcc-4.1.2 system and install gcc-4.2.0
in parallel ...

then locate the simplest C-only package you can find and get it to bomb only
when compiled with gcc-4.2 ...

------- Comment #11 From Bugs Bunny 2007-05-28 13:58:06 0000 -------
Check for out of memory issues, There is a major regression on 64bit systems as
far as gcc is concerned. More detail can be found here :

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30052

It does include a patch but needs to be updated in two locations to fix the ice
it introduces on fortran.

------- Comment #12 From Tom Gall 2007-10-14 06:18:38 0000 -------
going to close this bug ...  gcc 4.2.2 seems to be dramatically improved ...
still under test .. but it's not dead yet. 4.2.0 has no chance of going stable
and we ain't fixing it.

------- Comment #13 From Tom Gall 2007-10-18 07:27:35 0000 -------
as this bug was referenced by external parties I will document this here.

http://sourceware.org/ml/libc-alpha/2006-05/msg00017.html fixes this issue for
gcc 4.2.x

------- Comment #14 From Markus Rothe 2007-10-25 14:48:07 0000 -------
added ~ppc64 to gcc-4.2.2