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

Inconsistent travis results with cabal-1.22 and ghc-7.10.3 #3420

Closed
mgsloan opened this issue May 10, 2016 · 4 comments
Closed

Inconsistent travis results with cabal-1.22 and ghc-7.10.3 #3420

mgsloan opened this issue May 10, 2016 · 4 comments

Comments

@mgsloan
Copy link
Collaborator

mgsloan commented May 10, 2016

Sorry if this is just noise, but I have no idea what is happening here: commercialhaskell/stack#2121

The strange thing is that this started occuring spontaneously, as far as I can tell not due to any changes to our travis config. Perhaps there are issues with older versions of cabal that cause corrupted packages / missing dbs?

@23Skidoo
Copy link
Member

23Skidoo commented May 11, 2016

To summarise: you got your Travis .ghc/.cabal borked somehow, which was fixed by clearing the Travis cache. But then the build started failing because mtl failed to install with the following error:

Failed to install mtl-2.2.1
Build log ( /home/travis/.cabal/logs/mtl-2.2.1.log ):
Configuring mtl-2.2.1...
Building mtl-2.2.1...
Preprocessing library mtl-2.2.1...
/home/travis/.ghc/x86_64-linux-7.10.2/package.conf.d/package.cache: openBinaryFile: does not exist (No such file or directory)

I believe that the error comes from ghc or ghc-pkg since Cabal never reads stuff in .ghc directly. I'd try adding a call to ghc-pkg recache to your script before the cabal install invocation and see if it fixes the error.

@23Skidoo
Copy link
Member

One possibility is that there's a race condition in parallel install when one process updates package.cache and another tries to read from it. It may be possible to fix it in ghc-pkg: e.g., this fragment looks suspicious.

@23Skidoo
Copy link
Member

You can also try running cabal install -v2 or -v3 and looking at the logs.

@jneira
Copy link
Member

jneira commented Jul 29, 2021

those version are really old and this issue is somewhat obsolete
@mgsloan feel free to reopen if you continue experiencing the bug with newer versions

@jneira jneira closed this as completed Jul 29, 2021
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

3 participants