Compiling GHC with Clang

Christian Maeder Christian.Maeder at
Wed Apr 2 08:21:53 UTC 2014

In the sources of ghc-7.8-rc2 I only find the file

How is this one turned into a file Lexer.x?

Am 02.04.2014 09:49, schrieb Herbert Valerio Riedel:
> On 2014-04-02 at 09:35:31 +0200, Christian Maeder wrote:
>> I had a similar problem on a Mac (and clang) that I could solve by
>> updating to the versions of (happy and) alex that you already use. Are
>> you sure that Lexer.hs was freshly (re-)generated?
> was freshly generated (by [1] - I forced it to be recreated by
> removing it), and it has exactly the same content it has when using GCC
> for building (which succeeds compiling it)
> Does it make a difference whether 'Alex' was compiled by a
> Clang-configured GHC in the first place?
>   [1]: "${HOME}/.cabal/bin/alex"  -g --latin1   compiler/parser/Lexer.x -o compiler/stage2/build/Lexer.hs
>        ...and ${HOME}/.cabal/bin/alex is in fact version 3.1.3

More information about the ghc-devs mailing list