"Simon Marlow" <[EMAIL PROTECTED]> writes:

> Try the script in fptools/distrib/hc-build, which should be able to
> bootstrap the compiler from .hc files automatically.  In particular,
> it'll make sure that hslibs/lang is built before trying to build the
> compiler.

Thanks for the prompt reply.  Now that I had the name I found it in
the documentation again.  Sorry, I am stupid.  Anyway, now ghc fails
to build ghc/lib/std (SIGSEGV):

$ uname -rms
NetBSD 1.3.2 i386
$ gcc --version
2.7.2.2+myc1
$ tar xzf ~/ghc-4.08.2-src.tar.gz ; tar xzf ~/ghc-4.08.2-x86-hc.tar.gz
$ cd ghc-4.08.2
$ ./distrib/hc-build
[...]
------------------------------------------------------------------------
===fptools== Finished making `all' in cbits ...
PWD = /usr/lu/fis/build/ghc-4.08.2/ghc/lib/std
------------------------------------------------------------------------
[...]
../../../ghc/driver/ghc-inplace -recomp -cpp -fglasgow-exts -fvia-C -Rghc-timing -O 
-package-name std -static -split-objs    -c PrelFloat.lhs -o PrelFloat.o -osuf o
Segmentation fault
$ cd ghc/lib/std                                     
$ ../../../ghc/driver/ghc-inplace -v -recomp -cpp -fglasgow-exts -fvia-C -Rghc-timing 
-O -package-name std -static -split-objs    -c PrelFloat.lhs -o PrelFloat.o -osuf o
The Glorious Glasgow Haskell Compilation System, version 4.08.2

literate pre-processor:
        echo '#line 1 "PrelFloat.lhs"' > /tmp/ghc10868.lpp && 
/usr/lu/fis/build/ghc-4.08.2/ghc/driver/../utils/unlit/unlit  PrelFloat.lhs -  >> 
/tmp/ghc10868.lpp
        0.03 real         0.00 user         0.00 sys
Found OPTIONS -fno-implicit-prelude in /tmp/ghc10868.lpp

Effective command line: -fno-implicit-prelude -v -recomp -cpp -fglasgow-exts -fvia-C 
-Rghc-timing -O -package-name std -static -split-objs -c -o PrelFloat.o -osuf o

Haskellised C pre-processor:
        echo '{-# LINE 1 "PrelFloat.lhs" -}' > /tmp/ghc10868.cpp && 
/usr/lu/fis/build/ghc-4.08.2/ghc/driver/../utils/hscpp/hscpp -v  -D__HASKELL__=98 
-D__HASKELL1__=5 -D__GLASGOW_HASKELL__=408 -D__HASKELL98__ -D__CONCURRENT_HASKELL__ 
-I. -I/usr/lu/fis/build/ghc-4.08.2/ghc/driver/../includes /tmp/ghc10868.lpp >> 
/tmp/ghc10868.cpp
        0.00 real         0.00 user         0.00 sys
hscpp:CPP invoked: gcc -E -undef -traditional -D__HASKELL__=98 -D__HASKELL1__=5 
-D__GLASGOW_HASKELL__=408 -D__HASKELL98__ -D__CONCURRENT_HASKELL__ -I. 
-I/usr/lu/fis/build/ghc-4.08.2/ghc/driver/../includes - </tmp/ghc10868.lpp
ghc-inplace:compile:Output file PrelFloat.o doesn't exist
ghc-inplace:compile:Interface file PrelFloat.hi doesn't exist
ghc-inplace:recompile:Input file PrelFloat.lhs newer than PrelFloat.o

Haskell compiler:
        /usr/lu/fis/build/ghc-4.08.2/ghc/driver/../compiler/hsc /tmp/ghc10868.cpp  
-fno-implicit-prelude -fglasgow-exts -inpackage=std -fglobalise-toplev-names 
-ffoldr-build-on -fdo-eta-reduction -fdo-lambda-eta-expansion -fcase-of-case 
-fcase-merge -flet-to-case -fpedantic-bottoms -fsimplify [ -finline-phase0 -fno-rules 
-fno-case-of-case -fmax-simplifier-iterations2 ] -fspecialise -ffloat-outwards 
-ffloat-inwards -fsimplify [ -finline-phase1 -fmax-simplifier-iterations4 ]  
-fsimplify [ -finline-phase2 -fmax-simplifier-iterations2 ] -fsimplify [ 
-fmax-simplifier-iterations2 ] -fstrictness -fcpr-analyse -fworker-wrapper -fsimplify 
[ -fmax-simplifier-iterations4 ] -ffloat-outwards -fcse -ffloat-inwards -fsimplify [ 
-fmax-simplifier-iterations4 ]   -flet-no-escape -fwarn-overlapping-patterns 
-fwarn-missing-methods -fwarn-missing-fields -fwarn-deprecations 
-fwarn-duplicate-exports -fhi-version=408 -static 
"-himap=.%.hi:/usr/lu/fis/build/ghc-4.08.2/hslibs/lang%.hi:/usr/lu/fis/build!
/ghc-4.08.2/hslibs/lang/monads%.hi:/usr/lu/fis/build/ghc-4.08.2/hslibs/lang%.hi:/usr/lu/fis/build/ghc-4.08.2/hslibs/lang/monads%.hi:/usr/lu/fis/build/ghc-4.08.2/ghc/driver/../lib/std%.hi"
 "-himap-sep=:"    -v -hifile=/tmp/ghc10868.hi -olang=C -ofile=/tmp/ghc10868.hc 
-F=/tmp/ghc10868_stb.c -FH=/tmp/ghc10868_stb.h +RTS -H6000000 -K1000000 
-S/tmp/ghc10868.stat
Glasgow Haskell Compiler, version 4.08, for Haskell 98, compiled by GHC version 4.08
Command terminated abnormally.


On NetBSD 1.5, I still have these `Funny global thing?: ...' errors I
reported earlier.


 m.


--
Matthias Fischmann | Research Engineer               | +358 (9) 8565 7474
[EMAIL PROTECTED]         | SSH Communication Security Corp | +358 (40) 752 5291

_______________________________________________
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to