Добрый день, прошу помощи в установке gcc-4.1 (g++4.1). Пытаюсь собрать из исходных кодов, так как в .deb пакетах нигде не находит, через apt-get installl также нет в репозитариях.
# ./configure
loading cache ./config.cache
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking build system type... x86_64-unknown-linux-gnu
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether ln works... (cached) yes
checking whether ln -s works... (cached) yes
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gnatbind... no
checking whether compiler driver understands Ada... (cached) no
checking how to compare bootstrapped objects... (cached) cmp --ignore-initial=16 $$f1 $$f2
checking for correct version of gmp.h... yes
checking for MPFR... yes
The following languages will be built: c,c++,fortran,java,objc
*** This configuration is not supported in the following subdirectories:
target-libada gnattools
(Any other directories should still work fine.)
*** removing build-x86_64-unknown-linux-gnu/libiberty/Makefile to force reconfigure
*** removing build-x86_64-unknown-linux-gnu/fixincludes/Makefile to force reconfigure
checking for bison... (cached) bison -y
checking for bison... (cached) bison
checking for gm4... (cached) m4
checking for flex... (cached) flex
checking for flex... (cached) flex
checking for makeinfo... (cached) makeinfo
checking for expect... no
checking for runtest... no
checking for x86_64-unknown-linux-gnu-ar... (cached) ar
checking for x86_64-unknown-linux-gnu-as... (cached) as
checking for x86_64-unknown-linux-gnu-dlltool... no
checking for dlltool... no
checking for x86_64-unknown-linux-gnu-ld... (cached) ld
checking for x86_64-unknown-linux-gnu-lipo... no
checking for lipo... no
checking for x86_64-unknown-linux-gnu-nm... (cached) nm
checking for x86_64-unknown-linux-gnu-ranlib... (cached) ranlib
checking for x86_64-unknown-linux-gnu-strip... (cached) strip
checking for x86_64-unknown-linux-gnu-windres... no
checking for windres... no
checking for x86_64-unknown-linux-gnu-objcopy... (cached) objcopy
checking for x86_64-unknown-linux-gnu-objdump... (cached) objdump
checking for x86_64-unknown-linux-gnu-ar... (cached) ar
checking for x86_64-unknown-linux-gnu-as... (cached) as
checking for x86_64-unknown-linux-gnu-cc... (cached) cc
checking for x86_64-unknown-linux-gnu-c++... (cached) c++
checking for x86_64-unknown-linux-gnu-dlltool... no
checking for dlltool... no
checking for x86_64-unknown-linux-gnu-gcc... (cached) gcc
checking for x86_64-unknown-linux-gnu-gcj... no
checking for gcj... no
checking for x86_64-unknown-linux-gnu-gfortran... no
checking for gfortran... no
checking for x86_64-unknown-linux-gnu-ld... (cached) ld
checking for x86_64-unknown-linux-gnu-lipo... no
checking for lipo... no
checking for x86_64-unknown-linux-gnu-nm... (cached) nm
checking for x86_64-unknown-linux-gnu-objdump... (cached) objdump
checking for x86_64-unknown-linux-gnu-ranlib... (cached) ranlib
checking for x86_64-unknown-linux-gnu-strip... (cached) strip
checking for x86_64-unknown-linux-gnu-windres... no
checking for windres... no
checking where to find the target ar... host tool
checking where to find the target as... host tool
checking where to find the target cc... just compiled
checking where to find the target c++... just compiled
checking where to find the target c++ for libstdc++... just compiled
checking where to find the target dlltool... host tool
checking where to find the target gcc... just compiled
checking where to find the target gcj... just compiled
checking where to find the target gfortran... just compiled
checking where to find the target ld... host tool
checking where to find the target lipo... host tool
checking where to find the target nm... host tool
checking where to find the target objdump... host tool
checking where to find the target ranlib... host tool
checking where to find the target strip... host tool
checking where to find the target windres... host tool
checking whether to enable maintainer-specific portions of Makefiles... no
checking if symbolic links between directories work... (cached) yes
creating ./config.status
creating Makefile
А при make уже выстреливает с ошибками... :
# make
make[1]: Вход в каталог `/home/detector/gcc-4.1.1'
make[2]: Вход в каталог `/home/detector/gcc-4.1.1/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=makeinfo --split-size=5000000 --split-size=5000000 " "PICFLAG=" "PICFLAG_FOR_TARGET=" "SHELL=/bin/sh" "EXPECT=expect" "RUNTEST=runtest" "RUNTESTFLAGS=" "exec_prefix=/usr/local" "infodir=/usr/local/info" "libdir=/usr/local/lib" "prefix=/usr/local" "tooldir=/usr/local/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]: Выход из каталога `/home/detector/gcc-4.1.1/host-x86_64-unknown-linux-gnu/zlib'
make[2]: Вход в каталог `/home/detector/gcc-4.1.1/host-x86_64-unknown-linux-gnu/libiberty'
make[3]: Вход в каталог `/home/detector/gcc-4.1.1/host-x86_64-unknown-linux-gnu/libiberty/testsuite'
make[3]: Цель `all' не требует выполнения команд.
make[3]: Выход из каталога `/home/detector/gcc-4.1.1/host-x86_64-unknown-linux-gnu/libiberty/testsuite'
make[2]: Выход из каталога `/home/detector/gcc-4.1.1/host-x86_64-unknown-linux-gnu/libiberty'
make[2]: Вход в каталог `/home/detector/gcc-4.1.1/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=makeinfo --split-size=5000000 --split-size=5000000 " "PICFLAG=" "PICFLAG_FOR_TARGET=" "SHELL=/bin/sh" "exec_prefix=/usr/local" "infodir=/usr/local/info" "libdir=/usr/local/lib" "prefix=/usr/local" "AR=ar" "AS=as" "CC=gcc" "CXX=c++" "LD=ld" "LIBCFLAGS=-g -O2" "NM=nm" "PICFLAG=" "RANLIB=ranlib" "DESTDIR=" all-am
make[3]: Вход в каталог `/home/detector/gcc-4.1.1/host-x86_64-unknown-linux-gnu/fastjar'
make[3]: Выход из каталога `/home/detector/gcc-4.1.1/host-x86_64-unknown-linux-gnu/fastjar'
make[2]: Выход из каталога `/home/detector/gcc-4.1.1/host-x86_64-unknown-linux-gnu/fastjar'
make[2]: Вход в каталог `/home/detector/gcc-4.1.1/host-x86_64-unknown-linux-gnu/fixincludes'
make[2]: Цель `all' не требует выполнения команд.
make[2]: Выход из каталога `/home/detector/gcc-4.1.1/host-x86_64-unknown-linux-gnu/fixincludes'
make[2]: Вход в каталог `/home/detector/gcc-4.1.1/host-x86_64-unknown-linux-gnu/intl'
make[2]: Цель `all' не требует выполнения команд.
make[2]: Выход из каталога `/home/detector/gcc-4.1.1/host-x86_64-unknown-linux-gnu/intl'
make[2]: Вход в каталог `/home/detector/gcc-4.1.1/build-x86_64-unknown-linux-gnu/libiberty'
make[3]: Вход в каталог `/home/detector/gcc-4.1.1/build-x86_64-unknown-linux-gnu/libiberty/testsuite'
make[3]: Цель `all' не требует выполнения команд.
make[3]: Выход из каталога `/home/detector/gcc-4.1.1/build-x86_64-unknown-linux-gnu/libiberty/testsuite'
make[2]: Выход из каталога `/home/detector/gcc-4.1.1/build-x86_64-unknown-linux-gnu/libiberty'
make[2]: Вход в каталог `/home/detector/gcc-4.1.1/build-x86_64-unknown-linux-gnu/fixincludes'
make[2]: Цель `all' не требует выполнения команд.
make[2]: Выход из каталога `/home/detector/gcc-4.1.1/build-x86_64-unknown-linux-gnu/fixincludes'
make[2]: Вход в каталог `/home/detector/gcc-4.1.1/host-x86_64-unknown-linux-gnu/libcpp'
test -f config.h || (rm -f stamp-h1 && make stamp-h1)
make[2]: Выход из каталога `/home/detector/gcc-4.1.1/host-x86_64-unknown-linux-gnu/libcpp'
make[2]: Вход в каталог `/home/detector/gcc-4.1.1/host-x86_64-unknown-linux-gnu/gcc'
make \
CFLAGS="-g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Wmissing-format-attribute " \
CONFIG_H="config.h auto-host.h ../.././gcc/../include/ansidecl.h" \
MAKEOVERRIDES= \
-f libgcc.mk all
make[3]: Вход в каталог `/home/detector/gcc-4.1.1/host-x86_64-unknown-linux-gnu/gcc'
make GCC_FOR_TARGET="/home/detector/gcc-4.1.1/host-x86_64-unknown-linux-gnu/gcc/xgcc -B/home/detector/gcc-4.1.1/host-x86_64-unknown-linux-gnu/gcc/ -B/usr/local/x86_64-unknown-linux-gnu/bin/ -B/usr/local/x86_64-unknown-linux-gnu/lib/ -isystem /usr/local/x86_64-unknown-linux-gnu/include -isystem /usr/local/x86_64-unknown-linux-gnu/sys-include" \
AR_FOR_TARGET="ar" \
AR_CREATE_FOR_TARGET="ar rc" \
AR_EXTRACT_FOR_TARGET="ar x" \
AR_FLAGS_FOR_TARGET="" \
CC="gcc" CFLAGS="-g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Wmissing-format-attribute " \
BUILD_PREFIX="" \
BUILD_PREFIX_1="loser-" \
LANGUAGES="" \
LIBGCC2_CFLAGS="-O2 -O2 -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED " \
MULTILIB_CFLAGS="" T= crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o crtfastmath.o
make[4]: Вход в каталог `/home/detector/gcc-4.1.1/host-x86_64-unknown-linux-gnu/gcc'
make[4]: `crtend.o' не требует обновления.
make[4]: `crtbeginS.o' не требует обновления.
make[4]: `crtendS.o' не требует обновления.
make[4]: `crtbeginT.o' не требует обновления.
make[4]: `crtfastmath.o' не требует обновления.
make[4]: Выход из каталога `/home/detector/gcc-4.1.1/host-x86_64-unknown-linux-gnu/gcc'
/home/detector/gcc-4.1.1/host-x86_64-unknown-linux-gnu/gcc/xgcc -B/home/detector/gcc-4.1.1/host-x86_64-unknown-linux-gnu/gcc/ -B/usr/local/x86_64-unknown-linux-gnu/bin/ -B/usr/local/x86_64-unknown-linux-gnu/lib/ -isystem /usr/local/x86_64-unknown-linux-gnu/include -isystem /usr/local/x86_64-unknown-linux-gnu/sys-include -O2 -O2 -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -shared -nodefaultlibs -Wl,--soname=libgcc_s.so.1 -Wl,--version-script=libgcc/./libgcc.map -o ./libgcc_s.so.1.tmp libgcc/./_muldi3_s.o libgcc/./_negdi2_s.o libgcc/./_lshrdi3_s.o libgcc/./_ashldi3_s.o libgcc/./_ashrdi3_s.o libgcc/./_cmpdi2_s.o libgcc/./_ucmpdi2_s.o libgcc/./_floatdidf_s.o libgcc/./_floatdisf_s.o libgcc/./_fixunsdfsi_s.o libgcc/./_fixunssfsi_s.o libgcc/./_fixunsdfdi_s.o libgcc/./_fixdfdi_s.o libgcc/./_fixunssfdi_s.o libgcc/./_fixsfdi_s.o libgcc/./_fixxfdi_s.o libgcc/./_fixunsxfdi_s.o libgcc/./_floatdixf_s.o libgcc/./_fixunsxfsi_s.o libgcc/./_fixtfdi_s.o libgcc/./_fixunstfdi_s.o libgcc/./_floatditf_s.o libgcc/./_clear_cache_s.o libgcc/./_enable_execute_stack_s.o libgcc/./_trampoline_s.o libgcc/./__main_s.o libgcc/./_absvsi2_s.o libgcc/./_absvdi2_s.o libgcc/./_addvsi3_s.o libgcc/./_addvdi3_s.o libgcc/./_subvsi3_s.o libgcc/./_subvdi3_s.o libgcc/./_mulvsi3_s.o libgcc/./_mulvdi3_s.o libgcc/./_negvsi2_s.o libgcc/./_negvdi2_s.o libgcc/./_ctors_s.o libgcc/./_ffssi2_s.o libgcc/./_ffsdi2_s.o libgcc/./_clz_s.o libgcc/./_clzsi2_s.o libgcc/./_clzdi2_s.o libgcc/./_ctzsi2_s.o libgcc/./_ctzdi2_s.o libgcc/./_popcount_tab_s.o libgcc/./_popcountsi2_s.o libgcc/./_popcountdi2_s.o libgcc/./_paritysi2_s.o libgcc/./_paritydi2_s.o libgcc/./_powisf2_s.o libgcc/./_powidf2_s.o libgcc/./_powixf2_s.o libgcc/./_powitf2_s.o libgcc/./_mulsc3_s.o libgcc/./_muldc3_s.o libgcc/./_mulxc3_s.o libgcc/./_multc3_s.o libgcc/./_divsc3_s.o libgcc/./_divdc3_s.o libgcc/./_divxc3_s.o libgcc/./_divtc3_s.o libgcc/./_divdi3_s.o libgcc/./_moddi3_s.o libgcc/./_udivdi3_s.o libgcc/./_umoddi3_s.o libgcc/./_udiv_w_sdiv_s.o libgcc/./_udivmoddi4_s.o libgcc/./unwind-dw2_s.o libgcc/./unwind-dw2-fde-glibc_s.o libgcc/./unwind-sjlj_s.o libgcc/./gthr-gnat_s.o libgcc/./unwind-c_s.o -lc && rm -f ./libgcc_s.so && if [ -f ./libgcc_s.so.1 ]; then mv -f ./libgcc_s.so.1 ./libgcc_s.so.1.backup; else true; fi && mv ./libgcc_s.so.1.tmp ./libgcc_s.so.1 && ln -s libgcc_s.so.1 ./libgcc_s.so
make GCC_FOR_TARGET="/home/detector/gcc-4.1.1/host-x86_64-unknown-linux-gnu/gcc/xgcc -B/home/detector/gcc-4.1.1/host-x86_64-unknown-linux-gnu/gcc/ -B/usr/local/x86_64-unknown-linux-gnu/bin/ -B/usr/local/x86_64-unknown-linux-gnu/lib/ -isystem /usr/local/x86_64-unknown-linux-gnu/include -isystem /usr/local/x86_64-unknown-linux-gnu/sys-include" \
AR_FOR_TARGET="ar" \
AR_CREATE_FOR_TARGET="ar rc" \
AR_EXTRACT_FOR_TARGET="ar x" \
AR_FLAGS_FOR_TARGET="" \
CC="gcc" CFLAGS="-g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -Wmissing-format-attribute " \
BUILD_PREFIX="" \
BUILD_PREFIX_1="loser-" \
LANGUAGES="" \
LIBGCC2_CFLAGS="-O2 -O2 -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -m32 " \
MULTILIB_CFLAGS=" -m32" T=32/ 32/crtbegin.o 32/crtend.o 32/crtbeginS.o 32/crtendS.o 32/crtbeginT.o 32/crtfastmath.o
make[4]: Вход в каталог `/home/detector/gcc-4.1.1/host-x86_64-unknown-linux-gnu/gcc'
make[4]: `32/crtend.o' не требует обновления.
make[4]: `32/crtbeginS.o' не требует обновления.
make[4]: `32/crtendS.o' не требует обновления.
make[4]: `32/crtbeginT.o' не требует обновления.
make[4]: `32/crtfastmath.o' не требует обновления.
make[4]: Выход из каталога `/home/detector/gcc-4.1.1/host-x86_64-unknown-linux-gnu/gcc'
/home/detector/gcc-4.1.1/host-x86_64-unknown-linux-gnu/gcc/xgcc -B/home/detector/gcc-4.1.1/host-x86_64-unknown-linux-gnu/gcc/ -B/usr/local/x86_64-unknown-linux-gnu/bin/ -B/usr/local/x86_64-unknown-linux-gnu/lib/ -isystem /usr/local/x86_64-unknown-linux-gnu/include -isystem /usr/local/x86_64-unknown-linux-gnu/sys-include -O2 -O2 -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I../.././gcc -I../.././gcc/. -I../.././gcc/../include -I../.././gcc/../libcpp/include -m32 -fexceptions -fvisibility=hidden -DHIDE_EXPORTS -c ../.././gcc/unwind-dw2.c -o libgcc/32/unwind-dw2.o
In file included from ../.././gcc/unwind-dw2.c:256:
../.././gcc/config/i386/linux-unwind.h: В функции ‘x86_fallback_frame_state’
../.././gcc/config/i386/linux-unwind.h:141: ошибка: поле ‘info’ имеет неполный тип
make[3]: *** [libgcc/32/unwind-dw2.o] Ошибка 1
make[3]: Выход из каталога `/home/detector/gcc-4.1.1/host-x86_64-unknown-linux-gnu/gcc'
make[2]: *** [stmp-multilib] Ошибка 2
make[2]: Выход из каталога `/home/detector/gcc-4.1.1/host-x86_64-unknown-linux-gnu/gcc'
make[1]: *** [all-gcc] Ошибка 2
make[1]: Выход из каталога `/home/detector/gcc-4.1.1'
make: *** [all] Ошибка 2
У кого есть какие соображения, ткните носом куда хоть рыть...