Hello,

Has anybody else had a core dump from ghc-3.02 during a build?

Running Solaris (SunOs 5.6) on a sparc.

I was trying to compile ghc-3.02 with ghc-2.10.  I modified the
config.mk file by adding this:
GhcCompilerWays= p mc
(Hopefully convincing it to build ghc with profiling and concurrency)

make boot succeeded nicely.  make all did a lot of work and then died
with a core dump

**********************************************************************
===fptools== Recursively making `all' in std exts posix misc concurrent ...
PWD = /home/jon/FunctionalLanguages/GHC-3.02/fptools/ghc/lib
------------------------------------------------------------------------
------------------------------------------------------------------------
==fptools== gmake all --no-print-directory -r -- EXTRA_HC_OPTS=-H30m EXTRA_HC_OP
TS=-H30m EXTRA_HC_OPTS=-H30m EXTRA_HC_OPTS=-H30m;
 in /home/jon/FunctionalLanguages/GHC-3.02/fptools/ghc/lib/std
------------------------------------------------------------------------
rm -f PrelBase.o ; if [ ! -d PrelBase ]; then mkdir PrelBase; else find PrelBase
 -name '*.o' -print | xargs rm -f __rm_food ; fi ;
../../../ghc/driver/ghc -recomp -cpp -fglasgow-exts -fvia-C -Rghc-timing -O -spl
it-objs -odir PrelBase  -H12m -H30m -c PrelBase.lhs -o PrelBase.o -osuf o
ghc: ignoring heap-size-setting option (-H12m)...not the largest seen
Bus Error
gmake[3]: *** [PrelBase.o] Error 1
gmake[2]: *** [all] Error 1
gmake[1]: *** [all] Error 1
gmake: *** [all] Error 1
**********************************************************************

It seems that the error is here:
Core was generated by `/home/jon/FunctionalLanguages/GHC-3.02/fptools/ghc/driver
/../compiler/hsc ,-N ,'.
Program terminated with signal 10, Bus Error.

More details follow, (yell if you need more)

Regards,
Jon

**********************************************************************
The Glorious Glasgow Haskell Compilation System, version 3.02, patchlevel 0

literate pre-processor:
        echo '#line 1 "PrelBase.lhs"' > /tmp/ghc1453.lpp && 
/home/jon/FunctionalLanguages/GHC-3.02/fptools/ghc/driver/../utils/unlit/unlit  
PrelBase.lhs -  >> /tmp/ghc1453.lpp

real        0.1
user        0.0
sys         0.0
Found OPTIONS -fno-implicit-prelude in /tmp/ghc1453.lpp
ghc: ignoring heap-size-setting option (-H12m)...not the largest seen

Effective command line: -fno-implicit-prelude -v -recomp -cpp -fglasgow-exts -fvia-C 
-Rghc-timing -O -split-objs -odir PrelBase -H12m -H31m -c -o PrelBase.o -osuf o

Haskellised C pre-processor:
        echo '{-# LINE 1 "PrelBase.lhs" -}' > /tmp/ghc1453.cpp && 
/home/jon/FunctionalLanguages/GHC-3.02/fptools/ghc/driver/../utils/hscpp/hscpp -v  
-D__HASKELL1__=4 -D__GLASGOW_HASKELL__=302 -I. 
-I/home/jon/FunctionalLanguages/GHC-3.02/fptools/ghc/driver/../includes 
/tmp/ghc1453.lpp >> /tmp/ghc1453.cpp

real        0.0
user        0.0
sys         0.0
hscpp:CPP invoked: /usr/local/gnu/lib/gcc-lib/sparc-sun-solaris2.5.1/2.8.1/cpp 
-traditional -D__HASKELL1__=4 -D__GLASGOW_HASKELL__=302 -I. 
-I/home/jon/FunctionalLanguages/GHC-3.02/fptools/ghc/driver/../includes 
/tmp/ghc1453.lpp
ghc:compile:Output file PrelBase/PrelBase.o doesn't exist
ghc:compile:Interface file PrelBase.hi doesn't exist
ghc:recompile:Input file PrelBase.lhs newer than PrelBase/PrelBase.o

Haskell compiler:
        /home/jon/FunctionalLanguages/GHC-3.02/fptools/ghc/driver/../compiler/hsc ,-N 
,-W ,/tmp/ghc1453.cpp  -fno-implicit-prelude -fglasgow-exts -fglobalise-toplev-names 
-fdo-eta-reduction -fsimplify [  -fkeep-spec-pragma-ids -fmax-simplifier-iterations1 
-fpedantic-bottoms ] -fspecialise-overloaded  -fspecialise -fsimplify [  
-ffloat-lets-exposing-whnf -ffloat-primops-ok -fcase-of-case -fdo-case-elim 
-fcase-merge -fdo-lambda-eta-expansion -freuse-con -fpedantic-bottoms  
-fmax-simplifier-iterations4  -fclone-binds ] -ffull-laziness -ffloat-inwards 
-fsimplify [  -ffloat-lets-exposing-whnf -ffloat-primops-ok -fcase-of-case 
-fdo-case-elim -fcase-merge -fdo-eta-reduction -fdo-lambda-eta-expansion -freuse-con  
-fpedantic-bottoms  -fmax-simplifier-iterations4  ] -fstrictness -fsimplify [  
-ffloat-lets-exposing-whnf -ffloat-primops-ok -fcase-of-case -fdo-case-elim 
-fcase-merge -fdo-lambda-eta-expansion -freuse-con -flet-to-case -fpedantic-bottoms  
-fmax-simplifier-iterations4  ] -ffloat-inw!
ards -fsimplify [  -ffloat-lets-exposing-whnf -ffloat-primops-ok -fcase-of-case 
-fdo-case-elim -fcase-merge -fdo-lambda-eta-expansion -freuse-con -flet-to-case 
-fignore-inline-pragma  -fpedantic-bottoms  -fmax-simplifier-iterations4  ] 
-flambda-lift   -flet-no-escape -fwarn-overlapping-patterns -fwarn-missing-methods 
-fwarn-duplicate-exports 
-himap=.%.hi:/home/jon/FunctionalLanguages/GHC-3.02/fptools/ghc/driver/../lib/exts%.hi:/home/jon/FunctionalLanguages/GHC-3.02/fptools/ghc/driver/../lib/exts%.hi:/home/jon/FunctionalLanguages/GHC-3.02/fptools/ghc/driver/../lib/std%.hi
   -v -hifile=/tmp/ghc1453.hi -C=/tmp/ghc1453.hc +RTS -H31000000 -K1000000 
-s/tmp/ghc1453.stat
time: command terminated abnormally.

real        0.2
user        0.0
sys         0.1
deleting... /tmp/ghc1453.lpp /tmp/ghc1453.cpp /tmp/ghc1453.hi /tmp/ghc1453.hc 
/tmp/ghc1453.stat

rm -f /tmp/ghc1453*

Reply via email to