This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


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

cross compile error on linux with MIPS target, can't create executables


Hello all!
I downloaded binutils-2.10.1 and installed them with the --target=mips-elf
option.
I configured gcc-3.0 with --target=mips-elf --with-gnu-as options.
When I try to compile gcc-3.0, with "make" or "make cross" commands, I get
the error:
configure: error: installation or configuration problem: C compiler cannot
create executables.
I'm running on RedHat Linux 7.1.  I've also tried --with-gnu-ld option
during configure, with no difference.
	Would appreciate the help if someone knows how to get around this! The
following is the output from the make and the config status...
Thanks - John

#!/bin/sh
# This file was generated automatically by configure.  Do not edit.
# This directory was configured as follows:
../gcc-3.0/configure --with-gcc-version-trigger=/home/john/gcc/gcc-3.0/gcc/v
ersion.c --host=i686-pc-linux-gnu --target=mips-elf --with-gnu-as --with-gnu
-ld --norecursion
#
...
make[2]: Leaving directory `/home/john/gcc/gcc_mips/gcc'
echo timestamp > stmp-multilib
/home/john/gcc/gcc_mips/gcc/xgcc -B/home/john/gcc/gcc_mips/gcc/ -B/usr/local
/mips-elf/bin/ -B/usr/local/mips-elf/lib/ -isystem
/usr/local/mips-elf/include -DCROSS_COMPILE -DIN_GCC    -W -Wall -Wwrite-str
ings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include     -c
../../gcc-3.0/gcc/libgcc1-test.c
../../gcc-3.0/gcc/libgcc1-test.c:8: warning: function declaration isn't a
prototype
../../gcc-3.0/gcc/libgcc1-test.c:9: warning: function declaration isn't a
prototype
../../gcc-3.0/gcc/libgcc1-test.c:18: warning: function declaration isn't a
prototype
../../gcc-3.0/gcc/libgcc1-test.c:85: warning: function declaration isn't a
prototype
../../gcc-3.0/gcc/libgcc1-test.c:94: warning: function declaration isn't a
prototype
../../gcc-3.0/gcc/libgcc1-test.c:104: warning: function declaration isn't a
prototype
../../gcc-3.0/gcc/libgcc1-test.c:105: warning: function declaration isn't a
prototype
../../gcc-3.0/gcc/libgcc1-test.c:106: warning: function declaration isn't a
prototype
../../gcc-3.0/gcc/libgcc1-test.c:116: warning: function declaration isn't a
prototype
../../gcc-3.0/gcc/libgcc1-test.c:117: warning: function declaration isn't a
prototype
../../gcc-3.0/gcc/libgcc1-test.c:118: warning: function declaration isn't a
prototype
../../gcc-3.0/gcc/libgcc1-test.c:119: warning: function declaration isn't a
prototype
Testing libgcc1.  Ignore linker warning messages.
/home/john/gcc/gcc_mips/gcc/xgcc -B/home/john/gcc/gcc_mips/gcc/ -B/usr/local
/mips-elf/bin/ -B/usr/local/mips-elf/lib/ -isystem
/usr/local/mips-elf/include -DCROSS_COMPILE -DIN_GCC    -W -Wall -Wwrite-str
ings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include
libgcc1-test.o -o libgcc1-test \
  -nostartfiles -nostdlib
`/home/john/gcc/gcc_mips/gcc/xgcc -B/home/john/gcc/gcc_mips/gcc/ -B/usr/loca
l/mips-elf/bin/ -B/usr/local/mips-elf/lib/ -isystem
/usr/local/mips-elf/include --print-libgcc-file-name`
make[1]: Leaving directory `/home/john/gcc/gcc_mips/gcc'
Configuring in mips-elf/libiberty
loading cache ../config.cache
checking host system type... mips-mips-elf
checking build system type... i686-pc-linux-gnu
checking for mips-elf-ar... (cached) mips-elf-ar
checking for mips-elf-ranlib... (cached) mips-elf-ranlib
checking for gcc... (cached)
/home/john/gcc/gcc_mips/gcc/xgcc -B/home/john/gcc/gcc_mips/gcc/ -B/usr/local
/mips-elf/bin/ -B/usr/local/mips-elf/lib/ -isystem
/usr/local/mips-elf/include
checking whether we are using GNU C... (cached) yes
checking whether
/home/john/gcc/gcc_mips/gcc/xgcc -B/home/john/gcc/gcc_mips/gcc/ -B/usr/local
/mips-elf/bin/ -B/usr/local/mips-elf/lib/ -isystem
/usr/local/mips-elf/include accepts -g... (cached) yes
checking for POSIXized ISC... no
checking for working const... yes
checking for inline... inline
checking for a BSD compatible install... (cached) /usr/bin/install -c
xhost-mkfrag is unchanged
checking how to run the C preprocessor... (cached) /lib/cpp
checking for sys/file.h... yes
checking for sys/param.h... yes
checking for limits.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for unistd.h... yes
checking for strings.h... yes
checking for sys/time.h... yes
checking for time.h... yes
checking for sys/resource.h... yes
checking for sys/stat.h... yes
checking for sys/mman.h... yes
checking for fcntl.h... yes
checking for sys/wait.h that is POSIX.1 compatible... no
checking whether time.h and sys/time.h may both be included... no
checking whether errno must be declared... yes
checking whether the C compiler
(/home/john/gcc/gcc_mips/gcc/xgcc -B/home/john/gcc/gcc_mips/gcc/ -B/usr/loca
l/mips-elf/bin/ -B/usr/local/mips-elf/lib/ -isystem
/usr/local/mips-elf/include -g -O2 ) works... no
configure: error: installation or configuration problem: C compiler cannot
create executables.
make: *** [configure-target-libiberty] Error 1


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