ian-ross / hnetcdf

Haskell NetCDF library
BSD 3-Clause "New" or "Revised" License
11 stars 9 forks source link

Build failure HEAD with hmatrix bumped to <=0.17 and either to < 5.0 #1

Closed jimstutt closed 10 years ago

jimstutt commented 10 years ago
Failed to install hnetcdf-0.2.0.0
Last 10 lines of the build log ( /home/jim/Sandbox/CDF/.cabal-sandbox/logs/hnetcdf-0.2.0.0.log ):
      p :: GHC.ForeignPtr.ForeignPtr e
        (bound at Data/NetCDF/HMatrix.hs:37:18)
      fromForeignPtr :: GHC.ForeignPtr.ForeignPtr e
                        -> [Int] -> HColumnMajorMatrix e
        (bound at Data/NetCDF/HMatrix.hs:37:3)
    In the second argument of ‘($)’, namely
      ‘unsafeFromForeignPtr p 0 (product s)’
    In the second argument of ‘($)’, namely
      ‘matrixFromVector ColumnMajor (last s)
       $ unsafeFromForeignPtr p 0 (product s)’
cabal: Error: some packages failed to install:
hnetcdf-0.2.0.0 failed during the building phase. The exception was:
ExitFailure 1

Centos 6.5 ghc--7.8.2 c86_64 cabal-install 1.20.0.2 Cabal 1.20.0.1

jim@localhost CDF]$ ghc-pkg list --package-db .cabal-sandbox/x86_64-linux-ghc-7.8.2-packages.conf.d

.cabal-sandbox/x86_64-linux-ghc-7.8.2-packages.conf.d
   MonadRandom-0.1.13
   QuickCheck-2.7.5
   bifunctors-4.1.1.1
   bmp-1.2.5.2
   comonad-4.2
   contravariant-0.6
   distributive-0.4.4
   either-4.3.0.1
   errors-1.4.7
   exceptions-0.6.1
   free-4.9
   hashable-1.2.2.0
   hmatrix-0.16.0.3
   language-c-0.4.5
   monad-control-0.3.3.0
   mtl-2.2.1
   nats-0.2
   prelude-extras-0.4
   primitive-0.5.3.0
   profunctors-4.0.4
   random-1.0.1.1
   repa-3.2.5.1
   repa-algorithms-3.2.5.1
   repa-io-3.2.5.1
   safe-0.3.4
   semigroupoids-4.0.2.1
   semigroups-0.15
   split-0.2.2
   storable-complex-0.2.1
   syb-0.4.2
   tagged-0.7.2
   text-1.1.1.3
   tf-random-0.5
   transformers-0.4.1.0
   transformers-base-0.4.2
   transformers-compat-0.3.3.4
   unordered-containers-0.2.4.0
   vector-0.10.11.0

hnetcdf-0.2.0.0 will not build from hackage with hmatrix-0.15.2.1 due to gsl problems:

[36 of 36] Compiling Graphics.Plot    ( lib/Graphics/Plot.hs, dist/dist-sandbox-b3d2a1ee/build/Graphics/Plot.o )
lib/Numeric/GSL/gsl-aux.c: In function ‘integrate_cquad’:

lib/Numeric/GSL/gsl-aux.c:809:0:
     error: ‘gsl_integration_cquad_workspace’ undeclared (first use in this function)

lib/Numeric/GSL/gsl-aux.c:809:0:
     error: (Each undeclared identifier is reported only once

lib/Numeric/GSL/gsl-aux.c:809:0:
     error: for each function it appears in.)

lib/Numeric/GSL/gsl-aux.c:809:0:
     error: ‘wk’ undeclared (first use in this function)

lib/Numeric/GSL/gsl-aux.c:809:0:
     warning: implicit declaration of function ‘gsl_integration_cquad_workspace_alloc’

lib/Numeric/GSL/gsl-aux.c:813:0:
     warning: implicit declaration of function ‘gsl_integration_cquad’

lib/Numeric/GSL/gsl-aux.c:815:0:
     warning: implicit declaration of function ‘gsl_integration_cquad_workspace_free’

Sandbox repo:

cabal-sandbox/x86_64-linux-ghc-7.8.2-packages.conf.d
   MonadRandom-0.1.13
   QuickCheck-2.7.5
   comonad-3.1
   contravariant-0.6
   either-3.4.2
   errors-1.4.7
   hashable-1.2.2.0
   mtl-2.1.3.1
   nats-0.2
   primitive-0.5.3.0
   random-1.0.1.1
   repa-3.2.5.1
   safe-0.3.4
   semigroupoids-3.1
   semigroups-0.15
   split-0.2.2
   storable-complex-0.2.1
   syb-0.4.2
   tagged-0.7.2
   text-1.1.1.3
   tf-random-0.5
   transformers-compat-0.3.3.4
   unordered-containers-0.2.4.0
   vector-0.10.11.0

hth

ian-ross commented 10 years ago

That doesn't surprise me, although I'm kind of embarrassed I didn't think to try it already. I'll try to fix it and make a new release in the next couple of days.

jimstutt commented 10 years ago

Thanks.

On Tue, Jun 24, 2014 at 12:12 PM, Ian Ross notifications@github.com wrote:

That doesn't surprise me, although I'm kind of embarrassed I didn't think to try it already. I'll try to fix it and make a new release in the next couple of days.

— Reply to this email directly or view it on GitHub https://github.com/ian-ross/hnetcdf/issues/1#issuecomment-46958593.

ian-ross commented 10 years ago

This should work now. Unfortunately it requires a change that means that it only works with hmatrix >= 0.16.

jimstutt commented 10 years ago

Great stuff,

I'm just reading your PhD thesis as we're doing a project on El Nino at http://goo.gl/mVD2LT as part of azimuthproject.org.

It would be great if you'd take a look and post any comment to either the blog or the working wiki linked from the above article; they're both publicly writeable and any help would be much appreciated.

So many thanks

I can easily be contacted as jim.a.stuttard gmail.com if you might be at all interested.

On Fri, Jun 27, 2014 at 10:45 AM, Ian Ross notifications@github.com wrote:

This should work now. Unfortunately it requires a change that means that it only works with hmatrix >= 0.16.

— Reply to this email directly or view it on GitHub https://github.com/ian-ross/hnetcdf/issues/1#issuecomment-47325775.