Cabal: Strange OS X failures on Travis with GHC 7.8.4

Created on 4 Oct 2016  路  5Comments  路  Source: haskell/cabal

Our CI recently started failing on OS X with GHC 7.8.4. There's a large number of permissions failures, all of them looking like this:

    Command /Users/travis/build/haskell/cabal/Cabal/tests/Setup configure -v --distdir dist-test/./dist --global --with-ghc /Users/travis/.ghc-install/7.8.4/bin/ghc --disable-optimization '--prefix=/Users/travis/build/haskell/cabal/Cabal/tests/PackageTests/BenchmarkStanza/dist-test/usr' '--package-db=clear' '--package-db=global' '--package-db=user' '--package-db=/Users/travis/build/haskell/cabal/dist-newstyle/build/Cabal-1.25.0.0/package.conf.inplace' failed.
    Output:
    Warning: my.cabal: A package using section syntax must specify at least
    'cabal-version: >= 1.2'.
    Configuring BenchmarkStanza-0.1...
    Dependency base -any: using base-4.7.0.2
    Setup: /usr/bin/ar: permission denied

The problem is probably not on our side, but this is still annoying, since it keeps happening.

/cc @phadej

continuous-integration

All 5 comments

I think that commit is pretty unlikely to be causing the failure? What is more likely the culprit is Travis's update to the OS X image: https://blog.travis-ci.com/2016-10-04-osx-73-default-image-live/

See also #2653.

Which suggests that if we add constraint: unix>=2.7.1.0 that should solve the problem... except that we need our bootstrapping cabal to be updated :( (UPDATE: Wait, except on OS X we build the bootstrap ourselves. So we should be able to fix this easy peasy.)

except that we need our bootstrapping cabal to be updated :(

Hmm, I thought the one we were using had this bug fixed.

Was this page helpful?
0 / 5 - 0 ratings