Skip to content

inplace is shadowed by package #797

@bos

Description

@bos
Contributor

(Imported from Trac #807, reported by guest on 2011-03-05)

I have a library, persistent, that builds. When I try to build the test suite, I get:

Preprocessing library persistent-0.4.0.1...
Preprocessing test suites for persistent-0.4.0.1...
Building persistent-0.4.0.1...
Registering persistent-0.4.0.1...
<command line>: cannot satisfy -package-id persistent-0.4.0.1-inplace:
    persistent-0.4.0.1-inplace is shadowed by package persistent-0.4.0.1-f5ffa1e952f5d8b58608c8d1f9f69825
    (use -v for more information)
The test-suite build-depends has:
                   persistent >= 0.4.0.1,
                   persistent-mongoDB,
                   persistent-postgresql,
                   persistent-sqlite,
persistent-mongoDB (and postgresql and sqlite) depends on persistent to build.

I have tried this twice now from a fairly clean install- immediately after upgrading to a new version of ghc.

Activity

bos

bos commented on May 24, 2012

@bos
ContributorAuthor

(Imported comment by @dcoutts on 2011-03-05)

Can you tell us what ghc version you're using? Is it 6.12.1?

Can you point us to a concrete example so we can reproduce it?

bos

bos commented on May 24, 2012

@bos
ContributorAuthor

(Imported comment by guest on 2011-03-05)

I received the same result on 6 (6.12 I presume), 7.01 and 7.02

github.com:gregwebs/persistent.git
branch mongoDB5

To attempt to run the tests you will need to install persistent, then cd to the backends directory and cabal install for sqlite,postgresql, and MongoDB, then come back to root persistent directory and try to run the tests.

bos

bos commented on May 24, 2012

@bos
ContributorAuthor

(Imported comment by guest on 2011-03-06)

I created an account in the hopes that commenting here will give me email updates for this issue. Here is the proper cloning url: http://github.com/gregwebs/persistent.git

I am using cabal compiled from HEAD less than a month ago.

bos

bos commented on May 24, 2012

@bos
ContributorAuthor

(Imported comment by guest on 2011-03-06)

Have you had a chance to reproduce? Is there any more information I can provide you with?

nh2

nh2 commented on Apr 14, 2013

@nh2
Member

I've just had this issue with the attoparsec benchmark:

Preprocessing benchmark 'benchmarks' for attoparsec-0.10.4.0...
Building benchmark benchmarks...
creating dist/build/benchmarks
creating dist/build/benchmarks/benchmarks-tmp
/home/niklas/opt/haskell-7.4/bin/ghc --make -fbuilding-cabal-package -O -odir dist/build/benchmarks/benchmarks-tmp -hidir dist/build/benchmarks/benchmarks-tmp -stubdir dist/build/benchmarks/benchmarks-tmp -i -idist/build/benchmarks/benchmarks-tmp -ibenchmarks -idist/build/autogen -Idist/build/autogen -Idist/build/benchmarks/benchmarks-tmp -optP-include -optPdist/build/autogen/cabal_macros.h -hide-all-packages -package-conf dist/package.conf.inplace -package-id base-4.5.1.0-66f22db3dfcd87541c9c7e50e7095d26 -package-id bytestring-0.9.2.1-503e91bb155301fdb1956cb5c26ce6e9 -package-id criterion-0.6.2.1-5bc7e5a96c8208948366b8e3ea536e68 -package-id deepseq-1.3.0.0-c26e15897417ecd448742528253d68f6 -package-id parsec-3.1.3-771f99c8818551756b6f2ec3e86ab039 -package-id text-0.11.2.3-db61832d0c4660614c4ceff234ed4abb -package-id attoparsec-0.10.4.0-inplace -XHaskell98 benchmarks/Benchmarks.hs -o dist/build/benchmarks/benchmarks
<command line>: cannot satisfy -package-id attoparsec-0.10.4.0-inplace: 
    attoparsec-0.10.4.0-inplace is shadowed by package attoparsec-0.10.4.0-c391286d724823eaea3d4278acc0acc0
    (use -v for more information)

Any idea what is going on?

onsails

onsails commented on Jun 19, 2014

@onsails

I caught this issue after compiling some packages with ghc-7.6.* and another with ghc-7.8.*. Silly me.
But the issue was even with --force-reinstalls option so aren't this packages supposed to be recompiled?

added this to the Cabal-1.24 milestone on Apr 23, 2015
modified the milestones: Cabal 1.24, Cabal 1.26 on Feb 21, 2016
modified the milestone: Cabal 2.0 on Sep 6, 2016
gbaz

gbaz commented on Feb 7, 2018

@gbaz
Collaborator

Here's a newer description of what seems to be the problem (regarding test-suites and cyclic dependencies) that helps clear up the key issues involved: http://stackissue.com/tibbe/hashable/higher-kinded-classes-124.html

So this seems to be an instance of #1575

which has an unmerged (stalled?) pr that gives a solution at #3422

23Skidoo

23Skidoo commented on Feb 8, 2018

@23Skidoo
Member

Closing in favour of #1575.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @ezyang@bos@23Skidoo@onsails@nh2

        Issue actions

          inplace is shadowed by package · Issue #797 · haskell/cabal