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

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

[avr-gcc-list] compiling avr-gcc in osx


From: John Butera
Subject: [avr-gcc-list] compiling avr-gcc in osx
Date: Sat, 27 Sep 2003 04:20:40 -0500

I am trying to build the avr tool chain in osx 10.2.6, but I am having difficulty compiling gcc.

For the most part, I am following the instructions listed in the avr-libc manual.. http://savannah.nongnu.org/download/avr-libc/doc/avr-libc-user-manual/ install_tools.html

I downloaded the source tarballs from the links at the top of http://savannah.nongnu.org/download/avr-libc/released/
binutils-2.14 with the info fix patch applied
gcc-core-3.3.1 with the combine and info fix patches applied

I built and installed binutils 2.14 using /usr/local/avr as my prefix dir. I have /usr/local/avr/bin and sbin in my PATH.

When compiling gcc, I get a few errors, and I'm not sure what to do about them. I looked at builtin-attrs.def, but was unable to figure out why gcc complains about a missing right curly brace. Below is the output of make, minus a _lot_ of "warning: style of line directive is a GCC extension" (not noted) and a handful of very similar errors (-cut-). If the entire output would help to figure out the problem, let me know.

Thanks,
John

% make
make[2]: Nothing to be done for `all'.
(cd intl && make all)
make[2]: Nothing to be done for `all'.
gcc -c -g -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -DHAVE_CONFIG_H -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/config -I../../gcc/../include ../../gcc/c-common.c -o c-common.o
../../gcc/builtin-attrs.def:118: missing right curly brace, found `_0'
../../gcc/builtin-attrs.def:118: illegal external declaration, missing `;' after `ATTR_FORMAT_PRINTF_1'
../../gcc/builtin-attrs.def:119: undefined type, found `ATTR_PRINTF_1'
../../gcc/builtin-attrs.def:119: illegal external declaration, missing `;' after `ATTR_FORMAT_PRINTF_1'
-cut-
../../gcc/builtin-attrs.def:129: undefined type, found `ATTR_STRFMON_3'
../../gcc/builtin-attrs.def:129: illegal external declaration, missing `;' after `ATTR_FORMAT_STRFMON_3'
../../gcc/builtin-attrs.def:118: syntax error, found `_0'
-cut-
../../gcc/builtin-attrs.def:129: syntax error, found `_4'
cpp-precomp: warning: errors during smart preprocessing, retrying in basic mode
In file included from ../../gcc/c-common.c:3161:
../../gcc/builtin-attrs.def:118: parse error before "_0"
../../gcc/builtin-attrs.def:119: redefinition of `ATTR_PRINTF_1'
../../gcc/builtin-attrs.def:118: `ATTR_PRINTF_1' previously defined here
-cut-
../../gcc/builtin-attrs.def:127: redefinition of `ATTR_FORMAT_SCANF_2'
../../gcc/builtin-attrs.def:126: `ATTR_FORMAT_SCANF_2' previously defined here
In file included from ../../gcc/c-common.c:3583:
../../gcc/builtins.def: In function `c_common_nodes_and_builtins':
../../gcc/builtins.def:530: `ATTR_FORMAT_PRINTF_1_2' undeclared (first use in this function)
-cut-
../../gcc/builtins.def:574: `ATTR_FORMAT_PRINTF_2_0' undeclared (first use in this function)
In file included from ../../gcc/c-common.c:5192:
../../gcc/builtin-attrs.def: In function `c_init_attributes':
../../gcc/builtin-attrs.def:118: parse error before "_0"
-cut-
../../gcc/builtin-attrs.def:129: parse error before "_4"
In file included from ../../gcc/c-common.c:5220:
../../gcc/builtin-attrs.def: In function `c_common_insert_default_attributes': ../../gcc/builtin-attrs.def:155: `ATTR_FORMAT_SCANF_2_3' undeclared (first use in this function)
-cut-
../../gcc/builtin-attrs.def:177: `ATTR_FORMAT_STRFMON_3_4' undeclared (first use in this function)
make[1]: *** [c-common.o] Error 1
make: *** [all-gcc] Error 2



reply via email to

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