Skip to content

ghc-9.4 branch fails to configure

Summary

See also #24302 (closed)

checking for ghc-pkg matching /opt/ghc-9.6.4/bin/ghc... /opt/ghc-9.6.4/bin/ghc-pkg
checking for happy... /home/andi/.cabal/bin/happy
checking for version of happy... 1.20.1.1
checking for alex... /home/andi/.cabal/bin/alex
checking for version of alex... Option '--verbose' not yet implementedUsage: alex [OPTION...] file

  -o FILE    --outfile=FILE     write the output to FILE (default: file.hs)
  -i[FILE]   --info[=FILE]      put detailed state-machine info in FILE (or file.info)
  -t DIR     --template=DIR     look in DIR for template files
  -g         --ghc              use GHC extensions
  -l         --latin1           generated lexer will use the Latin-1 encoding instead of UTF-8
  -s NUMBER  --tab-size=NUMBER  set tab size to be used in the generated lexer (default: 8)
  -d         --debug            produce a debugging scanner
  -v         --verbose          be verbose (not yet implemented)
  -?         --help             display this help and exit
  -V         --version          output version information and exit
             --numeric-version  output the version number and exit

configure: error: Alex >= 3.2.6 && < 4 is required to compile GHC.
andi@horzube Thu 13:21:~/ghc_94$ alex --version
Alex version 3.5.0.0, (c) 2003 Chris Dornan and Simon Marlow

Steps to reproduce

git clone <bla>
git checkout ghc-9.4
./boot
./configure

Environment

  • GHC version used: 9.2.7

Optional:

  • Operating System:
  • System Architecture:
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information