Resolving dependencies... /tmp/Cabal-1.2.4.0-12696/Cabal-1.2.4.0/Distribution/Version.hs:1:12: Warning: -fglasgow-exts is deprecated: Use individual extensions instead /tmp/Cabal-1.2.4.0-12696/Cabal-1.2.4.0/Distribution/Verbosity.hs:1:12: Warning: -fglasgow-exts is deprecated: Use individual extensions instead /tmp/Cabal-1.2.4.0-12696/Cabal-1.2.4.0/Distribution/Simple/Utils.hs:1:12: Warning: -fffi is deprecated: use -XForeignFunctionInterface or pragma {-# LANGUAGE ForeignFunctionInterface #-} instead /tmp/Cabal-1.2.4.0-12696/Cabal-1.2.4.0/Distribution/Simple/LocalBuildInfo.hs:1:12: Warning: -fffi is deprecated: use -XForeignFunctionInterface or pragma {-# LANGUAGE ForeignFunctionInterface #-} instead [ 1 of 40] Compiling Distribution.Simple.GHC.Makefile ( /tmp/Cabal-1.2.4.0-12696/Cabal-1.2.4.0/Distribution/Simple/GHC/Makefile.hs, /tmp/Cabal-1.2.4.0-12696/Cabal-1.2.4.0/dist/setup/Distribution/Simple/GHC/Makefile.o ) [ 2 of 40] Compiling Distribution.Compat.Map ( /tmp/Cabal-1.2.4.0-12696/Cabal-1.2.4.0/Distribution/Compat/Map.hs, /tmp/Cabal-1.2.4.0-12696/Cabal-1.2.4.0/dist/setup/Distribution/Compat/Map.o ) [ 3 of 40] Compiling Distribution.Compat.RawSystem ( /tmp/Cabal-1.2.4.0-12696/Cabal-1.2.4.0/Distribution/Compat/RawSystem.hs, /tmp/Cabal-1.2.4.0-12696/Cabal-1.2.4.0/dist/setup/Distribution/Compat/RawSystem.o ) [ 4 of 40] Compiling Distribution.Compat.Directory ( /tmp/Cabal-1.2.4.0-12696/Cabal-1.2.4.0/Distribution/Compat/Directory.hs, /tmp/Cabal-1.2.4.0-12696/Cabal-1.2.4.0/dist/setup/Distribution/Compat/Directory.o ) [ 5 of 40] Compiling Distribution.Compat.TempFile ( /tmp/Cabal-1.2.4.0-12696/Cabal-1.2.4.0/Distribution/Compat/TempFile.hs, /tmp/Cabal-1.2.4.0-12696/Cabal-1.2.4.0/dist/setup/Distribution/Compat/TempFile.o ) /tmp/Cabal-1.2.4.0-12696/Cabal-1.2.4.0/Distribution/Compat/TempFile.hs:60:44: Could not deduce (GHC.Exception.Exception e0) arising from a use of `try' from the context (Num a1, Show a1) bound by the inferred type of findTempName :: (Num a1, Show a1) => a1 -> IO a at /tmp/Cabal-1.2.4.0-12696/Cabal-1.2.4.0/Distribution/Compat/TempFile.hs:(55,5)-(60,64) The type variable `e0' is ambiguous Possible fix: add a type signature that fixes these type variable(s) Note: there are several potential instances: instance GHC.Exception.Exception Control.Exception.Base.NestedAtomically -- Defined in `Control.Exception.Base' instance GHC.Exception.Exception Control.Exception.Base.NoMethodError -- Defined in `Control.Exception.Base' instance GHC.Exception.Exception Control.Exception.Base.NonTermination -- Defined in `Control.Exception.Base' ...plus 7 others In the second argument of `finally', namely `try (removeFile path)' In the expression: action path `finally` try (removeFile path) In a stmt of a 'do' block: if b then findTempName (x + 1) else action path `finally` try (removeFile path) Failed to install Cabal-1.2.4.0 cabal: Error: some packages failed to install: Cabal-1.2.4.0 failed during the configure step. The exception was: ExitFailure 1 cabal-rpm-0.5.1 depends on Cabal-1.2.4.0 which failed to install.