Bugs item #1038001, was opened at 2004-09-30 14:53
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=1038001&group_id=8032

Category: Build System
Group: 6.2.1
Status: Open
Resolution: None
Priority: 5
Submitted By: John Goerzen (jgoerzen)
Assigned to: Nobody/Anonymous (nobody)
Summary: Invalid opcode on AIX

Initial Comment:
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. 
 

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=1038001&group_id=8032
_______________________________________________
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to