
Hi, when trying to build my PowerBook G4 running Gentoo Linux (with GCC 3.2) I ran into a segmentation fault on the command /home/pesco/build/nhc98-1.16/script/nhc98 -cpp -c +CTS -lib -redefine -CTS +RTS -H32M -RTS -o /home/pesco/build/nhc98-1.16/targets/PowerBook3,2-Linux/obj/prelude/DErrNo/DErrNo.o DErrNo.hs in the src/prelude/PowerBook3,2-Linux/NHC directory: /home/pesco/build/nhc98-1.16/script/nhc98: line 604: 28506 Segmentation fault $COMP $RUNFLAGS $COMPFLAGS $HINCDIRS -I. $UNLIT -P${NHC98INCDIR} $HSFILE $POSTGRFILE $TMPHIFILE $TMPCPPASFILE manually rerunning with -v turned up: gcc -D__NHC__=116 -D__HASKELL__=98 -D__HASKELL_98__ -D__HASKELL98__ -x c -E -traditional ./DErrNo.hs > /tmp/DErrNo.28507.hs /home/pesco/build/nhc98-1.16/lib/PowerBook3,2-Linux/nhc98comp +RTS -H32M -RTS -P/home/pesco/build/nhc98-1.16/include/base -lib -redefine -I. -P/home/pesco/build/nhc98-1.16/include /tmp/DErrNo.28507.hs ./DErrNo.hs /tmp/DErrNo.28507.hi /tmp/DErrNo.28507.hc /home/pesco/build/nhc98-1.16/script/nhc98: line 604: 28549 Segmentation fault $COMP $RUNFLAGS $COMPFLAGS $HINCDIRS -I. $UNLIT -P${NHC98INCDIR} $HSFILE $POSTGRFILE $TMPHIFILE $TMPCPPASFILE Have you got any idea by what this might be caused? Regards, Sven

Sven Moritz Hallberg <1hallber@informatik.uni-hamburg.de> writes:
when trying to build my PowerBook G4 running Gentoo Linux (with GCC 3.2) I ran into a segmentation fault on the command
.../build/nhc98-1.16/script/nhc98 -cpp -c ... DErrNo.hs
I assume you are building nhc98 with gcc, rather than another Haskell compiler. This error is occurring on the first invocation of the freshly-built compiler over a Haskell source file, indicating that the build has failed - you have a non-working compiler. So it seems that our attempt to fix nhc98 to build with gcc-3.x has not been entirely successful. Because you are running on a PPC architecture, it is possible that our current fix only works on intel/sparc machines. Please could you run the following test, and send me the output (DErrNo.s), thanks. $ gcc -S -x c src/prelude/DErrNo.hc Regards, Malcolm
participants (2)
-
Malcolm Wallace
-
Sven Moritz Hallberg