Can't install Criterion package on ghc ..

2010-04-18 Thread Mozhgan kabiri
Hi,

I am trying to install Criterion package, but I keep getting an error and I
can't figure it out why it is like this !!

mozh...@mozhgan-kch:~$ cabal install Criterion
Resolving dependencies...
Configuring vector-algorithms-0.3...
Preprocessing library vector-algorithms-0.3...
Building vector-algorithms-0.3...
[1 of 9] Compiling Data.Vector.Algorithms.Common (
Data/Vector/Algorithms/Common.hs, dist/build/Data/Vector/Algorithms/Common.o
)
[2 of 9] Compiling Data.Vector.Algorithms.Search (
Data/Vector/Algorithms/Search.hs, dist/build/Data/Vector/Algorithms/Search.o
)
[3 of 9] Compiling Data.Vector.Algorithms.Radix (
Data/Vector/Algorithms/Radix.hs, dist/build/Data/Vector/Algorithms/Radix.o )
[4 of 9] Compiling Data.Vector.Algorithms.Optimal (
Data/Vector/Algorithms/Optimal.hs,
dist/build/Data/Vector/Algorithms/Optimal.o )
[5 of 9] Compiling Data.Vector.Algorithms.Insertion (
Data/Vector/Algorithms/Insertion.hs,
dist/build/Data/Vector/Algorithms/Insertion.o )
[6 of 9] Compiling Data.Vector.Algorithms.Merge (
Data/Vector/Algorithms/Merge.hs, dist/build/Data/Vector/Algorithms/Merge.o )
[7 of 9] Compiling Data.Vector.Algorithms.TriHeap (
Data/Vector/Algorithms/TriHeap.hs,
dist/build/Data/Vector/Algorithms/TriHeap.o )
[8 of 9] Compiling Data.Vector.Algorithms.Intro (
Data/Vector/Algorithms/Intro.hs, dist/build/Data/Vector/Algorithms/Intro.o )
ghc: panic! (the 'impossible' happened)
  (GHC version 6.10.4 for i386-unknown-linux):
idInfo co{v a9WB} [tv]

Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug

cabal: Error: some packages failed to install:
criterion-0.5.0.0 depends on vector-algorithms-0.3 which failed to install.
statistics-0.5.1.0 depends on vector-algorithms-0.3 which failed to install.
vector-algorithms-0.3 failed during the building phase. The exception was:
exit: ExitFailure 1

I tried to install Statistics and vector-algorithms package separately
before installing the Criterion package itself .. but it wasn't successful.

Thanks,

Mozhgan
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


RE: Can't install Criterion package on ghc ..

2010-04-17 Thread Simon Peyton-Jones
John

| I'm not the original reporter, but I can confirm that I am able to
| install Criterion-0.5.0 with ghc-6.12.1 on OSX 10.6.  One datum,
| anyway.
| 
| The problem isn't with criterion itself, but with vector-algorithms.
| The vector library relies heavily on type families, which have dodgy
| support in ghc-6.10.

To be honest, the support for type families is equally dodgy in 6.12.  I'm 
amazed how well it works! As you may know, I've been claiming to be in the 
middle of rewriting the type inference engine, with the goal of cleaning all 
this up, for some months now, distracted by ICFP paper writing, WG2.8, ICFP 
reviewing, and now being stuck in Tokyo unable to get home.

Bottom line: adding this missing type signatures is a good move regardless. I'm 
glad that seems to fix it

If you were able to submit a Trac ticket with a small reproducible test case 
showing a program that compiles ok with 6.12 but fails with 6.10, that would 
really help me to make sure the new implementation does the job. 

Simon
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


RE: Can't install Criterion package on ghc ..

2010-04-14 Thread Simon Peyton-Jones
Can you check?  If it still happens with 6.12, please submit a bug report.
If 6.10 can't compile criterion, you might want to add a constraint to the 
Cabal meta-data.

Simon

| -Original Message-
| From: glasgow-haskell-users-boun...@haskell.org [mailto:glasgow-haskell-
| users-boun...@haskell.org] On Behalf Of John Lato
| Sent: 13 April 2010 16:15
| To: Mozhgan kabiri
| Cc: glasgow-haskell-users@haskell.org
| Subject: Re: Can't install Criterion package on ghc ..
| 
|  From: Mozhgan kabiri mozhgan.kab...@gmail.com
| 
|  Hi,
| 
|  I am trying to install Criterion package, but I keep getting an error and I
|  can't figure it out why it is like this !!
| 
|  mozh...@mozhgan-kch:~$ cabal install Criterion
|  Resolving dependencies...
|  Configuring vector-algorithms-0.3...
|  Preprocessing library vector-algorithms-0.3...
|  Building vector-algorithms-0.3...
| ...
| 
|  [8 of 9] Compiling Data.Vector.Algorithms.Intro (
|  Data/Vector/Algorithms/Intro.hs, dist/build/Data/Vector/Algorithms/Intro.o
| )
|  ghc: panic! (the 'impossible' happened)
|   (GHC version 6.10.4 for i386-unknown-linux):
|     idInfo co{v a9WB} [tv]
| 
| This is definitely a bug in GHC, most likely related to type families
| and fixed in GHC-6.12.x
| 
| If you can upgrade to ghc-6.12.1, that should solve this problem.  If
| you need to remain on ghc-6.10.4, try installing an older version of
| criterion.  You can do this with 'cabal install criterion-0.4.1.0'
| Criterion-0.5 is the first version to depend upon vector-algorithms,
| so any previous version has a chance of working.
| 
| John
| ___
| Glasgow-haskell-users mailing list
| Glasgow-haskell-users@haskell.org
| http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: Can't install Criterion package on ghc ..

2010-04-14 Thread John Lato
I'm not the original reporter, but I can confirm that I am able to
install Criterion-0.5.0 with ghc-6.12.1 on OSX 10.6.  One datum,
anyway.

The problem isn't with criterion itself, but with vector-algorithms.
The vector library relies heavily on type families, which have dodgy
support in ghc-6.10.

John

On Wed, Apr 14, 2010 at 3:24 PM, Simon Peyton-Jones
simo...@microsoft.com wrote:
 Can you check?  If it still happens with 6.12, please submit a bug report.
 If 6.10 can't compile criterion, you might want to add a constraint to the 
 Cabal meta-data.

 Simon

 | -Original Message-
 | From: glasgow-haskell-users-boun...@haskell.org [mailto:glasgow-haskell-
 | users-boun...@haskell.org] On Behalf Of John Lato
 | Sent: 13 April 2010 16:15
 | To: Mozhgan kabiri
 | Cc: glasgow-haskell-users@haskell.org
 | Subject: Re: Can't install Criterion package on ghc ..
 |
 |  From: Mozhgan kabiri mozhgan.kab...@gmail.com
 | 
 |  Hi,
 | 
 |  I am trying to install Criterion package, but I keep getting an error and 
 I
 |  can't figure it out why it is like this !!
 | 
 |  mozh...@mozhgan-kch:~$ cabal install Criterion
 |  Resolving dependencies...
 |  Configuring vector-algorithms-0.3...
 |  Preprocessing library vector-algorithms-0.3...
 |  Building vector-algorithms-0.3...
 | ...
 |
 |  [8 of 9] Compiling Data.Vector.Algorithms.Intro (
 |  Data/Vector/Algorithms/Intro.hs, dist/build/Data/Vector/Algorithms/Intro.o
 | )
 |  ghc: panic! (the 'impossible' happened)
 |   (GHC version 6.10.4 for i386-unknown-linux):
 |     idInfo co{v a9WB} [tv]
 |
 | This is definitely a bug in GHC, most likely related to type families
 | and fixed in GHC-6.12.x
 |
 | If you can upgrade to ghc-6.12.1, that should solve this problem.  If
 | you need to remain on ghc-6.10.4, try installing an older version of
 | criterion.  You can do this with 'cabal install criterion-0.4.1.0'
 | Criterion-0.5 is the first version to depend upon vector-algorithms,
 | so any previous version has a chance of working.
 |
 | John
 | ___
 | Glasgow-haskell-users mailing list
 | Glasgow-haskell-users@haskell.org
 | http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: Can't install Criterion package on ghc ..

2010-04-14 Thread Roman Leshchinskiy
On 15/04/2010, at 02:55, John Lato wrote:

 The problem isn't with criterion itself, but with vector-algorithms.
 The vector library relies heavily on type families, which have dodgy
 support in ghc-6.10.

As a matter of fact, this particular problem is easy to fix by adding a couple 
of type signatures. I used to run into it frequently back when I was still 
working with 6.10. I'll send a patch.

Roman
 

___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: Can't install Criterion package on ghc ..

2010-04-14 Thread Mozhgan kabiri
Hi,

Thanks for the replies .. I upgraded ghc to ghc 6.12 .. and installed
Criterion through cabal .. There is another problem here which I really
don't know if it is due to the ghc version or the dependencies or my OS
version !!!

I installed Criterion package,libpng, gnuplot .. and lots of other packages
which seemed to be useful !

Unfortunately when I run the below command it gives me errors at the end and
says it can’t plot the png output .

./profile -t png:500×175 -k png:500×175

..

..

..

output type PNG 500 175 not supported on this platform
output type PNG 500 175 not supported on this platform


Why is it so ? What else do I need to be able to actually see the graphical
result ?

Do I have to install gtk2hs as well ?

Actually, I installed gtk2hs-0.10.1, but it seems that it can’t be installed
completely on ghc 6.12 !!

Below is the error I get after running make and make install : (before, I am
not sure if my question is related to this thread or not .. sorry in
advance)

For example I get this error at the end, after I run make :

  make: *** [package.conf.inplace] Error 1

make: *** Deleting file `package.conf.inplace'

and I get this one at the end, when I run make install :

ghc: can’t find a package database at package.conf.inplace
make: *** [glib/System/Glib.o] Error 1

Is there any way to get this fixed ? Do I really have to install gtk2hs ?

Thanks,




On Wed, Apr 14, 2010 at 3:24 PM, Simon Peyton-Jones
simo...@microsoft.comwrote:

 Can you check?  If it still happens with 6.12, please submit a bug report.
 If 6.10 can't compile criterion, you might want to add a constraint to the
 Cabal meta-data.

 Simon

 | -Original Message-
 | From: glasgow-haskell-users-boun...@haskell.org [mailto:glasgow-haskell-
 | users-boun...@haskell.org] On Behalf Of John Lato
 | Sent: 13 April 2010 16:15
 | To: Mozhgan kabiri
 | Cc: glasgow-haskell-users@haskell.org
 | Subject: Re: Can't install Criterion package on ghc ..
 |
 |  From: Mozhgan kabiri mozhgan.kab...@gmail.com
 | 
 |  Hi,
 | 
 |  I am trying to install Criterion package, but I keep getting an error
 and I
 |  can't figure it out why it is like this !!
 | 
 |  mozh...@mozhgan-kch:~$ cabal install Criterion
 |  Resolving dependencies...
 |  Configuring vector-algorithms-0.3...
 |  Preprocessing library vector-algorithms-0.3...
 |  Building vector-algorithms-0.3...
 | ...
 |
 |  [8 of 9] Compiling Data.Vector.Algorithms.Intro (
 |  Data/Vector/Algorithms/Intro.hs,
 dist/build/Data/Vector/Algorithms/Intro.o
 | )
 |  ghc: panic! (the 'impossible' happened)
 |   (GHC version 6.10.4 for i386-unknown-linux):
 | idInfo co{v a9WB} [tv]
 |
 | This is definitely a bug in GHC, most likely related to type families
 | and fixed in GHC-6.12.x
 |
 | If you can upgrade to ghc-6.12.1, that should solve this problem.  If
 | you need to remain on ghc-6.10.4, try installing an older version of
 | criterion.  You can do this with 'cabal install criterion-0.4.1.0'
 | Criterion-0.5 is the first version to depend upon vector-algorithms,
 | so any previous version has a chance of working.
 |
 | John
 | ___
 | Glasgow-haskell-users mailing list
 | Glasgow-haskell-users@haskell.org
 | http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: Can't install Criterion package on ghc ..

2010-04-14 Thread Bryan O'Sullivan
On Wed, Apr 14, 2010 at 10:49 AM, Mozhgan kabiri
mozhgan.kab...@gmail.comwrote:


 Thanks for the replies .. I upgraded ghc to ghc 6.12 .. and installed
 Criterion through cabal .. There is another problem here which I really
 don't know if it is due to the ghc version or the dependencies or my OS
 version !!!


There hasn't been an official release of gtk2hs that supports GHC 6.12.1
yet, and gtk2hs is a nightmare on the Mac anyway. Unfortunately, this means
that you get to produce CSV files and generate the charts yourself for now.

Someone sent me a gnuplot patch for criterion, but I haven't reviewed it
yet.
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: Can't install Criterion package on ghc ..

2010-04-14 Thread Mozhgan kabiri
On Wed, Apr 14, 2010 at 7:22 PM, Bryan O'Sullivan b...@serpentine.comwrote:

 On Wed, Apr 14, 2010 at 10:49 AM, Mozhgan kabiri mozhgan.kab...@gmail.com
  wrote:


 Thanks for the replies .. I upgraded ghc to ghc 6.12 .. and installed
 Criterion through cabal .. There is another problem here which I really
 don't know if it is due to the ghc version or the dependencies or my OS
 version !!!


 There hasn't been an official release of gtk2hs that supports GHC 6.12.1
 yet, and gtk2hs is a nightmare on the Mac anyway. Unfortunately, this means
 that you get to produce CSV files and generate the charts yourself for now.

 Someone sent me a gnuplot patch for criterion, but I haven't reviewed it
 yet.


Hi Bryan ..

Actualy by the term OS , I meant my operating system is ubuntu 9.10 .. still
gtk2hs will not work on my machine ? The thing is , I was told that
Criterion package will not work on ghc 6.10 and I have to upgrade it to ghc
6.12 .. still it doesn't plot anything as an output .. What I don't
understand it that, do I really need this gtk2hs in order to use the
Criterion package and get it to work ?? If yes, then why one can't work with
ghc 6.12 and one can't work with the older version ?

Could you please help me out .
Thanks ..
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: Can't install Criterion package on ghc ..

2010-04-14 Thread Dan Doel
On Wednesday 14 April 2010 1:07:05 pm Roman Leshchinskiy wrote:
 On 15/04/2010, at 02:55, John Lato wrote:
  The problem isn't with criterion itself, but with vector-algorithms.
  The vector library relies heavily on type families, which have dodgy
  support in ghc-6.10.
 
 As a matter of fact, this particular problem is easy to fix by adding a
  couple of type signatures. I used to run into it frequently back when I
  was still working with 6.10. I'll send a patch.

I've incorporated the patch and released a bug fix version 0.3.1.

-- Dan
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Can't install Criterion package on ghc ..

2010-04-13 Thread Mozhgan kabiri
Hi,

I am trying to install Criterion package, but I keep getting an error and I
can't figure it out why it is like this !!

mozh...@mozhgan-kch:~$ cabal install Criterion
Resolving dependencies...
Configuring vector-algorithms-0.3...
Preprocessing library vector-algorithms-0.3...
Building vector-algorithms-0.3...
[1 of 9] Compiling Data.Vector.Algorithms.Common (
Data/Vector/Algorithms/Common.
hs, dist/build/Data/Vector/Algorithms/Common.o )
[2 of 9] Compiling Data.Vector.Algorithms.Search (
Data/Vector/Algorithms/Search.hs, dist/build/Data/Vector/Algorithms/Search.o
)
[3 of 9] Compiling Data.Vector.Algorithms.Radix (
Data/Vector/Algorithms/Radix.hs, dist/build/Data/Vector/Algorithms/Radix.o )
[4 of 9] Compiling Data.Vector.Algorithms.Optimal (
Data/Vector/Algorithms/Optimal.hs,
dist/build/Data/Vector/Algorithms/Optimal.o )
[5 of 9] Compiling Data.Vector.Algorithms.Insertion (
Data/Vector/Algorithms/Insertion.hs,
dist/build/Data/Vector/Algorithms/Insertion.o )
[6 of 9] Compiling Data.Vector.Algorithms.Merge (
Data/Vector/Algorithms/Merge.hs, dist/build/Data/Vector/Algorithms/Merge.o )
[7 of 9] Compiling Data.Vector.Algorithms.TriHeap (
Data/Vector/Algorithms/TriHeap.hs,
dist/build/Data/Vector/Algorithms/TriHeap.o )
[8 of 9] Compiling Data.Vector.Algorithms.Intro (
Data/Vector/Algorithms/Intro.hs, dist/build/Data/Vector/Algorithms/Intro.o )
ghc: panic! (the 'impossible' happened)
  (GHC version 6.10.4 for i386-unknown-linux):
idInfo co{v a9WB} [tv]

Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug

cabal: Error: some packages failed to install:
criterion-0.5.0.0 depends on vector-algorithms-0.3 which failed to install.
statistics-0.5.1.0 depends on vector-algorithms-0.3 which failed to install.
vector-algorithms-0.3 failed during the building phase. The exception was:
exit: ExitFailure 1

I tried to install Statistics and vector-algorithms package separately
before installing the Criterion package itself .. but it wasn't successful.

Thanks,

Mozhgan
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: Can't install Criterion package on ghc ..

2010-04-13 Thread John Lato
 From: Mozhgan kabiri mozhgan.kab...@gmail.com

 Hi,

 I am trying to install Criterion package, but I keep getting an error and I
 can't figure it out why it is like this !!

 mozh...@mozhgan-kch:~$ cabal install Criterion
 Resolving dependencies...
 Configuring vector-algorithms-0.3...
 Preprocessing library vector-algorithms-0.3...
 Building vector-algorithms-0.3...
...

 [8 of 9] Compiling Data.Vector.Algorithms.Intro (
 Data/Vector/Algorithms/Intro.hs, dist/build/Data/Vector/Algorithms/Intro.o )
 ghc: panic! (the 'impossible' happened)
  (GHC version 6.10.4 for i386-unknown-linux):
    idInfo co{v a9WB} [tv]

This is definitely a bug in GHC, most likely related to type families
and fixed in GHC-6.12.x

If you can upgrade to ghc-6.12.1, that should solve this problem.  If
you need to remain on ghc-6.10.4, try installing an older version of
criterion.  You can do this with 'cabal install criterion-0.4.1.0'
Criterion-0.5 is the first version to depend upon vector-algorithms,
so any previous version has a chance of working.

John
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users