Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 63860 - gcc-3.4.1-r2 fails to compile on an oldwold PPC Mac
Summary: gcc-3.4.1-r2 fails to compile on an oldwold PPC Mac
Status: VERIFIED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: PPC Linux
: High blocker (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-13 00:17 UTC by Sumit Khanna
Modified: 2004-10-31 20:02 UTC (History)
1 user (show)

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


Attachments
full output from "emerge -U world --deep &> gccout-ppc.txt" (gccout-ppc.txt,871.88 KB, text/plain)
2004-09-13 00:21 UTC, Sumit Khanna
Details
output from an emerge of gcc-3.3.3_pre20040408-r1 (gcc-3.3.3_pre20040408-r1.out,580.71 KB, text/plain)
2004-09-13 15:48 UTC, Sumit Khanna
Details

Note You need to log in before you can comment on or make changes to this bug.
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:http://bugs.gentoo.org/> 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
ACCEPT_KEYWORDS="ppc"
AUTOCLEAN="yes"
CFLAGS="-O3 -mcpu=604 -pipe"
CHOST="powerpc-unknown-linux-gnu"
COMPILER=""
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"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache"
GENTOO_MIRRORS="http://gentoo.osuosl.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://bacchus.olympus/gentoo-portage"
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