Skip to content

Possible race condition when creating .cabal/store/ghc-.... #11329

@andreasabel

Description

@andreasabel

After a fresh install of GHC 9.14 rc3:

$ cabal build                                                                       
Resolving dependencies...
Build profile: -w ghc-9.14.0.20251128 -O1
In order, the following will be built (use -v for more details):
 - OneTuple-0.4.2 (lib) (requires build)
 - ... (many, many)
 - enummapset-0.7.3.0 (lib) (requires build)
 - Agda-2.9.0 (lib) (first run)
 - Agda-2.9.0 (exe:agda) (first run)
 - Agda-2.9.0 (exe:agda-tests) (first run)
ghc-pkg-9.14.0.20251128: cannot create: /.cabal/store/ghc-9.14.0.20251128-d369/package.db already exists

This is a transient error, so I suppose this is a race condition when things are build in parallel.

This could also be a bug in ghc-pkg.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions