HaLVM
HaLVM copied to clipboard
halvm-cabal install hmatrix fails
As tried during the workshop at strangeloop:
math.his missingceil.complex.his 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
$
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.