|
From: | Patrizio Zelotti |
Subject: | [avr-gcc-list] avr-gcc win32 build |
Date: | Tue, 19 Nov 2002 23:29:46 +0100 |
Hi,
I tried to build avr-gcc for win32 system using mingw
compiler; I get
snapshot of version 20021104 from and I follow the instructions in
on how to build avrgcc using mingw32.
I manually applied patches and compiled correctly bison and flex. I tried to compile binutils but i get the following error: MSYSTEM:$ make all
make[1]: Entering directory `/mingw/inst/binutils-021104/build/libiberty' if [ x"" != x ]; then \ avr-gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../libiberty/../include -W -Wall -Wtraditional -pedantic ../../libiberty/regex.c -o pic/regex.o; \ else true; fi avr-gcc -c -DHAVE_CONFIG_H -g -O2 -I. -I../../libiberty/../include -W -Wall -Wtraditional -pedantic ../../libiberty/regex.c -o regex.o ../../libiberty/regex.c:53:25: sys/types.h: No such file or directory ../../libiberty/regex.c:160:25: strings.h: No such file or directory In file included from ../../include/xregex.h:26, from ../../libiberty/regex.c:195: ../../include/xregex2.h:357: error: parse error before "size_t" ../../include/xregex2.h:357: warning: no semicolon at end of struct or union ../../include/xregex2.h:364: error: parse error before ':' token ../../include/xregex2.h:373: error: parse error before ':' token ../../include/xregex2.h:377: error: parse error before ':' token ../../include/xregex2.h:381: error: parse error before ':' token ../../include/xregex2.h:385: error: parse error before ':' token ../../include/xregex2.h:388: error: parse error before ':' token ../../include/xregex2.h:391: error: parse error before ':' token ../../include/xregex2.h:394: warning: ISO C does not allow extra `;' outside of a function ../../include/xregex2.h:456: error: parse error before "size_t" ../../include/xregex2.h:551: error: parse error before "size_t" ../../include/xregex2.h:553: error: parse error before "xregerror" ../../include/xregex2.h:554: error: parse error before "size_t" ../../include/xregex2.h:554: warning: type defaults to `int' in declaration of `xregerror' ../../include/xregex2.h:554: error: ISO C forbids data definition with no type or storage class ../../libiberty/regex.c: In function `init_syntax_once': ../../libiberty/regex.c:286: warning: implicit declaration of function `bzero' ../../libiberty/regex.c: At top level: ../../libiberty/regex.c:412: error: parse error before "size_t" In file included from ../../libiberty/regex.c:649: ../../libiberty/regex.c: In function `byte_regex_compile': Then I tried to compiler avrgcc but I get the following
error:
make[2]: Entering directory
`/mingw/inst/gcc-20021104/build/gcc'
for d in libgcc avr3 libgcc/avr3 avr4 libgcc/avr4 avr5 libgcc/avr5; do \ if [ -d $d ]; then true; else /bin/sh ../../gcc/mkinstalldirs $d; fi; \ done mkdir libgcc mkdir avr3 mkdir libgcc/avr3 mkdir avr4 mkdir libgcc/avr4 mkdir avr5 mkdir libgcc/avr5 if [ -f stmp-dirs ]; then true; else touch stmp-dirs; fi /mingw/inst/gcc-20021104/build/gcc/xgcc -B/mingw/inst/gcc-20021104/build/gcc/ -B/avrgcc/avr/bin/ -B/avrgcc/avr/lib/ -isystem /avrgcc/avr/include -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include -DDF=SF -Dinhibit_libc -mcall-prologues -g -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/config -I../../gcc/../include -DL_mulqi3 -xassembler-with-cpp -c ../../gcc/config/avr/libgcc.S -o libgcc/./_mulqi3.o C:\WINDOWS\TEMP/ccxPxigb.s: Assembler messages: C:\WINDOWS\TEMP/ccxPxigb.s:6: Warning: rest of line ignored; first ignored character is `,' C:\WINDOWS\TEMP/ccxPxigb.s:27: Error: suffix or operands invalid for `clr' C:\WINDOWS\TEMP/ccxPxigb.s:27: Error: no such instruction: `clear result' C:\WINDOWS\TEMP/ccxPxigb.s:29: Error: no such instruction: `sbrc r24,0' C:\WINDOWS\TEMP/ccxPxigb.s:30: Error: too many memory references for `add' C:\WINDOWS\TEMP/ccxPxigb.s:31: Error: too many memory references for `add' C:\WINDOWS\TEMP/ccxPxigb.s:31: Error: no such instruction: `shift multiplicand' C:\WINDOWS\TEMP/ccxPxigb.s:32: Error: no such instruction: `breq __mulqi3_exit' C:\WINDOWS\TEMP/ccxPxigb.s:32: Error: no such instruction: `while multiplicand!=0' C:\WINDOWS\TEMP/ccxPxigb.s:33: Error: no such instruction: `lsr r24' C:\WINDOWS\TEMP/ccxPxigb.s:34: Error: no such instruction: `brne __mulqi3_loop' C:\WINDOWS\TEMP/ccxPxigb.s:34: Error: no such instruction: `exit if multiplier=0' C:\WINDOWS\TEMP/ccxPxigb.s:36: Error: too many memory references for `mov' C:\WINDOWS\TEMP/ccxPxigb.s:36: Error: no such instruction: `result to return register' make[2]: *** [libgcc/./_mulqi3.o] Error 1 make[2]: Leaving directory `/mingw/inst/gcc-20021104/build/gcc' make[1]: *** [stmp-multilib] Error 2 make[1]: Leaving directory `/mingw/inst/gcc-20021104/build/gcc' make: *** [all-gcc] Error 2 MSYSTEM:$ Can someone help me ?
Have someone already build the win32 version of avrgcc ? What this errors means and how to correct it ? Thanks
Patrizio Zelotti
address@hidden |
[Prev in Thread] | Current Thread | [Next in Thread] |