What to do if your hadrian build starts failing (supportedLlvmVersion)

Matthew Pickering matthewtpickering at gmail.com
Tue Jul 2 09:01:34 UTC 2019


If you see this message:

Exit code: 1
Stderr:
compiler/llvmGen/LlvmCodeGen/Base.hs:192:36: error:
    • Couldn't match expected type ‘Int’
                  with actual type ‘(Integer, Integer)’
    • In the first argument of ‘LlvmVersion’, namely ‘(7, 0)’
      In the expression: LlvmVersion (7, 0)
      In an equation for ‘supportedLlvmVersion’:
          supportedLlvmVersion = LlvmVersion (7, 0)
    |
192 | supportedLlvmVersion = LlvmVersion sUPPORTED_LLVM_VERSION
    |                                    ^^^^^
)

Then you need to delete the `includes/ghcautoconf.h` file. It is a
file generated by the Make build system.

Cheers,

Matt


More information about the ghc-devs mailing list