avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-gcc-list] R: [avr-gcc-list] avr-gcc win32 build


From: address@hidden
Subject: [avr-gcc-list] R: [avr-gcc-list] avr-gcc win32 build
Date: Thu, 21 Nov 2002 11:19:28 +0100

Thank you for your reply.
You were right: avr-gcc was in PATH before mingw.
I removed it and then build binutils and gcc without errors.
I do not apply patches for avr-obj until now because a new gcc snapshot 
is available and, of course, would be better to apply patches to the 
lastest snapshot and also because Jason Riffel has written a new tool 
to convert elf output file to cof file and it works well.

I had the following errors in compiling avr-libc :
 
make[2]: Entering directory `/mingw/inst/avr-libc-
20021104cvs/build/doc/api'
if test -n "../../../build/crt1/crts2313.o" ; then \
NODEFLIBS="-nostartfiles -nodefaultlibs" ; \
fi; \
cd ../../../doc/examples/demo && \
make DEFS="-I../../../include" \
LIBS="$NODEFLIBS ../../../build/crt1/crts2313.o" dox all
make[3]: Entering directory `/mingw/inst/avr-libc-
20021104cvs/doc/examples/demo'
fig2dev -L eps demo.fig demo.eps
/bin/sh: fig2dev: command not found
make[3]: *** [demo.eps] Error 127
make[3]: Leaving directory `/mingw/inst/avr-libc-
20021104cvs/doc/examples/demo'
make[2]: *** [demo] Error 2
make[2]: Leaving directory `/mingw/inst/avr-libc-
20021104cvs/build/doc/api'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/mingw/inst/avr-libc-20021104cvs/build/doc'
make: *** [all-recursive] Error 1

I do not know how to handle this error.

Patrizio Zelotti
----- Original Message ----- 
From: Marc Wetzel 
To: 'Patrizio Zelotti' ; address@hidden 
Sent: Wednesday, November 20, 2002 12:54 AM
Subject: RE: [avr-gcc-list] avr-gcc win32 build


Check your environment. (`set´)

It seems you have the variable CC poiting to avr-gcc

Clear it (`unset CC´ or `set CC=´) and reconfigure (`configure´)

 

Greetings and good luck

 

Keep me posted on your success!

 

Marc Wetzel

 

-----Original Message-----
From: address@hidden [mailto:address@hidden 
On Behalf Of Patrizio Zelotti
Sent: Dienstag, 19. November 2002 23:30
To: address@hidden
Subject: [avr-gc
 avr-gcc win32 build

 

Hi,

 

I tried to build avr-gcc for win32 system using mingw compiler; I get
snapshot of version 20021104 from

 

  http://savannah.nongnu.org/download/avr-libc/snapshots/

 

and I follow the instructions in

 

 http://www.engr.uconn.edu/~tmahar/avrgcc

 

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 "xregerr
rror 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/ccxP
r: 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


avr-gcc-list at http://avr1.org



reply via email to

[Prev in Thread] Current Thread [Next in Thread]