[arch-haskell] ArchLinux GHC and LLVM?

Magnus Therning magnus at therning.org
Tue Jan 3 10:14:35 CET 2012


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



More information about the arch-haskell mailing list