This is the mail archive of the gcc@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]

gcc 3.0.1 'arm' target on cygwin


I am trying to build arm-unknown-elf on cygwin (not sure
of the version but the dist seems to have been made on 6/6/2001).
config.guess says 'i686-pc-cygwin'. This is under Win2000.

binutils-2.11 built fine with

  ../binutils-2.11/configure --prefix=/bin/binarm
--target=arm-unknown-elf
  make
  make install

I proceeded to try (in a different build dir):

  ../gcc-3.0.1/ --prefix=/bin/binarm --target=arm-unknown-elf
  make


This failed because it tried to run arm-unknown-elf-ar, which is in
/bin/binarm/bin; although it seems to have found the cross-assembler,
or it wouldn't have got this far, I think.

So I copied all the executables in /bin/bin/binarm/bin to somewhere on
the
path and ran it again. This time it got a lot farther and died with

>>>>>>>>>>>>>>
checking for sys/time.h... grep: conftest.out: No such file or directory
yes
checking for time.h... grep: conftest.out: No such file or directory
yes
checking for sys/resource.h... grep: conftest.out: No such file or
directory
yes
checking for sys/stat.h... grep: conftest.out: No such file or directory
yes
checking for sys/mman.h... grep: conftest.out: No such file or directory
yes
checking for fcntl.h... grep: conftest.out: No such file or directory
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/gcc/armgcc/gcc/xgcc
-B/home/gcc/armgcc/gcc/ -B/bin/binarm/arm-unknown-elf/bin/
-B/bin/binarm/arm-unknown-elf/lib/ -isystem
/bin/binarm/arm-unknown-elf/include -g -O2 ) works... no
configure: error: installation or configuration problem: C compiler
cannot create executables.
make: *** [configure-target-libiberty] Error 1
<<<<<<<<<<<<<<

Here is the end of
/home/gcc/armgcc/arm-unknown-elf/libiberty/config.log:
( the build dir is /home/gcc/armgcc)

>>>>>>>>>>
configure:1921: checking whether the C compiler
(/home/gcc/armgcc/gcc/xgcc -B/home/gcc/armgcc/gcc/
-B/bin/binarm/arm-unknown-elf/bin/ -B/bin/binarm/arm-unknown-elf/lib/
-isystem /bin/binarm/arm-unknown-elf/include -g -O2 ) works
configure:1937: /home/gcc/armgcc/gcc/xgcc -B/home/gcc/armgcc/gcc/
-B/bin/binarm/arm-unknown-elf/bin/ -B/bin/binarm/arm-unknown-elf/lib/
-isystem /bin/binarm/arm-unknown-elf/include -o conftest -g -O2
conftest.c  1>&5
/bin/binarm/arm-unknown-elf/bin/ld: cannot open crt0.o: No such file or
directory
collect2: ld returned 1 exit status
configure: failed program was:

#line 1932 "configure"
#include "confdefs.h"

main(){return(0);}
<<<<<<<<<<

It seems that crt0.o is missing. It seems reasonable, given that the
platform is 'unknown', that
I might have to provide a crt0.o tailored to the environment. There is a
crt0.s for arm which comes
in the cygwin package, so I assembled that to
/bin/binarm/arm-unknown-elf/lib/crt0.o,
and ran it all again.
Then it failed at the same place with 

configure:1937: /home/gcc/armgcc/gcc/xgcc -B/home/gcc/armgcc/gcc/
-B/bin/binarm/arm-unknown-elf/bin/ -B/bin/binarm/arm-unknown-elf/lib/
-isystem /bin/binarm/arm-unknown-elf/include -o conftest -g -O2
conftest.c  1>&5
/bin/binarm/arm-unknown-elf/bin/ld: cannot find -lg

I ran that xgcc op again without the -g option, and it couldn't find
-lc. 
I'm not sure what's going on any more; I don't know what the makefile is
building and why
it thinks it needs to make foreign executables. The following libraries
were built during
the binutils build:

$ find /home/gcc/armbu -name l\*.a -print
/home/gcc/armbu/intl/libintl.a
/home/gcc/armbu/libiberty/libiberty.a
/home/gcc/armbu/opcodes/.libs/libopcodes.a
/home/gcc/armbu/opcodes/libopcodes.a
/home/gcc/armbu/bfd/.libs/libbfd.a
/home/gcc/armbu/bfd/libbfd.a

... and installed during the binutils install:

$ find /bin/binarm -name l\*.a -print
/bin/binarm/lib/libbfd.a
/bin/binarm/lib/libopcodes.a
/bin/binarm/lib/libiberty.a

.... and built during the failed gcc build:

$ find /home/gcc/armgcc -name l\*.a -print
/home/gcc/armgcc/libiberty/libiberty.a
/home/gcc/armgcc/zlib/libz.a
/home/gcc/armgcc/gcc/libbackend.a
/home/gcc/armgcc/gcc/thumb/libgcc.a
/home/gcc/armgcc/gcc/libgcc.a
/home/gcc/armgcc/gcc/intl/libintl.a
/home/gcc/armgcc/gcc/libcpp.a


--

Greg Smith   greg.smith@silicon-video.com


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