Hi, My build of 4.01 is failing at the first hurdle :-(. I get a bus
error when it tries to build PrelBase:
------------------------------------------------------------------------
==fptools== gmake all --no-print-directory -r;
in /mount/munkora/clp/pmt/keving/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
-split-objs -odir PrelBase -H10m -c PrelBase.lhs -o PrelBase.o -osuf o
Bus Error - core dumped
gmake[3]: *** [PrelBase.o] Error 1
gmake[2]: *** [all] Error 1
gmake[1]: *** [all] Error 1
gmake: *** [all] Error 1
If I run the last step with -v I get:
../../../ghc/driver/ghc -v -recomp -cpp -fglasgow-exts -fvia-C -Rghc-timing -O
-split-objs -odir PrelBase -H10m -c PrelBase.lhs -o PrelBase.o -osuf o
The Glorious Glasgow Haskell Compilation System, version 4.01, patchlevel 0
literate pre-processor:
echo '#line 1 "PrelBase.lhs"' > /tmp/ghc19794.lpp &&
/mount/munkora/clp/pmt/keving/fptools/ghc/driver/../utils/unlit/unlit PrelBase.lhs -
>> /tmp/ghc19794.lpp
real 0.0
user 0.0
sys 0.0
Found OPTIONS -fno-implicit-prelude in /tmp/ghc19794.lpp
Effective command line: -fno-implicit-prelude -v -recomp -cpp -fglasgow-exts -fvia-C
-Rghc-timing -O -split-objs -odir PrelBase -H10m -c -o PrelBase.o -osuf o
Haskellised C pre-processor:
echo '{-# LINE 1 "PrelBase.lhs" -}' > /tmp/ghc19794.cpp &&
/mount/munkora/clp/pmt/keving/fptools/ghc/driver/../utils/hscpp/hscpp -v
-D__HASKELL1__=4 -D__GLASGOW_HASKELL__=401 -I.
-I/mount/munkora/clp/pmt/keving/fptools/ghc/driver/../includes /tmp/ghc19794.lpp >>
/tmp/ghc19794.cpp
real 0.0
user 0.0
sys 0.0
hscpp:CPP invoked:
/usr/local/apps/egcs-1.1b/lib/gcc-lib/sparc-sun-solaris2.5.1/egcs-2.91.57/cpp -iprefix
/usr/local/apps/egcs-1.1b/lib/gcc-lib/sparc-sun-solaris2.5.1/egcs-2.91.57/
-traditional -D__HASKELL1__=4 -D__GLASGOW_HASKELL__=401 -I.
-I/mount/munkora/clp/pmt/keving/fptools/ghc/driver/../includes /tmp/ghc19794.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:
/mount/munkora/clp/pmt/keving/fptools/ghc/driver/../compiler/hsc ,-N ,-W
,/tmp/ghc19794.cpp -fno-implicit-prelude -fglasgow-exts -fglobalise-toplev-names
-fdo-eta-reduction -fsimplify [ -fkeep-spec-pragma-ids -fessential-unfoldings-only
-fsimpl-uf-use-threshold0 -fclone-binds -fmax-simplifier-iterations1
-fpedantic-bottoms ] -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-inwards -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 -fhi-version=401
-himap=.%.hi:/mount/munkora/clp/pmt/keving/fptools/ghc/driver/../lib/exts%.hi:/mount/munkora/clp/pmt/keving/fptools/ghc/driver/../lib/exts%.hi:/mount/munkora/clp/pmt/keving/fptools/ghc/driver/../lib/std%.hi
-v -hifile=/tmp/ghc19794.hi -C=/tmp/ghc19794.hc -F=/tmp/ghc19794_stb.c
-FH=/tmp/ghc19794_stb.h +RTS -H10000000 -K1000000 -s/tmp/ghc19794.stat
time: command terminated abnormally.
real 14.5
user 0.0
sys 0.4
Warning: BytesAlloc not found in stats file
Warning: GCs not found in stats file
Warning: InitTime not found in stats file
Warning: InitElapsed not found in stats file
Warning: MutTime not found in stats file
Warning: MutElapsed not found in stats file
Warning: GcTime inot found in stats file
Warning: GcElapsed not found in stats file
<<ghc: bytes, GCs, 0/0 avg/max bytes residency (0 samples), INIT ( elapsed), MUT (
elapsed), GC ( elapsed) :ghc>>
Touch PrelBase/PrelBase.o, to propagate dependencies:
touch PrelBase/PrelBase.o
real 0.1
user 0.0
sys 0.0
rm -f /tmp/ghc19794*
I compiled with ghc 3.02, which as far as I know is working OK. I had
to 'fix' (i.e. delete the appropriate lines) the configure script, we
have egcs and this failed the test for an OK gcc.
Funnily enough, last night I was trying to build on my linux box
(build current-source with 4.01 compiler in binary distribution) and
it failed at the same point but with the 'Could not find valid
interface PrelErr.hi' error. Am I consistently doing something
stupid?
I looked in the bugs mailing list but couldn't see anything. Might
have missed it though, the archive could do with being more
loser-friendly. Perhaps delete messages referring to bugs in old
systems which are definitely fixed by now. And a facility to search
within messages would be useful ....
anyway 'nuff for now.
k