[Haskell-cafe] Can't create a static Linux executable when using hmatrix

Kai Zhang kai at kzhang.org
Fri Sep 5 21:02:54 UTC 2014


Hi Cafe,

I am trying to build a static exec to be run on another machine, and I
failed probably due to hmatrix. How can I fix this? Thanks!

Test code:

import Numeric.LinearAlgebra.Data

main = print (fromLists [[2,3,3], [2,3,3]] :: Matrix Double)

When complied with "ghc -O2 -static -optc-static -optl-static test.hs
-optl-pthread", gave me lots of errors:

/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/liblapack.a(dgees.o): In
function `dgees_':

(.text+0xbc4): undefined reference to `dcopy_'

/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/liblapack.a(dgees.o): In
function `dgees_':

(.text+0xed9): undefined reference to `dswap_'

/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/liblapack.a(dgees.o): In
function `dgees_':

(.text+0x1304): undefined reference to `dswap_'

/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/liblapack.a(dgees.o): In
function `dgees_':

(.text+0x1377): undefined reference to `dswap_'

/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/liblapack.a(dgeev.o): In
function `dgeev_':

(.text+0xf9a): undefined reference to `dnrm2_'

/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/liblapack.a(dgeev.o): In
function `dgeev_':

(.text+0xfd4): undefined reference to `dnrm2_'

/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/liblapack.a(dgeev.o): In
function `dgeev_':

(.text+0x1022): undefined reference to `dscal_'

/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/liblapack.a(dgeev.o): In
function `dgeev_':

(.text+0x103b): undefined reference to `dscal_'

/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/liblapack.a(dgeev.o): In
function `dgeev_':

(.text+0x109c): undefined reference to `idamax_'

/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/liblapack.a(dgeev.o): In
function `dgeev_':

(.text+0x1125): undefined reference to `drot_'

/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/liblapack.a(dgeev.o): In
function `dgeev_':

(.text+0x12aa): undefined reference to `dnrm2_'

/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/liblapack.a(dgeev.o): In
function `dgeev_':

(.text+0x12e4): undefined reference to `dnrm2_'

/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/liblapack.a(dgeev.o): In
function `dgeev_':

(.text+0x1332): undefined reference to `dscal_'

/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/liblapack.a(dgeev.o): In
function `dgeev_':

(.text+0x134b): undefined reference to `dscal_'

/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/liblapack.a(dgeev.o): In
function `dgeev_':

(.text+0x13ac): undefined reference to `idamax_'

/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/liblapack.a(dgeev.o): In
function `dgeev_':

(.text+0x143d): undefined reference to `drot_'

/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/liblapack.a(dgeev.o): In
function `dgeev_':

(.text+0x148e): undefined reference to `dnrm2_'

/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/liblapack.a(dgeev.o): In
function `dgeev_':

(.text+0x14bc): undefined reference to `dscal_'

/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/liblapack.a(dgeev.o): In
function `dgeev_':

(.text+0x14fe): undefined reference to `dnrm2_'

/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/liblapack.a(dgeev.o): In
function `dgeev_':

(.text+0x152c): undefined reference to `dscal_'

/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/liblapack.a(dgehrd.o): In
function `dgehrd_':

(.text+0x65d): undefined reference to `dtrmm_'

.

.

.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20140905/62716783/attachment.html>


More information about the Haskell-Cafe mailing list