mips64-sgi-irix unreg success!

Donald Bruce Stewart dons at cse.unsw.edu.au
Wed Oct 22 16:20:24 EDT 2003


Hey all,

mips-sgi-irix builds and runs unregisterised from CVS!

    $ uname -a
    IRIX64 edison 6.5 07141529 IP30 mips

    $ ghc-inplace --version
    The Glorious Glasgow Haskell Compilation System, version 6.3

    $ cat test.hs
    import System.Info
    main = do 
            putStrLn System.Info.arch
            putStrLn System.Info.os

    $ ghc-inplace test.hs
    mipseb
    irix

It runs the testsuite unregisterised, not to shabby for a weird box:

    OVERALL SUMMARY for test run started at Tue Oct 21 18:26:48 PDT 2003
        1070 total tests, which gave rise to
        1844 test cases, of which
           0 caused framework failures
         167 were skipped

        1520 expected passes
          14 expected failures
           0 unexpected passes
         143 unexpected failures


I used the ports of GNU software that come with the "freeware" bundle
for Irix, to save booting other software too. Use the following
environment, at least on the above variety of mips machine:

    ghc-6.3 from cvs

    gcc-3.3
    gmake-3.80
    external libgmp

Then:
    export MAKE=gmake
    export LDFLAGS=-L/usr/freeware/lib64
    export CPPFLAGS=-I/usr/freeware/include
    export CFLAGS=-mabi=64

    cat >> mk/build.mk <<END
    SRC_CC_OPTS+=-mabi=64
    SRC_HC_OPTS+=-optc-mabi=64 -opta-mabi=64 -optl-mabi=64
    SRC_CC_OPTS+=-L/usr/freeware/lib64
    SRC_HC_OPTS+=-L/usr/freeware/lib64
    END

And you will have to comment out the vfork #define in
libraries/base/cbits/{system.c,rawSystem.c}, as Irix vfork doesn't
appear to be available without some other symbols being present.

I will make a bindist available soon.

Cheers,
    Don


More information about the Glasgow-haskell-users mailing list