Skip to content

Regression on master: building hashable-1.3.0.0 fails with Duplicate modules in benchmark #7776

Closed
@andreasabel

Description

@andreasabel

Current master (e74a53b) of cabal-install fails to build hashable-1.3.0.0:

$ cabal install hashable-1.3.0.0
Resolving dependencies...
Build profile: -w ghc-8.6.5 -O1
In order, the following will be built (use -v for more details):
 - hashable-1.3.0.0 (lib) (requires build)
Configuring library for hashable-1.3.0.0..
Error: cabal: Duplicate modules in benchmark: Data.Hashable.RandomSource

Error: cabal: Failed to build hashable-1.3.0.0. The failure occurred during
the configure step.

$ cabal --version
cabal-install version 3.7
compiled using version 3.7.0.0 of the Cabal library 

Build succeeds with version 3.6:

$ cabal-3.6 install -w ghc-8.10.7 hashable-1.3.0.0
...
Installing library in /Users/abel/.cabal/store/ghc-8.10.7/incoming/new-49369/Users/abel/.cabal/store/ghc-8.10.7/hshbl-1.3.0.0-02ec191e/lib

$ cabal-3.6 --version
cabal-install version 3.6.0.0
compiled using version 3.6.1.0 of the Cabal library 

Build also succeeds with Setup.hs:

$ cabal get hashable-1.3.0.0
$ cd hashable-1.3.0.0
$ runhaskell Setup.hs configure
$ runhaskell Setup.hs build

(However, runhaskell Setup.hs configure --enable-benchmarks does not succeed to construct a build plan.)

This is the content of the cabal.project.local file:

$ cat cabal.project.local 
ignore-project: False
benchmarks: True

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions