How to build gcc 4.3.1 using gcc 4.3.0?

Andrew Haley aph@redhat.com
Sat Jun 7 18:21:00 GMT 2008


Sven.Hartrumpf@FernUni-Hagen.de wrote:
> Hi all.
> Building gcc 4.3.1 using gcc 4.3.0 fails
> for me in "make bootstrap" after successful
> ../gcc-4.3.1/configure --enable-checking="" --enable-threads=posix --program-suffix=431 --disable-nls --with-mpfr=/opt/mpfr
> 
> echo ../../../gcc-4.3.1/libjava/classpath/lib/gnu/java/nio/channels/*.class > gnu/java/nio/channels.list
> /bin/sh ./libtool --tag=GCJ --mode=compile /home/sven/tmp/gcc-build/gcc/gcj -B/home/sven/tmp/gcc-build/i686-pc-linux-gnu/libjava/ -B/home/sven/tmp/gcc-build/gcc/ -ffloat-store -fomit-frame-pointer -Usun -fclasspath= -fbootclasspath=../../../gcc-4.3.1/libjava/classpath/lib --encoding=UTF-8 -Wno-deprecated -fbootstrap-classes -g -O2 -c -o gnu/java/nio/channels.lo -fsource-filename=/home/sven/tmp/gcc-build/i686-pc-linux-gnu/libjava/classpath/lib/classes -MT gnu/java/nio/channels.lo -MD -MP -MF gnu/java/nio/channels.deps @gnu/java/nio/channels.list
> libtool: compile:  /home/sven/tmp/gcc-build/gcc/gcj -B/home/sven/tmp/gcc-build/i686-pc-linux-gnu/libjava/ -B/home/sven/tmp/gcc-build/gcc/ -ffloat-store -fomit-frame-pointer -Usun -fclasspath= -fbootclasspath=../../../gcc-4.3.1/libjava/classpath/lib --encoding=UTF-8 -Wno-deprecated -fbootstrap-classes -g -O2 -c -fsource-filename=/home/sven/tmp/gcc-build/i686-pc-linux-gnu/libjava/classpath/lib/classes -MT gnu/java/nio/channels.lo -MD -MP -MF gnu/java/nio/channels.deps @gnu/java/nio/channels.list  -fPIC -o gnu/java/nio/.libs/channels.o
> /home/sven/tmp/gcc-4.3.1/libjava/gnu/java/nio/channels/FileChannelImpl.java: In class 'gnu.java.nio.channels.FileChannelImpl':
> /home/sven/tmp/gcc-4.3.1/libjava/gnu/java/nio/channels/FileChannelImpl.java: In method 'gnu.java.nio.channels.FileChannelImpl.force(boolean)':
> /home/sven/tmp/gcc-4.3.1/libjava/gnu/java/nio/channels/FileChannelImpl.java:308: internal compiler error: Segmentation fault
> Please submit a full bug report,
> with preprocessed source if appropriate.
> See <http://gcc.gnu.org/bugs.html> for instructions.
> make[3]: *** [gnu/java/nio/channels.lo] Error 1
> make[3]: Leaving directory `/home/sven/tmp/gcc-build/i686-pc-linux-gnu/libjava'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/home/sven/tmp/gcc-build/i686-pc-linux-gnu/libjava'
> make[1]: *** [all-target-libjava] Error 2
> make[1]: Leaving directory `/home/sven/tmp/gcc-build'
> make: *** [bootstrap] Error 2
> 
>> uname -a
> Linux ... 2.6.22.17-0.1-default #1 SMP 2008/02/10 20:01:04 UTC i686 athlon i386 GNU/Linux

How very strange; it's the newly-built bootstrapped compiler that's failing.

At this point, I'd try just "make" (no arguments) in the top-level
directory.

Andrew.



More information about the Gcc-help mailing list