public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* problem compiling gcc
@ 2003-04-01 21:45 Benjie Chen
  2003-04-01 23:18 ` Mike Stump
  0 siblings, 1 reply; 3+ messages in thread
From: Benjie Chen @ 2003-04-01 21:45 UTC (permalink / raw)
  To: gcc


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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: problem compiling gcc
  2003-04-01 21:45 problem compiling gcc Benjie Chen
@ 2003-04-01 23:18 ` Mike Stump
  2003-04-02  1:10   ` Benjie Chen
  0 siblings, 1 reply; 3+ messages in thread
From: Mike Stump @ 2003-04-01 23:18 UTC (permalink / raw)
  To: Benjie Chen; +Cc: gcc

On Tuesday, April 1, 2003, at 11:55 AM, Benjie Chen wrote:
> 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.

I'd recommend a snapshot from the 3.3 branch instead.  Also, use 
CC='gcc -no-cpp-precomp' when compiling.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: problem compiling gcc
  2003-04-01 23:18 ` Mike Stump
@ 2003-04-02  1:10   ` Benjie Chen
  0 siblings, 0 replies; 3+ messages in thread
From: Benjie Chen @ 2003-04-02  1:10 UTC (permalink / raw)
  To: Mike Stump; +Cc: Benjie Chen, gcc


hi

using CC='gcc -no-cpp-precomp' fixes my problem with building
a snapshot of the 3.3 branch on MacOS. i will give this version
a try.

thanks

benjie


On Tue, Apr 01, 2003 at 01:45:43PM -0800, Mike Stump wrote:
> On Tuesday, April 1, 2003, at 11:55 AM, Benjie Chen wrote:
> >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.
> 
> I'd recommend a snapshot from the 3.3 branch instead.  Also, use 
> CC='gcc -no-cpp-precomp' when compiling.

-- 
benjie chen
benjie@lcs.mit.edu

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-04-02  0:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-01 21:45 problem compiling gcc Benjie Chen
2003-04-01 23:18 ` Mike Stump
2003-04-02  1:10   ` Benjie Chen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).