
16 Aug
2008
16 Aug
'08
7:55 a.m.
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.