This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


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

Problems compiling newlib under cygwin


I've spent a good deal of time trying to figure this out, it is probably
wiser to ask for some help at this point.
 
I'm trying to generate a gcc toolset for arm-elf. To that effect I'm
using binutils 2.16.1, gcc 4.1.0 and a newlib image from cvs from
05/22/2006 (I have tried newlib-1.14.0 with the same results, by the
way).
 
I have created a bootstrap compiler for gcc 4.1.0 and then went ahead
and tried the following configuration for newlib:
../configure -v --quiet --target=arm-elf
--prefix=/usr/gcc4.1/arm-elf-4.1.0 --enable-interwork --enable-multilib
\
--enable-target-optspace  --enable-newlib-multithread
--disable-newlib-io-float --disable-newlib-supplied-syscalls \
--with-gnu-as --with-gnu-ld
 
I found this problem when issuing a "make all":
 
/bin/sh: arm-elf-cc: command not found
make[5]: *** [lib_a-dummy.o] Error 127
make[4]: *** [all-recursive] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-target-newlib] Error 2
make: *** [all] Error 2
/bin/sh: arm-elf-cc: command not found
make[4]: *** [lib_a-dummy.o] Error 127
make[3]: *** [install-recursive] Error 1
make[2]: *** [install-recursive] Error 1
make[1]: *** [install-target-newlib] Error 2
make: *** [install] Error 2

 
I think this is the relevant portion of
newlib/arm-elf/newlib/config.log:
 
configure:1976: result: arm-unknown-elf
configure:2034: checking for arm-elf-strip
configure:2060: result: arm-elf-strip
configure:2141: checking for gcc
configure:2167: result: arm-elf-cc -B/usr/gcc4.1/newlib/arm-elf/newlib/
-isystem /usr/gcc4.1/newlib/arm-elf/newlib/targ-include -isystem
/usr/gcc4.1/newlib-1.14.1/newlib/libc/include
configure:2177: checking dependency style of arm-elf-cc
-B/usr/gcc4.1/newlib/arm-elf/newlib/ -isystem
/usr/gcc4.1/newlib/arm-elf/newlib/targ-include -isystem
/usr/gcc4.1/newlib-1.14.1/newlib/libc/include
configure:2267: result: none
configure:2342: checking whether we are using GNU C
configure:2353: arm-elf-cc -B/usr/gcc4.1/newlib/arm-elf/newlib/ -isystem
/usr/gcc4.1/newlib/arm-elf/newlib/targ-include -isystem
/usr/gcc4.1/newlib-1.14.1/newlib/libc/include -E conftest.c
/usr/gcc4.1/newlib-1.14.1/newlib/configure: line 2354: arm-elf-cc:
command not found
configure:2356: $? = 127
configure:2363: result: no
 
 
uh?? there's nothing called "arm-elf-cc" in my
/usr/gcc4.1/arm-elf-4.1.0/bin directory. I guess it should be
arm-elf-gcc ? maybe this is something related to cygwin or to the
version of autoconf used (autoconf-2.5x) ?
what if I hack the thing horribly and make a copy of arm-elf-gcc as
arm-elf-cc ?
 
any clue will be welcome. thanks in advance

Fernando Ramos
Senior Software Engineer
Hypercom Corp.


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