1. stop compiling as root
2. you need extra patches to build gcc 3.3.6 using gcc 4.7
I have no idea about the extra patches, they only listed two patches.
Any suggestions?
Does the GNU make version matter?
For more info see here. You may always use the "BBCode" link below the edit window for help on this.
]]> patch -Np1 -i ../gcc-3.3.6-no_fixincludes-1.patch &&
patch -Np1 -i ../gcc-3.3.6-linkonce-1.patch &&
mkdir ../gcc-build &&
cd ../gcc-build &&
../gcc-3.3.6/configure --prefix=/opt/gcc-3.3.6 \
--enable-shared --enable-languages=c,c++ --enable-threads=posix &&
make bootstrap
But it seems I still cannot install gcc-3.3.6 correctly and here is the errors.
make GCC_FOR_TARGET=" ./xgcc -B./ -B/opt/gcc-3.3.6/i686-pc-linux-gnu/bin/ -isystem /opt/gcc-3.3.6/i686-pc-linux-gnu/include -isystem /opt/gcc-3.3.6/i686-pc-linux-gnu/sys-include" \
BUILD_PREFIX="" BUILD_PREFIX_1="ignore-" \
AR_FOR_TARGET="ar" \
AR_CREATE_FOR_TARGET="ar rc" \
AR_FLAGS_FOR_TARGET="" \
CFLAGS="-g -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long " \
RANLIB_FOR_TARGET="ranlib" \
RANLIB_TEST_FOR_TARGET="[ -f ranlib ] || ( [ "i686-pc-linux-gnu" = "i686-pc-linux-gnu" ] && [ -f /usr/bin/ranlib -o -f /bin/ranlib ] )" \
NM_FOR_TARGET="` if [ -f ./nm ] ; then echo ./nm ; elif [ -f /root/Desktop/tale/gcc-build/gcc/../binutils/nm-new ] ; then echo /root/Desktop/tale/gcc-build/gcc/../binutils/nm-new ; else if [ "i686-pc-linux-gnu" = "i686-pc-linux-gnu" ] ; then echo nm; else t='s,^,i686-pc-linux-gnu-,'; echo nm | sed -e $t ; fi; fi`" AWK="gawk" \
LIBGCC2_CFLAGS="-O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED " \
INCLUDES="-I. -I. -I../../gcc-3.3.6/gcc -I../../gcc-3.3.6/gcc/. -I../../gcc-3.3.6/gcc/config -I../../gcc-3.3.6/gcc/../include" \
CONFIG_H="tconfig.h " MACHMODE_H="machmode.h machmode.def ../../gcc-3.3.6/gcc/config/i386/i386-modes.def" \
LIB1ASMSRC='' \
MAKEOVERRIDES= \
-f libgcc.mk all
make[3]: Entering directory `/root/Desktop/tale/gcc-build/gcc'
for d in libgcc; do \
if [ -d $d ]; then true; else /bin/sh ../../gcc-3.3.6/gcc/mkinstalldirs $d; fi; \
done
if [ -f stmp-dirs ]; then true; else touch stmp-dirs; fi
./xgcc -B./ -B/opt/gcc-3.3.6/i686-pc-linux-gnu/bin/ -isystem /opt/gcc-3.3.6/i686-pc-linux-gnu/include -isystem /opt/gcc-3.3.6/i686-pc-linux-gnu/sys-include -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I../../gcc-3.3.6/gcc -I../../gcc-3.3.6/gcc/. -I../../gcc-3.3.6/gcc/config -I../../gcc-3.3.6/gcc/../include -fexceptions -c ../../gcc-3.3.6/gcc/unwind-dw2.c -o libgcc/./unwind-dw2.o
../../gcc-3.3.6/gcc/unwind-dw2.c: In function `uw_frame_state_for':
../../gcc-3.3.6/gcc/unwind-dw2.c:954: error: field `info' has incomplete type
make[3]: *** [libgcc/./unwind-dw2.o] Error 1
make[3]: Leaving directory `/root/Desktop/tale/gcc-build/gcc'
make[2]: *** [libgcc.a] Error 2
make[2]: Leaving directory `/root/Desktop/tale/gcc-build/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/root/Desktop/tale/gcc-build/gcc'
make: *** [bootstrap] Error 2
I have tried to Google for it, but nothing helps.
Do you have any suggestions?
Thank you for your advise.