logo       

RE: Segmentation fault during build of 5.04.3: msg#00042

lang.haskell.glasgow.bugs

Subject: RE: Segmentation fault during build of 5.04.3


> I'm trying to build ghc 5.04.3 on a Sun Solaris 8 platform. (There
> isn't a binary distribution for Solaris for this version for some
> reason.) I installed the binary distribution of ghc 5.04.2
> successfully, but and running into problems near the start of the
> build process for 5.04.3. I created a build directory with links into
> the source directory, and ran:
>
> env PerlCmd=/usr/local/bin/perl ./configure --with-x
> --enable-objectio --enable-src-tree-happy
>
> However,
>
> make all
>
> fails. Near the end, I get:
>
> -n Creating main/Config.hs ...
> done.
> rm -f prelude/primops.txt
> gcc -E -I../includes -traditional -x c
> prelude/primops.txt.pp | /usr/bin/sed -e '/^#/d' >
> prelude/primops.txt
> ../utils/genprimopcode/genprimopcode --data-decl <
> prelude/primops.txt > primop-data-decl.hs-incl
> Segmentation Fault
> make[2]: *** [primop-data-decl.hs-incl] Error 139
> make[1]: *** [boot] Error 1
> make[1]: Leaving directory
> `/systems/sware/src/build/ghc-5.04.3-build/ghc'
> make: *** [all] Error 1
>
> Any ideas on what I'm doing wrong? Maybe ghc-5.04.2 isn't actually
> installed properly?

It looks like genprimopcode crashed. The significance of this is that
it is a Haskell binary built by your installed Haskell compiler (GHC
5.04.2 in your case), and it is the first such binary to be run during
the build process. So perhaps your installation of 5.04.2 is borked
somehow: can you build & run short programs with it?

Cheers,
Simon


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise