[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Pb cross-compilation with GCC-4.1



Hi,

I am working with Debian Etch AMD64 and want to compile for i386 but there is a problem: after launching the compilation of GCC with dpkg-buildpackage, i receive this error:


> willy@SuperMicro:~/tmp/gcc/gcc-4.1-4.1.1ds2$ tail -n 50 build.log

> updating cache ./config.cache
> configure: loading cache ./config.cache
> checking how to run the C++ preprocessor... /home/willy/tmp/gcc/gcc-4.1-4.1.1ds2/build/./gcc/xgcc -shared-libgcc -B/home/willy/tmp/gcc/gcc-4.1-4.1.1ds2/build/./gcc -nostdinc++ -L/home/willy/tmp/gcc/gcc-4.1-4.1.1ds2/build/i486-linux-gnu/64/libstdc++-v3/src -L/home/willy/tmp/gcc/gcc-4.1-4.1.1ds2/build/i486-linux-gnu/64/libstdc++-v3/src/.libs -B/usr/i486-linux-gnu/bin/ -B/usr/i486-linux-gnu/lib/ -isystem /usr/i486-linux-gnu/include -isystem /usr/i486-linux-gnu/sys-include -m64 -E
> loading cache ./config.cache within ltconfig
> checking host system type... x86_64-pc-linux-gnu
> checking build system type... x86_64-pc-linux-gnu
> checking for objdir... .libs
> checking for /home/willy/tmp/gcc/gcc-4.1-4.1.1ds2/build/./gcc/xgcc option to produce PIC... -fPIC -DPIC > checking if /home/willy/tmp/gcc/gcc-4.1-4.1.1ds2/build/./gcc/xgcc PIC flag -fPIC -DPIC works... yes > checking if /home/willy/tmp/gcc/gcc-4.1-4.1.1ds2/build/./gcc/xgcc static flag -static works... no
> finding the maximum length of command line arguments... (cached) 49153
> checking if /home/willy/tmp/gcc/gcc-4.1-4.1.1ds2/build/./gcc/xgcc supports -c -o file.o... (cached) yes > checking if /home/willy/tmp/gcc/gcc-4.1-4.1.1ds2/build/./gcc/xgcc supports -fno-rtti -fno-exceptions ... yes > checking whether the linker (/home/willy/tmp/gcc/gcc-4.1-4.1.1ds2/build/./gcc/collect-ld -m elf_x86_64) supports shared libraries...
> checking how to hardcode library paths into programs... immediate
> checking whether stripping libraries is possible... yes
> checking dynamic linker characteristics... GNU/Linux ld.so
> checking command to parse /home/willy/tmp/gcc/gcc-4.1-4.1.1ds2/build/./gcc/nm output... failed
> checking if libtool supports shared libraries... yes
> checking whether to build shared libraries... yes
> checking whether to build static libraries... yes
> appending configuration tag "CXX" to libtool
> checking for exception model to use... call frame
> checking for compiler with PCH support... yes
> checking for enabled PCH... yes
> checking for underlying I/O to use... stdio
> checking how to run the C preprocessor... /home/willy/tmp/gcc/gcc-4.1-4.1.1ds2/build/./gcc/xgcc -B/home/willy/tmp/gcc/gcc-4.1-4.1.1ds2/build/./gcc/ -B/usr/i486-linux-gnu/bin/ -B/usr/i486-linux-gnu/lib/ -isystem /usr/i486-linux-gnu/include -isystem /usr/i486-linux-gnu/sys-include -m64 -E
> checking for egrep... grep -E
> checking for ANSI C header files... yes
> checking for sys/types.h... yes
> checking for sys/stat.h... yes
> checking for stdlib.h... yes
> checking for string.h... yes
> checking for memory.h... yes
> checking for strings.h... yes
> checking for inttypes.h... yes
> checking for stdint.h... yes
> checking for unistd.h... yes
> checking for C locale to use... gnu
> checking for msgfmt... yes
> checking libintl.h usability... yes
> checking libintl.h presence... yes
> checking for libintl.h... yes
> checking for library containing gettext... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES.
> make[3]: *** [configure-target-libstdc++-v3] Error 1
> make[3]: Leaving directory `/home/willy/tmp/gcc/gcc-4.1-4.1.1ds2/build'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/home/willy/tmp/gcc/gcc-4.1-4.1.1ds2/build'
> s=`cat status`; rm -f status; test $s -eq 0
> make[1]: Leaving directory `/home/willy/tmp/gcc/gcc-4.1-4.1.1ds2'


Is there a way to solve this problem ?

I hope this is the good place to post this message.

Willy.


Reply to: