How to install/develop?

181 views
Skip to first unread message

Jeff Johnson

unread,
Nov 5, 2014, 1:58:44 PM11/5/14
to hoo...@googlegroups.com
Hi! What's currently the best way to install Hoodle? I'm just interested as a migrating Xournal user for now, but if/when I get some free time I might also want to do some hacking. Probably just with the xmonad-like Haskell hooks at first, which sound like a great idea! Anyway, I tried `cabal install`ing:

jefdaj@acro:/git/hac$ cabal get hoodle
Unpacking to hoodle-0.3/
jefdaj@acro
:/git/hac$ cd hoodle-0.3/
jefdaj@acro
:/git/hac/hoodle-0.3$ cabal sandbox init
Writing a default package environment file to
/git/hac/hoodle-0.3/cabal.sandbox.config
Creating a new sandbox at /git/hac/hoodle-0.3/.cabal-sandbox
jefdaj@acro
:/git/hac/hoodle-0.3$ cabal install
Resolving dependencies...
Configuring Diff-0.3.0...
Building Diff-0.3.0...
Preprocessing library Diff-0.3.0...
[1 of 2] Compiling Data.Algorithm.Diff ( src/Data/Algorithm/Diff.hs, dist/dist-sandbox-715ee7b6/build/Data/Algorithm/Diff.o )
[2 of 2] Compiling Data.Algorithm.DiffOutput ( src/Data/Algorithm/DiffOutput.hs, dist/dist-sandbox-715ee7b6/build/Data/Algorithm/DiffOutput.o )
In-place registering Diff-0.3.0...
Creating package registration file: /tmp/pkgConf-Diff-0.329168.0
Installing library in
/git/hac/hoodle-0.3/.cabal-sandbox/lib/x86_64-linux-ghc-7.6.3/Diff-0.3.0
...
lots of compiling here
...
cabal
: Error: some packages failed to install:
bifunctors
-4.2 depends on distributive-0.4.4 which failed to install.
cairo
-0.13.0.2 failed during the configure step. The exception was:
ExitFailure 127
comonad
-4.2.2 depends on distributive-0.4.4 which failed to install.
configurator
-0.3.0.0 depends on unix-compat-0.4.1.3 which failed to install.
coroutine
-object-0.3 depends on distributive-0.4.4 which failed to install.
crypto
-api-0.13.2 depends on entropy-0.3.4 which failed to install.
distributive
-0.4.4 failed during the configure step. The exception was:
ExitFailure 127
dyre
-0.8.12 depends on ghc-paths-0.1.0.9 which failed to install.
either
-4.3.1 depends on distributive-0.4.4 which failed to install.
entropy
-0.3.4 failed during the configure step. The exception was:
ExitFailure 127
errors
-1.4.7 depends on distributive-0.4.4 which failed to install.
free
-4.9 depends on distributive-0.4.4 which failed to install.
fsnotify
-0.1.0.3 depends on system-filepath-0.4.12 which failed to install.
gd
-3000.7.3 failed during the building phase. The exception was:
ExitFailure 1
ghc
-paths-0.1.0.9 failed during the configure step. The exception was:
ExitFailure 127
gio
-0.13.0.2 depends on glib-0.13.0.1 which failed to install.
glib
-0.13.0.1 failed during the configure step. The exception was:
ExitFailure 127
gtk
-0.13.0.3 depends on glib-0.13.0.1 which failed to install.
hinotify
-0.3.7 failed during the building phase. The exception was:
ExitFailure 1
hoodle
-0.3 depends on distributive-0.4.4 which failed to install.
hoodle
-builder-0.3 depends on distributive-0.4.4 which failed to install.
hoodle
-core-0.14 depends on distributive-0.4.4 which failed to install.
hoodle
-parser-0.3 depends on distributive-0.4.4 which failed to install.
hoodle
-render-0.4 depends on distributive-0.4.4 which failed to install.
hoodle
-types-0.3 depends on distributive-0.4.4 which failed to install.
lens
-4.5 depends on distributive-0.4.4 which failed to install.
network
-info-0.2.0.5 failed during the building phase. The exception was:
ExitFailure 1
pango
-0.13.0.3 depends on glib-0.13.0.1 which failed to install.
poppler
-0.13 depends on glib-0.13.0.1 which failed to install.
profunctors
-4.3.2 depends on distributive-0.4.4 which failed to install.
pureMD5
-2.1.2.1 depends on entropy-0.3.4 which failed to install.
semigroupoids
-4.2 depends on distributive-0.4.4 which failed to install.
svgcairo
-0.13.0.0 depends on glib-0.13.0.1 which failed to install.
system
-fileio-0.3.14 depends on system-filepath-0.4.12 which failed to
install
.
system
-filepath-0.4.12 failed during the configure step. The exception was:
ExitFailure 127
unix
-compat-0.4.1.3 failed during the building phase. The exception was:
ExitFailure 1
uuid
-1.3.4 depends on network-info-0.2.0.5 which failed to install.
xml
-conduit-1.2.3 depends on system-filepath-0.4.12 which failed to install.
xournal
-parser-0.5.0.3 depends on distributive-0.4.4 which failed to install.
xournal
-types-0.5.0.2 depends on distributive-0.4.4 which failed to install.jefdaj@acro:/git/hac/hoodle-0.3$ cabal install
Resolving dependencies...
Configuring Diff-0.3.0...
Building Diff-0.3.0...
Preprocessing library Diff-0.3.0...
[1 of 2] Compiling Data.Algorithm.Diff ( src/Data/Algorithm/Diff.hs, dist/dist-sandbox-715ee7b6/build/Data/Algorithm/Diff.o )
[2 of 2] Compiling Data.Algorithm.DiffOutput ( src/Data/Algorithm/DiffOutput.hs, dist/dist-sandbox-715ee7b6/build/Data/Algorithm/DiffOutput.o )
In-place registering Diff-0.3.0...
Creating package registration file: /tmp/pkgConf-Diff-0.329168.0
Installing library in
/git/hac/hoodle-0.3/.cabal-sandbox/lib/x86_64-linux-ghc-7.6.3/Diff-0.3.0

Then I tried the build script in the main git repo:

jefdaj@acro:/git/hac$ git clone https://github.com/wavewave/hoodle.git
Cloning into 'hoodle'...
remote
: Counting objects: 14527, done.
remote
: Compressing objects: 100% (15/15), done.
remote
: Total 14527 (delta 5), reused 0 (delta 0)
Receiving objects: 100% (14527/14527), 3.84 MiB | 1.38 MiB/s, done.
Resolving deltas: 100% (8194/8194), done.
Checking connectivity... done.
jefdaj@acro
:/git/hac$ cd hoodle/
jefdaj@acro
:/git/hac/hoodle$ cabal sandbox init
Writing a default package environment file to
/git/hac/hoodle/cabal.sandbox.config
Creating a new sandbox at /git/hac/hoodle/.cabal-sandbox
jefdaj@acro
:/git/hac/hoodle$ ./build.sh
Resolving dependencies...
cabal
: Could not resolve dependencies:
trying
: coroutine-object-0.3 (user goal)
next goal: mtl (dependency of coroutine-object-0.3)
rejecting
: mtl-2.1.2/installed-94c... (conflict: transformers==0.4.1.0, mtl =>
transformers
==0.3.0.0/installed-ff2...)
trying
: mtl-2.2.1
trying
: xournal-parser-0.5.0.3 (user goal)
trying
: conduit-extra-1.1.4.1 (dependency of xournal-parser-0.5.0.3)
trying
: network-2.4.1.2/installed-040... (dependency of conduit-extra-1.1.4.1)
next goal: parsec (dependency of network-2.4.1.2/installed-040...)
rejecting
: parsec-3.1.3/installed-6c6... (conflict: mtl==2.2.1, parsec =>
mtl
==2.1.2/installed-94c...)
rejecting
: parsec-3.1.7, 3.1.6, 3.1.5, 3.1.4, 3.1.3, 3.1.2, 3.1.1, 3.1.0,
3.0.1, 3.0.0, 2.1.0.1, 2.1.0.0, 2.0 (conflict: network =>
parsec
==3.1.3/installed-6c6...)
Dependency tree exhaustively searched.

Note: when using a sandbox, all packages are required to have consistent
dependencies
. Try reinstalling/unregistering the offending packages or
recreating the sandbox
.

What next? Should I go back to an older commit, or maybe build the subfolders individually, or try different versions of the failing dependencies? If I can get it working I'd be happy to do a pull request updating the build script or `cabal freeze`ing it with working dependencies.

Jeff Johnson

unread,
Nov 5, 2014, 2:02:27 PM11/5/14
to hoo...@googlegroups.com
Oh ignore the last section of the first install attempt. I accidentally pasted it twice.

Greg Weber

unread,
Nov 5, 2014, 2:26:09 PM11/5/14
to hoo...@googlegroups.com
Hi Jeff,

What you want to do is narrow down the output to which packages actually failed to install. When the output states "depends on", that means the package to the left was never even attempted to install. When you find a package that actually failed to install, you can try to look at the build log for it. If you can't find the build log, you can try to install that specific version (foo-1.3.4) of the package that failed to install and you should get useful output.

What is your OS and version of GHC?


--
You received this message because you are subscribed to the Google Groups "hoodle" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hoodle+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jeff Johnson

unread,
Nov 12, 2014, 12:37:54 AM11/12/14
to hoo...@googlegroups.com
Sorry just saw this for some reason. Pretty long log of attempts follows. I did:

cabal sandbox init
cat sources.txt | cut -c3- | while read d; do cabal sandbox add-source $d; done
cabal install hoodle -j2

The complete output is:

Resolving dependencies...
Notice: installing into a sandbox located at /git/hac/hoodle/.cabal-sandbox
Configuring Diff-0.3.0...
Downloading cairo-0.13.0.2...
Configuring MonadRandom-0.3...
Downloading cmdargs-0.10.12...
Building MonadRandom-0.3...
Building Diff-0.3.0...
Downloading double-conversion-2.0.1.0...
Downloading entropy-0.3.4.1...
Downloading executable-path-0.0.3...
Installed Diff-0.3.0
Configuring TypeCompose-0.9.10...
Downloading gd-3000.7.3...
Installed MonadRandom-0.3
Configuring base64-bytestring-1.0.0.1...
Building TypeCompose-0.9.10...
Downloading glib-0.13.0.1...
Building base64-bytestring-1.0.0.1...
Downloading hinotify-0.3.7...
Downloading io-storage-0.3...
Installed base64-bytestring-1.0.0.1
Configuring blaze-builder-0.3.3.4...
Downloading monad-loops-0.4.2.1...
Installed TypeCompose-0.9.10
Configuring byteable-0.1.1...
Building blaze-builder-0.3.3.4...
Downloading scientific-0.2.0.2...
Building byteable-0.1.1...
Downloading unix-compat-0.4.1.3...
Installed byteable-0.1.1
Configuring cereal-0.4.1.0...
Building cereal-0.4.1.0...
Downloading xdg-basedir-0.2.2...
Configuring exceptions-0.6.1...
Installed blaze-builder-0.3.3.4
Building exceptions-0.6.1...
Configuring ghc-paths-0.1.0.9...
Installed exceptions-0.6.1
Downloading network-simple-0.4.0.2...
Configuring mmorph-1.0.4...
Installed cereal-0.4.1.0
Building ghc-paths-0.1.0.9...
Building mmorph-1.0.4...
Configuring nats-0.2...
Installed ghc-paths-0.1.0.9
Building nats-0.2...
Configuring network-info-0.2.0.5...
Installed mmorph-1.0.4
Building network-info-0.2.0.5...
Configuring prelude-extras-0.4...
Installed nats-0.2
Building prelude-extras-0.4...
Configuring safe-0.3.8...
Installed network-info-0.2.0.5
Building safe-0.3.8...
Configuring strict-0.3.2...
Installed prelude-extras-0.4
Building strict-0.3.2...
Configuring system-filepath-0.4.12...
Installed safe-0.3.8
Configuring tagged-0.7.3...
Installed strict-0.3.2
Building tagged-0.7.3...
Building system-filepath-0.4.12...
Configuring transformers-base-0.4.3...
Installed tagged-0.7.3
Building transformers-base-0.4.3...
Configuring transformers-compat-0.3.3.4...
Installed transformers-base-0.4.3
Building transformers-compat-0.3.3.4...
Configuring transformers-free-1.0.1...
Installed transformers-compat-0.3.3.4
Building transformers-free-1.0.1...
Configuring xml-types-0.3.4...
Installed transformers-free-1.0.1
Building xml-types-0.3.4...
Configuring cairo-0.13.0.2...
Installed system-filepath-0.4.12
Downloading system-fileio-0.3.15...
Configuring cmdargs-0.10.12...
Failed to install cairo-0.13.0.2
Build log ( /git/hac/hoodle/.cabal-sandbox/logs/cairo-0.13.0.2.log ):
Building cmdargs-0.10.12...
Configuring entropy-0.3.4.1...
Installed xml-types-0.3.4
Downloading libxml-sax-0.7.5...
Building entropy-0.3.4.1...
Configuring executable-path-0.0.3...
Installed entropy-0.3.4.1
Downloading crypto-api-0.13.2...
Building executable-path-0.0.3...
Installed executable-path-0.0.3
Configuring gd-3000.7.3...
Configuring glib-0.13.0.1...
Failed to install gd-3000.7.3
Build log ( /git/hac/hoodle/.cabal-sandbox/logs/gd-3000.7.3.log ):
Configuring gd-3000.7.3...
setup-Simple-Cabal-1.16.0-x86_64-linux-ghc-7.6.3: Missing dependency on a
foreign library:
* Missing (or bad) header file: gd.h
* Missing C library: gd
This problem can usually be solved by installing the system package that
provides this library (you may need the "-dev" version). If the library is
already installed but in a non-standard location then you can use the flags
--extra-include-dirs= and --extra-lib-dirs= to specify where it is.
If the header file does exist, it may contain errors that are caught by the C
compiler at the preprocessing stage. In this case you can re-run configure
with the verbosity flag -v3 to see the error messages.
Installed cmdargs-0.10.12
Configuring hinotify-0.3.7...
Failed to install glib-0.13.0.1
Build log ( /git/hac/hoodle/.cabal-sandbox/logs/glib-0.13.0.1.log ):
Configuring io-storage-0.3...
Building hinotify-0.3.7...
Building io-storage-0.3...
Configuring monad-loops-0.4.2.1...
Installed io-storage-0.3
Building monad-loops-0.4.2.1...
Configuring scientific-0.2.0.2...
Installed hinotify-0.3.7
Building scientific-0.2.0.2...
Configuring cryptohash-0.11.6...
Installed monad-loops-0.4.2.1
Building cryptohash-0.11.6...
Configuring unix-compat-0.4.1.3...
Installed scientific-0.2.0.2
Downloading aeson-0.7.0.4...
Building unix-compat-0.4.1.3...
Configuring blaze-markup-0.6.1.1...
Installed unix-compat-0.4.1.3
Downloading configurator-0.3.0.0...
Building blaze-markup-0.6.1.1...
Configuring streaming-commons-0.1.5...
Installed cryptohash-0.11.6
Building streaming-commons-0.1.5...
Configuring xdg-basedir-0.2.2...
Installed blaze-markup-0.6.1.1
Building xdg-basedir-0.2.2...
Configuring network-simple-0.4.0.2...
Installed xdg-basedir-0.2.2
Downloading dyre-0.8.12...
Building network-simple-0.4.0.2...
Failed to install configurator-0.3.0.0
Build log ( /git/hac/hoodle/.cabal-sandbox/logs/configurator-0.3.0.0.log ):
cabal: /git/hac/hoodle/.cabal-sandbox/logs/configurator-0.3.0.0.log: does not
exist

I think the relevant parts are:

Failed to install cairo-0.13.0.2
Build log ( /git/hac/hoodle/.cabal-sandbox/logs/cairo-0.13.0.2.log ):
Failed to install gd-3000.7.3
Build log ( /git/hac/hoodle/.cabal-sandbox/logs/gd-3000.7.3.log ):
setup-Simple-Cabal-1.16.0-x86_64-linux-ghc-7.6.3: Missing dependency on a
foreign library:
* Missing (or bad) header file: gd.h
* Missing C library: gd
This problem can usually be solved by installing the system package that
provides this library (you may need the "-dev" version). If the library is
already installed but in a non-standard location then you can use the flags
--extra-include-dirs= and --extra-lib-dirs= to specify where it is.
If the header file does exist, it may contain errors that are caught by the C
compiler at the preprocessing stage. In this case you can re-run configure
with the verbosity flag -v3 to see the error messages.
Failed to install glib-0.13.0.1
Build log ( /git/hac/hoodle/.cabal-sandbox/logs/glib-0.13.0.1.log ):
Failed to install configurator-0.3.0.0
Build log ( /git/hac/hoodle/.cabal-sandbox/logs/configurator-0.3.0.0.log ):
cabal: /git/hac/hoodle/.cabal-sandbox/logs/configurator-0.3.0.0.log: does not
exist

I installed libghc-gd-dev and libghc-glib-dev, then tried again and got:

Resolving dependencies...
Notice: installing into a sandbox located at /git/hac/hoodle/.cabal-sandbox
Configuring aeson-0.7.0.4...
Downloading configurator-0.3.0.0...
Configuring blaze-html-0.7.0.3...
Building aeson-0.7.0.4...
Building blaze-html-0.7.0.3...
Installed blaze-html-0.7.0.3
Configuring cairo-0.13.0.2...
Failed to install cairo-0.13.0.2
Build log ( /git/hac/hoodle/.cabal-sandbox/logs/cairo-0.13.0.2.log ):
Configuring crypto-api-0.13.2...
Building crypto-api-0.13.2...
Configuring distributive-0.4.4...
Installed aeson-0.7.0.4
Downloading aeson-pretty-0.7.1...
Configuring double-conversion-2.0.1.0...
Installed crypto-api-0.13.2
Downloading pureMD5-2.1.2.1...
Building double-conversion-2.0.1.0...
Building distributive-0.4.4...
Configuring dyre-0.8.12...
Installed distributive-0.4.4
Building dyre-0.8.12...
Configuring glib-0.13.0.1...
Installed double-conversion-2.0.1.0
Configuring libxml-sax-0.7.5...
Failed to install glib-0.13.0.1
Build log ( /git/hac/hoodle/.cabal-sandbox/logs/glib-0.13.0.1.log ):
Building libxml-sax-0.7.5...
Configuring monad-control-0.3.3.0...
Installed dyre-0.8.12
Building monad-control-0.3.3.0...
Configuring network-simple-0.4.0.2...
Installed libxml-sax-0.7.5
Downloading dbus-0.10.8...
Configuring reflection-1.5.1...
Installed monad-control-0.3.3.0
Building network-simple-0.4.0.2...
Building reflection-1.5.1...
Configuring safecopy-0.8.3...
Installed network-simple-0.4.0.2
Configuring semigroups-0.15.4...
Installed reflection-1.5.1
Building safecopy-0.8.3...
Building semigroups-0.15.4...
Configuring streaming-commons-0.1.5...
Installed safecopy-0.8.3
Building streaming-commons-0.1.5...
Configuring system-fileio-0.3.15...
Installed semigroups-0.15.4
Building system-fileio-0.3.15...
Configuring uuid-1.3.4...
Installed system-fileio-0.3.15
Downloading fsnotify-0.1.0.3...
Building uuid-1.3.4...
Configuring configurator-0.3.0.0...
Installed streaming-commons-0.1.5
Building configurator-0.3.0.0...
Installed uuid-1.3.4
Configuring aeson-pretty-0.7.1...
Building aeson-pretty-0.7.1...
Configuring pureMD5-2.1.2.1...
Installed aeson-pretty-0.7.1
Configuring lifted-base-0.2.3.0...
Installed configurator-0.3.0.0
Building pureMD5-2.1.2.1...
Building lifted-base-0.2.3.0...
Configuring dbus-0.10.8...
Installed lifted-base-0.2.3.0
Building dbus-0.10.8...
Configuring void-0.6.1...
Installed pureMD5-2.1.2.1
Building void-0.6.1...
Configuring fsnotify-0.1.0.3...
Installed void-0.6.1
Building fsnotify-0.1.0.3...
Installed fsnotify-0.1.0.3
Configuring resourcet-1.1.2.3...
Building resourcet-1.1.2.3...
Configuring contravariant-1.2...
Installed resourcet-1.1.2.3
Building contravariant-1.2...
Configuring conduit-1.2.2.1...
Installed contravariant-1.2
Building conduit-1.2.2.1...
Configuring comonad-4.2.2...
Installed dbus-0.10.8
Building comonad-4.2.2...
Installed conduit-1.2.2.1
Configuring attoparsec-conduit-1.1.0...
Building attoparsec-conduit-1.1.0...
Configuring zlib-conduit-1.1.0...
Installed comonad-4.2.2
Building zlib-conduit-1.1.0...
Configuring conduit-extra-1.1.4.1...
Installed attoparsec-conduit-1.1.0
Configuring semigroupoids-4.2...
Installed zlib-conduit-1.1.0
Building conduit-extra-1.1.4.1...
Building semigroupoids-4.2...
Installed semigroupoids-4.2
Configuring bifunctors-4.2...
Building bifunctors-4.2...
Configuring profunctors-4.3.2...
Installed conduit-extra-1.1.4.1
Building profunctors-4.3.2...
Configuring xml-conduit-1.2.3...
Installed bifunctors-4.2
Installed profunctors-4.3.2
Configuring free-4.9...
Building xml-conduit-1.2.3...
Building free-4.9...
Installed free-4.9
Configuring either-4.3.2...
Building either-4.3.2...
Installed xml-conduit-1.2.3
Configuring lens-4.5...
Installed either-4.3.2
Downloading errors-1.4.7...
Configuring errors-1.4.7...
Building errors-1.4.7...
Building lens-4.5...
Installed errors-1.4.7
Installed lens-4.5
Configuring coroutine-object-0.3...
Configuring hoodle-types-0.3.0...
Building coroutine-object-0.3...
Building hoodle-types-0.3.0...
Installed coroutine-object-0.3
Configuring xournal-types-0.5.0.999...
Building xournal-types-0.5.0.999...
Installed xournal-types-0.5.0.999
Configuring xournal-parser-0.5.0.3...
Building xournal-parser-0.5.0.3...
Installed hoodle-types-0.3.0
Configuring hoodle-builder-0.3...
Building hoodle-builder-0.3...
Installed xournal-parser-0.5.0.3
Configuring hoodle-parser-0.3...
Building hoodle-parser-0.3...
Installed hoodle-builder-0.3
Installed hoodle-parser-0.3

cabal: Error: some packages failed to install:
cairo-0.13.0.2 failed during the configure step. The exception was:
user error (The package 'cairo' requires Cabal library version -any && >=1.18
but no suitable version is installed.)

gio-0.13.0.2 depends on glib-0.13.0.1 which failed to install.
glib-0.13.0.1 failed during the configure step. The exception was:
user error (
/tmp/glib-0.13.0.1-17316/glib-0.13.0.1/SetupWrapper.hs:12:39:
Module
`Distribution.Simple.Configure'
does not export
`configCompilerEx'
)

gtk-0.13.0.3 depends on glib-0.13.0.1 which failed to install.
hoodle-0.3 depends on glib-0.13.0.1 which failed to install.
hoodle-core-0.14 depends on glib-0.13.0.1 which failed to install.
hoodle-render-0.4.0 depends on glib-0.13.0.1 which failed to install.

pango-0.13.0.3 depends on glib-0.13.0.1 which failed to install.
poppler-0.13 depends on glib-0.13.0.1 which failed to install.
svgcairo-0.13.0.0 depends on glib-0.13.0.1 which failed to install.

The relevant part was:


cairo-0.13.0.2 failed during the configure step. The exception was:
user error (The package 'cairo' requires Cabal library version -any && >=1.18
but no suitable version is installed.)

So then I did cabal install cabal-install, then tried again:

Resolving dependencies...
Notice: installing into a sandbox located at /git/hac/hoodle/.cabal-sandbox
Configuring cairo-0.13.0.2...
Configuring glib-0.13.0.1...
Failed to install cairo-0.13.0.2
Build log ( /git/hac/hoodle/.cabal-sandbox/logs/cairo-0.13.0.2.log ):
[1 of 2] Compiling SetupWrapper     ( /tmp/cairo-0.13.0.2-24092/cairo-0.13.0.2/SetupWrapper.hs, /tmp/cairo-0.13.0.2-24092/cairo-0.13.0.2/dist/dist-sandbox-3c025426/setup/SetupWrapper.o )
[2 of 2] Compiling Main             ( /tmp/cairo-0.13.0.2-24092/cairo-0.13.0.2/dist/dist-sandbox-3c025426/setup/setup.hs, /tmp/cairo-0.13.0.2-24092/cairo-0.13.0.2/dist/dist-sandbox-3c025426/setup/Main.o )
Linking /tmp/cairo-0.13.0.2-24092/cairo-0.13.0.2/dist/dist-sandbox-3c025426/setup/setup ...
[1 of 2] Compiling Gtk2HsSetup      ( Gtk2HsSetup.hs, dist/setup-wrapper/Gtk2HsSetup.o )

Gtk2HsSetup.hs:167:16:
    Not in scope: `LBI.getComponentLocalBuildInfo'
Failed to install glib-0.13.0.1
Build log ( /git/hac/hoodle/.cabal-sandbox/logs/glib-0.13.0.1.log ):
[1 of 2] Compiling SetupWrapper     ( /tmp/glib-0.13.0.1-24092/glib-0.13.0.1/SetupWrapper.hs, /tmp/glib-0.13.0.1-24092/glib-0.13.0.1/dist/dist-sandbox-3c025426/setup/SetupWrapper.o )
[2 of 2] Compiling Main             ( /tmp/glib-0.13.0.1-24092/glib-0.13.0.1/dist/dist-sandbox-3c025426/setup/setup.hs, /tmp/glib-0.13.0.1-24092/glib-0.13.0.1/dist/dist-sandbox-3c025426/setup/Main.o )
Linking /tmp/glib-0.13.0.1-24092/glib-0.13.0.1/dist/dist-sandbox-3c025426/setup/setup ...
[1 of 2] Compiling Gtk2HsSetup      ( Gtk2HsSetup.hs, dist/setup-wrapper/Gtk2HsSetup.o )

Gtk2HsSetup.hs:167:16:
    Not in scope: `LBI.getComponentLocalBuildInfo'

cabal: Error: some packages failed to install:
cairo-0.13.0.2 failed during the configure step. The exception was:
ExitFailure 1
gio-0.13.0.2 depends on glib-0.13.0.1 which failed to install.
glib-0.13.0.1 failed during the configure step. The exception was:
ExitFailure 1
gtk-0.13.0.3 depends on glib-0.13.0.1 which failed to install.
hoodle-0.3 depends on glib-0.13.0.1 which failed to install.
hoodle-core-0.14 depends on glib-0.13.0.1 which failed to install.
hoodle-render-0.4.0 depends on glib-0.13.0.1 which failed to install.

pango-0.13.0.3 depends on glib-0.13.0.1 which failed to install.
poppler-0.13 depends on glib-0.13.0.1 which failed to install.
svgcairo-0.13.0.0 depends on glib-0.13.0.1 which failed to install.

I tried to install cairo-0.13.0.4, but got:

Resolving dependencies...
In order, the following will be installed:
network-2.6.0.2 (new version)
network-simple-0.4.0.2 (reinstall) changes: network-2.4.1.2 -> 2.6.0.2
text-1.2.0.0 (new version)
blaze-builder-0.3.3.4 (reinstall) changes: text-0.11.3.1 -> 1.2.0.0
blaze-markup-0.6.1.1 (reinstall) changes: text-0.11.3.1 -> 1.2.0.0
blaze-html-0.7.0.3 (reinstall) changes: text-0.11.3.1 -> 1.2.0.0
cairo-0.13.0.4 (new package)
double-conversion-2.0.1.0 (reinstall) changes: text-0.11.3.1 -> 1.2.0.0
hashable-1.2.2.0 (new version)
nats-0.2 (reinstall) changes: hashable-1.2.1.0 -> 1.2.2.0
parsec-3.1.7 (new version)
safecopy-0.8.3 (reinstall) changes: text-0.11.3.1 -> 1.2.0.0
scientific-0.3.3.2 (new version)
attoparsec-0.12.1.2 (new version)
streaming-commons-0.1.5 (reinstall) changes: network-2.4.1.2 -> 2.6.0.2,
text-0.11.3.1 -> 1.2.0.0
system-filepath-0.4.12 (reinstall) changes: text-0.11.3.1 -> 1.2.0.0
system-fileio-0.3.15 (reinstall) changes: text-0.11.3.1 -> 1.2.0.0
fsnotify-0.1.0.3 (reinstall) changes: text-0.11.3.1 -> 1.2.0.0
unordered-containers-0.2.5.1 (new version)
aeson-0.7.0.6 (latest: 0.8.0.2) (new version)
aeson-pretty-0.7.1 (reinstall) changes: aeson-0.7.0.4 -> 0.7.0.6,
attoparsec-0.12.1.2 added, cmdargs-0.10.12 added, text-0.11.3.1 -> 1.2.0.0,
unordered-containers-0.2.5.0 -> 0.2.5.1
configurator-0.3.0.0 (reinstall) changes: attoparsec-0.10.4.0 -> 0.12.1.2,
hashable-1.2.1.0 -> 1.2.2.0, text-0.11.3.1 -> 1.2.0.0,
unordered-containers-0.2.5.0 -> 0.2.5.1
semigroups-0.15.4 (reinstall) changes: hashable-1.2.1.0 -> 1.2.2.0,
text-0.11.3.1 -> 1.2.0.0, unordered-containers-0.2.5.0 -> 0.2.5.1
uuid-1.3.4 (reinstall) changes: hashable-1.2.1.0 -> 1.2.2.0
void-0.6.1 (reinstall) changes: hashable-1.2.1.0 -> 1.2.2.0
conduit-1.2.2.1 (reinstall)
attoparsec-conduit-1.1.0 (reinstall)
conduit-extra-1.1.4.1 (reinstall) changes: attoparsec-0.10.4.0 -> 0.12.1.2,
network-2.4.1.2 -> 2.6.0.2, text-0.11.3.1 -> 1.2.0.0
contravariant-1.2 (reinstall)
comonad-4.2.2 (reinstall)
semigroupoids-4.2 (reinstall)
bifunctors-4.2 (reinstall)
profunctors-4.3.2 (reinstall)
free-4.9 (reinstall)
either-4.3.2 (reinstall)
errors-1.4.7 (reinstall)
lens-4.5 (reinstall) changes: hashable-1.2.1.0 -> 1.2.2.0, text-0.11.3.1 ->
1.2.0.0, unordered-containers-0.2.5.0 -> 0.2.5.1
coroutine-object-0.3 (reinstall)
hoodle-types-0.3.0 (reinstall) changes: text-0.11.3.1 -> 1.2.0.0
hoodle-builder-0.3 (reinstall) changes: text-0.11.3.1 -> 1.2.0.0
xml-types-0.3.4 (reinstall) changes: text-0.11.3.1 -> 1.2.0.0
libxml-sax-0.7.5 (reinstall) changes: text-0.11.3.1 -> 1.2.0.0
dbus-0.10.8 (reinstall) changes: network-2.4.1.2 -> 2.6.0.2, parsec-3.1.3 ->
3.1.7, text-0.11.3.1 -> 1.2.0.0
xml-conduit-1.2.3 (reinstall) changes: attoparsec-0.10.4.0 -> 0.12.1.2,
text-0.11.3.1 -> 1.2.0.0
xournal-types-0.5.0.999 (reinstall)
hoodle-parser-0.3 (reinstall) changes: attoparsec-0.10.4.0 -> 0.12.1.2,
text-0.11.3.1 -> 1.2.0.0
zlib-conduit-1.1.0 (reinstall)
xournal-parser-0.5.0.3 (reinstall) changes: attoparsec-0.10.4.0 -> 0.12.1.2,
text-0.11.3.1 -> 1.2.0.0
Warning: Note that reinstalls are always dangerous. Continuing anyway...
Notice: installing into a sandbox located at /git/hac/hoodle/.cabal-sandbox
Downloading network-2.6.0.2...
Downloading text-1.2.0.0...
Configuring network-2.6.0.2...
Configuring text-1.2.0.0...
Building text-1.2.0.0...
Building network-2.6.0.2...
Installed network-2.6.0.2
Configuring network-simple-0.4.0.2...
Building network-simple-0.4.0.2...
Installed network-simple-0.4.0.2
Installed text-1.2.0.0
Downloading cairo-0.13.0.4...
Configuring blaze-builder-0.3.3.4...
Downloading hashable-1.2.2.0...
Downloading parsec-3.1.7...
Configuring double-conversion-2.0.1.0...
Building blaze-builder-0.3.3.4...
Building double-conversion-2.0.1.0...
Configuring safecopy-0.8.3...
Installed double-conversion-2.0.1.0
Configuring system-filepath-0.4.12...
Installed blaze-builder-0.3.3.4
Building safecopy-0.8.3...
Building system-filepath-0.4.12...
Configuring xml-types-0.3.4...
Installed safecopy-0.8.3
Building xml-types-0.3.4...
Installed xml-types-0.3.4
Configuring hashable-1.2.2.0...
Building hashable-1.2.2.0...
Installed system-filepath-0.4.12
Configuring cairo-0.13.0.4...
Configuring parsec-3.1.7...
Installed hashable-1.2.2.0
Downloading unordered-containers-0.2.5.1...
Building parsec-3.1.7...
Configuring blaze-markup-0.6.1.1...
Failed to install cairo-0.13.0.4
Build log ( /git/hac/hoodle/.cabal-sandbox/logs/cairo-0.13.0.4.log ):
[1 of 2] Compiling SetupWrapper     ( /tmp/cairo-0.13.0.4-24602/cairo-0.13.0.4/SetupWrapper.hs, /tmp/cairo-0.13.0.4-24602/cairo-0.13.0.4/dist/dist-sandbox-3c025426/setup/SetupWrapper.o )
[2 of 2] Compiling Main             ( /tmp/cairo-0.13.0.4-24602/cairo-0.13.0.4/dist/dist-sandbox-3c025426/setup/setup.hs, /tmp/cairo-0.13.0.4-24602/cairo-0.13.0.4/dist/dist-sandbox-3c025426/setup/Main.o )
Linking /tmp/cairo-0.13.0.4-24602/cairo-0.13.0.4/dist/dist-sandbox-3c025426/setup/setup ...
[1 of 2] Compiling Gtk2HsSetup      ( Gtk2HsSetup.hs, dist/setup-wrapper/Gtk2HsSetup.o )

