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

custom-setup's Setup.hs fails to build with --disable-library-vanilla #4812

Closed
RyanGlScott opened this issue Oct 3, 2017 · 2 comments
Closed

Comments

@RyanGlScott
Copy link
Member

(Originally reported at ulidtko/cabal-doctest#24.)

To reproduce the issue, attempt to build any library with a custom-setup (that depends on another library) using --disable-library-vanilla. distributive-0.5.3 is a handy test case here, since it depends on cabal-doctest-1.0.2:

$ cabal get distributive-0.5.3
$ cd distributive-0.5.3/                              
$ cabal sandbox init                     
$ cabal install --disable-library-vanilla distributive-0.5.3
Resolving dependencies...
Notice: installing into a sandbox located at
/home/rgscott/Documents/Hacking/Haskell/distributive-0.5.3/.cabal-sandbox
Configuring cabal-doctest-1.0.2...
Configuring base-orphans-0.6...
Configuring transformers-compat-0.5.1.4...
Building cabal-doctest-1.0.2...
Building base-orphans-0.6...
Building transformers-compat-0.5.1.4...
Installed base-orphans-0.6
Installed transformers-compat-0.5.1.4
Configuring tagged-0.8.5...
Installed cabal-doctest-1.0.2
Building tagged-0.8.5...
Installed tagged-0.8.5
Configuring distributive-0.5.3...
Failed to install distributive-0.5.3
Build log ( /home/rgscott/Documents/Hacking/Haskell/distributive-0.5.3/.cabal-sandbox/logs/ghc-8.2.1/distributive-0.5.3-JhCddFf7ooB4a6MBkynMRP.log ):
cabal: Entering directory '/tmp/cabal-tmp-29865/distributive-0.5.3'
cabal: Leaving directory '/tmp/cabal-tmp-29865/distributive-0.5.3'
cabal: Error: some packages failed to install:
distributive-0.5.3-JhCddFf7ooB4a6MBkynMRP failed during the configure step.
The exception was:
dieVerbatim: user error (cabal: '/opt/ghc/8.2.1/bin/ghc' exited with an error:

/tmp/cabal-tmp-29865/distributive-0.5.3/dist/dist-sandbox-b0108747/setup/setup.hs:12:1:
error:
Could not find module ‘Distribution.Extra.Doctest’
There are files missing in the ‘cabal-doctest-1.0.2’ package,
try running 'ghc-pkg check'.
Use -v to see a list of the files searched for.
|
12 | import Distribution.Extra.Doctest ( defaultMainWithDoctests )
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)

(In case you're curious why I'm trying to install something with --disable-library-vanilla: apparently it's a default option on Manjaro/Arch Linux.)

@23Skidoo
Copy link
Member

Is this the same as #1720?

@RyanGlScott
Copy link
Member Author

I believe it is. Thanks for pointing that out.

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

2 participants