GHC 7.8 RC2: ARM cross compiler (LLVM Error)
ltclifton at gmail.com
Wed Mar 5 05:18:01 UTC 2014
I successfully compiled a native GHC 7.8 RC2 from the source distribution.
I now want to create an GHC cross compiler targeting ARM. So I do a
./configure --target=arm-linux-gnueabi --with-gcc=arm-linux-gnueabi-gcc
(I don't know why I have to explicitly supply the GCC, documentation seems
to suggest that it would pick that up based on target, which it seems to do
I then make a copy of the mk/build.mk.sample and place it at mk/build.mk and
uncomment the BuildFlavour = quick-cross line.
At this point I run make and it goes along happily until...
"inplace/bin/ghc-stage1" -hisuf hi -osuf o -hcsuf hc -static -H64m -O0
-package-name haskeline-0.7.1.2 -hide-all-packages -i
-Ilibraries/haskeline/includes -optP-DUSE_GHC_ENCODINGS -optP-DTERMINFO
base-184.108.40.206 -package bytestring-0.10.4.0 -package containers-0.5.4.0
-package directory-220.127.116.11 -package filepath-18.104.22.168 -package
terminfo-0.4.0.0 -package transformers-0.3.0.0 -package unix-22.214.171.124 -Wall
-XHaskell98 -XForeignFunctionInterface -XRank2Types -XFlexibleInstances
-XTypeSynonymInstances -XFlexibleContexts -XExistentialQuantification
-XScopedTypeVariables -XGeneralizedNewtypeDeriving -XMultiParamTypeClasses
-XOverlappingInstances -XUndecidableInstances -XCPP -XDeriveDataTypeable
-XPatternGuards -O -fllvm -no-user-package-db -rtsopts -odir
LLVM ERROR: .Lbase_GHCziChar_chr2_info$alias: Target doesn't support
aliases to declarations
libraries/haskeline/ghc.mk:4: recipe for target
Makefile:64: recipe for target 'all' failed
make: *** [all] Error 2
Here is my setup.
- The Glorious Glasgow Haskell Compilation System, version 126.96.36.19940228
- arm-linux-gnueabi-gcc (GCC) 4.7.3
- LLVM 3.4
Is this me being silly, or is it a real problem? If it is a real problem
then I can file a ticket.
If there is anything I can do to help try and get GHC cross compiling for
ARM I would gladly do what I can.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ghc-devs