
On 28 February 2005 05:38, Kip Macy wrote:
In a clean tree I configured: ./configure --prefix=/u/kmacy/usr/x86_64
--with-ghc=/u/kmacy/src/ghc/src/ghc-6.2.2-x86_64-x86_64/ghc/compiler/ghc -inplace
where the ghc-inplace is unregisterised, points to stage1, and is known to compile "Hello World"
gcc -E -undef -traditional -P -I../includes -x c prelude/primops.txt.pp | \ grep -v '^#pragma GCC' > prelude/primops.txt ../utils/genprimopcode/genprimopcode --data-decl < prelude/primops.txt > primop-data-decl.hs-incl /bin/sh: line 1: 14846 Segmentation fault (core dumped) ../utils/genprimopcode/genprimopcode --data-decl
primop-data-decl.hs-incl gmake[2]: *** [primop-data-decl.hs-incl] Error 139 gmake[2]: *** Deleting file `primop-data-decl.hs-incl' gmake[1]: *** [boot] Error 1 gmake[1]: Leaving directory `/u/kmacy/src/ghc/src/ghc-6.2.2-x86_64-x86_64-clean/ghc' gmake: *** [build] Error 1
It looks like genprimopcode is crashing. This is significant, because genprimopcode is the first Haskell program to be compiled and run by the compiler that you are bootstrapping with, so this indicates that even though your unregisterised stage1 is known to compile "hello world", it still has some problems. Try adding -debug when compiling genprimopcode, and run it with gdb to get a backtrace. Cheers, Simon
participants (1)
-
Simon Marlow