🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #42035

building gcc-2.7.2 under Solaris2.4

#42035
From: Martin J. Maiers
Date: Wed, 17 Jan 1996 00:00
66 lines
2919 bytes

I'm (still) building gcc-2.7.2 under Solaris2.4.

I tried building it using gcc-2.6.0 and got the error:

  In file included from cccp.c:67:
  include/sys/stat.h:86: parse error before `timestruc_t'
  include/sys/stat.h:86: warning: no semicolon at end of struct or union
  include/sys/stat.h:87: warning: data definition has no type or storage class
  include/sys/stat.h:88: parse error before `st_ctim'
  include/sys/stat.h:88: warning: data definition has no type or storage class
  include/sys/stat.h:93: parse error before `}'
  cccp.c: In function `do_include':
  cccp.c:4656: storage size of `stat_f' isn't known
  cccp.c:4666: storage size of `s' isn't known
  cccp.c: In function `lookup_import':
  cccp.c:5173: storage size of `sb' isn't known
  cccp.c: In function `add_import':
  cccp.c:5216: storage size of `sb' isn't known
  cccp.c: In function `file_size_and_mode':
  cccp.c:10064: storage size of `sbuf' isn't known

(NOTE: stage 1 compiles cleanly, this error only occurs 
	  while making the stage2 compiler)

After posting this problem a couple weeks ago, I got 2 pieces of advice:

 1) Install the gnu utils (flex, bison, make) an put them ahead in the path.

I've done this but it doesn't seem to have helped with this particular error.
I also installed all of binutils-2.6, with no effect on the error.


 2) Download the binary release of gcc-2.5.6 for 
    Solaris2.x and use that to build gcc-2.7.2.

Well I tried building gcc-2.7.2 with gcc-2.5.6 but it didn't make it 
nearly as far as 2.6.0.  It failed during stage1:

gcc  -DIN_GCC -DSVR4  -g   -o cccp cccp.o cexp.o \
  version.o obstack.o ` case "gcc" in "cc") echo "alloca.o" ;; esac `  
Undefined                       first referenced
 symbol                             in file
stdout                              cccp.o
__fillbf                            cccp.o
__flshfp                            cccp.o
__ctype_b                           cccp.o
stderr                              cccp.o
ld: fatal: Symbol referencing errors. No output written to cccp
make: *** [cccp] Error 1

--

I know there must be something simple I'm missing...

If anyone has any ideas, I'd be glad to hear of them.


Cheers,
Martin
--
Martin Maiers, System Administrator             maiers@biosci.umn.edu
Advanced Biosciences Computing Center           (612) 624-7471
247 Gortner Labs, 1479 Gortner Ave              (612) 625-9284 (HelpLine)
St. Paul, MN 55108-1022                         (612) 625-5780 (FAX)
Technical Details
Message-ID: <4dhu87$pqj@epx.cis.umn.edu>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,292840e6913b0e3f,start
X-Google-Attributes: gid11318c,public
From: maiers@biosci.cbs.umn.edu (Martin J. Maiers)
Subject: building gcc-2.7.2 under Solaris2.4
Date: 1996/01/17
Message-ID: <4dhu87$pqj@epx.cis.umn.edu>
X-Deja-AN: 135600463
organization: University of Minnesota
newsgroups: gnu.gcc.help