MacOSX - cabal install: built failed during the building phase. The exception was: ExitFailure 1 - dist/package.conf.inplace: inappropriate type

using cabal; came accross this error.

did cabal install and this happened.

failed during the building phase. The exception was: ExitFailure 1

checked my log; it said:

dist/package.conf.inplace: inappropriate type

I have 0 ideas what's going on. cabal build works though. #STRANGE

CURRENTLY:

CABAL version: 1.22.0.0. Glorious Glasgow Haskell Compilation version: 7.8.4

Upvotes: 1

Views: 396

Answers (2)

Reid Barton
Reid Barton

Reputation: 14999

You can get this error if you previously built your package with an older (or newer) version of Cabal and now are building with a newer (or older) version.

Not enough information to determine whether this is the problem in your case.

If it is, I think cabal clean should fix it (though I usually just rm -rf dist).

Upvotes: 0

Daniel Wagner
Daniel Wagner

Reputation: 152682

Possible explanation: you have upgraded GHC to 7.10, which does things a bit differently I gather, but not upgraded cabal-install. If this is the problem, running

cabal install cabal-install -w ghc-7.8.4 # or whatever other version of GHC you have

may fix the problem.

Upvotes: 3

Related Questions