mips-sgi-irix bootstrapping

Rafael Martinez Torres rmartine at fdi.ucm.es
Thu Oct 16 10:25:51 EDT 2003

On Sat, 11 Oct 2003, Donald Bruce Stewart wrote:

> As a final note on this bug, the core dumps disappear on
> mips-sgi-irix if I start from the beginning with 64bit code, i.e.
> mips64-sgi-irix.
> By setting -mabi=64 in CFLAGS, longs become 8 bytes, and
> bugs disappear. No need for my hack of tricking gmp into using 32
> bit mips asm. This solves the package.conf bug, the __decodeFloat
> bug and the gmp div bug that mips people have encountered.

After edting by hand the configure script, to accept the "mips64-sgi-irix"
platform, I got the next failure

gcc -x c GHC/IOBase.hc -o GHC/IOBase.o -c -O  -DNO_REGS -DUSE_MINIINTERPRETER  -D__GLASGOW_HASKELL__=600  -O -DNO_REGS -DUSE_MINIINTERPRETER -I/usr/users/eden/scratch/6.0.1/ghc-6.0.1/ghc/includes -I/usr/users/eden/scratch/6.0.1/ghc-6.0.1/libraries/base/include -I/usr/users/eden/scratch/6.0.1/ghc-6.0.1/libraries/unix/include -mabi=64    -I.  `echo  | sed 's/^$/-DSTOLEN_X86_REGS=4/'`
gcc -x c GHC/Int.hc -o GHC/Int.o -c -O  -DNO_REGS -DUSE_MINIINTERPRETER  -D__GLASGOW_HASKELL__=600  -O -DNO_REGS -DUSE_MINIINTERPRETER -I/usr/users/eden/scratch/6.0.1/ghc-6.0.1/ghc/includes -I/usr/users/eden/scratch/6.0.1/ghc-6.0.1/libraries/base/include -I/usr/users/eden/scratch/6.0.1/ghc-6.0.1/libraries/unix/include -mabi=64    -I.  `echo  | sed 's/^$/-DSTOLEN_X86_REGS=4/'`
GHC/Int.hc: In function `sbsy_ret':
GHC/Int.hc:3093: `int64ToIntegerzh_fast' undeclared (first use in this function)
GHC/Int.hc:3093: (Each undeclared identifier is reported only once
GHC/Int.hc:3093: for each function it appears in.)
GHC/Int.hc: In function `sbst_ret':
GHC/Int.hc:3170: `int64ToIntegerzh_fast' undeclared (first use in this function)
gmake[1]: *** [GHC/Int.o] Error 1
gmake: *** [all] Error 1
gmake: Leaving directory `/scratch/users/eden/6.0.1/ghc-6.0.1/libraries'

> So we'll see how far we get using 64 bits right from the start on
> this funny Irix thing.
> -- Don

More information about the Glasgow-haskell-users mailing list