Skip to content

/usr/bin/flex: unknown flag '-'. #15

Closed

Description

@snikch

When running make I get the following error

[ 3%] [FLEX][XHPScanner] Building scanner with flex /usr/bin/flex version 2.5.4
/usr/bin/flex: unknown flag '-'. For usage, try
/usr/bin/flex --help
make[2]: *** [src/third_party/xhp/xhp/scanner.lex.cpp] Error 1
make[1]: *** [src/third_party/xhp/xhp/CMakeFiles/xhp.dir/all] Error 2
make: *** [all] Error 2

Activity

  1. serphen commented on Feb 21, 2010

    @serphen
    Contributor

    Hint: "-" appeared in Flex 2.5.33. No idea about the solution though.

  2. erikljungstrom commented on Feb 21, 2010

    @erikljungstrom

    You'll need to get a more recent version of flex and put it under CMAKE_PREFIX_PATH. It's the --header-file argument which isn't recognised by earlier versions (most notably the version shipped with latest RHEL)

  3. scottmac commented on Feb 21, 2010

    @scottmac
    Contributor

    Stricter version check is now performed in CMake.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions