Repository navigation
Open
1 / 11 of 1 issue completedLabels
Milestone
Description
Lifted from:
cabal v1-install chokes on the hackage-cli executable in the linking phase. @gbaz suspects it is because hackage-cli defines an internal library (cabal-revisions):
$ cabal get hackage-cli-0.1.0.0
$ cd hackage-cli-0.1.0.0
$ cabal v1-install -w ghc-9.4.4
...
Building library 'cabal-revisions' for hackage-cli-0.1.0.0..
...
Building executable 'hackage-cli' for hackage-cli-0.1.0.0..
...
[5 of 5] Linking dist/build/hackage-cli/hackage-cli
Installing internal library cabal-revisions in /Users/abel/.cabal/lib/x86_64-osx-ghc-9.4.4/hackage-cli-0.1.0.0-Dk3ZdfpjcyF4Z0aP4NlJOe
Installing executable hackage-cli in /Users/abel/.cabal/bin
Failed to install hackage-cli-0.1.0.0
Error: cabal: Some packages failed to install:
hackage-cli-0.1.0.0-Dk3ZdfpjcyF4Z0aP4NlJOe failed during the final install
step. The exception was:
dieVerbatim: user error (Error: cabal: '/usr/local/bin/ghc-pkg-9.4.4' exited
with an error:
z-hackage-cli-z-cabal-revisions-0.1.0.0: Warning: haddock-interfaces:
/Users/abel/.cabal/share/doc/x86_64-osx-ghc-9.4.4/hackage-cli-0.1.0.0/html/hackage-cli.haddock
doesn't exist or isn't a file
z-hackage-cli-z-cabal-revisions-0.1.0.0: Warning: haddock-html:
/Users/abel/.cabal/share/doc/x86_64-osx-ghc-9.4.4/hackage-cli-0.1.0.0/html
doesn't exist or isn't a directory
z-hackage-cli-z-cabal-revisions-0.1.0.0: installed package info from too old
version of Cabal (key field does not match id field)
)
The last line of the error "installed package info from too old version of (key field does not match id field)" is also present in this issue:
Sub-issues
Collapse Sub-issuesSub-issues
Loading 1 sub-issues
Activity
andreasabel commentedon Sep 25, 2024
This issue is maybe more relevant as
cabal v1-install happyfails now (sincehappy-2.0).cabal v1-install happyfails with mysterious interface error happy#315The error message is quite hermetic:
The least that should happen for this issue is a proper error like "v1-install not supported for package with internal libraries".
sgraf812 commentedon Dec 4, 2024
This issue presumably came up again in haskell/happy#328, which wants to use Setup.hs for packaging
happyin Arch. It appears that this issue is a blocker for anyone wanting to package binaries of haskell libraries with private sub-libraries.Vekhir commentedon Dec 27, 2024
During packaging of
happy-lib, it seems that CabalsSetup copycommand doesn't copy correctly when specifying--libsubdirin theSetup configurestep and writes thePaths_happy_libfile to the wrong location. This happens for both, so the second one overwrites the first.To reproduce the issue, setting
--libsubdirto any value produces the invalid artifact. Not specifying it doesn't exhibit this issue. After running the copy command with--verbose(and including other debug info like the directory structure), I got the below attached log.Log
with
--libsubdir=\$compiler/site-local/\$pkgidwithout --libsubdir
sgraf812 commentedon Jan 18, 2025
It is likely that this issue is a consequence of #10687. I found a workaround to #10687 and released happy 2.1.4 with it, now
cabal v1-install happyworks again.andreasabel commentedon Jan 19, 2025
It does so with
cabal-3.12.1.0.But it fails with
cabal-3.14.1.1, so this might be a new regression:cabal v1-install happy-2.1.4succeeds with 3.12.1.0 but fails with 3.14.1.1 #10761