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]

Building current CVS for ARM under cygwin


I'm trying to build gcc (current sources) so that I can compile arm-elf 
executables with Thumb code. gcc 2.95.2 works fine, but doesn't work for 
thumb (the thumb-elf configuration won't work for the OS I'm trying to 
compile, and the vendor suggests to use a more recent snapshot, and the 
-mthumb switch when compiling).

The problem is that somewhere gcc's build process got broken (at least for 
target arm-elf) when compiling under cygwin. But I _NEED_ to use cygwin.

Any help would be greatly appreciated.

My configure line was /src/gcc/configure --target=arm-elf --prefix=/tools 
--exec-prefix=/tools/H-i686-pc-cygwin --with-gnu-as --with-gnu-ld 
--with-newlib -v 2>&1 | tee configure.out

When I make with

make -w all-gcc install-gcc LANGUAGES="c c++" 2>&1 | tee make.out

I get:

In file included from /src/gcc/gcc/config/i386/xm-cygwin.h:22,
                  from config.h:5,
                  from /src/gcc/gcc/errors.c:25:
/usr/include/sys/cygwin.h:90: warning: integer constant is unsigned in ANSI 
C, s
igned with -traditional
/usr/include/sys/cygwin.h:91: warning: ANSI C restricts enumerator values 
to ran
ge of `int'
gcc -DCROSS_COMPILE -DIN_GCC    -g -O2 -W -Wall -Wwrite-strings 
-Wstrict-prototy
pes -Wmissing-prototypes -Wtraditional -pedantic 
-Wno-long-long  -DHAVE_CONFIG_H
  -DGENERATOR_FILE  -o gencodes.exe \
  gencodes.o rtl.o bitmap.o ggc-none.o gensupport.o hashtab.o safe-ctype.o 
print-
rtl.o errors.o ` case "obstack.o" in ?*) echo obstack.o ;; esac ` ` case "" 
in ?
*) echo  ;; esac ` ` case "" in ?*) echo  ;; esac ` ` case "" in ?*) 
echo  ;; es
ac ` -ladvapi32
./gencodes.exe /src/gcc/gcc/config/arm/arm.md > tmp-codes.h
'src/gcc/gcc/config/arm/arm.md:36: unknown rtx code `define_constants
/src/gcc/gcc/config/arm/arm.md:36: following context is 
`  [(IP_REGNUM      12);
  Scratch register'
make[1]: *** [s-codes] Error 1
make[1]: Leaving directory `/tmp/build/gcc/gcc'
make: *** [all-gcc] Error 2
make: Leaving directory `/tmp/build/gcc'
=== Lewin A.R.W. Edwards (Embedded Engineer)
Work: http://www.digi-frame.com/
Personal: http://www.zws.com/ and http://www.larwe.com/

"Und setzet ihr nicht das Leben ein,
Nie wird euch das Leben gewonnen sein."


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