🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #52763

GCC 2.1 + SunOS 4.1.1 + YACC problem

#52763
From: Wayne Folta
Date: Thu, 04 Jun 1992 00:51
24 lines
1759 bytes
At work, I copied GCC 2.1 to a tape and onto my system and tried to make
it. I hadn't gotten Bison (and the guy I got it from is out of the country),
so I modified the Makefile to use yacc (including mv's where necessary because
Sun yacc does not do -o).

Stage1 goes pretty smoothly, except that I had to define YYLEX (yylex ()) and
YYEMPTY (or was it YYEOF, to -2). BUT, stage2 has real problems. There are
boatloads of undeclared functions, ranging from strncmp and read, to internal
gcc functions like xmalloc and ????_p. I was trying to work through this by
declaring each in config.h, but this will take forever and is bogus anyhow.

Did using yacc screw me up? Another problem is that, in #includes, typedefs
create a syntax error when used. Thus "time_t time () ;" returns a syntax
error "before time". In-line, the typedefs work okay (or at least it works
okay on local variables).

I know that the guy I got it from may have hosed it up, so I apologize for even
asking, but maybe a gcc guru might instinctively know what's up.

Thanks!
-- 


Wayne Folta          (folta@cs.umd.edu  128.8.128.8)
Technical Details
Message-ID: <56259@mimsy.umd.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!agate!usenet.ins.cwru.edu!magnus.acs.ohio-state.edu!sample.eng.ohio-state.edu!purdue!haven.umd.edu!mimsy!folta

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,9df1c855710879ef,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1992-06-03 19:15:38 PST
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!agate!usenet.ins.cwru.edu!magnus.acs.ohio-state.edu!sample.eng.ohio-state.edu!purdue!haven.umd.edu!mimsy!folta
From: folta@cs.umd.edu (Wayne Folta)
Newsgroups: gnu.gcc.help
Subject: GCC 2.1 + SunOS 4.1.1 + YACC problem
Message-ID: <56259@mimsy.umd.edu>
Date: 4 Jun 92 00:51:58 GMT
Sender: news@mimsy.umd.edu
Distribution: usa
Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742
Lines: 24