
Hi, I'm trying to install REPA but getting the following. Do I just install base? Or is it more complicated than that? Thanks, Dominic. Tests-MacBook-Pro:PDE Test$ cabal install repa Resolving dependencies... cabal: cannot configure repa-2.2.0.1. It requires base ==4.4.* For the dependency on base ==4.4.* there are these packages: base-4.4.0.0 and base-4.4.1.0. However none of them are available. base-4.4.0.0 was excluded because of the top level dependency base -any base-4.4.1.0 was excluded because of the top level dependency base -any Tests-MacBook-Pro:PDE Test$ cabal --version cabal-install version 0.10.2 using version 1.10.1.0 of the Cabal library Tests-MacBook-Pro:PDE Test$ Tests-MacBook-Pro:PDE Test$ ghc --version The Glorious Glasgow Haskell Compilation System, version 7.0.3

06.04.2012, 18:02, "Dominic Steinitz"
cabal: cannot configure repa-2.2.0.1. It requires base ==4.4.*
Tests-MacBook-Pro:PDE Test$ ghc --version The Glorious Glasgow Haskell Compilation System, version 7.0.3
I think this might be because base-4.3 was shipped with GHC 7.0 series: http://www.haskell.org/ghc/docs/7.0.3/html/libraries/index.html

On Fri, Apr 6, 2012 at 7:02 AM, Dominic Steinitz
Hi,
I'm trying to install REPA but getting the following. Do I just install base?
The only "safe" way to upgrade base is to upgrade GHC -- I'm not sure which ghc has base-4.4 though (Based on Dmitry's comment, maybe 7.2?) --Rogan
Thanks, Dominic.
Tests-MacBook-Pro:PDE Test$ cabal install repa Resolving dependencies... cabal: cannot configure repa-2.2.0.1. It requires base ==4.4.* For the dependency on base ==4.4.* there are these packages: base-4.4.0.0 and base-4.4.1.0. However none of them are available. base-4.4.0.0 was excluded because of the top level dependency base -any base-4.4.1.0 was excluded because of the top level dependency base -any
Tests-MacBook-Pro:PDE Test$ cabal --version cabal-install version 0.10.2 using version 1.10.1.0 of the Cabal library Tests-MacBook-Pro:PDE Test$
Tests-MacBook-Pro:PDE Test$ ghc --version The Glorious Glasgow Haskell Compilation System, version 7.0.3
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

On Sat, Apr 7, 2012 at 2:02 AM, Dominic Steinitz
Hi,
I'm trying to install REPA but getting the following. Do I just install base? Or is it more complicated than that?
Thanks, Dominic.
I think the easiest solution is to just use an older version of Repa. According to Hackage, the latest one that works with base 4.3 is Repa 2.1.1.3: $ cabal install repa==2.1.1.3 Chris
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

On 07/04/2012, at 9:33 AM, Chris Wong wrote:
On Sat, Apr 7, 2012 at 2:02 AM, Dominic Steinitz
wrote: Hi,
I'm trying to install REPA but getting the following. Do I just install base? Or is it more complicated than that?
Thanks, Dominic.
I think the easiest solution is to just use an older version of Repa. According to Hackage, the latest one that works with base 4.3 is Repa 2.1.1.3:
$ cabal install repa==2.1.1.3
I've just pushed Repa 3 onto Hackage, which has a much better API than the older versions, and solves several code fusion problems. However, you'll need to upgrade to GHC 7.4 to use it. GHC 7.0.3 is two major releases behind the current version. Ben.

