------- Comment #6 from Daniel dot Davies at xerox dot com 2005-12-13 22:12 ------- (In reply to comment #0) > I try to install gcc 4.1; I have > > $ svn info > Path: . > URL: svn://gcc.gnu.org/svn/gcc/branches/gcc-4_1-branch > Repository UUID: 138bc75d-0d04-0410-961f-82ee72b054a4 > Revision: 107570 > Node Kind: directory > Schedule: normal > Last Changed Author: kargl > Last Changed Rev: 107569 > Last Changed Date: 2005-11-27 09:51:54 -0600 (Sun, 27 Nov 2005) > Properties Last Updated: 2005-11-27 14:41:39 -0600 (Sun, 27 Nov 2005) > > I configured with > > $ CFLAGS='-g -O2 -mcpu=G4 -mabi=altivec -mlongcall' CXXFLAGS='-g -O2 -mcpu=G4 > -mabi=altivec -mlongcall' FCFLAGS='-g -O2 -mcpu=G4 -mabi=altivec -mlongcall' > /Users/eschnett/src/gcc-4.1/configure --prefix=/Users/eschnett/gcc > --with-mpfr=/Users/eschnett --disable-multilib > --enable-languages=c,c++,fortran,java,objc,treelang > > and a "make boostrap" results in > > ./xgcc -B./ -B/Users/eschnett/gcc/powerpc-apple-darwin8.3.0/bin/ -isystem > /Users/eschnett/gcc/powerpc-apple-darwin8.3.0/include -isystem > /Users/eschnett/gcc/powerpc-apple-darwin8.3.0/sys-include > -L/Users/eschnett/src/gcc-build-4.1/gcc/../ld -O2 -O2 -g -O2 -mcpu=G4 > -mabi=altivec -mlongcall -DIN_GCC -W -Wall -Wwrite-strings > -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem > ./include -Wa,-force_cpusubtype_ALL -pipe -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 > -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I/Users/eschnett/src/gcc-4.1/gcc > -I/Users/eschnett/src/gcc-4.1/gcc/. > -I/Users/eschnett/src/gcc-4.1/gcc/../include -I./../intl > -I/Users/eschnett/src/gcc-4.1/gcc/../libcpp/include -I/Users/eschnett/include > -fexceptions -fvisibility=hidden -DHIDE_EXPORTS -c > /Users/eschnett/src/gcc-4.1/gcc/unwind-dw2.c -o libgcc/./unwind-dw2.o > /Users/eschnett/src/gcc-4.1/gcc/unwind.inc: In function > ‘_Unwind_RaiseException’: > /Users/eschnett/src/gcc-4.1/gcc/unwind.inc:140: internal compiler error: in > rs6000_emit_prologue, at config/rs6000/rs6000.c:14039 > Please submit a full bug report, > with preprocessed source if appropriate. > See <URL:http://gcc.gnu.org/bugs.html> for instructions. > {standard input}:4874:non-relocatable subtraction expression, "L_abort$stub" > minus "L550_pic" > {standard input}:4874:symbol: "L_abort$stub" can't be undefined in a > subtraction expression > {standard input}:4872:non-relocatable subtraction expression, "L_abort$stub" > minus "L550_pic" > {standard input}:4872:symbol: "L_abort$stub" can't be undefined in a > subtraction expression > {standard input}:4602:non-relocatable subtraction expression, "L_abort$stub" > minus "L517_pic" > {standard input}:4602:symbol: "L_abort$stub" can't be undefined in a > subtraction expression > {standard input}:4600:non-relocatable subtraction expression, "L_abort$stub" > minus "L517_pic" > > [some similar lines omitted] > > {standard input}:unknown:Undefined local symbol L_abort$stub > {standard input}:unknown:Undefined local symbol L__Unwind_Find_FDE$stub > {standard input}:unknown:Undefined local symbol L_memcpy$stub > {standard input}:unknown:Undefined local symbol L_memset$stub > {standard input}:unknown:Undefined local symbol > L__Unwind_fallback_frame_state_for$stub > {standard input}:unknown:Undefined local symbol L_strlen$stub > {standard input}:unknown:Undefined local symbol L_pthread_once$stub > make[3]: *** [libgcc/./unwind-dw2.o] Error 1 > make[2]: *** [libgcc.a] Error 2 > make[1]: *** [stage1_build] Error 2 > make: *** [bootstrap] Error 2 > I had exactly the same bug when attempting to build gcc-4.0.1 and gcc-4.0.2 on Mac OSX 10.4.3 (Mac Mini, 512 MB memory). I used cd build ../gcc-4.0.2/configure --with-cpu=7450 --with-float=hard --disable-nls ... make bootstrap.
Changing to ../gcc-4.0.2/configure --disable-nls appears to have solved the problem. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25127