any successfull ghc registerised builds on arm?
Karel Gardas
karel.gardas at centrum.cz
Sat Jan 19 23:37:45 CET 2013
Hi,
I just build 7.6.1 release on my ubuntu 12.04.1 LTS which is hard-float
ABI distro. I used distro provided LLVM 3.0 and configured GHC with:
./configure --with-llc=/usr/bin/llc-3.0 --with-opt=/usr/bin/opt-3.0
And resulting ghc-stage2 is not only able to complete the build but also
builds HelloWorld example which runs fine:
$ ./inplace/bin/ghc-stage2 --info
[("Project name","The Glorious Glasgow Haskell Compilation System")
,("GCC extra via C opts"," -fwrapv")
,("C compiler command","/usr/bin/gcc")
,("C compiler flags"," -fno-stack-protector -Wl,--hash-size=31
-Wl,--reduce-memory-overheads")
,("ar command","/usr/bin/ar")
,("ar flags","q")
,("ar supports at file","YES")
,("touch command","touch")
,("dllwrap command","/bin/false")
,("windres command","/bin/false")
,("perl command","/usr/bin/perl")
,("target os","OSLinux")
,("target arch","ArchARM {armISA = ARMv7, armISAExt = [VFPv3,NEON],
armABI = HARD}")
,("target word size","4")
,("target has GNU nonexec stack","False")
,("target has .ident directive","True")
,("target has subsections via symbols","False")
,("LLVM llc command","/usr/bin/llc-3.0")
,("LLVM opt command","/usr/bin/opt-3.0")
,("Project version","7.6.1")
,("Booter version","7.4.1")
,("Stage","2")
,("Build platform","arm-unknown-linux")
,("Host platform","arm-unknown-linux")
,("Target platform","arm-unknown-linux")
,("Have interpreter","YES")
,("Object splitting supported","NO")
,("Have native code generator","NO")
,("Support SMP","YES")
,("Unregisterised","NO")
,("Tables next to code","YES")
,("RTS ways","l debug thr thr_debug thr_l thr_p ")
,("Leading underscore","NO")
,("Debug on","False")
,("LibDir","/export/home/karel/src/ghc-7.6.1/inplace/lib")
,("Global Package
DB","/export/home/karel/src/ghc-7.6.1/inplace/lib/package.conf.d")
,("Gcc Linker
flags","[\"-Wl,--hash-size=31\",\"-Wl,--reduce-memory-overheads\"]")
,("Ld Linker flags","[\"--hash-size=31\",\"--reduce-memory-overheads\"]")
]
karel at panda:/export/home/karel/src/ghc-7.6.1$
karel at panda:/export/home/karel/src/ghc-7.6.1$ ./inplace/bin/ghc-stage2
--make HelloWorld.hs
[1 of 1] Compiling Main ( HelloWorld.hs, HelloWorld.o )
Linking HelloWorld ...
karel at panda:/export/home/karel/src/ghc-7.6.1$ ./HelloWorld
Hello World!
karel at panda:/export/home/karel/src/ghc-7.6.1$
Please keep in mind that GHC HEAD is completely different beast as there
is new codegen put on by defaul there and LLVM codegen is not working
correctly with it yet. Anyway, Austin Seipp seems to be working on
fixing that.
Thanks,
Karel
More information about the Glasgow-haskell-users
mailing list