[Haskell-cafe] Re: Compiling GHC for AIX5.1L

John Goerzen jgoerzen at complete.org
Thu Sep 30 07:51:41 EDT 2004

On 2004-09-30, Donald Bruce Stewart <dons at cse.unsw.edu.au> wrote:
> You can use make -k to keep going, I seem to remember, or use -pgmltrue,

Those tricks got me farther.  Now I'm on the target and stuck at:

gmake[5]: Entering directory
m4 -DPIC -DOPERATION_mul_1 mul_1.asm >tmp-mul_1.s
/bin/sh ../libtool --mode=compile gcc -c -DHAVE_CONFIG_H -I. -I. -I..
-I.. -DOPE
RATION_mul_1    -g -O2 tmp-mul_1.s -o mul_1.lo
gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -I.. -DOPERATION_mul_1 -g -O2
tmp-mul_1.s -o
 tmp-mul_1.s: Assembler messages:
 tmp-mul_1.s:55: Error: Unrecognized opcode: `mulhwu'
 tmp-mul_1.s:61: Error: Unrecognized opcode: `mulhwu'
 tmp-mul_1.s:67: Error: Unrecognized opcode: `mulhwu'
 tmp-mul_1.s:73: Error: Unrecognized opcode: `mulhwu'
 tmp-mul_1.s:82: Error: Unrecognized opcode: `mulhwu'
 tmp-mul_1.s:91: Error: Unrecognized opcode: `mulhwu'
 gmake[5]: *** [mul_1.lo] Error 1
 gmake[5]: Leaving directory

> to have ghc skip the linking phase. This was a common trick when we went
> through a porting frenzy last year. Check the mailing list archives for
> lots of hints.
>    http://www.haskell.org/pipermail/glasgow-haskell-users/2003-September/thread.html
> Adding something like:
>      AR=/usr/bin/true
>      LD=/usr/bin/true
>      SRC_HC_OPTS+= -pgmc /usr/bin/true -pgma /usr/bin/true -pgml /usr/bin/true
> to build.mk might help.
> Good luck! :)
> -- Don
>> ==fptools== make all -r;
>>  in /home/jgoerzen/no-backup/programs/ghc-6.2.1/ghc/rts
>>  ------------------------------------------------------------------------
>>  ../../ghc/compiler/ghc-inplace -optc-O -optc-Wall -optc-W
>>  -optc-Wstrict-prototypes -optc-Wmissing-prototypes
>>  -optc-Wmissing-declarations -optc-Winline -optc-Waggregate-return
>>  -optc-Wbad-function-cast -optc-I../includes -optc-I. -optc-Iparallel
>>  -optc-DCOMPILING_RTS -optc-fomit-frame-pointer -H16m -O -O2 -static
>>  -c Adjustor.c -o Adjustor.o
>>  /tmp/ghc10917.s: Assembler messages:
>>  /tmp/ghc10917.s:54: Error: no such instruction: `dcbf 0,%eax'
>>  /tmp/ghc10917.s:55: Error: no such instruction: `sync'
>>  /tmp/ghc10917.s:56: Error: no such instruction: `icbi 0,%eax'
>>  /tmp/ghc10917.s:63: Error: no such instruction: `sync'
>>  /tmp/ghc10917.s:64: Error: no such instruction: `isync'
>>  make[1]: *** [Adjustor.o] Error 1
>>  make: *** [all] Error 1
>> Why it's trying to use PowerPC assembler on an x86 host I don't know.
>> (I assume that's what's going on here; but I don't really know.)

John Goerzen
Author, Foundations of Python Network Programming

More information about the Haskell-Cafe mailing list