GHC 6.2.2 and 6.4.1 on IRIX64 both failed,
this time with new error
Donald Bruce Stewart
dons at cse.unsw.edu.au
Fri Jun 30 04:52:09 EDT 2006
simonmarhaskell:
> >-#include LdvProfile.h -#include Profiling.h -#include Apply.h -fvia-C
> >-dcmm-lint -c Apply.cmm -o Apply.o
> >Cmm lint error:
> > in proc stg_ap_0_ret
> > in basic block c2
> > in assignment:
> > R1 = I32[R1 + 8 + 0];
>
> This looks like an inconsistency in bit widths somewhere: GHC thinks the
> width of a word is 64, but soemthing else thinks its 32 bits. I suspect
> ghc/includes/DerivedConstants.h doesn't agree with
> ghc/includes/ghcautoconf.h. Perhaps you're not passing -mabi when
> compiling ghc/includes/mkDerivedConstants.h?
>
Yes, when hacking on irix/mips64, I needed:
export LDFLAGS="-L/usr/freeware/lib64 -L/import/pill0/1/dons/lib -mabi=64"
export CPPFLAGS="-I/usr/freeware/include -I/import/pill0/1/dons/include"
export CFLAGS=-mabi=64
export GHCRTS=-K20m
export LD="/usr/bin/ld -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 -L/import/pill0/1/dons/lib
SRC_HC_OPTS+=-L/usr/freeware/lib64 -L/import/pill0/1/dons/lib
END
And you'll need to add them to the final compiler's package.conf
ldOptions as well.
Btw, Andrew, did you try the ghc 6.0.1 Irix/mips64 binary on haskell.org/ghc?
-- Don
More information about the Glasgow-haskell-bugs
mailing list