Segmentation fault during build of 5.04.3
Ed Osinski
osinski at cs.nyu.edu
Thu Apr 17 14:57:03 EDT 2003
On Thu, Apr 17, 2003 at 12:33:29PM +0100, Simon Marlow wrote:
>
> > 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?
Ok, it took me a while to figure out how to write a _complete_ simple
program; I haven't written anything in Haskell before and was
installing ghc because I decided to take the plunge. The simplest
program works fine:
------------------------------
module Main
where
main = putStrLn "Hello, world"
------------------------------
$ ghc --make Main.hs -o Test
ghc-5.04.2: chasing modules from: Main.hs
Skipping Main ( Main.hs, ./Main.o )
ghc: linking ...
$ ./Test
Hello, world
There still might be wrong with the 5.04.2 installation, but it's not
clear to me what it could be. I previously had a ghc-4.04
installation, and saw that the installation of 5.04.2 didn't overwrite
the link from /usr/local/bin/ghc. I noticed and fixed this before
reporting my problem. I've since removed all the remnants of the old
ghc, as far as I can tell, with no luck.
- Ed
>
> Cheers,
> Simon
> _______________________________________________
> Glasgow-haskell-bugs mailing list
> Glasgow-haskell-bugs at haskell.org
> http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
More information about the Glasgow-haskell-bugs
mailing list