Skip to content

Bootstrapping ghc-6.4.3 hangs in call to "ghc-pkg-inplace"

I want to bootstrap ghc-6.4.3 with ghc-6.2.2 on an i686 Linux system based on libc-2.2.4. The bootstrap make runs ok until the following command:

../utils/ghc-pkg/ghc-pkg-inplace --force --update-package <package.conf.inplace

which "hangs forever" while chewing up cpu cycles.

Cd-ing into ghc-pkg and issuing

./ghc-pkg.bin --help

produces exactly the same effect. An strace on the latter command results in an endless series of

sigreturn()                             = ? (mask now [])
--- SIGVTALRM (Virtual timer expired) ---

When running ghc-pkg.bin under the control of gdb and interrupting with C-c always catches the execution inside of

__stginit_DistributionziCompatziReadP_ ()

which is a part of Cabal. However, the following trivial test program does not get stuck in that call:

-- Compile with:
--   ghc -i../../lib/compat -L../../lib/compat -lghccompat \
--       -o use-readp use-readp.hs

import Distribution.Compat.ReadP

main :: IO ()
main = do
       putStr "start.\n"

I'm not familiar enough with the ghc build system (nor Haskell) to know what goes wrong here.

Trac metadata
Trac field Value
Version 6.4.3
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Build System
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information