Hi Ben,
I've just pushed Repa 3 onto Hackage, which has a much better API than the older versions, and solves several code fusion problems.
when using the latest version of REPA with GHC 7.4.1, I have trouble building the repa-examples package: | Building repa-examples-3.0.0.1... | Preprocessing executable 'repa-volume' for repa-examples-3.0.0.1... | [1 of 1] Compiling Main ( examples/Volume/Main.hs, dist/build/repa-volume/repa-volume-tmp/Main.o ) | Linking dist/build/repa-volume/repa-volume ... | Preprocessing executable 'repa-sobel' for repa-examples-3.0.0.1... | [1 of 2] Compiling Solver ( examples/Sobel/src-repa/Solver.hs, dist/build/repa-sobel/repa-sobel-tmp/Solver.o ) | Loading package ghc-prim ... linking ... done. | Loading package integer-gmp ... linking ... done. | Loading package base ... linking ... done. | Loading package array-0.4.0.0 ... linking ... done. | Loading package bytestring-0.9.2.1 ... linking ... done. | Loading package deepseq-1.3.0.0 ... linking ... done. | Loading package containers-0.4.2.1 ... linking ... done. | Loading package binary-0.5.1.0 ... linking ... done. | Loading package bmp-1.2.1.1 ... linking ... done. | Loading package old-locale-1.0.0.4 ... linking ... done. | Loading package old-time-1.1.0.0 ... linking ... done. | Loading package extensible-exceptions-0.1.1.4 ... linking ... done. | Loading package time-1.4 ... linking ... done. | Loading package random-1.0.1.1 ... linking ... done. | Loading package pretty-1.1.1.0 ... linking ... done. | Loading package template-haskell ... linking ... done. | Loading package QuickCheck-2.4.2 ... linking ... done. | Loading package primitive-0.4.1 ... linking ... done. | Loading package vector-0.9.1 ... linking ... done. | Loading package repa-3.0.0.1 ... linking ... done. | Loading package repa-io-3.0.0.1 ... linking ... done. | Loading package repa-algorithms-3.0.0.1 ... linking ... done. | [2 of 2] Compiling Main ( examples/Sobel/src-repa/Main.hs, dist/build/repa-sobel/repa-sobel-tmp/Main.o ) | Linking dist/build/repa-sobel/repa-sobel ... | Preprocessing executable 'repa-mmult' for repa-examples-3.0.0.1... | | examples/MMult/src-repa/Main.hs:3:8: | Could not find module `Solver' | Use -v to see a list of the files searched for. When I attempt to use repa 3.1.x, the build won't even get past the configure stage, because Cabal refuses these dependencies. Is that a known problem, or am I doing something wrong? Take care, Peter

On 07/04/2012, at 21:38 , Peter Simons wrote:
Hi Ben,
I've just pushed Repa 3 onto Hackage, which has a much better API than the older versions, and solves several code fusion problems.
when using the latest version of REPA with GHC 7.4.1, I have trouble building the repa-examples package:
| Building repa-examples-3.0.0.1... | Preprocessing executable 'repa-volume' for repa-examples-3.0.0.1...
When I attempt to use repa 3.1.x, the build won't even get past the configure stage, because Cabal refuses these dependencies. Is that a known problem, or am I doing something wrong?
It is a conjunction of tedious Cabal and Hackage limitations, as well as my failure to actually upload the new repa-examples package. Please try again now, and if that doesn't work email be the output of: $ cabal update $ cabal install repa-examples $ ghc-pkg list Thanks, Ben.

On 07/04/2012 11:14, Ben Lippmeier wrote:
On 07/04/2012, at 9:33 AM, Chris Wong wrote:
On Sat, Apr 7, 2012 at 2:02 AM, Dominic Steinitz
wrote: Hi,
I'm trying to install REPA but getting the following. Do I just install base? Or is it more complicated than that?
Thanks, Dominic. I think the easiest solution is to just use an older version of Repa. According to Hackage, the latest one that works with base 4.3 is Repa 2.1.1.3:
$ cabal install repa==2.1.1.3 I've just pushed Repa 3 onto Hackage, which has a much better API than the older versions, and solves several code fusion problems. However, you'll need to upgrade to GHC 7.4 to use it. GHC 7.0.3 is two major releases behind the current version.
Ben.
Hi Ben, Chris and Others, Thanks for your replies and suggestions. All I want to do is invert (well solve actually) a tridiagonal matrix so upgrading ghc from the version that comes with the platform seems a bit overkill. I think I will go with Chris' suggestion for now and maybe upgrade ghc (and REPA) when I am feeling braver. Dominic.

On 07/04/2012 11:14, Ben Lippmeier wrote:
On 07/04/2012, at 9:33 AM, Chris Wong wrote:
On Sat, Apr 7, 2012 at 2:02 AM, Dominic Steinitz
wrote: Hi,
I'm trying to install REPA but getting the following. Do I just install base? Or is it more complicated than that?
Thanks, Dominic. I think the easiest solution is to just use an older version of Repa. According to Hackage, the latest one that works with base 4.3 is Repa 2.1.1.3:
$ cabal install repa==2.1.1.3 I've just pushed Repa 3 onto Hackage, which has a much better API than the older versions, and solves several code fusion problems. However, you'll need to upgrade to GHC 7.4 to use it. GHC 7.0.3 is two major releases behind the current version.
Ben.
Hi Ben, Chris and Others,
Thanks for your replies and suggestions. All I want to do is invert (well solve actually) a tridiagonal matrix so upgrading ghc from the version that comes with the platform seems a bit overkill. I think I will go with Chris' suggestion for now and maybe upgrade ghc (and REPA) when I am feeling braver.
Dominic. Sadly I now get this when trying to mulitply two matrices. Is this because I have two copies of Primitive? I thought Cabal was supposed to
On 07/04/2012 15:42, Dominic Steinitz wrote: protect me from this sort of occurrence. Does anyone have any suggestions on how to solve this? Tests-MacBook-Pro:PDE Test$ ghc-pkg list | grep -i prim WARNING: there are broken packages. Run 'ghc-pkg check' for more details. ghc-prim-0.2.0.0 primitive-0.3.1 primitive-0.4.0.1 *Main> mmMult xx xx Loading package primitive-0.4.0.1 ... GHCi runtime linker: fatal error: I found a duplicate definition for symbol _memcpy_off whilst processing object file /Users/Test/Library/Haskell/ghc-7.0.3/lib/primitive-0.4.0.1/lib/HSprimitive-0.4.0.1.o This could be caused by: * Loading two different object files which export the same symbol * Specifying the same object file twice on the GHCi command line * An incorrect `package.conf' entry, causing some object to be loaded twice. GHCi cannot safely continue in this situation. Exiting now. Sorry.

