Hello *,
I've been trying to compile GHC with Clang instead of GCC on Ubuntu, by
configuring the build with
CC=/usr/bin/clang ./configure --with-gcc=/usr/bin/clang
but then, 'make' runs into
,
| inplace/bin/ghc-stage1 -hisuf hi -osuf o -hcsuf hc -static -H64m -O0
-fasm
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?
HTH Christian
Am 02.04.2014 09:14, schrieb Herbert Valerio Riedel:
Hello *,
I've been trying to
On 2014-04-02 at 09:44:03 +0200, Christian Maeder wrote:
Maybe alex needs to be compiled with clang, too?
If that's really the case, I have a little bit of a bootstrapping
problem: How can I get a Clang-built Alex, on a platform where I only
have a GCC-configured GHC available?
Am 02.04.2014 10:21, schrieb Christian Maeder:
In the sources of ghc-7.8-rc2 I only find the file
compiler/parser/Lexer.x.source
How is this one turned into a file Lexer.x?
Just by renaming! It seems Lexer.x was moved to Lexer.x.source in order
to avoid regeneration of Lexer.hs.
C.
On 2014-04-02 at 09:14:28 +0200, Herbert Valerio Riedel wrote:
[...]
| compiler/stage2/build/Lexer.hs:2426:41:
| Couldn't match expected type ‘[Char]’ with actual type ‘Int#’
| In the first argument of ‘(=)’, namely ‘offset’
| In the expression: (offset = 0#)
FYI: I've found the
Probably I could only update alex and happy after using
https://www.haskell.org/platform/ghc-clang-wrapper
that indirectly solved my problem.
Sorry for the confusion.
Christian
Am 02.04.2014 09:35, schrieb Christian Maeder:
I had a similar problem on a Mac (and clang) that I could solve by
Ah -- I see. Interesting suggestion. As we're not thinking much now about the
change to a nominal default (definitely too late for 7.8), I've recorded this
idea on the roles wiki page (https://ghc.haskell.org/trac/ghc/wiki/Roles) for
easy recovery in the future. I think the idea has merit, but
Hello!
Thanks, it continued with building until some LLVM errors.
But will --with-gcc= arm based compiler will create GHC with:
Host: x86 Ubuntu (where compilation should happen)
Target: ARMv7 Linux ?
Because I don't want to have GHC on my slow and restricted ARM machine.
Best regards,
Vassil
have you read the cross compiler directions on the wiki? :)
https://ghc.haskell.org/trac/ghc/wiki/CrossCompilation
http://www.haskell.org/haskellwiki/ARM
On Wed, Apr 2, 2014 at 12:30 PM, eng. Vassil Ognyanov Keremidchiev
var...@gmail.com wrote:
Hello!
Thanks, it continued with building