Hi,
Trying to build ghc 4.01 for HP, I ran into trouble already at the `make
boot' stage! Apparently, in ghc/includes/StgMacros.h there is a section
#ifdef sparc_TARGET_ARCH
...
typedef struct __ud
{ StgWord dhi;
StgWord dlo;
} unpacked_double;
...
#endif
#ifdef SUPPORT_LONG_LONGS
typedef struct __ud
{ StgWord dhi;
StgWord dlo;
} unpacked_double_word;
...
#endif
resulting in gcc complaining about struct __ud being defined twice! I seem
to have circumvented the problem (although I haven't looked into it in
detail, so it might be wrong) by changing the latter to
#ifdef SUPPORT_LONG_LONGS
typedef struct __ud
#ifdef sparc_TARGET_ARCH
{ StgWord dhi;
StgWord dlo;
}
#endif
unpacked_double_word;
Best regarads,
--Arne
______________________________________________________________
Arne John Glenstrup mailto:[EMAIL PROTECTED]
Institute of Computer Science, http://www.diku.dk/~panic/
University of Copenhagen, Denmark
Universitetsparken 1 Address:
DK-2100 Copenhagen ? N?rrebrogade 25, 4th
tel: (+45) 35 32 13 51 DK-2200 Copenhagen N
fax: (+45) 35 32 14 01 tel: (+45) 35 34 78 77