Skip to content

Instantly share code, notes, and snippets.

@mardukbp
Last active August 29, 2015 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mardukbp/59a1cac1379d0d112a47 to your computer and use it in GitHub Desktop.
Save mardukbp/59a1cac1379d0d112a47 to your computer and use it in GitHub Desktop.
Compilation of poppler 0.13 fails
$ cabal install hoodle
Resolving dependencies...
[1 of 2] Compiling SetupWrapper ( /tmp/poppler-0.13-24093/poppler-0.13/SetupWrapper.hs, /tmp/poppler-0.13-24093/poppler-0.13/dist/setup/SetupWrapper.o )
/tmp/poppler-0.13-24093/poppler-0.13/SetupWrapper.hs:118:28: Warning:
In the use of ‘configCompiler’
(imported from Distribution.Simple.Configure):
Deprecated: "'configCompiler' is deprecated. Use 'configCompilerEx' instead."
[2 of 2] Compiling Main ( /tmp/poppler-0.13-24093/poppler-0.13/dist/setup/setup.hs, /tmp/poppler-0.13-24093/poppler-0.13/dist/setup/Main.o )
Linking /tmp/poppler-0.13-24093/poppler-0.13/dist/setup/setup ...
[1 of 2] Compiling Gtk2HsSetup ( Gtk2HsSetup.hs, dist/setup-wrapper/Gtk2HsSetup.o )
Gtk2HsSetup.hs:161:28:
Couldn't match expected type ‘IO
(Distribution.InstalledPackageInfo.InstalledPackageInfo_
ModuleName)’
with actual type ‘FilePath
-> PackageDB
-> IO Distribution.InstalledPackageInfo.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 { installedPkgInfoRaw <- generateRegistrationInfo
verbosity pkg lib lbi clbi inplace distPref;
dllsInScope <- getSearchPath >>= (filterM doesDirectoryExist)
>>= getDlls;
let libs = fixLibs dllsInScope (extraLibraries installedPkgInfoRaw)
installedPkgInfo = ...;
case () of {
_ | modeGenerateRegFile -> die "Generate Reg File not supported"
| modeGenerateRegScript -> die "Generate Reg Script not supported"
| otherwise
-> registerPackage
verbosity installedPkgInfo pkg lbi inplace packageDbs } }
Gtk2HsSetup.hs:162:63:
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
Failed to install poppler-0.13
cabal: Error: some packages failed to install:
hoodle-0.3 depends on poppler-0.13 which failed to install.
hoodle-core-0.14 depends on poppler-0.13 which failed to install.
hoodle-render-0.4 depends on poppler-0.13 which failed to install.
poppler-0.13 failed during the configure step. The exception was:
ExitFailure 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment