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

Eelco Dolstra eelco at cs.uu.nl
Mon May 14 14:22:04 CEST 2007


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