Repository navigation
Closed
Description
See also #1236. For a quick review, I have the following problem:
crabgrass:~% wget http://dmwit.com/tmp.tar.gz && tar xf tmp.tar.gz && cd tmp/foo && cabal install
--2013-03-15 13:49:51-- http://dmwit.com/tmp.tar.gz
Resolving dmwit.com (dmwit.com)... 69.90.123.70
Connecting to dmwit.com (dmwit.com)|69.90.123.70|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 584 [application/x-gzip]
Saving to: ‘tmp.tar.gz’
100%[=====================================================================================>] 584 --.-K/s in 0s
2013-03-15 13:49:51 (50.8 MB/s) - ‘tmp.tar.gz’ saved [584/584]
Warning: The package list for 'hackage.haskell.org' is 17 days old.
Run 'cabal update' to get the latest list of available packages.
Resolving dependencies...
In order, the following will be installed:
foo-0.0 (latest: 1.0) (reinstall)
Warning: Note that reinstalls are always dangerous. Continuing anyway...
[1 of 1] Compiling Main ( Setup.hs, dist/setup/Main.o )
Linking ./dist/setup/setup ...
Configuring foo-0.0...
Building foo-0.0...
Preprocessing library foo-0.0...
In-place registering foo-0.0...
setup: foo-0.0: Warning: haddock-interfaces:
/home/dmwit/tmp/foo/dist/doc/html/foo/foo.haddock doesn't exist or isn't a
file
foo-0.0: Warning: haddock-html: /home/dmwit/tmp/foo/dist/doc/html/foo doesn't
exist or isn't a directory
foo-0.0: cannot find libHSfoo-0.0.a on library path (use --force to override)
Failed to install foo-0.0
cabal: Error: some packages failed to install:
foo-0.0 failed during the building phase. The exception was:
ExitFailure 1
zsh: exit 1 cabal install
With the following additional details:
crabgrass:~% cabal --version
cabal-install version 1.17.0
using version 1.17.0 of the Cabal library
crabgrass:~% uname -a
Linux crabgrass 3.2.0-4-amd64 #1 SMP Debian 3.2.35-2 x86_64 GNU/Linux
crabgrass:~% grep -v 'password\|--\|^$' ~/.cabal/config
remote-repo: hackage.haskell.org:http://hackage.haskell.org/packages/archive
remote-repo-cache: /home/dmwit/.cabal/packages
library-profiling: True
documentation: False
doc-index-file: $datadir/doc/index.html
build-summary: /home/dmwit/.cabal/$arch/logs/build.log
remote-build-reporting: anonymous
username: DanielWagner
install-dirs user
prefix: /home/dmwit/.cabal/$arch
install-dirs global
Metadata
Metadata
Assignees
Labels
No labels
Activity
23Skidoo commentedon Mar 16, 2013
Still can't reproduce:
System config:
This is using a freshly built cabal-install from current TOT.
23Skidoo commentedon Mar 20, 2013
Managed to reproduce this using the following
.cabalfile:Then I get:
System configuration:
23Skidoo commentedon Mar 20, 2013
Some things I've discovered:
a) The error is encountered when we invoke
ghc-pkglike that:b) In 1.16,
cat dist/package.conf.inplaceproducesHowever, in the TOT version the contents of that file are just
[].23Skidoo commentedon Mar 20, 2013
Input given to
ghc-pkgvia stdin is also different.TOT:
1.16:
23Skidoo commentedon Mar 20, 2013
Looks like this is what was causing the problem. Bug introduced by @igfoo in 8395c5d.
package-conf.inplaceis updated byghc-pkgitself, which is why it was empty when I tested with 1.17.Make it possible to register empty libraries again.
Make it possible to build empty libraries again.
Add a test for haskell#1241.