🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #52220

prob compiling gcc-2.3.3 on sparc

#52220
From: John Chang
Date: Wed, 20 Jan 1993 19:05
31 lines
1685 bytes
Hi,

I'm having problem building gcc-2.3.3 on a sparc running 4.1.2.  Whenever
it uses gcc to compile, it gets the following error:

 /usr/local/gnu/bin/gcc -c  -DIN_GCC   -g     -I. -I. -I./config ./genattrtab.c
 In file included from ./genattrtab.c:112:
 ./obstack.h:158: parse error before `ptrdiff_t'
 ./obstack.h:158: warning: no semicolon at end of struct or union
 ./obstack.h:163: parse error before `:'
 ./obstack.h:164: parse error before `:'
 ./genattrtab.c:114: storage size of `obstack' isn't known
			.
			.
			.
			.

That is, if I use SUN cc for make LANGUAGE=c stage, it works okay, but
fails at stage1 when it's using the compiled gcc.  If I use gcc
(already installed older version) for LANGUAGE=c, it fails.  In both
instances it's at the same point with the same error message.  I have
ran make install-fixincludes, and anyways I don't see obstack.h in the
fixed include directory.  But oddly enough, if I use -traditional
switch on genattrtab.c:

	make CC="stage1/xgcc -traditional -Bstage1/" CFLAGS="-g -O"

it works.  So I'm a little confused.  I must be doing something obviously
wrong since I don't see anyone else having problems on sparcs.  Can anyone
give me any suggestions?  Thanks.
Technical Details
Message-ID: <15h3h0j@rpi.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!rpi!changj

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,39474f9bc2796876,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1993-01-20 12:54:57 PST
Newsgroups: gnu.gcc.help
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!rpi!changj
From: changj@nova.cs.rpi.edu (John Chang)
Subject: prob compiling gcc-2.3.3 on sparc
Message-ID: <15h3h0j@rpi.edu>
Nntp-Posting-Host: nova.cs.rpi.edu
Date: Wed, 20 Jan 1993 19:05:47 GMT
Lines: 31