I also get this error but it seems to compile with the addition of -pgmlc and -pgmlo<br><br><div class="gmail_quote">On Tue, Jan 3, 2012 at 4:14 AM, Magnus Therning <span dir="ltr"><<a href="mailto:magnus@therning.org">magnus@therning.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I just recently noticed that GHC in ArchLinux is compiled with the<br>
LLVM backend support:<br>
<br>
    $ ghc --info |grep llvm<br>
     ,("Have llvm code generator","YES")<br>
<br>
However, can it be made to work on Arch?<br>
<br>
    $ cat Mains.hs<br>
    module Main where<br>
<br>
    main = return ()<br>
    $ ghc --make -fllvm Mains.hs<br>
    [1 of 1] Compiling Main             ( Mains.hs, Mains.o )<br>
    opt: /tmp/ghc14739_0/ghc14739_0.ll:7:78: error: argument<br>
attributes invalid in function type<br>
    @Main_main_closure =  global %Main_main_closure_struct <{i64<br>
ptrtoint (void (i64* noalias nocapture,i64* noalias nocapture,i64*<br>
noalias nocapture,i64 ,i64 ,i64 ,i64,i64 ,i64 ,i64 ,float ,float<br>
,float ,float ,double ,double )* @Main_main_info to i64),i64 0,i64<br>
0,i64 0}><br>
<span class="HOEnZb"><font color="#888888"><br>
/M<br>
<br>
--<br>
Magnus Therning                      OpenPGP: 0xAB4DFBA4<br>
email: <a href="mailto:magnus@therning.org">magnus@therning.org</a>   jabber: <a href="mailto:magnus@therning.org">magnus@therning.org</a><br>
twitter: magthe               <a href="http://therning.org/magnus" target="_blank">http://therning.org/magnus</a><br>
<br>
_______________________________________________<br>
arch-haskell mailing list<br>
<a href="mailto:arch-haskell@haskell.org">arch-haskell@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/arch-haskell" target="_blank">http://www.haskell.org/mailman/listinfo/arch-haskell</a><br>
</font></span></blockquote></div><br>