<div dir="ltr"><div><div>Hi,<br><br></div>You should try to build with GHC 7.10 (and the last cabal-install too).<br><br></div>Sylvain<br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-05-06 18:05 GMT+02:00 C W Rose <span dir="ltr"><<a href="mailto:cwrseckford@gmail.com" target="_blank">cwrseckford@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I've been trying to build the glib package (pretty much any version) for<br>
a few days now, with no success. The sequence of results is:<br>
<br>
===================================================================<br>
cwr@sixpence cabal $ cabal --verbose --global<br>
--package-db=/opt/cabal/package.conf.d install glib-0.12.5.4<br>
'/opt/cabal/bin/alex' '--version'<br>
'/opt/cabal/bin/cpphs' '--version'<br>
'/usr/bin/gcc' '-dumpversion'<br>
'/opt/cabal/bin/haddock' '--version'<br>
'/opt/cabal/bin/happy' '--version'<br>
'/usr/bin/hpc' 'version'<br>
looking for tool hsc2hs near compiler in /usr/bin<br>
found hsc2hs in /usr/bin/hsc2hs<br>
'/usr/bin/hsc2hs' '--version'<br>
'/opt/cabal/bin/HsColour' '-version'<br>
'/usr/bin/ghc' '-c' '/tmp/6826.c' '-o' '/tmp/6826.o'<br>
'/usr/bin/ld' '-x' '-r' '/tmp/6826.o' '-o' '/tmp/6827.o'<br>
'/usr/bin/pkg-config' '--version'<br>
'/bin/tar' '--help'<br>
Reading available packages...<br>
Warning: The package list for '<a href="http://hackage.haskell.org" target="_blank">hackage.haskell.org</a>' is 52.1 days old.<br>
Run 'cabal update' to get the latest list of available packages.<br>
Choosing modular solver.<br>
Resolving dependencies...<br>
Ready to install glib-0.12.5.4<br>
Waiting for install task to finish...<br>
Extracting<br>
/opt/cabal/packages/<a href="http://hackage.haskell.org/glib/0.12.5.4/glib-0.12.5.4.tar.gz" target="_blank">hackage.haskell.org/glib/0.12.5.4/glib-0.12.5.4.tar.gz</a> to<br>
/tmp/glib-0.12.5.4-6826...<br>
Updating glib.cabal with the latest revision from the index.<br>
creating /tmp/glib-0.12.5.4-6826/glib-0.12.5.4/dist/setup<br>
creating /tmp/glib-0.12.5.4-6826/glib-0.12.5.4/dist<br>
creating /tmp/glib-0.12.5.4-6826/glib-0.12.5.4/dist/setup<br>
copy /tmp/glib-0.12.5.4-6826/glib-0.12.5.4/Setup.hs to<br>
/tmp/glib-0.12.5.4-6826/glib-0.12.5.4/dist/setup/setup.hs<br>
'/usr/bin/ghc' '--make' '-odir'<br>
'/tmp/glib-0.12.5.4-6826/glib-0.12.5.4/dist/setup' '-hidir'<br>
'/tmp/glib-0.12.5.4-6826/glib-0.12.5.4/dist/setup' '-i'<br>
'-i/tmp/glib-0.12.5.4-6826/glib-0.12.5.4' '-package-db'<br>
'/opt/cabal/package.conf.d' '-package-id'<br>
'Cabal-1.22.1.1-98c5a01d59dd973fd7113dbb82e82560'<br>
'/tmp/glib-0.12.5.4-6826/glib-0.12.5.4/dist/setup/setup.hs' '-o'<br>
'/tmp/glib-0.12.5.4-6826/glib-0.12.5.4/dist/setup/setup' '-threaded'<br>
[1 of 2] Compiling SetupWrapper (<br>
/tmp/glib-0.12.5.4-6826/glib-0.12.5.4/SetupWrapper.hs,<br>
/tmp/glib-0.12.5.4-6826/glib-0.12.5.4/dist/setup/SetupWrapper.o )<br>
<br>
/tmp/glib-0.12.5.4-6826/glib-0.12.5.4/SetupWrapper.hs:118:28: Warning:<br>
In the use of `configCompiler'<br>
(imported from Distribution.Simple.Configure):<br>
Deprecated: "'configCompiler' is deprecated. Use 'configCompilerEx'<br>
instead."<br>
[2 of 2] Compiling Main (<br>
/tmp/glib-0.12.5.4-6826/glib-0.12.5.4/dist/setup/setup.hs,<br>
/tmp/glib-0.12.5.4-6826/glib-0.12.5.4/dist/setup/Main.o )<br>
Linking /tmp/glib-0.12.5.4-6826/glib-0.12.5.4/dist/setup/setup ...<br>
/tmp/glib-0.12.5.4-6826/glib-0.12.5.4/dist/setup/setup configure --verbose=2<br>
--ghc --prefix=/opt/cabal --bindir=/opt/cabal/bin --libdir=/opt/cabal/lib<br>
--libsubdir=glib-0.12.5.4/ghc-7.6.3 --libexecdir=/opt/cabal/libexec<br>
--datadir=/opt/cabal/share --datasubdir=glib-0.12.5.4<br>
--docdir=/opt/cabal/share/doc/glib-0.12.5.4<br>
--htmldir=/opt/cabal/share/doc/glib-0.12.5.4/html<br>
--haddockdir=/opt/cabal/share/doc/glib-0.12.5.4/html<br>
--sysconfdir=/opt/cabal/etc --enable-library-profiling --enable-optimization=2<br>
--global --package-db=/opt/cabal/package.conf.d --flags=closure_signals<br>
--dependency=utf8-string=utf8-string-0.3.8-51169ff3d90963aa54c0a13eee5c3a53<br>
--dependency=containers=containers-0.5.0.0-e7e1a93d7945e93a00ce12660e9ff290<br>
--dependency=base=base-4.6.0.1-220b875e77822b0e1bf50c8f35d37dff<br>
--disable-tests --exact-configuration --disable-benchmarks<br>
[1 of 2] Compiling Gtk2HsSetup ( Gtk2HsSetup.hs,<br>
dist/setup-wrapper/Gtk2HsSetup.o )<br>
[2 of 2] Compiling Main ( SetupMain.hs, dist/setup-wrapper/Main.o )<br>
Linking dist/setup-wrapper/setup ...<br>
unrecognized option `--sysconfdir=/opt/cabal/etc'<br>
<br>
unrecognized option<br>
`--dependency=utf8-string=utf8-string-0.3.8-51169ff3d90963aa54c0a13eee5c3a53'<br>
<br>
unrecognized option<br>
`--dependency=containers=containers-0.5.0.0-e7e1a93d7945e93a00ce12660e9ff290'<br>
<br>
unrecognized option<br>
`--dependency=base=base-4.6.0.1-220b875e77822b0e1bf50c8f35d37dff'<br>
<br>
unrecognized option `--exact-configuration'<br>
Failed to install glib-0.12.5.4<br>
World file is already up to date.<br>
cabal: Error: some packages failed to install:<br>
glib-0.12.5.4 failed during the configure step. The exception was:<br>
ExitFailure 1<br>
cwr@sixpence cabal $<br>
===================================================================<br>
<br>
Moving to the default version of glib, I then get:<br>
<br>
===================================================================<br>
cwr@sixpence cabal $ cabal --verbose --global<br>
--package-db=/opt/cabal/package.conf.d install glib<br>
Reading available packages...<br>
Choosing modular solver.<br>
Resolving dependencies...<br>
Ready to install glib-0.13.1.0<br>
Waiting for install task to finish...<br>
Extracting<br>
/opt/cabal/packages/<a href="http://hackage.haskell.org/glib/0.13.1.0/glib-0.13.1.0.tar.gz" target="_blank">hackage.haskell.org/glib/0.13.1.0/glib-0.13.1.0.tar.gz</a> to<br>
/tmp/glib-0.13.1.0-3703...<br>
Updating glib.cabal with the latest revision from the index.<br>
creating /tmp/glib-0.13.1.0-3703/glib-0.13.1.0/dist/setup<br>
creating /tmp/glib-0.13.1.0-3703/glib-0.13.1.0/dist<br>
creating /tmp/glib-0.13.1.0-3703/glib-0.13.1.0/dist/setup<br>
Failed to install glib-0.13.1.0<br>
World file is already up to date.<br>
cabal: Error: some packages failed to install:<br>
glib-0.13.1.0 failed during the configure step. The exception was:<br>
user error (The package 'glib' requires Cabal library version -any && >=1.18<br>
but no suitable version is installed.)<br>
cwr@sixpence cabal $ cabal --version<br>
cabal-install version 1.18.0.2<br>
using version 1.18.1.2 of the Cabal library<br>
cwr@sixpence cabal $<br>
===================================================================<br>
<br>
And moving to the default version of cabal, I get:<br>
<br>
===================================================================<br>
cwr@sixpence cabal $ cabal --verbose --global<br>
--package-db=/opt/cabal/package.conf.d install glib<br>
'/opt/cabal/bin/alex' '--version'<br>
'/opt/cabal/bin/cpphs' '--version'<br>
'/usr/bin/gcc' '-dumpversion'<br>
'/opt/cabal/bin/haddock' '--version'<br>
'/opt/cabal/bin/happy' '--version'<br>
'/usr/bin/hpc' 'version'<br>
looking for tool hsc2hs near compiler in /usr/bin<br>
found hsc2hs in /usr/bin/hsc2hs<br>
'/usr/bin/hsc2hs' '--version'<br>
'/opt/cabal/bin/HsColour' '-version'<br>
'/usr/bin/ghc' '-c' '/tmp/4186.c' '-o' '/tmp/4186.o'<br>
'/usr/bin/ld' '-x' '-r' '/tmp/4186.o' '-o' '/tmp/4187.o'<br>
'/usr/bin/pkg-config' '--version'<br>
'/bin/tar' '--help'<br>
Reading available packages...<br>
Warning: The package list for '<a href="http://hackage.haskell.org" target="_blank">hackage.haskell.org</a>' is 51.4 days old.<br>
Run 'cabal update' to get the latest list of available packages.<br>
Choosing modular solver.<br>
Resolving dependencies...<br>
Ready to install glib-0.13.1.0<br>
Waiting for install task to finish...<br>
Extracting<br>
/opt/cabal/packages/<a href="http://hackage.haskell.org/glib/0.13.1.0/glib-0.13.1.0.tar.gz" target="_blank">hackage.haskell.org/glib/0.13.1.0/glib-0.13.1.0.tar.gz</a> to<br>
/tmp/glib-0.13.1.0-4186...<br>
Updating glib.cabal with the latest revision from the index.<br>
creating /tmp/glib-0.13.1.0-4186/glib-0.13.1.0/dist/setup<br>
creating /tmp/glib-0.13.1.0-4186/glib-0.13.1.0/dist<br>
creating /tmp/glib-0.13.1.0-4186/glib-0.13.1.0/dist/setup<br>
copy /tmp/glib-0.13.1.0-4186/glib-0.13.1.0/Setup.hs to<br>
/tmp/glib-0.13.1.0-4186/glib-0.13.1.0/dist/setup/setup.hs<br>
'/usr/bin/ghc' '--make' '-odir'<br>
'/tmp/glib-0.13.1.0-4186/glib-0.13.1.0/dist/setup' '-hidir'<br>
'/tmp/glib-0.13.1.0-4186/glib-0.13.1.0/dist/setup' '-i'<br>
'-i/tmp/glib-0.13.1.0-4186/glib-0.13.1.0' '-package-db'<br>
'/opt/cabal/package.conf.d' '-package-id'<br>
'Cabal-1.22.1.1-98c5a01d59dd973fd7113dbb82e82560'<br>
'/tmp/glib-0.13.1.0-4186/glib-0.13.1.0/dist/setup/setup.hs' '-o'<br>
'/tmp/glib-0.13.1.0-4186/glib-0.13.1.0/dist/setup/setup' '-threaded'<br>
[1 of 2] Compiling SetupWrapper (<br>
/tmp/glib-0.13.1.0-4186/glib-0.13.1.0/SetupWrapper.hs,<br>
/tmp/glib-0.13.1.0-4186/glib-0.13.1.0/dist/setup/SetupWrapper.o )<br>
[2 of 2] Compiling Main (<br>
/tmp/glib-0.13.1.0-4186/glib-0.13.1.0/dist/setup/setup.hs,<br>
/tmp/glib-0.13.1.0-4186/glib-0.13.1.0/dist/setup/Main.o )<br>
Linking /tmp/glib-0.13.1.0-4186/glib-0.13.1.0/dist/setup/setup ...<br>
/tmp/glib-0.13.1.0-4186/glib-0.13.1.0/dist/setup/setup configure --verbose=2<br>
--ghc --prefix=/opt/cabal --bindir=/opt/cabal/bin --libdir=/opt/cabal/lib<br>
--libsubdir=glib-0.13.1.0/ghc-7.6.3 --libexecdir=/opt/cabal/libexec<br>
--datadir=/opt/cabal/share --datasubdir=glib-0.13.1.0<br>
--docdir=/opt/cabal/share/doc/glib-0.13.1.0<br>
--htmldir=/opt/cabal/share/doc/glib-0.13.1.0/html<br>
--haddockdir=/opt/cabal/share/doc/glib-0.13.1.0/html<br>
--sysconfdir=/opt/cabal/etc --enable-library-profiling --enable-optimization=2<br>
--global --package-db=/opt/cabal/package.conf.d --flags=closure_signals<br>
--dependency=utf8-string=utf8-string-0.3.8-51169ff3d90963aa54c0a13eee5c3a53<br>
--dependency=text=text-1.1.1.3-3a54592a9f7d64cef4851163d5553453<br>
--dependency=containers=containers-0.5.0.0-e7e1a93d7945e93a00ce12660e9ff290<br>
--dependency=bytestring=bytestring-0.10.0.2-14ba8002009bf89cdad6038c30eda3fd<br>
--dependency=base=base-4.6.0.1-220b875e77822b0e1bf50c8f35d37dff<br>
--disable-tests --exact-configuration --disable-benchmarks<br>
[1 of 2] Compiling Gtk2HsSetup ( Gtk2HsSetup.hs,<br>
dist/setup-wrapper/Gtk2HsSetup.o )<br>
<br>
Gtk2HsSetup.hs:167:16:<br>
Not in scope: `LBI.getComponentLocalBuildInfo'<br>
Failed to install glib-0.13.1.0<br>
Updating world file...<br>
cabal: Error: some packages failed to install:<br>
glib-0.13.1.0 failed during the configure step. The exception was:<br>
ExitFailure 1<br>
cwr@sixpence cabal $<br>
===================================================================<br>
<br>
Does anyone have any idea how to fix any or all of these errors?<br>
<br>
Thanks - Will<br>
<br>
<br>
_______________________________________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@haskell.org">Beginners@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners</a><br>
</blockquote></div><br></div>