problems running ghc-6.8.2 on solaris 10, sparc

Duncan Coutts duncan.coutts at worc.ox.ac.uk
Sat Aug 16 07:55:36 EDT 2008


On Fri, 2008-08-15 at 16:54 +0400, Daniil Elovkov wrote:

> 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 :)

The better solution is to pass -optl-mcpu=v9. The reason you get the
problem is that you're using v9 for code gen (probably in your CFLAGS
env var or something) but not for the assembly phase, so tell it to use
v9 as the assembly phase too and it works.




More information about the Glasgow-haskell-users mailing list