Invalid opcode on AIX
Hello,
I am bootscrapping ghc 6.2.1 on AIX5.1L (PowerPC).
This is an unregisterised bootstrap process.
I have gotten as far as building ghc from the .hc files
on the AIX machine. However, the build fails here:
creating libgmp.la
(cd .libs && rm -f libgmp.la && ln -s ../libgmp.la
libgmp.la)
gmake[4]: Leaving directory
`/home/jgoerzen/programs/unreg/ghc-6.2.1/ghc/rts/gmp'
gmake[3]: Leaving directory
`/home/jgoerzen/programs/unreg/ghc-6.2.1/ghc/rts/gmp'
gcc -O -DNO_REGS -DUSE_MINIINTERPRETER
-I/home/jgoerzen/programs/unreg/ghc-6.2.1/ghc/includes
-I/home/jgoerzen/programs/unreg/ghc-6.2.1/libraries/base/include
-I/home/jgoerzen/programs/unreg/ghc-6.2.1/libraries/unix/include
-I/home/jgoerzen/programs/unreg/ghc-6.2.1/libraries/parsec/include
-Wall -W -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-declarations -Winline -Waggregate-return
-Wbad-function-cast -I../includes -I. -Iparallel
-DCOMPILING_RTS -fomit-frame-pointer -c Adjustor.c
-o Adjustor.o
/tmp//cczRmrqA.s: Assembler messages:
/tmp//cczRmrqA.s:86: Error: Unrecognized opcode:
`dcbf'
/tmp//cczRmrqA.s:88: Error: Unrecognized opcode:
`icbi'
gmake[1]: *** [Adjustor.o] Error 1
gmake: *** [all] Error 1
gmake: Leaving directory
`/home/jgoerzen/programs/unreg/ghc-6.2.1/ghc'
I do not know PowerPC assembly so I'm afraid I'm
useless on this one. However, if I add -mpowerpc to
the gcc command line, it works.
Along similar lines, gmp's build fails with hosts of
opcode-related errors. But if I change the
ghc/rts/Makefile like this (bootorig is original; boot is
new), it works:
bootorig ::
cd gmp && CC=$(WhatGccIsCalled) ./configure
--enable-shared=no \
--host=`echo $(HOSTPLATFORM) | sed
's/i[567]86/i486/g'`
boot ::
cd gmp && ./configure --enable-shared=no
Something about --host seems to be confusing gmp.
Trac metadata
Trac field | Value |
---|---|
Version | 6.2.1 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | ResolvedFixed |
Component | Build System |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |