chart "broken" under 6.12 according to criterion

According to the criterion.cabal file shipped with the latest (0.5.0.1) version of criterion, the Chart package is broken under GHC 6.12: flag Chart

According to the criterion.cabal file shipped with the latest (0.5.0.1)
version of criterion, the Chart package is broken under GHC 6.12:
flag Chart
description: enable use of the Chart package
-- Broken under GHC 6.12 so far
Does anyone know the status of this problem? It's been a little frustrating
getting Criterion up and running - it didn't work at all under 6.10 due to a
compiler bug ("The impossible happened" error on uvector install) and now it
works under 6.12 but without the nice charts that are so useful. Appreciate
any insight or workarounds for this, thanks
(Apologies, previous email sent prematurely!)
Tom
On 1 July 2010 10:16, Tom Doris
According to the criterion.cabal file shipped with the latest (0.5.0.1) version of criterion, the Chart package is broken under GHC 6.12:
flag Chart

On 01/07/10 10:19, Tom Doris wrote:
According to the criterion.cabal file shipped with the latest (0.5.0.1) version of criterion, the Chart package is broken under GHC 6.12: flag Chart description: enable use of the Chart package -- Broken under GHC 6.12 so far Does anyone know the status of this problem? It's been a little frustrating getting Criterion up and running - it didn't work at all under 6.10 due to a compiler bug ("The impossible happened" error on uvector install) and now it works under 6.12 but without the nice charts that are so useful. Appreciate any insight or workarounds for this, thanks
Hi, "cabal install criterion -fChart --reinstall" builds fine for me on GHC 6.12.1, and I can draw the KDE graphs succesfully for the criterion examples. I think that comment in the cabal file is probably related to Chart's dependency on gtk2hs. gtk2hs used to be broken on GHC 6.12, but these days it works -- and is on Hackage, too. Give that cabal command a go and see if it works for you. Thanks, Neil.

Neil Brown wrote:
On 01/07/10 10:19, Tom Doris wrote:
According to the criterion.cabal file shipped with the latest (0.5.0.1) version of criterion, the Chart package is broken under GHC 6.12: flag Chart description: enable use of the Chart package -- Broken under GHC 6.12 so far Does anyone know the status of this problem? It's been a little frustrating getting Criterion up and running - it didn't work at all under 6.10 due to a compiler bug ("The impossible happened" error on uvector install) and now it works under 6.12 but without the nice charts that are so useful. Appreciate any insight or workarounds for this, thanks
Hi,
"cabal install criterion -fChart --reinstall" builds fine for me on GHC
OS = OSX 10.5.8 GHC = 6.12.1 Cabal-Install = 0.8.2 Cabal = 1.8.0.2 $> cabal install criterion -fChart --reinstall Resolving dependencies... ... Configuring cairo-0.11.0... setup: gtk2hsC2hs is required but it could not be found. ... Configuring glib-0.11.0... setup: gtk2hsC2hs is required but it could not be found. ... cabal: Error: some packages failed to install: Chart-0.13.1 depends on glib-0.11.0 which failed to install. cairo-0.11.0 failed during the configure step. The exception was: ExitFailure 1 criterion-0.5.0.1 depends on glib-0.11.0 which failed to install. gio-0.11.0 depends on glib-0.11.0 which failed to install. glib-0.11.0 failed during the configure step. The exception was: ExitFailure 1 gtk-0.11.0 depends on glib-0.11.0 which failed to install. pango-0.11.0 depends on glib-0.11.0 which failed to install. Presumably I just need to install some additional non-Hackage libraries, though it's not clear how much gtk cruft needs pulling in. FWIW. -- Live well, ~wren

On 02/07/2010 00:03, wren ng thornton wrote:
OS = OSX 10.5.8 GHC = 6.12.1 Cabal-Install = 0.8.2 Cabal = 1.8.0.2
$> cabal install criterion -fChart --reinstall Resolving dependencies... ... Configuring cairo-0.11.0... setup: gtk2hsC2hs is required but it could not be found.
I had this same problem installing gtk2hs originally. As some helpful posters on reddit pointed out at the time (http://www.reddit.com/r/haskell/comments/c7uh3/gtk2hs_now_on_hackage/) you need: cabal install gtk2hs-buildtools alex happy before instlaling gtk2hs, and also to make sure that the location where cabal puts its binaries is in your $PATH. Thanks, Neil.

On 1 July 2010 19:16, Tom Doris
According to the criterion.cabal file shipped with the latest (0.5.0.1) version of criterion, the Chart package is broken under GHC 6.12:
When Bryan last released Criterion, gtk2hs (and hence Chart) was unbuildable on GHC 6.12 (which was what Bryan was using) unless you manually patched it (<shameless plug>which was fixed a while back in Gentoo). As such, he wasn't able to test whether or not the Chart functionality worked (which it didn't with the latest version of Chart, due to a small API change). I have since sent him a patch to enable it (including to use the latest version of Chart available at that time); since then he has told me that he's been too busy to look at it as he's got a lot on his plate at the moment. Note that this predated the Cabalisation of gtk2hs, so my patch would probably need tweaking, but I assume the time issue is still a problem. -- Ivan Lazar Miljenovic Ivan.Miljenovic@gmail.com IvanMiljenovic.wordpress.com
participants (4)
-
Ivan Miljenovic
-
Neil Brown
-
Tom Doris
-
wren ng thornton