This seems to be a really common problem. I need an older version of GCC to run in parallel with the default GCC running on SUSE11. I have followed all the steps described both in this forum and at the GCC site (GCC Frequently Asked Questions - GNU Project - Free Software Foundation (FSF)).
Namely, I download the gcc-3.4.0.tar.gz and unzip/untar into a gcc3 dir. Then I create a gcc3/objdir and run configure from there:
…/gcc-3.4.0/configure --prefix=/opt/gcc34 --program-suffix=34 --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --disable-libunwind-exceptions --enable-__cxa_atexit
Then I start the build:
make -j2 bootstrap
…AND after some compiling the build exits with errors like
s-traent.ads:61:01: (style) blank lines not allowed at end of file
a-exexda.adb:346:01: (style) multiple blank lines
a-exextr.adb:216:01: (style) multiple blank lines
make[2]: *** [ada/a-except.o] Error 1
make[2]: Leaving directory gcc3/objdir/gcc' make[1]: *** [stage1_build] Error 2 make[1]: Leaving directory
gcc3/objdir/gcc’
make: *** [bootstrap] Error 2
At this point I’m really out of ideas! Please help!