Compiling GHC with Clang

Herbert Valerio Riedel hvriedel at gmail.com
Wed Apr 2 07:49:35 UTC 2014


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?

...it 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