From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17387 invoked by alias); 1 Apr 2003 19:55:57 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 17350 invoked from network); 1 Apr 2003 19:55:56 -0000 Received: from unknown (HELO amsterdam.lcs.mit.edu) (18.26.4.9) by sources.redhat.com with SMTP; 1 Apr 2003 19:55:56 -0000 Received: (from benjie@localhost) by amsterdam.lcs.mit.edu (8.11.6p2/8.11.6) id h31Jts192293 for gcc@gcc.gnu.org; Tue, 1 Apr 2003 14:55:54 -0500 (EST) (envelope-from benjie) Date: Tue, 01 Apr 2003 21:45:00 -0000 From: Benjie Chen To: gcc@gcc.gnu.org Subject: problem compiling gcc Message-ID: <20030401195554.GB92170@amsterdam.lcs.mit.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i X-SW-Source: 2003-04/txt/msg00045.txt.bz2 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