Ticket #7728 (closed bug: worksforme)

Opened 3 months ago

Last modified 3 months ago

ghc-pkg does not build

Reported by: jstolarek Owned by:
Priority: normal Milestone:
Component: ghc-pkg Version: 7.6.2
Keywords: Cc:
Operating System: Linux Architecture: Unknown/Multiple
Type of failure: Building GHC failed Difficulty:
Test Case: Blocked By:
Blocking: Related Tickets:

Description

I am experiencing build errors with HEAD. Steps to reproduce:

git clone http://darcs.haskell.org/ghc.git ghc-working
cd ghc-working/
./sync-all get
perl boot
./configure
make

Build process terminates with an error:

utils/ghc-pkg/Main.hs:881:3:
    No instance for (Bin.Binary (InstalledPackageInfo_ String))
      arising from a use of `writeBinaryFileAtomic'
    Possible fix:
      add an instance declaration for
      (Bin.Binary (InstalledPackageInfo_ String))
    In the first argument of `catchIO', namely
      `writeBinaryFileAtomic
         filename (map convertPackageInfoOut (packages db))'
...

I'm using GHC 7.6.2.20130129 for bootstrapping. I'm stuck with development because of this :/

Change History

Changed 3 months ago by jstolarek

After spending a few more hours on this I suspect that the problem might be caused by two versions of binary package installed on my system. If so then of course this is not a bug in GHC, but I'm yet to verify this.

So is there a way to tell the build system to use one particular version of binary package? Hiding the package using ghc-pkg hide does not work and removing any of these two versions will break a lot of installed packages - I'd like to avoid that.

Changed 3 months ago by jstolarek

  • status changed from new to closed
  • resolution set to worksforme
Note: See TracTickets for help on using tickets.