On Fri, 16 Apr 2004, Erik Petrich wrote:
> Date: Fri, 16 Apr 2004 01:30:14 -0500 (CDT)
> From: Erik Petrich <epetrich@...>
> Reply-To: sdcc-user@...
> To: sdcc-user@...
> Subject: Re: [Sdcc-user] Re: compile problem
> On Wed, 14 Apr 2004, Peter Will wrote:
> > Hello,
> > I have tried to compile sdcc version 2.4.0. (Solaris 9 on sun hardware,
> > gcc version 3.2.3, gnu make 3.80, gnu bison 1.875, gnu flex 2.5.4a)
> > When I run the "make"-command, I alwys get the following error:
> > gmake -C src
> > gmake: Entering directory `/home/piwi/work/src/sdcc/src'
> > Makefile:91: Makefile.dep: No such file or directory
> > bison -y -d -v -o SDCCy.c SDCC.y
> > gmake: *** [SDCCy.c] Broken Pipe
> > bison ends up with a "Broken Pipe" an generated file named "SDCCy.output".
> > (see attachment; only the beginning of the file)
> > The SDCCy.output file doesn't tell me anything....
> > What am I doing wrong?
> Although I don't know what's wrong, I would focus on gmake rather than
> bison. Immediately after the "Makefile.dep: No such file or directory"
> message, it should be calling gcc to create the Makefile.dep file, but
> this step is being skipped.
> You might do a "gmake dep" from the .../sdcc/src subdirectory to force
> the creation of this Makefile.dep file and then try making the project
I solved the problem. Bison called the wrong 'm4'. Solaris is shipped with
its own version of m4. This m4 caused the error. Afer setting the
environment variable 'M4' to '/usr/local/bin/m4' the gnu-m4 the bison
command worked and compilation of sdcc was successful.