logo       

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

lang.haskell.glasgow.bugs

Subject: RE: Segmentation fault during build of 5.04.3


> 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.

Ok, I'm a bit stumped now, but there are some other things we can try.

- Can you run the hello world example from inside GHCi using your
installed 5.04.2? (type 'ghci Main.hs' and then 'main').

- Start up GHCi with a few packages: 'ghci -package util -package
text' just to make sure it can find all its libraries.

- go into ghc/utils/genprimopcode in the source tree, and try to
find out why genprimopcode is crashing. First, do './genprimopcode
+RTS -Sstderr' and see if you get any output. Try gdb on it,
and see if you get any useful information out of that.

Cheers,
Simon


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

News | FAQ | advertise