This is the mail archive of the crossgcc@sourceware.cygnus.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more infromation.


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

configure: error: installation or configuration problem: C compiler cannot create executables (taget=m68k-elf host=i686-pc-linux-gnu)


I have been trying to bulild cross compiler for target m68k-elf on my
RedHat Linux (i686).  I was able to build and install binutils.

And, then I configured gcc-2.95.2 with the following command

../gcc-2.95.2/configure --target=$target --prefix=$prefix
--with-headers=../../usr/include -v

This seem to work.  Then I started make with this command

make all

after a while I get this error while it is checking to see my C compiler
works or not.

checking how to run the C preprocessor... /root/build-gcc/gcc/xgcc
-B/root/build-gcc/gcc/ -B/cross/m68k-elf/bin/ -E
checking for sys/file.h... yes
checking for sys/param.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 sys/resource.h... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking whether the C compiler (/root/build-gcc/gcc/xgcc
-B/root/build-gcc/gcc/ -B/cross/m68k-elf/bin/ -g -O2 ) works... no
configure: error: installation or configuration problem: C compiler
cannot create executables.


then, it fails as follows...


make[1]: Entering directory `/root/build-gcc/m68k-elf/libio'
test x"no" != xyes ||\
  /root/build-gcc/gcc/xgcc -B/root/build-gcc/gcc/ -B/cross/m68k-elf/bin/
-c -g -O2 -I. -I../../../gcc-2.95.2/libio
../../../gcc-2.95.2/libio/filedoalloc.c -o pic/filedoalloc.o
/root/build-gcc/gcc/xgcc -B/root/build-gcc/gcc/ -B/cross/m68k-elf/bin/
-c -g -O2 -I. -I../../../gcc-2.95.2/libio
../../../gcc-2.95.2/libio/filedoalloc.c
In file included from ../../../gcc-2.95.2/libio/libio.h:30,
                 from ../../../gcc-2.95.2/libio/iolibio.h:1,
                 from ../../../gcc-2.95.2/libio/libioP.h:47,
                 from ../../../gcc-2.95.2/libio/filedoalloc.c:45:
_G_config.h:43: parse error before `_G_sigset_t'
_G_config.h:43: warning: data definition has no type or storage class
make[1]: *** [filedoalloc.o] Error 1
make[1]: Leaving directory `/root/build-gcc/m68k-elf/libio'
make: *** [all-target-libio] Error 2



I've been trying for 3 nights trying to make the cross compiler, but
every time I get

checking whether the C compiler (/root/build-gcc/gcc/xgcc
-B/root/build-gcc/gcc/ -B/cross/m68k-elf/bin/ -g -O2 ) works... no
configure: error: installation or configuration problem: C compiler
cannot create executables.

I do not know why, since I already configured and it was
successful.......  But there seems to be 2 problems, one for xgcc and
another for making filedoalloc.o......
Please help me out if you have encountered this kind of error before.
I thank you very much for your attention and your time reading this
message.

Best regards
Takaya Ono



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


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