Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 63860

Summary: gcc-3.4.1-r2 fails to compile on an oldwold PPC Mac
Product: Gentoo Linux Reporter: Sumit Khanna <SKhanna21>
Component: New packagesAssignee: Gentoo Toolchain Maintainers <toolchain>
Severity: blocker CC: ppc
Priority: High    
Version: unspecified   
Hardware: PPC   
OS: Linux   
Package list:
Runtime testing required: ---
Attachments: full output from "emerge -U world --deep &> gccout-ppc.txt"
output from an emerge of gcc-3.3.3_pre20040408-r1

Description Sumit Khanna 2004-09-13 00:17:24 UTC
Whenever I try to emerge the update to gcc on my oldworld 7600/132 Macintosh, gcc fails to compile properly. This is the output:

  transformation: 0.073989, building NDFA: 40.766803, NDFA -> DFA: 16.530488
  DFA minimization: 18.661162, making insn equivalence: 0.427935
 all automaton generation: 78.086129, output: 484.461350
/bin/sh /var/tmp/portage/gcc-3.4.1-r2/work/gcc-3.4.1/gcc/move-if-change tmp-attrtab.c insn-attrtab.c
echo timestamp > s-attrtab
stage1/xgcc -Bstage1/ -B/usr/powerpc-unknown-linux-gnu/bin/   -mcpu=604 -pipe -O2 -fprofile-use -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wold-style-definition     -DHAVE_CONFIG_H    -I. -I. -I/var/tmp/portage/gcc-3.4.1-r2/work/gcc-3.4.1/gcc -I/var/tmp/portage/gcc-3.4.1-r2/work/gcc-3.4.1/gcc/. -I/var/tmp/portage/gcc-3.4.1-r2/work/gcc-3.4.1/gcc/../include  -c insn-attrtab.c \
  -o insn-attrtab.o
{standard input}: Assembler messages:
{standard input}:323813: Warning: .space repeat count is zero, ignored
insn-attrtab.c: In function `insn_default_latency':
insn-attrtab.c:5827: internal compiler error: in ggc_recalculate_in_use_p, at ggc-page.c:1468
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:> for instructions.
The bug is not reproducible, so it is likely a hardware or OS problem.
make[2]: *** [insn-attrtab.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/gcc-3.4.1-r2/work/build/gcc'
make[1]: *** [stagefeedback_build] Error 2
make[1]: Leaving directory `/var/tmp/portage/gcc-3.4.1-r2/work/build/gcc'
make: *** [profiledbootstrap] Error 2

!!! ERROR: sys-devel/gcc-3.4.1-r2 failed.
!!! Function src_compile, Line 690, Exitcode 2
!!! (no error message)

and here is my emerge info:

Gentoo Base System version 1.4.16
Portage 2.0.50-r11 (default-ppc-2004.1, gcc-3.2.3, glibc-2.3.2-r9, 2.6.7)
System uname: 2.6.7 ppc 604
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
CFLAGS="-O3 -mcpu=604 -pipe"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -mcpu=604 -pipe"
USE="berkdb bitmap-fonts cups dvd foomaticdb gdbm gif imlib jpeg libwww mitshm motif mozilla ncurses nls oggvorbis opengl oss pam perl png ppc python readline sdl slang ssl tcpd truetype xprint xv"

Reproducible: Always
Steps to Reproduce:
1. emerge -U world
2. gcc will attempt to compile
3. gcc fails to comepile with the output given above

Actual Results:  
nothing compiled and merged

Expected Results:  
gcc compiled and merged
Comment 1 Sumit Khanna 2004-09-13 00:21:05 UTC
Created attachment 39484 [details]
full output from "emerge -U world --deep &> gccout-ppc.txt"
Comment 2 Sumit Khanna 2004-09-13 15:48:33 UTC
Created attachment 39539 [details]
output from an emerge of gcc-3.3.3_pre20040408-r1

I tried to compile an older version of gcc (3.3.3_pre20040408-r1) on the same
system. The previously posted emerge info still applies. gcc once again fails
to build on my old world mac. The compiler generates a segmentation fault. See
the end of the output file for more information.
Comment 3 Luca Barbato gentoo-dev 2004-09-14 03:38:23 UTC
binutils version?
Comment 4 Pieter Van den Abeele (RETIRED) gentoo-dev 2004-09-25 04:46:47 UTC
Also could you use -mtune=604 instead of -mcpu=604. Could you also try with -O2 and get us the output of emerge -vp binutils?
Comment 5 Pieter Van den Abeele (RETIRED) gentoo-dev 2004-10-21 12:49:51 UTC
Changing this to needinfo.
Comment 6 Disenchanted (RETIRED) gentoo-dev 2004-10-31 20:00:40 UTC
i successfully merged gcc-3.4.1-r3 on a oldworld G3 i suggest you try this rev
i did bootstrap the system with a recent stage1, this system never saw gcc 3.2

Comment 7 Disenchanted (RETIRED) gentoo-dev 2004-10-31 20:02:25 UTC
bug closed, reopen if this continues to be a problem