15 Aug 14:52
problems running ghc-6.8.2 on solaris 10, sparc
From: Daniil Elovkov <daniil.elovkov <at> googlemail.com>
Subject: problems running ghc-6.8.2 on solaris 10, sparc
Newsgroups: gmane.comp.lang.haskell.glasgow.user
Date: 2008-08-15 12:54:46 GMT
Subject: problems running ghc-6.8.2 on solaris 10, sparc
Newsgroups: gmane.comp.lang.haskell.glasgow.user
Date: 2008-08-15 12:54:46 GMT
Hello folks, Christian
I'm trying to get ghc 6.8.2 running on Solaris 10 and having problems.
To be precise, I'm trying to compile a 'hello world' program by ghc
6.8.2 which I got in binary form haskell.org.
gcc is 2.95, it uses sun linker. I remember there were problems with
that in the past. Is ghc supposed to work only with gnu ld or sun ld
as well?
So, how it went
first I got compiler errors in many places of Reg.hs:
global register variable follows a function definition
Googling showed that Don Stewart used to fix it by swapping 2 includes
in Stg.h - putting MachRegs.h after Regs.h instead of before. It
helped
Then there was assembler error:
cannot use v8plus instructions in a non-v8plus target binary
It was caused by -mcpu=v9, which ghc passes to gcc. I blindly added
-optc -mcpu=v8 and it helped :)
Then the linker complained that it could not resolve aio_fork and
__aio_suspend64, referenced from librt.so.
-lrt is passed by ghc to the linker. On this machine there is
/lib/libaio.so. Linking with it didn't help. It doesn't really contain
(Continue reading)
RSS Feed