[Nix-dev] Problem with flex when building from source

Adam Rosien adam at rosien.net
Mon May 14 16:54:36 CEST 2007


I needed to scroll up from section 3.3 to 3.2, my apologies.  Thanks
for the help.

.. Adam

On 5/14/07, Eelco Dolstra <eelco at cs.uu.nl> wrote:
> Hi,
>
> Adam Rosien wrote:
>
> > flex -V reports "flex version 2.5.4".  Is my flex some hideously old
> > version that it wouldn't accept the gnu-style args?
>
> Yes, flex 2.5.4 is way too old :-)  Apart from the changes in command-line
> syntax, we use some features from the newer flex versions.  The same goes for
> Bison.  You need Flex 2.5.33 and Bison 2.3.  See also
> http://nix.cs.uu.nl/dist/nix/nix-unstable-latest/manual/#id2481766
>
> If you don't want to upgrade Flex/Bison, you could copy the generated
> parser/lexer files (src/libexpr/*-tab*) from a Nix source tarball.  Then it
> should build as long as you don't change the .l/.y files.
>
> --
> Eelco Dolstra | http://www.cs.uu.nl/~eelco
>



More information about the nix-dev mailing list