problem compiling gcc
Benjie Chen
benjie@amsterdam.lcs.mit.edu
Tue Apr 1 21:45:00 GMT 2003
hi
i have ran into several problems compiling a non 3.1 version of gcc on MacOS
X. 3.1 does not compile one of our programs that uses c++ templates
aggresively, so i am trying some other versions of gcc.
with gcc 3.0.4: it says
cc -traditional-cpp -c -DIN_GCC -g -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -DHAVE_CONFIG_H -I. -I. -I. -I./. -I./config -I./../include function.c -o function.o
function.c: In function `assign_stack_local_1':
function.c:598: `DEFAULT_ABI' undeclared (first use in this function)
function.c:598: (Each undeclared identifier is reported only once
function.c:598: for each function it appears in.)
function.c: In function `instantiate_virtual_regs':
function.c:3514: `DEFAULT_ABI' undeclared (first use in this function)
function.c: In function `instantiate_decls':
function.c:3581: warning: comparison between signed and unsigned
function.c:3581: warning: signed and unsigned type in conditional expression
function.c: In function `aggregate_value_p':
function.c:4201: `DEFAULT_ABI' undeclared (first use in this function)
function.c: In function `assign_parms':
function.c:4554: `DEFAULT_ABI' undeclared (first use in this function)
function.c: In function `locate_and_pad_parm':
function.c:5192: `DEFAULT_ABI' undeclared (first use in this function)
make: *** [function.o] Error 1
with gcc 3.2, the latest snapshot, it fails at c-common.o
builtin-attrs.def:118: missing right curly brace, found `_0'
builtin-attrs.def:118: illegal external declaration, missing `;' after `ATTR_FORMAT_PRINTF_1'
builtin-attrs.def:119: undefined type, found `ATTR_PRINTF_1'
builtin-attrs.def:119: illegal external declaration, missing `;' after `ATTR_FORMAT_PRINTF_1'
builtin-attrs.def:120: undefined type, found `ATTR_PRINTF_2'
builtin-attrs.def:120: illegal external declaration, missing `;' after `ATTR_FORMAT_PRINTF_2'
builtin-attrs.def:121: undefined type, found `ATTR_PRINTF_2'
builtin-attrs.def:121: illegal external declaration, missing `;' after `ATTR_FORMAT_PRINTF_2'
builtin-attrs.def:122: undefined type, found `ATTR_PRINTF_3'
builtin-attrs.def:122: illegal external declaration, missing `;' after `ATTR_FORMAT_PRINTF_3'
...
i am compiling them with gcc 3.1.
thanks,
benjie
More information about the Gcc
mailing list