ghc-5.02 build on SunOS 5.6 fails with segmentation fault

Akop Pogosian akopps@CSUA.Berkeley.EDU
Thu, 11 Oct 2001 17:12:18 -0700 (PDT)


I am trying to build ghc-5.02 on Solaris 2.6. I already have a
ghc-4.08 distribution that works. ghc build fails after nearly two
hours of compiling with this error:

/opt/local/bin/ld -r -x -o PrelDynamic.p_o PrelDynamic/*.p_o;
rm -f PrelIOBase.p_o; if [ ! -d PrelIOBase ]; then mkdir PrelIOBase; else /usr/b
in/find PrelIOBase -name '*.p_o' | xargs rm -f __rm_food; fi;
../../../ghc/compiler/ghc-inplace -ldl -fvia-C -cpp -fglasgow-exts -O -Rghc-timing -package-name std  -split-objs -hisuf p_hi -hcsuf p_hc -osuf p_o -prof -funbox-strict-fields  -fno-ignore-asserts  -c PrelIOBase.lhs -o PrelIOBase.p_o
Segmentation Fault
gmake[4]: *** [PrelIOBase.p_o] Error 1
gmake[3]: *** [all] Error 1
gmake[2]: *** [all] Error 1
gmake[1]: *** [all] Error 1
gmake[1]: Leaving directory `/home/src/akopps/ghc-5.02/ghc'
gmake: *** [all] Error 1


Has anyone seen this happen before?


-akop