[arch-haskell] ArchLinux GHC and LLVM?
Simon Gomizelj
simongmzlj at gmail.com
Sat Oct 12 07:39:51 UTC 2013
I also get this error but it seems to compile with the addition of -pgmlc
and -pgmlo
On Tue, Jan 3, 2012 at 4:14 AM, Magnus Therning <magnus at therning.org> wrote:
> I just recently noticed that GHC in ArchLinux is compiled with the
> LLVM backend support:
>
> $ ghc --info |grep llvm
> ,("Have llvm code generator","YES")
>
> However, can it be made to work on Arch?
>
> $ cat Mains.hs
> module Main where
>
> main = return ()
> $ ghc --make -fllvm Mains.hs
> [1 of 1] Compiling Main ( Mains.hs, Mains.o )
> opt: /tmp/ghc14739_0/ghc14739_0.ll:7:78: error: argument
> attributes invalid in function type
> @Main_main_closure = global %Main_main_closure_struct <{i64
> ptrtoint (void (i64* noalias nocapture,i64* noalias nocapture,i64*
> noalias nocapture,i64 ,i64 ,i64 ,i64,i64 ,i64 ,i64 ,float ,float
> ,float ,float ,double ,double )* @Main_main_info to i64),i64 0,i64
> 0,i64 0}>
>
> /M
>
> --
> Magnus Therning OpenPGP: 0xAB4DFBA4
> email: magnus at therning.org jabber: magnus at therning.org
> twitter: magthe http://therning.org/magnus
>
> _______________________________________________
> arch-haskell mailing list
> arch-haskell at haskell.org
> http://www.haskell.org/mailman/listinfo/arch-haskell
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/arch-haskell/attachments/20131012/ed69e77e/attachment.html>
More information about the arch-haskell
mailing list