Subject: Re: bug#21373: compile for development version from git fails on OpenBSD

From: <[email-masked]>
Date: Sat, 29 Aug 2015 14:26:55 +0200

On Fri, Aug 28, 2015 at 09:47:51PM -0400, Jamil Egdemir wrote:
> Hi Guys,
> 
> I just pulled the latest from the git repo and the build failed on
> OpenBSD 5.6 (output from dmesg is all the way at the bottom if that
> helps):
> 
> $ git clone http://git.sv.gnu.org/r/guile.git 
> $ cd guile
> $ autoreconf --install
> $ ./configure --prefix=/home/me/usr \
>     --with-libltdl-prefix=/usr/local      \
>     --with-libgmp-prefix=/usr/local       \
>     --with-libunistring-prefix=/usr/local
> $ gmake

[elided]

> flex -t ./c-tokenize.lex > c-tokenize.c || { rm c-tokenize.c; false; }
> "./c-tokenize.lex", line 1: unrecognized '%' directive
> "./c-tokenize.lex", line 7: bad character: #
> "./c-tokenize.lex", line 7: unknown error processing section 1
> "./c-tokenize.lex", line 8: bad character: #
> "./c-tokenize.lex", line 8: bad character: <
> "./c-tokenize.lex", line 8: bad character: .
> "./c-tokenize.lex", line 8: bad character: >
> "./c-tokenize.lex", line 9: bad character: #
> "./c-tokenize.lex", line 10: bad character: }

[elided]

Just as a first hunch, I'd double check whether you've got a suitable
version/variant of flex.

Regards
- -- tomás