Cabal on OS X; ghc segfault?

Hi, I'm trying to get caballized package deployment working on Mac OS X. However, trying to build a package using runhaskell results in: crossroads-able> runhaskell Setup.hs configure Warning: No license-file field. Configuring harp-0.2... configure: searching for ghc in path. configure: found ghc at /opt/local/bin/ghc runhaskell: waitForProcess: interrupted (Interrupted system call) This was trying to build the harp module in the haskell-src-exts package (a prerequisite for hs-plugins). I ran a ktrace on this and it appears as if the underlying GHC is segfaulting: crossroads-able> cat k.txt 414 ghc-6.4 RET write 1 414 ghc-6.4 CALL getpid 414 ghc-6.4 RET getpid 414/0x19e 414 ghc-6.4 CALL stat(0x1b94528,0x1b944c0) 414 ghc-6.4 NAMI "tmp414" 414 ghc-6.4 RET stat -1 errno 2 No such file or directory 414 ghc-6.4 CALL sigprocmask(0x1,0xbfffd4d0,0xbfffd4d4) 414 ghc-6.4 RET sigprocmask 0 414 ghc-6.4 CALL sigaction(0x2,0xbfffd458,0) 414 ghc-6.4 RET sigaction 0 414 ghc-6.4 CALL sigprocmask(0x3,0xbfffd4d4,0) 414 ghc-6.4 RET sigprocmask 0 414 ghc-6.4 CALL sigprocmask(0x1,0xbfffd4d0,0xbfffd4d4) 414 ghc-6.4 RET sigprocmask 0 414 ghc-6.4 CALL sigaction(0x3,0xbfffd458,0) 414 ghc-6.4 RET sigaction 0 414 ghc-6.4 CALL sigprocmask(0x3,0xbfffd4d4,0) 414 ghc-6.4 RET sigprocmask 0 414 ghc-6.4 CALL fcntl(0,0x3,0) 414 ghc-6.4 RET fcntl 6 414 ghc-6.4 CALL fcntl(0,0x4,0x6) 414 ghc-6.4 RET fcntl 0 414 ghc-6.4 CALL ioctl(0,0x4004667a ,0xbfffd4b8) 414 ghc-6.4 RET ioctl 0 414 ghc-6.4 PSIG SIGSEGV SIG_DFL 413 runhaskell RET wait4 414/0x19e 413 runhaskell CALL write(0x2,0xbfffcf40,0xc) 413 runhaskell GIO fd 2 wrote 12 bytes "runhaskell: " 413 runhaskell RET write 12/0xc 413 runhaskell CALL write(0x2,0xbfffcfa0,0x36) 413 runhaskell GIO fd 2 wrote 54 bytes "waitForProcess: interrupted (Interrupted system call) " This is a bit surprising. Any suggestions on how to track down the problem? Best Wishes, Greg

On 7/22/05, Gregory Wright
Hi,
I'm trying to get caballized package deployment working on Mac OS X.
However, trying to build a package using runhaskell results in:
crossroads-able> runhaskell Setup.hs configure Warning: No license-file field. Configuring harp-0.2... configure: searching for ghc in path. configure: found ghc at /opt/local/bin/ghc runhaskell: waitForProcess: interrupted (Interrupted system call)
This was trying to build the harp module in the haskell-src-exts package (a prerequisite for hs-plugins).
hs-plugins depends on haskell-src-exts, not harp. -- Friendly, Lemmih

On Jul 22, 2005, at 12:24 PM, Lemmih wrote:
On 7/22/05, Gregory Wright
wrote: Hi,
I'm trying to get caballized package deployment working on Mac OS X.
However, trying to build a package using runhaskell results in:
crossroads-able> runhaskell Setup.hs configure Warning: No license-file field. Configuring harp-0.2... configure: searching for ghc in path. configure: found ghc at /opt/local/bin/ghc runhaskell: waitForProcess: interrupted (Interrupted system call)
This was trying to build the harp module in the haskell-src-exts package (a prerequisite for hs-plugins).
hs-plugins depends on haskell-src-exts, not harp.
-- Friendly, Lemmih
Hi Lemmih, Yes, but harp is part of the haskell-src-exts distribution. However, the failure is not related to what I am trying to build. It doesn't matter if I run the same command, runhaskell Setup.hs configure in the haskell-src-exts subdirectory. The failure is the same. The failure also occurs if I try to configure an simple homemade application using the cabal method on OS X. The same test application configures and builds correctly using cabal on FreeBSD 5.4 under ghc-6.4. Best WIshes, Greg

Gregory Wright
the failure is not related to what I am trying to build. It doesn't matter if I run the same command,
runhaskell Setup.hs configure
in the haskell-src-exts subdirectory. The failure is the same.
The failure also occurs if I try to configure an simple homemade application using the cabal method on OS X. The same test application configures and builds correctly using cabal on FreeBSD 5.4 under ghc-6.4.
Can you tell us what version of Cabal and GHC you are using? peace, isaac

On Aug 9, 2005, at 11:31 AM, Isaac Jones wrote:
Gregory Wright
writes: (snip)
the failure is not related to what I am trying to build. It doesn't matter if I run the same command,
runhaskell Setup.hs configure
in the haskell-src-exts subdirectory. The failure is the same.
The failure also occurs if I try to configure an simple homemade application using the cabal method on OS X. The same test application configures and builds correctly using cabal on FreeBSD 5.4 under ghc-6.4.
Can you tell us what version of Cabal and GHC you are using?
peace,
isaac
Hi Isaac, The failure was on ghc-6.4 using runhaskell as provided by the compiler distribution. The OS was 10.4.2. The problem was also reported to the ghc buglist as bug number 1249527. The problem is fixed in the two ghc-6.4.1 snapshots I've built: ghc-6.4.1.20050804 and 20050806. I haven't tested the separate cabal distribution yet. I''l try to test it in the next couple of days. Best Wishes, Greg

On 23/07/2005, at 12:12 AM, Gregory Wright wrote:
I'm trying to get caballized package deployment working on Mac OS X.
However, trying to build a package using runhaskell results in:
crossroads-able> runhaskell Setup.hs configure Warning: No license-file field. Configuring harp-0.2... configure: searching for ghc in path. configure: found ghc at /opt/local/bin/ghc runhaskell: waitForProcess: interrupted (Interrupted system call)
Hi Gregory, you may be happy (I think :) to know I'm having this problem too on Mac OS X, so it's not just you. So far, I've found that compiling Setup.hs ("ghc --make -o setup Setup.hs") and then running the resulting ./setup executable has never caused a problem, whereas I get the same waitForProcess error message that you do when I use runhaskell. It would be worthwhile seeing whether using GHCi to invoke Setup.hs causes a similar problem. -- % Andre Pang : trust.in.love.to.save http://www.algorithm.com.au/
participants (5)
-
Andre Pang
-
Gregory Wright
-
Gregory Wright
-
Isaac Jones
-
Lemmih