Resolving dependencies... Configuring mtl-2.2.1... Configuring syb-0.6... Building mtl-2.2.1... Building syb-0.6... Installed syb-0.6 Configuring type-level-0.3.0... Installed mtl-2.2.1 Configuring llvm-base-3.2.0.2... Building type-level-0.3.0... Failed to install llvm-base-3.2.0.2 Build log ( /home/builder/.cabal/logs/llvm-base-3.2.0.2.log ): cabal: Entering directory '/tmp/cabal-tmp-27230/llvm-base-3.2.0.2' cabal: Leaving directory '/tmp/cabal-tmp-27230/llvm-base-3.2.0.2' Installed type-level-0.3.0 cabal: Error: some packages failed to install: llvm-3.2.0.1 depends on llvm-base-3.2.0.2 which failed to install. llvm-base-3.2.0.2 failed during the configure step. The exception was: user error ('/opt/ghc/8.0.2/bin/ghc' exited with an error: /tmp/cabal-tmp-27230/llvm-base-3.2.0.2/dist/setup/setup.hs:125:28: error: • Couldn't match expected type ‘IO InstalledPackageInfo’ with actual type ‘FilePath -> PackageDB -> IO InstalledPackageInfo’ • Probable cause: ‘generateRegistrationInfo’ is applied to too few arguments In a stmt of a 'do' block: installedPkgInfoRaw <- generateRegistrationInfo verbosity pkg lib lbi clbi inplace distPref In the expression: do { let clbi = extractCLBI lbi; installedPkgInfoRaw <- generateRegistrationInfo verbosity pkg lib lbi clbi inplace distPref; let ghciLibraries = ... installedPkgInfo = ...; case () of { _ | modeGenerateRegFile -> writeRegistrationFile installedPkgInfo | modeGenerateRegScript -> die "Generate Reg Script not supported" | otherwise -> registerPackage verbosity installedPkgInfo pkg lbi inplace (withPackageDB lbi) } } In an equation for ‘register'’: register' pkg@(PackageDescription {library = Just lib}) lbi regFlags = do { let clbi = ...; installedPkgInfoRaw <- generateRegistrationInfo verbosity pkg lib lbi clbi inplace distPref; let ghciLibraries = ... ....; .... } where modeGenerateRegFile = isJust (flagToMaybe (regGenPkgConf regFlags)) modeGenerateRegScript = fromFlag (regGenScript regFlags) inplace = fromFlag (regInPlace regFlags) packageDb = nub $ withPackageDB lbi ++ maybeToList (flagToMaybe (regPackageDB regFlags)) .... /tmp/cabal-tmp-27230/llvm-base-3.2.0.2/dist/setup/setup.hs:126:63: error: • Couldn't match type ‘[Char]’ with ‘Bool’ Expected type: Bool Actual type: FilePath • In the 7th argument of ‘generateRegistrationInfo’, namely ‘distPref’ In a stmt of a 'do' block: installedPkgInfoRaw <- generateRegistrationInfo verbosity pkg lib lbi clbi inplace distPref In the expression: do { let clbi = extractCLBI lbi; installedPkgInfoRaw <- generateRegistrationInfo verbosity pkg lib lbi clbi inplace distPref; let ghciLibraries = ... installedPkgInfo = ...; case () of { _ | modeGenerateRegFile -> writeRegistrationFile installedPkgInfo | modeGenerateRegScript -> die "Generate Reg Script not supported" | otherwise -> registerPackage verbosity installedPkgInfo pkg lbi inplace (withPackageDB lbi) } } /tmp/cabal-tmp-27230/llvm-base-3.2.0.2/dist/setup/setup.hs:139:37: error: • Couldn't match expected type ‘Compiler’ with actual type ‘InstalledPackageInfo’ • In the second argument of ‘registerPackage’, namely ‘installedPkgInfo’ In the expression: registerPackage verbosity installedPkgInfo pkg lbi inplace (withPackageDB lbi) In a case alternative: _ | modeGenerateRegFile -> writeRegistrationFile installedPkgInfo | modeGenerateRegScript -> die "Generate Reg Script not supported" | otherwise -> registerPackage verbosity installedPkgInfo pkg lbi inplace (withPackageDB lbi) /tmp/cabal-tmp-27230/llvm-base-3.2.0.2/dist/setup/setup.hs:139:54: error: • Couldn't match type ‘PackageDescription’ with ‘Distribution.Simple.Program.Db.ProgramDb’ Expected type: Distribution.Simple.Program.ProgramConfiguration Actual type: PackageDescription • In the third argument of ‘registerPackage’, namely ‘pkg’ In the expression: registerPackage verbosity installedPkgInfo pkg lbi inplace (withPackageDB lbi) In a case alternative: _ | modeGenerateRegFile -> writeRegistrationFile installedPkgInfo | modeGenerateRegScript -> die "Generate Reg Script not supported" | otherwise -> registerPackage verbosity installedPkgInfo pkg lbi inplace (withPackageDB lbi) /tmp/cabal-tmp-27230/llvm-base-3.2.0.2/dist/setup/setup.hs:139:58: error: • Couldn't match expected type ‘Bool’ with actual type ‘LocalBuildInfo’ • In the fourth argument of ‘registerPackage’, namely ‘lbi’ In the expression: registerPackage verbosity installedPkgInfo pkg lbi inplace (withPackageDB lbi) In a case alternative: _ | modeGenerateRegFile -> writeRegistrationFile installedPkgInfo | modeGenerateRegScript -> die "Generate Reg Script not supported" | otherwise -> registerPackage verbosity installedPkgInfo pkg lbi inplace (withPackageDB lbi) /tmp/cabal-tmp-27230/llvm-base-3.2.0.2/dist/setup/setup.hs:139:62: error: • Couldn't match type ‘Bool’ with ‘[PackageDB]’ Expected type: PackageDBStack Actual type: Bool • In the fifth argument of ‘registerPackage’, namely ‘inplace’ In the expression: registerPackage verbosity installedPkgInfo pkg lbi inplace (withPackageDB lbi) In a case alternative: _ | modeGenerateRegFile -> writeRegistrationFile installedPkgInfo | modeGenerateRegScript -> die "Generate Reg Script not supported" | otherwise -> registerPackage verbosity installedPkgInfo pkg lbi inplace (withPackageDB lbi) /tmp/cabal-tmp-27230/llvm-base-3.2.0.2/dist/setup/setup.hs:140:38: error: • Couldn't match type ‘[PackageDB]’ with ‘InstalledPackageInfo’ Expected type: InstalledPackageInfo Actual type: PackageDBStack • In the sixth argument of ‘registerPackage’, namely ‘(withPackageDB lbi)’ In the expression: registerPackage verbosity installedPkgInfo pkg lbi inplace (withPackageDB lbi) In a case alternative: _ | modeGenerateRegFile -> writeRegistrationFile installedPkgInfo | modeGenerateRegScript -> die "Generate Reg Script not supported" | otherwise -> registerPackage verbosity installedPkgInfo pkg lbi inplace (withPackageDB lbi) )