mysteriously hidden ghc-binary-0.5.0.2

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


Trying to build ghc-6.12.0.20091121, from an hc bootstrap build of
ghc-6.12.0.20091010  -- 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-0.5.0.2'."

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

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?

Thanks!

	Donn Cave, donn at avvanta.com

/boot/home/src/ghc/ghc-6.12.0.20091010/inplace/bin/ghc-stage2 -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-0.0.0.0 -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-1.8.0.1 -package base-4.2.0.0 -package ghc-binary-0.5.0.2 -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 6.12.0.20091010, for Haskell 98, stage 2 booted by GHC version 6.8.3
Using binary package database: /boot/home/src/ghc/ghc-6.12.0.20091010/inplace/lib/package.conf.d/package.cache
Using package config file: libraries/bootstrapping.conf
wired-in package ghc-prim mapped to ghc-prim-0.2.0.0-inplace
wired-in package integer-gmp mapped to integer-gmp-0.2.0.0-inplace
wired-in package base mapped to base-4.2.0.0-inplace
wired-in package rts mapped to builtin_rts
wired-in package haskell98 mapped to haskell98-1.0.1.1-inplace
wired-in package template-haskell mapped to template-haskell-2.4.0.0-inplace
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

libraries/bin-package-db/Distribution/InstalledPackageInfo/Binary.hs:21:7:
    Could not find module `Data.Binary':
      It is a member of the hidden package `ghc-binary-0.5.0.2'.
      locations searched:
        libraries/bin-package-db/./Data/Binary.hs
        libraries/bin-package-db/./Data/Binary.lhs
        libraries/bin-package-db/dist-boot/build/Data/Binary.hs
        libraries/bin-package-db/dist-boot/build/Data/Binary.lhs
        libraries/bin-package-db/dist-boot/build/autogen/Data/Binary.hs
        libraries/bin-package-db/dist-boot/build/autogen/Data/Binary.lhs
*** 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