Friday, 13 February 2015

Re: [gccsdk] Flex and Bison broken?

In message <op.xtqoxoeyizronj@bluey>
WPB <wpb.feed@gmx.com> wrote:

> On Sun, 08 Feb 2015 12:11:22 -0000, alan buckley <alan_baa@hotmail.com>
> wrote:
>
> > WPB wrote on Date: Sat, 7 Feb 2015 20:27:31:
> [snip]
> >> So it looks like there's a hard-coded reference in there to a file:
> >> /home/alanb/gccsdk/env/share/bison/m4sugar/m4sugar.m4 - again, it
> >> appears
> >> 'bison' is broken. Would people agree?
> >>
> [snip]
> >
> > The path looks like it's from my machine when I last ran the autobuilder
> > on bison. If anyone knows what the paths should be for RISC OS (or
> > better still had a patch) I can look at fixing and rebuilding both flex
> > and bison.
> >
> > Regards,
> > Alan
>
> Just found this:
> http://permalink.gmane.org/gmane.comp.parsers.bison.general/5282
>
> which may help resolve this?
>
> WPB

I poked around in output.c from the bison source, and found that you can use

set BISON_PKGDATADIR /some/dir
to over-ride the data directory position, and
set M4 /somedir/m4
to overide the m4 binary path and name.

for bison to find with getenv("M4") etc.
You may still need the data directory contents?

Ron M.

_______________________________________________
GCCSDK mailing list gcc@gccsdk.riscos.info
Bugzilla: http://www.riscos.info/bugzilla/index.cgi
List Info: http://www.riscos.info/mailman/listinfo/gcc
Main Page: http://www.riscos.info/index.php/GCCSDK

No comments:

Post a Comment