On 08/04/2012, at 2:41 AM, Dominic Steinitz wrote:
Hi Ben, Chris and Others,
Thanks for your replies and suggestions. All I want to do is invert (well solve actually) a tridiagonal matrix so upgrading ghc from the version that comes with the platform seems a bit overkill. I think I will go with Chris' suggestion for now and maybe upgrade ghc (and REPA) when I am feeling braver.
Dominic. Sadly I now get this when trying to mulitply two matrices. Is this because I have two copies of Primitive? I thought Cabal was supposed to protect me from this sort of occurrence. Does anyone have any suggestions on how to solve this?
You'll need to upgrade. Trying to support old versions of software is a lost cause. I pushed Repa 3.1 to Hackage on the weekend. It has a *much* cleaner API. I can't recommend continuing to use Repa 2. You will just run into all the problems that are now fixed in Repa 3. Ben.

Ben Lippmeier
I pushed Repa 3.1 to Hackage on the weekend. It has a *much* cleaner API. I can't recommend continuing to use Repa 2. You will just run into all the problems that are now fixed in Repa 3.
I was going to ask about the wiki page, and saw that you've posted a note there. Nice! Now only if someone would update it... :) http://www.haskell.org/haskellwiki/Numeric_Haskell:_A_Repa_Tutorial Is the differences between Repa 2 and Repa 3 documented somewhere? I'm having trouble with running examples from the Repa paper... Thanks, Sajith. -- "the lyf so short, the craft so long to lerne." -- Chaucer.

Ben Lippmeier
I pushed Repa 3.1 to Hackage on the weekend. It has a *much* cleaner API. I can't recommend continuing to use Repa 2. You will just run into all the problems that are now fixed in Repa 3.
How do you do things like 'force delayed array to manifest array' in Repa 3? The function 'force' seems to have disappeared. -- "the lyf so short, the craft so long to lerne." -- Chaucer.
participants (7)
-
Ben Lippmeier
-
Chris Wong
-
Dmitry Dzhus
-
Dominic Steinitz
-
Peter Simons
-
Rogan Creswick
-
Sajith T S