Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

inplace is shadowed by package #797

Closed
bos opened this issue May 24, 2012 · 8 comments
Closed

inplace is shadowed by package #797

bos opened this issue May 24, 2012 · 8 comments

Comments

@bos
Copy link
Contributor

bos commented May 24, 2012

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

@bos
Copy link
Contributor Author

bos commented May 24, 2012

(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
Copy link
Contributor Author

bos commented May 24, 2012

(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
Copy link
Contributor Author

bos commented May 24, 2012

(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
Copy link
Contributor Author

bos commented May 24, 2012

(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
Copy link
Member

nh2 commented Apr 14, 2013

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
Copy link

onsails commented Jun 19, 2014

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?

@ttuegel ttuegel added this to the Cabal-1.24 milestone Apr 23, 2015
@23Skidoo 23Skidoo modified the milestones: Cabal 1.24, Cabal 1.26 Feb 21, 2016
@ezyang ezyang modified the milestone: Cabal 2.0 Sep 6, 2016
@gbaz
Copy link
Collaborator

gbaz commented Feb 7, 2018

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
Copy link
Member

23Skidoo commented Feb 8, 2018

Closing in favour of #1575.

@23Skidoo 23Skidoo closed this as completed Feb 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants