HaLVM icon indicating copy to clipboard operation
HaLVM copied to clipboard

halvm-cabal install hmatrix fails

Open burke opened this issue 10 years ago • 1 comments

As tried during the workshop at strangeloop:

  • math.h is missing ceil.
  • complex.h is not present.
$ halvm-cabal install hmatrix
<snip>
src/C/lapack-aux.c: In function ‘svd_l_R’:

src/C/lapack-aux.c:149:13:
     warning: implicit declaration of function ‘ceil’ [-Wimplicit-function-declaration]
         lwork = ceil(ans);
                 ^

src/C/lapack-aux.c:149:13:
     warning: incompatible implicit declaration of built-in function ‘ceil’

src/C/lapack-aux.c:149:13:
     note: include ‘<math.h>’ or provide a declaration of ‘ceil’
src/C/lapack-aux.c: In function ‘svd_l_C’:

src/C/lapack-aux.c:265:13:
     warning: incompatible implicit declaration of built-in function ‘ceil’
         lwork = ceil(ans.r);
                 ^

src/C/lapack-aux.c:265:13:
     note: include ‘<math.h>’ or provide a declaration of ‘ceil’
src/C/lapack-aux.c: In function ‘eig_l_C’:

src/C/lapack-aux.c:375:13:
     warning: incompatible implicit declaration of built-in function ‘ceil’
         lwork = ceil(ans.r);
                 ^

src/C/lapack-aux.c:375:13:
     note: include ‘<math.h>’ or provide a declaration of ‘ceil’
src/C/lapack-aux.c: In function ‘eig_l_R’:

src/C/lapack-aux.c:427:13:
     warning: incompatible implicit declaration of built-in function ‘ceil’
         lwork = ceil(ans);
                 ^

src/C/lapack-aux.c:427:13:
     note: include ‘<math.h>’ or provide a declaration of ‘ceil’
src/C/lapack-aux.c: In function ‘eig_l_S’:

src/C/lapack-aux.c:470:13:
     warning: incompatible implicit declaration of built-in function ‘ceil’
         lwork = ceil(ans);
                 ^

src/C/lapack-aux.c:470:13:
     note: include ‘<math.h>’ or provide a declaration of ‘ceil’
src/C/lapack-aux.c: In function ‘eig_l_H’:

src/C/lapack-aux.c:511:13:
     warning: incompatible implicit declaration of built-in function ‘ceil’
         lwork = ceil(ans.r);
                 ^

src/C/lapack-aux.c:511:13:
     note: include ‘<math.h>’ or provide a declaration of ‘ceil’
src/C/lapack-aux.c: In function ‘linearSolveLSR_l’:

src/C/lapack-aux.c:661:13:
     warning: incompatible implicit declaration of built-in function ‘ceil’
         lwork = ceil(ans);
                 ^

src/C/lapack-aux.c:661:13:
     note: include ‘<math.h>’ or provide a declaration of ‘ceil’
src/C/lapack-aux.c: In function ‘linearSolveLSC_l’:

src/C/lapack-aux.c:709:13:
     warning: incompatible implicit declaration of built-in function ‘ceil’
         lwork = ceil(ans.r);
                 ^

src/C/lapack-aux.c:709:13:
     note: include ‘<math.h>’ or provide a declaration of ‘ceil’
src/C/lapack-aux.c: In function ‘linearSolveSVDR_l’:

src/C/lapack-aux.c:762:13:
     warning: incompatible implicit declaration of built-in function ‘ceil’
         lwork = ceil(ans);
                 ^

src/C/lapack-aux.c:762:13:
     note: include ‘<math.h>’ or provide a declaration of ‘ceil’
src/C/lapack-aux.c: In function ‘linearSolveSVDC_l’:

src/C/lapack-aux.c:823:13:
     warning: incompatible implicit declaration of built-in function ‘ceil’
         lwork = ceil(ans.r);
                 ^

src/C/lapack-aux.c:823:13:
     note: include ‘<math.h>’ or provide a declaration of ‘ceil’

src/C/vector-aux.c:1:21:
     fatal error: complex.h: No such file or directory
compilation terminated.
Failed to install hmatrix-0.16.1.5
cabal: Error: some packages failed to install:
hmatrix-0.16.1.5 failed during the building phase. The exception was:
ExitFailure 1
$

burke avatar Sep 24 '15 16:09 burke

Upon further review, this requires quite a lot of header files that we don't have, so we're going to kick this down the road to HaLVM3. It'll serve as an acceptance test of whether we get the whole "compatible libc" thing right.

acw avatar Apr 21 '17 02:04 acw