I've had this problem as well. I think the issue is that 'cabal' now
expects '--disable-profiling', but if you have a custom Setup.hs, it
can be compiled with an older version of the Cabal library, and then
it expects '--disable-executable-profiling' again. What is the output
of 'ghc-pkg list Cabal'?