mips-sgi-irix bootstrapping

Donald Bruce Stewart dons at cse.unsw.edu.au
Sat Oct 11 14:53:50 EDT 2003


rmartine:
> On Fri, 12 Sep 2003, Simon Marlow wrote:
> 
> > > ----------
> > > ../../ghc/utils/ghc-pkg/ghc-pkg-inplace --update-package
> > > <package.conf.inplace
> > > /usr/users/eden/scratch/ghc-6.0.1/ghc/driver/package.conf.inpl
> > > ace: parse error in package config file
> > > gmake[1]: *** [../../ghc/driver/stamp-pkg-conf-base] Error 1
> > > gmake: *** [boot] Error 1
> >
> > Have you done 'make boot' in ghc/driver?
> >

Yes, I had this error too. I've solved it by adding:

    [] into driver/package.conf.inplace
and
    touch driver/stamp-pkg-conf-rts

It is not so nice that ghc-inplace dumps core if package.conf.inplace
is an empty file... I think Ian has mentioned this too.


> 2.- Now the problem seems to be another one:
> 
> bash-2.05$ ghc/compiler/ghc-inplace  hello.hs
> 
> crash, and tracing the core it seems a problem having to do with gmp
> software:
> 
> bash-2.05a$ gdb ghc-6.0.1 core
> 
> # 0x1153a208 in __decodeFloat ()
> 
> if I apply the "-v" flag, then
> 
> bash-2.05$ ghc/compiler/ghc-inplace -v hello.hs
> bash-2.05a$ gdb ghc-6.0.1  core
> 
> # 0x11554ae4 in __gmpn_tdiv_qr / ( qp=0x454ed518 ...)
> 
> Any idea ?


This is where I am now. It looks like a bug in the gmp software.
It happens for me this happens when I try to rebuild the rts,
near the end of distrib/hc-build (and I guess it would happen if
you tried to just run hello.hs without rebuilding the libraries).

    This GDB was configured as "mips-sgi-irix6.5"...
    Core was generated by `ghc-6.0.1'.
    Program terminated with signal 10, Bus error.
    Reading symbols from /import/pill0/1/dons/lib/libgmp.so.4...done.
    Loaded symbols for /import/pill0/1/dons/lib/libgmp.so.4
    Reading symbols from /usr/lib32/libm.so...done.
    Loaded symbols for /usr/lib32/libm.so
    Reading symbols from /usr/lib32/libdl.so...done.
    Loaded symbols for /usr/lib32/libdl.so
    Reading symbols from /usr/lib32/libc.so.1...done.
    Loaded symbols for /usr/lib32/libc.so.1
    #0  0x00430768 in __gmpn_tdiv_qr (qp=0x41c0480, rp=0x41c0494,
    qxn=68975248,
        np=0x41c7a90, nn=1, dp=0x41c7aec, dn=1) at tdiv_qr.c:65
    #1  0x0041ffc0 in __gmpz_tdiv_qr (quot=0x7fff2d70,
    rem=0x7fff2d80,
        num=0x7fff2d50, den=0x41c0480) at tdiv_qr.c:100
    (gdb) list
    100               }
    101             TMP_FREE (marker);
    102             return;
    103           }
    104
    105         default:
    106           {
    107             int adjust;
    108             TMP_DECL (marker);
    109             TMP_MARK (marker);

I'm looking in to this now. Note that I am using an external gmp:
4.1.2, along with gcc 3.3 and gnu binutils 2.14 (though using
Irix tools doesn't seem to matter anymore).

Cheers,
    Don


More information about the Glasgow-haskell-users mailing list