Hi,
I try to install two versions of gcc in parallel. The version 4.4 is already installed in Fedora 12 but due to some problems with boost I need also 4.1. I tried to compile this version but I always got the following compiler error:
Code:
# make
make[1]: Entering directory `/opt/gcc-4.1.2'
make[2]: Entering directory `/opt/gcc-4.1.2/host-x86_64-unknown-linux-gnu/zlib'
true "AR_FLAGS=rc" "CC_FOR_BUILD=gcc" "CFLAGS=-g -O2" "CXXFLAGS=-g -O2" "CFLAGS_FOR_BUILD=-g -O2" "CFLAGS_FOR_TARGET=-O2 -g -O2 " "INSTALL=/usr/bin/install -c" "INSTALL_DATA=/usr/bin/install -c -m 644" "INSTALL_PROGRAM=/usr/bin/install -c" "INSTALL_SCRIPT=/usr/bin/install -c" "LDFLAGS=" "LIBCFLAGS=-g -O2" "LIBCFLAGS_FOR_TARGET=-O2 -g -O2 " "MAKE=make" "MAKEINFO=/opt/gcc-4.1.2/missing makeinfo --split-size=5000000 --split-size=5000000 " "PICFLAG=" "PICFLAG_FOR_TARGET=" "SHELL=/bin/sh" "EXPECT=expect" "RUNTEST=runtest" "RUNTESTFLAGS=" "exec_prefix=/opt/gcc" "infodir=/opt/gcc/info" "libdir=/opt/gcc/lib" "prefix=/opt/gcc" "tooldir=/opt/gcc/x86_64-unknown-linux-gnu" "AR=ar" "AS=as" "CC=gcc" "CXX=c++" "LD=ld" "LIBCFLAGS=-g -O2" "NM=nm" "PICFLAG=" "RANLIB=ranlib" "DESTDIR=" DO=all multi-do # make
make[2]: Leaving directory `/opt/gcc-4.1.2/host-x86_64-unknown-linux-gnu/zlib'
make[2]: Entering directory `/opt/gcc-4.1.2/host-x86_64-unknown-linux-gnu/libiberty'
make[3]: Entering directory `/opt/gcc-4.1.2/host-x86_64-unknown-linux-gnu/libiberty/testsuite'
make[3]: Für das Ziel »all« ist nichts zu tun.
make[3]: Leaving directory `/opt/gcc-4.1.2/host-x86_64-unknown-linux-gnu/libiberty/testsuite'
make[2]: Leaving directory `/opt/gcc-4.1.2/host-x86_64-unknown-linux-gnu/libiberty'
make[2]: Entering directory `/opt/gcc-4.1.2/host-x86_64-unknown-linux-gnu/fastjar'
make "AR_FLAGS=rc" "CC_FOR_BUILD=gcc" "CFLAGS=-g -O2" "CXXFLAGS=-g -O2" "CFLAGS_FOR_BUILD=-g -O2" "CFLAGS_FOR_TARGET=-O2 -g -O2 " "INSTALL=/usr/bin/install -c" "INSTALL_DATA=/usr/bin/install -c -m 644" "INSTALL_PROGRAM=/usr/bin/install -c" "INSTALL_SCRIPT=/usr/bin/install -c" "JC1FLAGS=" "LDFLAGS=" "LIBCFLAGS=-g -O2" "LIBCFLAGS_FOR_TARGET=-O2 -g -O2 " "MAKE=make" "MAKEINFO=/opt/gcc-4.1.2/missing makeinfo --split-size=5000000 --split-size=5000000 " "PICFLAG=" "PICFLAG_FOR_TARGET=" "SHELL=/bin/sh" "exec_prefix=/opt/gcc" "infodir=/opt/gcc/info" "libdir=/opt/gcc/lib" "prefix=/opt/gcc" "AR=ar" "AS=as" "CC=gcc" "CXX=c++" "LD=ld" "LIBCFLAGS=-g -O2" "NM=nm" "PICFLAG=" "RANLIB=ranlib" "DESTDIR=" all-am
make[3]: Entering directory `/opt/gcc-4.1.2/host-x86_64-unknown-linux-gnu/fastjar'
restore=: && backupdir=".am$$" && \
rm -rf $backupdir && mkdir $backupdir && \
for f in fastjar.info fastjar.info-[0-9] fastjar.info-[0-9][0-9] fastjar.i[0-9] fastjar.i[0-9][0-9]; do \
if test -f $f; then mv $f $backupdir; restore=mv; else :; fi; \
done; \
if /opt/gcc-4.1.2/missing makeinfo --split-size=5000000 --split-size=5000000 -I ../.././fastjar/../gcc/doc/include -I ../.././fastjar \
-o fastjar.info `test -f 'fastjar.texi' || echo '../.././fastjar/'`fastjar.texi; \
then \
rc=0; \
else \
rc=$?; \
$restore $backupdir/* `echo "./fastjar.info" | sed 's|[^/]*$||'`; \
fi; \
rm -rf $backupdir; exit $rc
WARNING: `makeinfo' is missing on your system. You should only need it if
you modified a `.texi' or `.texinfo' file, or any other file
indirectly affecting the aspect of the manual. The spurious
call might also be the consequence of using a buggy `make' (AIX,
DU, IRIX). You might want to install the `Texinfo' package or
the `GNU make' package. Grab either from any GNU archive site.
make[3]: *** [fastjar.info] Fehler 1
make[3]: Leaving directory `/opt/gcc-4.1.2/host-x86_64-unknown-linux-gnu/fastjar'
make[2]: *** [all] Fehler 2
make[2]: Leaving directory `/opt/gcc-4.1.2/host-x86_64-unknown-linux-gnu/fastjar'
make[1]: *** [all-fastjar] Fehler 2
make[1]: Leaving directory `/opt/gcc-4.1.2'
make: *** [all] Fehler 2
I tried 4.1.1 and 4.1.2 and got the same error in both versions. makeinfo is also installed and configure found it but I still get the warning about it.
Does anyone know how to install two versions of gcc or how to overcome this error?
Thanks,
Markus