Gtk2HsSetup.hs:167:16:
    Not in scope: `LBI.getComponentLocalBuildInfo'
Building blaze-markup-0.6.1.1...
Configuring streaming-commons-0.1.5...
Installed blaze-markup-0.6.1.1
Installed parsec-3.1.7
Configuring libxml-sax-0.7.5...
Building streaming-commons-0.1.5...
Building libxml-sax-0.7.5...
Configuring system-fileio-0.3.15...
Installed libxml-sax-0.7.5
Building system-fileio-0.3.15...
Installed streaming-commons-0.1.5
Configuring nats-0.2...
Building nats-0.2...
Configuring scientific-0.3.3.2...
Installed system-fileio-0.3.15
Configuring uuid-1.3.4...
Installed nats-0.2
Building scientific-0.3.3.2...
Building uuid-1.3.4...
Configuring unordered-containers-0.2.5.1...
Installed uuid-1.3.4
Installed scientific-0.3.3.2
Configuring blaze-html-0.7.0.3...
Downloading attoparsec-0.12.1.2...
Building unordered-containers-0.2.5.1...
Building blaze-html-0.7.0.3...
Configuring dbus-0.10.8...
Installed unordered-containers-0.2.5.1
Building dbus-0.10.8...
Installed blaze-html-0.7.0.3
Configuring fsnotify-0.1.0.3...
Building fsnotify-0.1.0.3...
Installed fsnotify-0.1.0.3
Configuring attoparsec-0.12.1.2...
Building attoparsec-0.12.1.2...
Configuring semigroups-0.15.4...
Installed dbus-0.10.8
Building semigroups-0.15.4...
Installed semigroups-0.15.4
Configuring void-0.6.1...
Building void-0.6.1...
Installed void-0.6.1
Configuring conduit-1.2.2.1...
Building conduit-1.2.2.1...
Configuring contravariant-1.2...
Installed attoparsec-0.12.1.2
Building contravariant-1.2...
Installed conduit-1.2.2.1
Configuring aeson-0.7.0.6...
Building aeson-0.7.0.6...
Installed contravariant-1.2
Configuring attoparsec-conduit-1.1.0...
Building attoparsec-conduit-1.1.0...
Configuring configurator-0.3.0.0...
Installed attoparsec-conduit-1.1.0
Building configurator-0.3.0.0...
Configuring conduit-extra-1.1.4.1...
Installed configurator-0.3.0.0
Building conduit-extra-1.1.4.1...
Installed conduit-extra-1.1.4.1
Configuring zlib-conduit-1.1.0...
Building zlib-conduit-1.1.0...
Configuring comonad-4.2.2...
Installed zlib-conduit-1.1.0
Building comonad-4.2.2...
Configuring xml-conduit-1.2.3...
Installed aeson-0.7.0.6
Building xml-conduit-1.2.3...
Configuring aeson-pretty-0.7.1...
Installed comonad-4.2.2
Building aeson-pretty-0.7.1...
Configuring semigroupoids-4.2...
Installed aeson-pretty-0.7.1
Building semigroupoids-4.2...
Installed xml-conduit-1.2.3
Installed semigroupoids-4.2
Configuring bifunctors-4.2...
Configuring profunctors-4.3.2...
Building bifunctors-4.2...
Building profunctors-4.3.2...
Failed to install profunctors-4.3.2
Build log ( /git/hac/hoodle/.cabal-sandbox/logs/profunctors-4.3.2.log ):
Configuring profunctors-4.3.2...
Building profunctors-4.3.2...
Preprocessing library profunctors-4.3.2...
[ 1 of 14] Compiling Data.Profunctor.Trace ( src/Data/Profunctor/Trace.hs, dist/dist-sandbox-3c025426/build/Data/Profunctor/Trace.o )
[ 2 of 14] Compiling Data.Profunctor.Unsafe ( src/Data/Profunctor/Unsafe.hs, dist/dist-sandbox-3c025426/build/Data/Profunctor/Unsafe.o )
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Loading package array-0.4.0.1 ... linking ... done.
Loading package deepseq-1.3.0.1 ... linking ... done.
Loading package containers-0.5.0.0 ... linking ... done.
Loading package bytestring-0.10.0.2 ... linking ... done.
Loading package text-1.2.0.0 ... linking ... done.
Loading package hashable-1.2.2.0 ... linking ... done.
Loading package nats-0.2 ... linking ... ghc: /git/hac/hoodle/.cabal-sandbox/lib/x86_64-linux-ghc-7.6.3/nats-0.2/HSnats-0.2.o: unknown symbol `hashablezm1zi2zi1zi0_DataziHashableziClass_zdwzdchashWithSalt7_info'
ghc: unable to load package `nats-0.2'
Installed bifunctors-4.2

cabal: Error: some packages failed to install:
cairo-0.13.0.4 failed during the configure step. The exception was:
ExitFailure 1
coroutine-object-0.3 depends on profunctors-4.3.2 which failed to install.
either-4.3.2 depends on profunctors-4.3.2 which failed to install.
errors-1.4.7 depends on profunctors-4.3.2 which failed to install.
free-4.9 depends on profunctors-4.3.2 which failed to install.
hoodle-builder-0.3 depends on profunctors-4.3.2 which failed to install.
hoodle-parser-0.3 depends on profunctors-4.3.2 which failed to install.
hoodle-types-0.3.0 depends on profunctors-4.3.2 which failed to install.
lens-4.5 depends on profunctors-4.3.2 which failed to install.
profunctors-4.3.2 failed during the building phase. The exception was:
ExitFailure 1
xournal-parser-0.5.0.3 depends on profunctors-4.3.2 which failed to install.
xournal-types-0.5.0.999 depends on profunctors-4.3.2 which failed to install.

With the relevant parts:

Failed to install profunctors-4.3.2
Build log ( /git/hac/hoodle/.cabal-sandbox/logs/profunctors-4.3.2.log ):
Failed to install cairo-0.13.0.4
Build log ( /git/hac/hoodle/.cabal-sandbox/logs/cairo-0.13.0.4.log ):

cabal: Error: some packages failed to install:
cairo-0.13.0.4 failed during the configure step. The exception was:
ExitFailure 1

So I tried a couple more versions of cairo and a couple of profunctors. Also installed gtk2hs-buildtools and c2hs. I think the problem is narrowed down to cairo, which won't build even in its own sandbox. I'm on Debian Jessie with GHC 7.6.3. It complains about gtk2hsC2hs:

jefdaj@arachno:/git/hac/cairo$ cabal install cairo
Resolving dependencies...
Notice: installing into a sandbox located at /git/hac/cairo
Configuring text-1.2.0.0...
Building text-1.2.0.0...
Installed text-1.2.0.0
Configuring cairo-0.13.0.4...
Failed to install cairo-0.13.0.4
Build log ( /git/hac/cairo/logs/cairo-0.13.0.4.log ):
[1 of 2] Compiling SetupWrapper     ( /tmp/cairo-0.13.0.4-24588/cairo-0.13.0.4/SetupWrapper.hs, /tmp/cairo-0.13.0.4-24588/cairo-0.13.0.4/dist/dist-sandbox-a8f9ac01/setup/SetupWrapper.o )
[2 of 2] Compiling Main             ( /tmp/cairo-0.13.0.4-24588/cairo-0.13.0.4/dist/dist-sandbox-a8f9ac01/setup/setup.hs, /tmp/cairo-0.13.0.4-24588/cairo-0.13.0.4/dist/dist-sandbox-a8f9ac01/setup/Main.o )
Linking /tmp/cairo-0.13.0.4-24588/cairo-0.13.0.4/dist/dist-sandbox-a8f9ac01/setup/setup ...
[1 of 2] Compiling Gtk2HsSetup      ( Gtk2HsSetup.hs, dist/setup-wrapper/Gtk2HsSetup.o )
[2 of 2] Compiling Main             ( SetupMain.hs, dist/setup-wrapper/Main.o )
Linking dist/setup-wrapper/setup ...
Configuring cairo-0.13.0.4...
setup: The program 'gtk2hsC2hs' version >=0.13.11 is required but the version
found at /usr/bin/gtk2hsC2hs is version 0.13.9

cabal: Error: some packages failed to install:
cairo-0.13.0.4 failed during the configure step. The exception was:
ExitFailure 1

Guess the Debian version is too old? It's:

C->Haskell Compiler, version 0.13.9 (gtk2hs branch) "Bin IO", 27 May 2012

I can't find a version of cairo that will build with it. I also tried installing all the libghc-cairo* packages which didn't help.
Jeff
...

Greg Weber

unread,
Nov 12, 2014, 12:51:18 AM11/12/14
to hoo...@googlegroups.com
Good job narrowing it down! The profunctors error is weird, you may have to reinstall your sandbox to fix that. You should focus on the gtk install issue instead. Here is what came up on stackoverflow: http://stackoverflow.com/questions/10197712/how-to-upgrade-gtk2hsc2hs

--

Jeff Johnson

unread,
Nov 12, 2014, 1:35:42 AM11/12/14
to hoo...@googlegroups.com
Thanks! Didn't occur to me that there's a cabal package too. Installed that and also needed glib-0.13.0.4. Now I'm just down to that weird profunctors problem:


Failed to install profunctors-4.3.2
Build log ( /git/hac/hoodle/.cabal-sandbox/logs/profunctors-4.3.2.log ):
Configuring profunctors-4.3.2...
Building profunctors-4.3.2...
Preprocessing library profunctors-4.3.2...
[ 1 of 14] Compiling Data.Profunctor.Trace ( src/Data/Profunctor/Trace.hs, dist/dist-sandbox-3c025426/build/Data/Profunctor/Trace.o )
[ 2 of 14] Compiling Data.Profunctor.Unsafe ( src/Data/Profunctor/Unsafe.hs, dist/dist-sandbox-3c025426/build/Data/Profunctor/Unsafe.o )
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Loading package array-0.4.0.1 ... linking ... done.
Loading package deepseq-1.3.0.1 ... linking ... done.
Loading package containers-0.5.0.0 ... linking ... done.
Loading package bytestring-0.10.0.2 ... linking ... done.
Loading package text-1.2.0.0 ... linking ... done.
Loading package hashable-1.2.2.0 ... linking ... done.
Loading package nats-0.2 ... linking ... ghc: /git/hac/hoodle/.cabal-sandbox/lib/x86_64-linux-ghc-7.6.3/nats-0.2/HSnats-0.2.o: unknown symbol `hashablezm1zi2zi1zi0_DataziHashableziClass_zdwzdchashWithSalt7_info'
ghc: unable to load package `nats-0.2'
cabal: Error: some packages failed to install:
coroutine-object-0.3 depends on profunctors-4.3.2 which failed to install.
either-4.3.2 depends on profunctors-4.3.2 which failed to install.
errors-1.4.7 depends on profunctors-4.3.2 which failed to install.
free-4.9 depends on profunctors-4.3.2 which failed to install.
hoodle-builder-0.3 depends on profunctors-4.3.2 which failed to install.
hoodle-parser-0.3 depends on profunctors-4.3.2 which failed to install.
hoodle-types-0.3 depends on profunctors-4.3.2 which failed to install.

lens-4.5 depends on profunctors-4.3.2 which failed to install.
profunctors-4.3.2 failed during the building phase. The exception was:
ExitFailure 1
xournal-parser-0.5.0.3 depends on profunctors-4.3.2 which failed to install.
xournal-types-0.5.0.2 depends on profunctors-4.3.2 which failed to install.
/git/hac/hoodle-0.3/.</s
...

Greg Weber

unread,
Nov 12, 2014, 9:22:11 AM11/12/14
to hoo...@googlegroups.com, hoo...@googlegroups.com
Did you try wiping out your sandbox and starting over? rm -r .cabal-sandbox && cabal sandbox init


Sent from Mailbox


--

Jeff Johnson

unread,
Nov 12, 2014, 10:31:01 AM11/12/14
to hoo...@googlegroups.com
Yeah tried that and purging + reinstalling haskell-platform and my global database too. (That was overdue as I hadn't done it since sandboxes came out) One other thing I could try is doing it on my laptop. They're both Debian but something subtle might be different. Or just waiting a couple days. That worked when I had issues building gitit. Doesn't have to work every time, just once and then you can freeze it!
Jeff
[2 of 2] Compiling Data<spa
...
Reply all
Reply to author
Forward
0 new messages