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
Created attachment 39484 [details] full output from "emerge -U world --deep &> gccout-ppc.txt"
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.
binutils version?
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?
Changing this to needinfo.
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
bug closed, reopen if this continues to be a problem