mysteriously hidden ghc-binary-

Donn Cave donn at
Sat Nov 28 00:47:33 EST 2009

Trying to build ghc-, from an hc bootstrap build of
ghc-  -- i.e., first self hosted build of ghc.

I'm hung up at the point where, after building ghc-cabal, ghc-pkg,
hsc2hs etc., it tries to generate dependencies (?) for a Binary.hs
in libraries/bin-package-db.  It can't find module 'Data.Binary' -
"It is a member of the hidden package `ghc-binary-'."

OK, I am not familiar with packages, except insofar as encountered
while trying to build GHC, but from "ghc-pkg list", I would not get
the impression that ghc-binary- is hidden (no parentheses.)
I get this result with either ghc-pkg, from the 20091010 build where
ghc-stage2 is, or the newly built 20091121 version.  The command line
seems to correctly have -hide-all-packages, followed eventually by
-package ghc-binary-

The command and results below.  Is this a configuration problem with
6.12.0, or is it more likely that my ghc build is defective?


	Donn Cave, donn at

/boot/home/src/ghc/ghc- -v -M -include-pkg-deps -dep-makefile libraries/bin-package-db/dist-boot/build/.depend-v -H64m -O0 -fasm -package-conf libraries/bootstrapping.conf -package-name bin-package-db- -hide-all-packages -i -ilibraries/bin-package-db/. -ilibraries/bin-package-db/dist-boot/build -ilibraries/bin-package-db/dist-boot/build/autogen -Ilibraries/bin-package-db/dist-boot/build -Ilibraries/bin-package-db/dist-boot/build/autogen -Ilibraries/bin-package-db/. -optP-include -optPlibraries/bin-package-db/dist-boot/build/autogen/cabal_macros.h -package Cabal- -package base- -package ghc-binary- -fno-warn-deprecated-flags -odir libraries/bin-package-db/dist-boot/build -hidir libraries/bin-package-db/dist-boot/build -stubdir libraries/bin-package-db/dist-boot/build -hisuf hi -osuf o -hcsuf hc libraries/bin-package-db/./Distribution/InstalledPackageInfo/Binary.hs
Glasgow Haskell Compiler, Version, for Haskell 98, stage 2 booted by GHC version 6.8.3
Using binary package database: /boot/home/src/ghc/ghc-
Using package config file: libraries/bootstrapping.conf
wired-in package ghc-prim mapped to ghc-prim-
wired-in package integer-gmp mapped to integer-gmp-
wired-in package base mapped to base-
wired-in package rts mapped to builtin_rts
wired-in package haskell98 mapped to haskell98-
wired-in package template-haskell mapped to template-haskell-
wired-in package dph-seq mapped to dph-seq-0.4.0-inplace
wired-in package dph-par mapped to dph-par-0.4.0-inplace
Hsc static flags: -funregisterised -static
Created temporary directory: /tmp/ghc47745_0
*** Chasing dependencies:
Chasing modules from: *libraries/bin-package-db/Distribution/InstalledPackageInfo/Binary.hs

    Could not find module `Data.Binary':
      It is a member of the hidden package `ghc-binary-'.
      locations searched:
*** Deleting temp files:
Deleting: /tmp/ghc47745_0/ghc47745_0.dep
*** Deleting temp dirs:
Deleting: /tmp/ghc47745_0

More information about the Glasgow-haskell-users mailing list