haskell / cabal

Official upstream development repository for Cabal and cabal-install
https://haskell.org/cabal
Other
1.61k stars 691 forks source link

ghc-pkg command fails #2486

Open osa1 opened 9 years ago

osa1 commented 9 years ago

I have a Cabal file that fails with:

In-place registering hsbag-0.1.0.0...
setup-Simple-Cabal-1.22.1.1-x86_64-linux-ghc-7.8.3: '/usr/local/bin/ghc-pkg'
exited with an error:
hsbag-0.1.0.0: Warning: Unrecognized field data-dir on line 15
hsbag-0.1.0.0: Warning: Unrecognized field key on line 4
hsbag-0.1.0.0: Warning: haddock-interfaces:
/home/omer/opt/libcds_b629/haskell/dist/dist-sandbox-fa1c82ae/doc/html/hsbag/hsbag.haddock
doesn't exist or isn't a file
hsbag-0.1.0.0: Warning: haddock-html:
/home/omer/opt/libcds_b629/haskell/dist/dist-sandbox-fa1c82ae/doc/html/hsbag
doesn't exist or isn't a directory

I have no ideas why it's looking for documentation file. This is happening even if I use --disable-documentation.

23Skidoo commented 9 years ago

These warnings are harmless, but for some reason it is exiting with an error. I'm assuming that you're running cabal install hsbag; can you show us the output of cabal install -v3?