This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

configure problem in libstdc++-v3 (biarch cross gcc for x86_64)


I have a problem compiling a gcc (cross) compiler.
 
I have a build machine which is linux-x86_64. There I can create x68_64 
excutables with -m64 and i686 executables with -m32.
 
I want to build a (cross) compiler that is a i686 executable (so that I can 
run it on i686 machines as well as x86_64 machines. And it should be able to 
generate code for both architectures with -m32/-m64, so the target would be 
x86_64 with multilib enabled. The targets are full SuSE Linux systems, so 
there is no need in building glibc.

I attached a script I use to configure and build binutils and gcc. The point 
where I get stuck is libstdc++-v3. There I get the following error:

checking for main in -lm... configure: error: Link tests are not allowed after 
GCC_NO_EXECUTABLES.
make: *** [configure-target-libstdc++-v3] Error 1

Any help appreciated!

Here's the log for libstdc++-v3:

/bin/sh ../gcc-4.0.0/mkinstalldirs x86_64-pc-linux-gnu/libstdc++-v3 ; \
rm -f x86_64-pc-linux-gnu/libstdc++-v3/Makefile || : ; \
cp multilib.out x86_64-pc-linux-gnu/libstdc++-v3/multilib.out
mkdir -p -- x86_64-pc-linux-gnu/libstdc++-v3
Configuring in x86_64-pc-linux-gnu/libstdc++-v3
configure: creating cache ./config.cache
checking build system type... i686-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for x86_64-pc-linux-gnu-strip... x86_64-pc-linux-gnu-strip
checking for x86_64-pc-linux-gnu-gcc...  /tmp/gcc-4.0.0-objdir/gcc/xgcc 
-B/tmp/gcc-4.0.0-objdir/gcc/ -B/opt2/linux/ix86/x86_64-pc-linux-gnu/bin/ 
-B/opt2/linux/ix86/x86_64-pc-linux-gnu/lib/ 
-isystem /opt2/linux/ix86/x86_64-pc-linux-gnu/include 
-isystem /opt2/linux/ix86/x86_64-pc-linux-gnu/sys-include
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether  /tmp/gcc-4.0.0-objdir/gcc/xgcc -B/tmp/gcc-4.0.0-objdir/gcc/ 
-B/opt2/linux/ix86/x86_64-pc-linux-gnu/bin/ 
-B/opt2/linux/ix86/x86_64-pc-linux-gnu/lib/ 
-isystem /opt2/linux/ix86/x86_64-pc-linux-gnu/include 
-isystem /opt2/linux/ix86/x86_64-pc-linux-gnu/sys-include accepts -g... yes
checking for  /tmp/gcc-4.0.0-objdir/gcc/xgcc -B/tmp/gcc-4.0.0-objdir/gcc/ 
-B/opt2/linux/ix86/x86_64-pc-linux-gnu/bin/ 
-B/opt2/linux/ix86/x86_64-pc-linux-gnu/lib/ 
-isystem /opt2/linux/ix86/x86_64-pc-linux-gnu/include 
-isystem /opt2/linux/ix86/x86_64-pc-linux-gnu/sys-include option to accept 
ANSI C... none needed
checking for x86_64-pc-linux-gnu-g++...  /tmp/gcc-4.0.0-objdir/gcc/xgcc 
-shared-libgcc -B/tmp/gcc-4.0.0-objdir/gcc/ -nostdinc++ 
-L/tmp/gcc-4.0.0-objdir/x86_64-pc-linux-gnu/libstdc++-v3/src 
-L/tmp/gcc-4.0.0-objdir/x86_64-pc-linux-gnu/libstdc++-v3/src/.libs 
-B/opt2/linux/ix86/x86_64-pc-linux-gnu/bin/ 
-B/opt2/linux/ix86/x86_64-pc-linux-gnu/lib/ 
-isystem /opt2/linux/ix86/x86_64-pc-linux-gnu/include 
-isystem /opt2/linux/ix86/x86_64-pc-linux-gnu/sys-include
checking whether we are using the GNU C++ compiler... yes
checking whether  /tmp/gcc-4.0.0-objdir/gcc/xgcc -shared-libgcc 
-B/tmp/gcc-4.0.0-objdir/gcc/ -nostdinc++ 
-L/tmp/gcc-4.0.0-objdir/x86_64-pc-linux-gnu/libstdc++-v3/src 
-L/tmp/gcc-4.0.0-objdir/x86_64-pc-linux-gnu/libstdc++-v3/src/.libs 
-B/opt2/linux/ix86/x86_64-pc-linux-gnu/bin/ 
-B/opt2/linux/ix86/x86_64-pc-linux-gnu/lib/ 
-isystem /opt2/linux/ix86/x86_64-pc-linux-gnu/include 
-isystem /opt2/linux/ix86/x86_64-pc-linux-gnu/sys-include accepts -g... yes
checking for GCC version number... 4.0.0
checking whether ln -s works... yes
checking for 
x86_64-pc-linux-gnu-as... /opt2/linux/ix86/x86_64-pc-linux-gnu/bin/as
checking for x86_64-pc-linux-gnu-ar... x86_64-pc-linux-gnu-ar
checking for x86_64-pc-linux-gnu-ranlib... x86_64-pc-linux-gnu-ranlib
checking whether to enable maintainer-specific portions of Makefiles... no
configure: CPU config directory is cpu/i486
configure: OS config directory is os/gnu-linux
checking for ld used by GCC... /opt2/linux/ix86/x86_64-pc-linux-gnu/bin/ld
checking if the linker (/opt2/linux/ix86/x86_64-pc-linux-gnu/bin/ld) is GNU 
ld... yes
checking for /opt2/linux/ix86/x86_64-pc-linux-gnu/bin/ld option to reload 
object files... -r
checking for BSD-compatible nm... /opt2/linux/ix86/x86_64-pc-linux-gnu/bin/nm
checking how to recognise dependant libraries... pass_all
checking for x86_64-pc-linux-gnu-ranlib... (cached) x86_64-pc-linux-gnu-ranlib
checking for x86_64-pc-linux-gnu-strip... (cached) x86_64-pc-linux-gnu-strip
updating cache ./config.cache
loading cache ./config.cache within ltconfig
checking whether -lc should be explicitly linked in... no
checking for objdir... .libs
checking for /tmp/gcc-4.0.0-objdir/gcc/xgcc option to produce PIC... -fPIC 
-DPIC
checking if /tmp/gcc-4.0.0-objdir/gcc/xgcc PIC flag -fPIC -DPIC works... yes
checking if /tmp/gcc-4.0.0-objdir/gcc/xgcc static flag -static works... yes
finding the maximum length of command line arguments... 49153
checking if /tmp/gcc-4.0.0-objdir/gcc/xgcc supports -c -o file.o... yes
checking if /tmp/gcc-4.0.0-objdir/gcc/xgcc supports -fno-rtti 
-fno-exceptions ... no
checking whether the linker (/opt2/linux/ix86/x86_64-pc-linux-gnu/bin/ld -m 
elf_x86_64) supports shared libraries... yes
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 /opt2/linux/ix86/x86_64-pc-linux-gnu/bin/nm 
output... failed
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
creating libtool
updating cache ./config.cache
configure: loading cache ./config.cache
checking how to run the C++ preprocessor...  /tmp/gcc-4.0.0-objdir/gcc/xgcc 
-shared-libgcc -B/tmp/gcc-4.0.0-objdir/gcc/ -nostdinc++ 
-L/tmp/gcc-4.0.0-objdir/x86_64-pc-linux-gnu/libstdc++-v3/src 
-L/tmp/gcc-4.0.0-objdir/x86_64-pc-linux-gnu/libstdc++-v3/src/.libs 
-B/opt2/linux/ix86/x86_64-pc-linux-gnu/bin/ 
-B/opt2/linux/ix86/x86_64-pc-linux-gnu/lib/ 
-isystem /opt2/linux/ix86/x86_64-pc-linux-gnu/include 
-isystem /opt2/linux/ix86/x86_64-pc-linux-gnu/sys-include -E
loading cache ./config.cache within ltconfig
checking host system type... x86_64-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for objdir... .libs
checking for /tmp/gcc-4.0.0-objdir/gcc/xgcc option to produce PIC... -fPIC 
-DPIC
checking if /tmp/gcc-4.0.0-objdir/gcc/xgcc PIC flag -fPIC -DPIC works... yes
checking if /tmp/gcc-4.0.0-objdir/gcc/xgcc static flag -static works... no
finding the maximum length of command line arguments... (cached) 49153
checking if /tmp/gcc-4.0.0-objdir/gcc/xgcc supports -c -o file.o... (cached) 
yes
checking if /tmp/gcc-4.0.0-objdir/gcc/xgcc supports -fno-rtti 
-fno-exceptions ... yes
checking whether the linker (/opt2/linux/ix86/x86_64-pc-linux-gnu/bin/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 /opt2/linux/ix86/x86_64-pc-linux-gnu/bin/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 enabled PCH... yes
checking for compiler with PCH support... yes
checking for underlying I/O to use... stdio
checking how to run the C preprocessor...  /tmp/gcc-4.0.0-objdir/gcc/xgcc 
-B/tmp/gcc-4.0.0-objdir/gcc/ -B/opt2/linux/ix86/x86_64-pc-linux-gnu/bin/ 
-B/opt2/linux/ix86/x86_64-pc-linux-gnu/lib/ 
-isystem /opt2/linux/ix86/x86_64-pc-linux-gnu/include 
-isystem /opt2/linux/ix86/x86_64-pc-linux-gnu/sys-include -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... generic
checking for std::allocator base class to use... new
configure: "C" header strategy set to c_std
checking for ISO C99 support in <math.h>... yes
checking complex.h usability... yes
checking complex.h presence... yes
checking for complex.h... yes
checking for ISO C99 support in <complex.h>... yes
checking for ISO C99 support in <stdio.h>... yes
checking for lldiv_t declaration... yes
checking for ISO C99 support in <stdlib.h>... yes
checking for additional ISO C99 support in <wchar.h>... yes
checking for enabled ISO C99 support... yes
checking for thread model used by GCC... posix
configure: Debug build flags set to -g3 -O0
checking for additional debug build... no
checking for extra compiler flags for building...
checking nan.h usability... no
checking nan.h presence... no
checking for nan.h... no
checking ieeefp.h usability... no
checking ieeefp.h presence... no
checking for ieeefp.h... no
checking endian.h usability... yes
checking endian.h presence... yes
checking for endian.h... yes
checking sys/isa_defs.h usability... no
checking sys/isa_defs.h presence... no
checking for sys/isa_defs.h... no
checking machine/endian.h usability... no
checking machine/endian.h presence... no
checking for machine/endian.h... no
checking machine/param.h usability... no
checking machine/param.h presence... no
checking for machine/param.h... no
checking sys/machine.h usability... no
checking sys/machine.h presence... no
checking for sys/machine.h... no
checking for sys/types.h... (cached) yes
checking fp.h usability... no
checking fp.h presence... no
checking for fp.h... no
checking float.h usability... yes
checking float.h presence... yes
checking for float.h... yes
checking for endian.h... (cached) yes
checking for inttypes.h... (cached) yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for float.h... (cached) yes
checking for stdint.h... (cached) yes
checking for main in -lm... configure: error: Link tests are not allowed after 
GCC_NO_EXECUTABLES.
make: *** [configure-target-libstdc++-v3] Error 1

Lothar
-- 
Lothar Werzinger Dipl.-Ing. Univ.
framework & platform architect
Xcerla Corporation
275 Tennant Avenue, Suite 202
Morgan Hill, Ca 95037
email: lothar@xcerla.com
phone: +1-408-776-9018

Attachment: buildgcc.sh
Description: application/shellscript

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]