Re: ghc-6.12.3p8 on i386 only panics
On Wed, Aug 03, 2011 at 07:02:05PM -0600, Deraj Puma wrote: I installed ghc from its official package. The system it is installed on is a fresh install. I'll post the dmesg at the end of this email. The problem I am experiencing is that ghc panics whenever I try to run it or any of the other programs that use it (runhaskell, ghci, runghc). This is the message I receive: $ ghc ghc: panic! (the 'impossible' happened) (GHC version 6.12.3 for i386-unknown-openbsd): too few bytes. Failed reading at byte position 10861 Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug I'm not sure what you're doing. The error message you mention appears only in the nofib benchmark suite, which isn't compiled nor included in the ghc package (IIRC, it's not even in the distfiles for ghc-6.12). I'm not sure how to go about figuring out what the issue is. I'll be happy to do any experiments and provide other information. What's the output of pkg_info -f ghc ? Ciao, Kili
Re: ghc-6.12.3p8 on i386 only panics
On Thu, Aug 04, 2011 at 10:15:47AM -0600, Deraj Puma wrote: I installed OpenBSD 4.9 and then copied over my home directory which has this for a $PKG_PATH: file:///mnt/cd/4.9/packages/i386/:ftp://ftp3.usa.openbsd.org/pub/OpenBSD/4.9/packages/i386/ . Then I did: pkg_add ghc . It installed from ftp3.usa.openbsd.org, I believe. After it finished, I typed$ ghci and it gave that message. No arguments or anything. I swear I wasn't doing any voodoo, honest! Are only the interpreter variants failing (ghci, runghc, runhaskell)? Or does the compiler error out, too? From your original mail, it looked like the compiler itself exits with a panic. Does the following work? cat Hello.hs 'EOF' module Main(main) where main = putStrLn Hello world! EOF ghc -o hello Hello.hs ./hello Should I build from ports? Not yet. It would be absolutely no fun on your machine (some parts of the ghc build need huge amounts of memory, and you machine would certainly be constantly swapping for several hours). What's the output of pkg_info -f ghc ? Information for inst:ghc-6.12.3p8 [..] I'll check this later this evening, if time permits. (If not, this has to wait until late sunday). Ciao, Kili
Re: ghc-6.12.3p8 on i386 only panics
On Thu, Aug 04, 2011 at 09:07:56PM +0200, Matthias Kilian wrote: Are only the interpreter variants failing (ghci, runghc, runhaskell)? Also, please check wether you have anything suspicious in ~/.ghc and/or ~/.ghci, and that you're running the ghc, ghci, runghc, runhaskell from /usr/local/bin. Information for inst:ghc-6.12.3p8 [..] I'll check this later this evening, if time permits. (If not, this has to wait until late sunday). It matches what I have on an i386 running OpenBSD-4.9. Ciao, Kili
Re: ghc-6.12.3p8 on i386 only panics
On Thu, Aug 4, 2011 at 1:17 PM, Matthias Kilian k...@outback.escape.de wrote: On Thu, Aug 04, 2011 at 09:07:56PM +0200, Matthias Kilian wrote: Are only the interpreter variants failing (ghci, runghc, runhaskell)? Also, please check wether you have anything suspicious in ~/.ghc and/or ~/.ghci, and that you're running the ghc, ghci, runghc, runhaskell from /usr/local/bin. This was it! I moved ~/.ghc to ~/ghc.dot and everything now works. The only thing in ~/.ghc is ghci_history and i386-openbsd-6.12.3/package.conf.d . Inside of package.conf.d I have these files: HTTP-4000.1.1-13ee4e1661260696826324a010d0e955.conf ObjectName-1.0.0.0-7c6857e079b95ad65654048215c25d06.conf StateVar-1.0.0.0-139ecd0b156732ed96ac61c28dfdb582.conf Tensor-1.0.0.1-930b0fb25d200810825391dfb3afecea.conf WAVE-0.1.1-e4a66b10753ff8ac9788b0efc0d00445.conf network-2.3.0.2-df6a96ca9a98dbb65fd16602b4c9280e.conf package.cache parsec-2.1.0.1-f26e9753ada18cd24f4940b3e7cdcb3c.conf zlib-0.5.3.1-06ed6fd01b5993d4dd1a440dde8b93c4.conf I recognize WAVE as a cabal module I installed. I completely forgot to update cabal. Doing that now. I saved .ghc, though. Do you want that? Again, thank you SO much for the help! Anything else you want me to do? Ciao, Kili
Re: ghc-6.12.3p8 on i386 only panics
On Thu, Aug 04, 2011 at 01:38:03PM -0600, Deraj Puma wrote: Again, thank you SO much for the help! Anything else you want me to do? Donate some beer.