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

Donald Bruce Stewart dons at cse.unsw.edu.au
Wed Sep 29 21:58:41 EDT 2004


jgoerzen:
> Hello,
> 
> Following the directions at
> http://www.haskell.org/ghc/docs/6.2.1/html/building/sec-porting-ghc.html#UNREGISTERISED-PORTING...
> 
> I have a Debian unstable system on i386 as the host machine and an IBM
> PowerPC system as the target.  I have configured the files as specified
> in the docs.  I am to the "make boot && make" phase in the ghc directory
> on the (Linux) host.  All goes well until:

You're now in the rts/ on the host machine? If so:

        "Don't worry if the build falls over in the RTS, we don't need
        the RTS yet."

You can use make -k to keep going, I seem to remember, or use -pgmltrue,
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.)


More information about the Haskell-Cafe mailing list