gcc support for AVR
Jason Hill
jhill@cs.berkeley.edu
Tue May 1 16:26:00 GMT 2001
I am attempting to compile GCC for the AVR target on CYGWIN. I've tried
a couple of the current snapshots including gcc-20010423. Attached is
the error that I run into. The new cross compiler fails the first time
it attempts to parse C code. It compiles several assembly files first
and then fails as it attempts to compile the "C" portion of libc. Could
you direct me to the correct mailing list for this type of problem?
Thanks,
Jason Hill
-------------- next part --------------
make[1]: Entering directory `/cygdrive/c/atmega_gcc/objs/libiberty'
make[2]: Entering directory `/cygdrive/c/atmega_gcc/objs/libiberty/testsuite'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/cygdrive/c/atmega_gcc/objs/libiberty/testsuite'
make[1]: Leaving directory `/cygdrive/c/atmega_gcc/objs/libiberty'
make[1]: Entering directory `/cygdrive/c/atmega_gcc/objs/gcc'
(cd intl && make all)
make[2]: Entering directory `/cygdrive/c/atmega_gcc/objs/gcc/intl'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/cygdrive/c/atmega_gcc/objs/gcc/intl'
(cd po && make all)
make[2]: Entering directory `/cygdrive/c/atmega_gcc/objs/gcc/po'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/cygdrive/c/atmega_gcc/objs/gcc/po'
make GCC_FOR_TARGET="/cygdrive/c/atmega_gcc/objs/gcc/xgcc -B/cygdrive/c/atmega_gcc/objs/gcc/ -B/usr/local/avr/bin/ -B/usr/local/avr/lib/ -isystem /usr/local/avr/include" \
HOST_PREFIX="" HOST_PREFIX_1="loser-" \
AR_FOR_TARGET="avr-ar" \
AR_CREATE_FOR_TARGET="avr-ar rc" \
AR_FLAGS_FOR_TARGET="" \
OLDCC="cc" CCLIBFLAGS="-O" \
CFLAGS="-g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long" \
RANLIB_FOR_TARGET="avr-ranlib" \
RANLIB_TEST_FOR_TARGET="[ -f avr-ranlib ] || ( [ "i586-pc-cygwin" = "avr-unknown-none" ] && [ -f /usr/bin/ranlib -o -f /bin/ranlib ] )" \
NM_FOR_TARGET="avr-nm" AWK="gawk" \
LIBGCC2_CFLAGS="-O2 -DCROSS_COMPILE -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include -DDF=SF -Dinhibit_libc -mcall-prologues -g1 -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc" \
INCLUDES="-I. -I. -I/c/atmega_gcc/gcc-20010423/gcc -I/c/atmega_gcc/gcc-20010423/gcc/. -I/c/atmega_gcc/gcc-20010423/gcc/config -I/c/atmega_gcc/gcc-20010423/gcc/../include" MAYBE_USE_COLLECT2="" \
CONFIG_H=" insn-codes.h" MACHMODE_H="machmode.h machmode.def" \
LIB1ASMSRC='avr/libgcc.S' \
MAKEOVERRIDES= \
-f libgcc.mk all
make[2]: Entering directory `/cygdrive/c/atmega_gcc/objs/gcc'
for d in libgcc avr3 libgcc/avr3 avr4 libgcc/avr4 avr5 libgcc/avr5; do \
if [ -d $d ]; then true; else mkdir $d; fi \
done
if [ -f stmp-dirs ]; then true; else touch stmp-dirs; fi
/cygdrive/c/atmega_gcc/objs/gcc/xgcc -B/cygdrive/c/atmega_gcc/objs/gcc/ -B/usr/local/avr/bin/ -B/usr/local/avr/lib/ -isystem /usr/local/avr/include -O2 -DCROSS_COMPILE -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include -DDF=SF -Dinhibit_libc -mcall-prologues -g1 -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. -I/c/atmega_gcc/gcc-20010423/gcc -I/c/atmega_gcc/gcc-20010423/gcc/. -I/c/atmega_gcc/gcc-20010423/gcc/config -I/c/atmega_gcc/gcc-20010423/gcc/../include -DL_muldi3 -c /c/atmega_gcc/gcc-20010423/gcc/libgcc2.c -o libgcc/./_muldi3.o
In file included from tm.h:6,
from /c/atmega_gcc/gcc-20010423/gcc/config/avr/xm-avr.h:1,
from tconfig.h:6,
from /c/atmega_gcc/gcc-20010423/gcc/longlong.h:36,
from /c/atmega_gcc/gcc-20010423/gcc/libgcc2.h:320,
from /c/atmega_gcc/gcc-20010423/gcc/libgcc2.c:46:
/c/atmega_gcc/gcc-20010423/gcc/config/avr/avr.h:46: parse error before "target_flags"
/c/atmega_gcc/gcc-20010423/gcc/config/avr/avr.h:46: warning: type defaults to `int' in declaration of `target_flags'
/c/atmega_gcc/gcc-20010423/gcc/config/avr/avr.h:46: warning: data definition has no type or storage class
/c/atmega_gcc/gcc-20010423/gcc/config/avr/avr.h:135: parse error before '*' token
/c/atmega_gcc/gcc-20010423/gcc/config/avr/avr.h:135: warning: type defaults to `int' in declaration of `avr_init_stack'
/c/atmega_gcc/gcc-20010423/gcc/config/avr/avr.h:135: conflicting types for `avr_init_stack'
/c/atmega_gcc/gcc-20010423/gcc/config/avr/avr.h:135: previous declaration of `avr_init_stack'
/c/atmega_gcc/gcc-20010423/gcc/config/avr/avr.h:135: warning: data definition has no type or storage class
/c/atmega_gcc/gcc-20010423/gcc/config/avr/avr.h:136: parse error before '*' token
/c/atmega_gcc/gcc-20010423/gcc/config/avr/avr.h:136: warning: type defaults to `int' in declaration of `avr_mcu_name'
/c/atmega_gcc/gcc-20010423/gcc/config/avr/avr.h:136: conflicting types for `avr_mcu_name'
/c/atmega_gcc/gcc-20010423/gcc/config/avr/avr.h:136: previous declaration of `avr_mcu_name'
/c/atmega_gcc/gcc-20010423/gcc/config/avr/avr.h:136: warning: data definition has no type or storage class
/c/atmega_gcc/gcc-20010423/gcc/config/avr/avr.h:137: parse error before "avr_mega_p"
/c/atmega_gcc/gcc-20010423/gcc/config/avr/avr.h:137: warning: type defaults to `int' in declaration of `avr_mega_p'
/c/atmega_gcc/gcc-20010423/gcc/config/avr/avr.h:137: warning: data definition has no type or storage class
/c/atmega_gcc/gcc-20010423/gcc/config/avr/avr.h:138: parse error before "avr_enhanced_p"
/c/atmega_gcc/gcc-20010423/gcc/config/avr/avr.h:138: warning: type defaults to `int' in declaration of `avr_enhanced_p'
/c/atmega_gcc/gcc-20010423/gcc/config/avr/avr.h:138: warning: data definition has no type or storage class
/c/atmega_gcc/gcc-20010423/gcc/config/avr/avr.h:543: redeclaration of `enum reg_class'
/c/atmega_gcc/gcc-20010423/gcc/config/avr/avr.h:544: conflicting types for `NO_REGS'
/c/atmega_gcc/gcc-20010423/gcc/config/avr/avr.h:544: previous declaration of `NO_REGS'
/c/atmega_gcc/gcc-20010423/gcc/config/avr/avr.h:545: conflicting types for `R0_REG'
/c/atmega_gcc/gcc-20010423/gcc/config/avr/avr.h:545: previous declaration of `R0_REG'
/c/atmega_gcc/gcc-20010423/gcc/config/avr/avr.h:546: conflicting types for `POINTER_X_REGS'
/c/atmega_gcc/gcc-20010423/gcc/config/avr/avr.h:546: previous declaration of `POINTER_X_REGS'
/c/atmega_gcc/gcc-20010423/gcc/config/avr/avr.h:547: conflicting types for `POINTER_Y_REGS'
/c/atmega_gcc/gcc-20010423/gcc/config/avr/avr.h:547: previous declaration of `POINTER_Y_REGS'
/c/atmega_gcc/gcc-20010423/gcc/config/avr/avr.h:548: conflicting types for `POINTER_Z_REGS'
/c/atmega_gcc/gcc-20010423/gcc/config/avr/avr.h:548: previous declaration of `POINTER_Z_REGS'
/c/atmega_gcc/gcc-20010423/gcc/config/avr/avr.h:549: conflicting types for `STACK_REG'
/c/atmega_gcc/gcc-20010423/gcc/config/avr/avr.h:549: previous declaration of `STACK_REG'
/c/atmega_gcc/gcc-20010423/gcc/config/avr/avr.h:550: conflicting types for `BASE_POINTER_REGS'
/c/atmega_gcc/gcc-20010423/gcc/config/avr/avr.h:550: previous declaration of `BASE_POINTER_REGS'
/c/atmega_gcc/gcc-20010423/gcc/config/avr/avr.h:551: conflicting types for `POINTER_REGS'
/c/atmega_gcc/gcc-20010423/gcc/config/avr/avr.h:551: previous declaration of `POINTER_REGS'
/c/atmega_gcc/gcc-20010423/gcc/config/avr/avr.h:552: conflicting types for `ADDW_REGS'
/c/atmega_gcc/gcc-20010423/gcc/config/avr/avr.h:552: previous declaration of `ADDW_REGS'
/c/atmega_gcc/gcc-20010423/gcc/config/avr/avr.h:553: conflicting types for `SIMPLE_LD_REGS'
/c/atmega_gcc/gcc-20010423/gcc/config/avr/avr.h:553: previous declaration of `SIMPLE_LD_REGS'
/c/atmega_gcc/gcc-20010423/gcc/config/avr/avr.h:554: conflicting types for `LD_REGS'
/c/atmega_gcc/gcc-20010423/gcc/config/avr/avr.h:554: previous declaration of `LD_REGS'
/c/atmega_gcc/gcc-20010423/gcc/config/avr/avr.h:555: conflicting types for `NO_LD_REGS'
/c/atmega_gcc/gcc-20010423/gcc/config/avr/avr.h:555: previous declaration of `NO_LD_REGS'
/c/atmega_gcc/gcc-20010423/gcc/config/avr/avr.h:556: conflicting types for `GENERAL_REGS'
/c/atmega_gcc/gcc-20010423/gcc/config/avr/avr.h:556: previous declaration of `GENERAL_REGS'
/c/atmega_gcc/gcc-20010423/gcc/config/avr/avr.h:557: conflicting types for `ALL_REGS'
/c/atmega_gcc/gcc-20010423/gcc/config/avr/avr.h:557: previous declaration of `ALL_REGS'
/c/atmega_gcc/gcc-20010423/gcc/config/avr/avr.h:558: conflicting types for `LIM_REG_CLASSES'
/c/atmega_gcc/gcc-20010423/gcc/config/avr/avr.h:558: previous declaration of `LIM_REG_CLASSES'
/c/atmega_gcc/gcc-20010423/gcc/config/avr/avr.h:1189: redefinition of `struct avr_args'
/c/atmega_gcc/gcc-20010423/gcc/config/avr/avr.h:1190: parse error before "bogus_type"
/c/atmega_gcc/gcc-20010423/gcc/config/avr/avr.h:1190: warning: no semicolon at end of struct or union
/c/atmega_gcc/gcc-20010423/gcc/config/avr/avr.h:1191: warning: type defaults to `int' in declaration of `regno'
/c/atmega_gcc/gcc-20010423/gcc/config/avr/avr.h:1191: warning: data definition has no type or storage class
/c/atmega_gcc/gcc-20010423/gcc/config/avr/avr.h:1192: warning: useless keyword or type name in empty declaration
/c/atmega_gcc/gcc-20010423/gcc/config/avr/avr.h:1192: warning: empty declaration
/c/atmega_gcc/gcc-20010423/gcc/config/avr/avr.h:1246: parse error before "avr_reg_order"
/c/atmega_gcc/gcc-20010423/gcc/config/avr/avr.h:1246: warning: type defaults to `int' in declaration of `avr_reg_order'
/c/atmega_gcc/gcc-20010423/gcc/config/avr/avr.h:1246: warning: data definition has no type or storage class
/c/atmega_gcc/gcc-20010423/gcc/config/avr/avr.h:2770: parse error before "avr_case_values_threshold"
/c/atmega_gcc/gcc-20010423/gcc/config/avr/avr.h:2770: warning: type defaults to `int' in declaration of `avr_case_values_threshold'
/c/atmega_gcc/gcc-20010423/gcc/config/avr/avr.h:2770: warning: data definition has no type or storage class
In file included from /c/atmega_gcc/gcc-20010423/gcc/libgcc2.h:320,
from /c/atmega_gcc/gcc-20010423/gcc/libgcc2.c:46:
/c/atmega_gcc/gcc-20010423/gcc/longlong.h: In function `__muldi3':
/c/atmega_gcc/gcc-20010423/gcc/longlong.h:362: warning: implicit declaration of function `__umulsidi3'
In file included from /c/atmega_gcc/gcc-20010423/gcc/libgcc2.h:320,
from /c/atmega_gcc/gcc-20010423/gcc/libgcc2.c:46:
/c/atmega_gcc/gcc-20010423/gcc/longlong.h:2321:12: warning: no newline at end of file
/c/atmega_gcc/gcc-20010423/gcc/longlong.h:1511:1: unterminated #ifndef
/c/atmega_gcc/gcc-20010423/gcc/longlong.h:1508:1: unterminated #else
/c/atmega_gcc/gcc-20010423/gcc/longlong.h:1488:1: unterminated #ifdef
/c/atmega_gcc/gcc-20010423/gcc/libgcc2.c: At top level:
/c/atmega_gcc/gcc-20010423/gcc/libgcc2.c:354: parse error before "__muldi3"
/c/atmega_gcc/gcc-20010423/gcc/libgcc2.c:354: parse error before "u"
/c/atmega_gcc/gcc-20010423/gcc/libgcc2.c:355: warning: return type defaults to `int'
/c/atmega_gcc/gcc-20010423/gcc/libgcc2.c:355: conflicting types for `__muldi3'
/c/atmega_gcc/gcc-20010423/gcc/longlong.h:355: previous declaration of `__muldi3'
/c/atmega_gcc/gcc-20010423/gcc/libgcc2.c: In function `__muldi3':
/c/atmega_gcc/gcc-20010423/gcc/libgcc2.c:359: `u' undeclared (first use in this function)
/c/atmega_gcc/gcc-20010423/gcc/libgcc2.c:359: (Each undeclared identifier is reported only once
/c/atmega_gcc/gcc-20010423/gcc/libgcc2.c:359: for each function it appears in.)
/c/atmega_gcc/gcc-20010423/gcc/libgcc2.c:360: `v' undeclared (first use in this function)
/c/atmega_gcc/gcc-20010423/gcc/libgcc2.c:360: warning: left-hand operand of comma expression has no effect
/c/atmega_gcc/gcc-20010423/gcc/libgcc2.c:363: `UWtype' undeclared (first use in this function)
/c/atmega_gcc/gcc-20010423/gcc/libgcc2.c:363: parse error before "uu"
/c/atmega_gcc/gcc-20010423/gcc/libgcc2.c: At top level:
/c/atmega_gcc/gcc-20010423/gcc/config/avr/avr.h:1246: warning: array `avr_reg_order' assumed to have one element
make[2]: *** [libgcc/./_muldi3.o] Error 1
make[2]: Leaving directory `/cygdrive/c/atmega_gcc/objs/gcc'
make[1]: *** [stmp-multilib] Error 2
make[1]: Leaving directory `/cygdrive/c/atmega_gcc/objs/gcc'
make: *** [all-gcc] Error 2
More information about the Gcc
mailing list