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@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@therning.org   jabber: magnus@therning.org
twitter: magthe               http://therning.org/magnus

_______________________________________________
arch-haskell mailing list
arch-haskell@haskell.org
http://www.haskell.org/mailman/listinfo/arch-haskell