I've put together a build of 4.08 on HP-UX, available from the usual place.
The impatient may grab it here:

        http://www.haskell.org/ghc/dist/4.08/ghc-4.08-hppa1.1-hp-hpux.tar.gz

This build works on the machine I built it on (HP-UX 10.20, apparently),
with gcc 2.7.2.3(*).  No guarantees for different configurations, but we'll
be interested to hear where it does/doesn't work.

The diffs I applied to the current 4.08 sources (cvs co -r ghc-4-07-branch)
are below, basically for two problems:

        - a couple of the 64-bit Int/Word primops didn't build
          due to register overflows in ghc.  This may be fixed by
          using gcc 2.95, I don't know.  Anyway I disabled 64-bit
          Int/Word support in a couple of places.

        - something to do with the bizarre C calling convention on
          HP-UX caused the new init code to go wrong.  Botch applied.

Cheers,
        Simon

(*) Thanks again to Sietse Achterop <[EMAIL PROTECTED]> for donating the
machine 
    cycles.

patch:

Index: ghc/compiler/prelude/PrelRules.lhs
===================================================================
RCS file: /home/cvs/root/fptools/ghc/compiler/prelude/PrelRules.lhs,v
retrieving revision 1.8.2.1
diff -r1.8.2.1 PrelRules.lhs
78c78
< #if __GLASGOW_HASKELL__ >= 407
---
> #if __GLASGOW_HASKELL__ >= 407  && 0
Index: ghc/rts/PrimOps.hc
===================================================================
RCS file: /home/cvs/root/fptools/ghc/rts/PrimOps.hc,v
retrieving revision 1.52
diff -r1.52 PrimOps.hc
535c535
< #ifdef SUPPORT_LONG_LONGS
---
> #if defined(SUPPORT_LONG_LONGS) && !defined(hppa1_1_TARGET_ARCH)
569d568
< 
Index: ghc/rts/RtsStartup.c
===================================================================
RCS file: /home/cvs/root/fptools/ghc/rts/RtsStartup.c,v
retrieving revision 1.42
diff -r1.42 RtsStartup.c
237,241d236
<     init_stack[init_sp++] = (F_)stg_init_ret;
<     init_stack[init_sp++] = (F_)__init_Prelude;
<     if (init_root != NULL) {
<     init_stack[init_sp++] = (F_)init_root;
<     }
Index: ghc/rts/StgStartup.hc
===================================================================
RCS file: /home/cvs/root/fptools/ghc/rts/StgStartup.hc,v
retrieving revision 1.13
diff -r1.13 StgStartup.hc
155a156,157
> EF_(__init_Prelude);
> EF_(__init_Main);
159a162,164
>   *Sp++ = (F_)stg_init_ret;
>   *Sp++ = (F_)__init_Prelude;
>   *Sp++ = (F_)__init_Main;

Reply via email to