Open andreasabel opened 1 year ago
This issue is maybe more relevant as cabal v1-install happy
fails now (since happy-2.0
).
The error message is quite hermetic:
$ cabal v1-install happy
...
Completed happy-lib-2.0.2
...
Building executable 'happy' for happy-2.0.2...
[1 of 2] Compiling Paths_happy ( dist/build/happy/autogen/Paths_happy.hs, dist/build/happy/happy-tmp/Paths_happy.o )
[2 of 2] Compiling Main ( app/Main.lhs, dist/build/happy/happy-tmp/Main.o )
/Users/abel/.cabal/lib/x86_64-osx-ghc-9.10.1-2e29/happy-lib-2.0.2-15p6rBDzTdm9pd5BXGUD6u/Happy/Backend/LALR.hi
Declaration for lalrBackendDataDir
Unfolding of lalrBackendDataDir:
getDataDir1 ErrorWithoutFlag
Something is amiss; requested module happy-lib-2.0.2-15p6rBDzTdm9pd5BXGUD6u-backend-lalr:Paths_happy_lib differs from name found in the interface file happy-lib-2.0.2-15p6rBDzTdm9pd5BXGUD6u-backend-glr:Paths_happy_lib (if these names look the same, try again with -dppr-debug)
<no location info>: error:
Cannot continue after interface file error
The least that should happen for this issue is a proper error like "v1-install not supported for package with internal libraries".
This issue presumably came up again in https://github.com/haskell/happy/issues/328, which wants to use Setup.hs for packaging happy
in Arch.
Lifted from:
cabal v1-install
chokes on thehackage-cli
executable in the linking phase. @gbaz suspects it is becausehackage-cli
defines an internal library (cabal-revisions
):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:
4668