[mlpack-git] [mlpack] libmlpack.so.2.0: undefined reference to `wrapper_dgesv_' (#499)

regzhuce notifications at github.com
Wed Jan 13 22:02:04 EST 2016


No way to use package manager, since I do not get the root permission and the Internet is forbidden. I hate it heavily.
I have to build it from source code.

The commands:
1. cmake -D CMAKE_C_COMPILER='/opt/compiler/gcc-4.8.2/bin/gcc' -D CMAKE_CXX_COMPILER='/opt/compiler/gcc-4.8.2/bin/g++' -D ARMADILLO_LIBRARY='/home/test/local_cxx11/lib64/libarmadillo.so' ..
2. make

The log:
Linking CXX executable ../../../../bin/mlpack_fastmks
CMakeFiles/mlpack_fastmks.dir/fastmks_main.cpp.o: In function `arma::subview_col<double>::pod_type arma::op_norm::vec_norm_1<arma::subview_col<double> >(arma::Proxy<arma::subview_col<double> > const&, arma::arma_not_cx<arma::subview_col<double>::elem_type>::result const*) [clone .isra.523]':
fastmks_main.cpp:(.text.hot+0x2e7): undefined reference to `wrapper_dasum_'
CMakeFiles/mlpack_fastmks.dir/fastmks_main.cpp.o: In function `arma::subview_col<double>::elem_type arma::op_dot::apply<arma::subview_col<double>, arma::subview_col<double> >(arma::subview_col<double> const&, arma::subview_col<double> const&)':
fastmks_main.cpp:(.text.hot._ZN4arma6op_dot5applyINS_11subview_colIdEES3_EENT_9elem_typeERKS4_RKT0_[_ZN4arma6op_dot5applyINS_11subview_colIdEES3_EENT_9elem_typeERKS4_RKT0_]+0x14d): undefined reference to `wrapper_ddot_'
CMakeFiles/mlpack_fastmks.dir/fastmks_main.cpp.o: In function `double mlpack::kernel::CosineDistance::Evaluate<arma::subview_col<double>, arma::subview_col<double> >(arma::subview_col<double> const&, arma::subview_col<double> const&)':
fastmks_main.cpp:(.text._ZN6mlpack6kernel14CosineDistance8EvaluateIN4arma11subview_colIdEES5_EEdRKT_RKT0_[_ZN6mlpack6kernel14CosineDistance8EvaluateIN4arma11subview_colIdEES5_EEdRKT_RKT0_]+0x67a): undefined reference to `wrapper_dnrm2_'
fastmks_main.cpp:(.text._ZN6mlpack6kernel14CosineDistance8EvaluateIN4arma11subview_colIdEES5_EEdRKT_RKT0_[_ZN6mlpack6kernel14CosineDistance8EvaluateIN4arma11subview_colIdEES5_EEdRKT_RKT0_]+0x742): undefined reference to `wrapper_dnrm2_'
../../../../lib/libmlpack.so.2.0: undefined reference to `wrapper_dgesv_'
../../../../lib/libmlpack.so.2.0: undefined reference to `wrapper_dsyev_'
../../../../lib/libmlpack.so.2.0: undefined reference to `wrapper_dgels_'
../../../../lib/libmlpack.so.2.0: undefined reference to `wrapper_dgemm_'
../../../../lib/libmlpack.so.2.0: undefined reference to `wrapper_dgesdd_'
../../../../lib/libmlpack.so.2.0: undefined reference to `wrapper_dtrtrs_'
../../../../lib/libmlpack.so.2.0: undefined reference to `wrapper_ilaenv_'
../../../../lib/libmlpack.so.2.0: undefined reference to `wrapper_dgelsd_'
../../../../lib/libmlpack.so.2.0: undefined reference to `wrapper_dgesvx_'
../../../../lib/libmlpack.so.2.0: undefined reference to `wrapper_dgetrf_'
../../../../lib/libmlpack.so.2.0: undefined reference to `wrapper_dgetri_'
../../../../lib/libmlpack.so.2.0: undefined reference to `wrapper_dpotrf_'
../../../../lib/libmlpack.so.2.0: undefined reference to `wrapper_dgeqrf_'
../../../../lib/libmlpack.so.2.0: undefined reference to `wrapper_dsyevd_'
../../../../lib/libmlpack.so.2.0: undefined reference to `wrapper_dgemv_'
../../../../lib/libmlpack.so.2.0: undefined reference to `wrapper_dsyrk_'
../../../../lib/libmlpack.so.2.0: undefined reference to `wrapper_dtrtri_'
../../../../lib/libmlpack.so.2.0: undefined reference to `wrapper_dgesvd_'
../../../../lib/libmlpack.so.2.0: undefined reference to `wrapper_dorgqr_'
collect2: error: ld returned 1 exit status
make[2]: *** [bin/mlpack_fastmks] Error 1

Do have a look about the CMakeLists.txt attachment.
[CMakeLists.txt](https://github.com/mlpack/mlpack/files/89786/CMakeLists.txt)

[CMakeOutput.log.txt](https://github.com/mlpack/mlpack/files/89808/CMakeOutput.log.txt)


Looking forword for advice from you guys.
Thanks a lot.


---
Reply to this email directly or view it on GitHub:
https://github.com/mlpack/mlpack/issues/499#issuecomment-171516239
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160113/38315e78/attachment.html>


More information about the mlpack-git mailing list