Page 1 of 1

Build 2.0.2 error

PostPosted: Tue Jul 12, 2016 1:33 am
by magma_cuda_centos
Hi,

I am building the version 2.0.2 on CentOS 7 using following cmake, but I got following errors during the command make, please help what I could be missing?

lib/libmagma.so: undefined reference to `dorgql_'
lib/libmagma.so: undefined reference to `ssteqr_'
lib/libmagma.so: undefined reference to `dlaqp2_'
lib/libmagma.so: undefined reference to `cscal_'
lib/liblapacktest.so: undefined reference to `caxpy_'
lib/libmagma.so: undefined reference to `cungql_'
lib/libmagma_sparse.so: undefined reference to `zlarnv_'
lib/liblapacktest.so: undefined reference to `zunm2r_'
lib/libmagma.so: undefined reference to `dsteqr_'
lib/libmagma.so: undefined reference to `cbdsqr_'
lib/libmagma.so: undefined reference to `sger_'
lib/liblapacktest.so: undefined reference to `ssyr_'
lib/liblapacktest.so: undefined reference to `cunm2l_'
lib/libmagma.so: undefined reference to `dbdsqr_'
lib/libmagma_sparse.so: undefined reference to `chegvd_'
lib/libtesting.so: undefined reference to `zlanhe_'
lib/libmagma.so: undefined reference to `ssytrd_'
lib/libmagma_sparse.so: undefined reference to `cheev_'
lib/libmagma.so: undefined reference to `sgeqlf_'
lib/libmagma.so: undefined reference to `dlartg_'
lib/liblapacktest.so: undefined reference to `zlansy_'
lib/libmagma.so: undefined reference to `ieeeck_'
lib/libmagma_sparse.so: undefined reference to `zhegvd_'
lib/libmagma.so: undefined reference to `drot_'
lib/libmagma.so: undefined reference to `dstedc_'
lib/libmagma.so: undefined reference to `cheevr_'
lib/libmagma.so: undefined reference to `dormql_'
lib/libmagma.so: undefined reference to `chetf2_'
lib/libmagma.so: undefined reference to `sgetrs_'
lib/libmagma.so: undefined reference to `zunglq_'
lib/liblapacktest.so: undefined reference to `dorgqr_'
lib/libmagma.so: undefined reference to `ztrtri_'
lib/libmagma.so: undefined reference to `zhseqr_'
lib/libmagma.so: undefined reference to `dswap_'
lib/libmagma.so: undefined reference to `zunmlq_'
lib/libmagma.so: undefined reference to `dhseqr_'
lib/libmagma.so: undefined reference to `slamc3_'
lib/libmagma.so: undefined reference to `dgebrd_'
lib/libmagma.so: undefined reference to `csyr_'
lib/libtesting.so: undefined reference to `slansy_'
lib/libmagma.so: undefined reference to `dpotrf_'
lib/liblapacktest.so: undefined reference to `dgemm_'
lib/liblapacktest.so: undefined reference to `zungqr_'
lib/libmagma.so: undefined reference to `slamrg_'
lib/liblapacktest.so: undefined reference to `dlacpy_'
lib/libmagma.so: undefined reference to `ctrmm_'
lib/libtesting.so: undefined reference to `clanhe_'
lib/libmagma.so: undefined reference to `cstein_'
lib/libmagma.so: undefined reference to `sgebrd_'
lib/liblapacktest.so: undefined reference to `dlabad_'
lib/libmagma.so: undefined reference to `zscal_'
lib/libmagma.so: undefined reference to `ztrmv_'
lib/liblapacktest.so: undefined reference to `dormqr_'
lib/liblapacktest.so: undefined reference to `cher_'
lib/libmagma.so: undefined reference to `zungtr_'
lib/libmagma.so: undefined reference to `ssyevd_'
lib/libmagma.so: undefined reference to `dgebak_'
lib/libmagma.so: undefined reference to `cgebrd_'
lib/libmagma.so: undefined reference to `dscal_'
lib/libmagma.so: undefined reference to `shseqr_'
lib/libmagma.so: undefined reference to `cgebal_'
lib/libmagma.so: undefined reference to `dtrsv_'
lib/libmagma.so: undefined reference to `cgetrf_'
lib/libmagma.so: undefined reference to `zlacgv_'
lib/libmagma.so: undefined reference to `sorgql_'
lib/libmagma.so: undefined reference to `dlamrg_'
lib/libmagma.so: undefined reference to `strsv_'
lib/libmagma.so: undefined reference to `zungql_'
lib/libmagma.so: undefined reference to `clascl_'
lib/libmagma.so: undefined reference to `slapy2_'
lib/liblapacktest.so: undefined reference to `zlacpy_'
lib/libmagma.so: undefined reference to `dbdsdc_'
lib/liblapacktest.so: undefined reference to `cunmqr_'
lib/liblapacktest.so: undefined reference to `lsame_'
lib/libtesting.so: undefined reference to `dlansy_'
lib/libmagma.so: undefined reference to `sswap_'
lib/libmagma.so: undefined reference to `dgelqf_'
lib/libmagma.so: undefined reference to `dpotrs_'
lib/libmagma.so: undefined reference to `zgelqf_'
lib/liblapacktest.so: undefined reference to `xerbla_'
lib/libmagma.so: undefined reference to `sscal_'
lib/liblapacktest.so: undefined reference to `cunm2r_'
lib/libmagma.so: undefined reference to `cunmbr_'
lib/libmagma.so: undefined reference to `csteqr_'
lib/libmagma.so: undefined reference to `sorglq_'
lib/libmagma_sparse.so: undefined reference to `dsygvd_'
lib/libmagma.so: undefined reference to `zlacrm_'
lib/liblapacktest.so: undefined reference to `dlange_'
lib/libmagma.so: undefined reference to `ssytf2_'
lib/libmagma.so: undefined reference to `ssygst_'
lib/liblapacktest.so: undefined reference to `sdot_'
lib/libmagma.so: undefined reference to `cgehd2_'
lib/libmagma.so: undefined reference to `zlarcm_'
lib/libmagma.so: undefined reference to `cgesvd_'
lib/libmagma.so: undefined reference to `slascl_'
lib/libmagma.so: undefined reference to `cgeru_'
lib/libmagma.so: undefined reference to `zpotrs_'
lib/liblapacktest.so: undefined reference to `dsyr_'
lib/libmagma.so: undefined reference to `sstebz_'
lib/libmagma.so: undefined reference to `dlaswp_'
lib/libmagma.so: undefined reference to `csscal_'
lib/liblapacktest.so: undefined reference to `ccopy_'
lib/libmagma.so: undefined reference to `chetrd_'
lib/libmagma.so: undefined reference to `zheevd_'
lib/libmagma.so: undefined reference to `sbdsdc_'
lib/liblapacktest.so: undefined reference to `zgemm_'
lib/liblapacktest.so: undefined reference to `slaset_'
lib/libmagma.so: undefined reference to `cunmlq_'
lib/libmagma.so: undefined reference to `clacp2_'
lib/libmagma.so: undefined reference to `zgebal_'
lib/liblapacktest.so: undefined reference to `slamch_'
lib/libmagma.so: undefined reference to `dtrsm_'
lib/libmagma.so: undefined reference to `dsytrd_'
lib/libmagma.so: undefined reference to `zheevr_'
lib/libmagma.so: undefined reference to `clarft_'
lib/libmagma.so: undefined reference to `ztrmm_'
lib/libmagma.so: undefined reference to `dorglq_'
lib/libmagma.so: undefined reference to `zunmbr_'
lib/libmagma.so: undefined reference to `MKL_Get_Max_Threads'
lib/liblapacktest.so: undefined reference to `slange_'
lib/libmagma.so: undefined reference to `dlapy2_'
lib/libmagma.so: undefined reference to `sladiv_'
lib/libmagma_sparse.so: undefined reference to `dlarnv_'
lib/libmagma.so: undefined reference to `zheevx_'
lib/libmagma.so: undefined reference to `slaswp_'
lib/liblapacktest.so: undefined reference to `cherk_'
lib/libmagma.so: undefined reference to `zstedc_'
lib/libmagma.so: undefined reference to `zstemr_'
lib/libmagma.so: undefined reference to `clacrm_'
lib/libmagma.so: undefined reference to `cgeqrf_'
lib/libmagma.so: undefined reference to `sgebak_'
lib/libmagma.so: undefined reference to `cgetrs_'
lib/liblapacktest.so: undefined reference to `zgemv_'
lib/liblapacktest.so: undefined reference to `ssymv_'
lib/liblapacktest.so: undefined reference to `sorm2l_'
lib/libmagma_sparse.so: undefined reference to `clarnv_'
lib/libmagma.so: undefined reference to `dlanst_'
lib/liblapacktest.so: undefined reference to `cgemv_'
lib/libmagma.so: undefined reference to `zgeqrf_'
lib/liblapacktest.so: undefined reference to `zhemv_'
lib/libmagma.so: undefined reference to `MKL_Get_Version'
lib/liblapacktest.so: undefined reference to `clacpy_'
lib/liblapacktest.so: undefined reference to `sormqr_'
lib/liblapacktest.so: undefined reference to `zherk_'
lib/liblapacktest.so: undefined reference to `cher2_'
lib/libmagma.so: undefined reference to `zgetrs_'
lib/libmagma.so: undefined reference to `dsygst_'
lib/libmagma.so: undefined reference to `dsyevd_'
lib/libmagma.so: undefined reference to `sgehd2_'
lib/libmagma.so: undefined reference to `zswap_'
lib/libmagma.so: undefined reference to `dlascl_'
lib/liblapacktest.so: undefined reference to `zher_'
lib/libmagma.so: undefined reference to `cungbr_'
lib/libmagma.so: undefined reference to `zgehd2_'
lib/libmagma.so: undefined reference to `dlamc3_'
lib/liblapacktest.so: undefined reference to `slacpy_'
lib/libmagma.so: undefined reference to `ssytrs_'
lib/liblapacktest.so: undefined reference to `scasum_'
lib/libmagma.so: undefined reference to `clarfg_'
lib/libmagma.so: undefined reference to `dlaed2_'
lib/liblapacktest.so: undefined reference to `clansy_'
lib/libmagma.so: undefined reference to `dlauum_'
lib/liblapacktest.so: undefined reference to `cdotc_'
lib/libmagma.so: undefined reference to `cunglq_'
lib/libmagma.so: undefined reference to `dtrmm_'
lib/libmagma.so: undefined reference to `clarcm_'
lib/libmagma.so: undefined reference to `clarfb_'
lib/libmagma.so: undefined reference to `ssterf_'
lib/libmagma.so: undefined reference to `slarft_'
lib/liblapacktest.so: undefined reference to `daxpy_'
lib/libmagma.so: undefined reference to `dgetrf_'
lib/libmagma.so: undefined reference to `clacgv_'
lib/liblapacktest.so: undefined reference to `ssyrk_'
lib/libmagma.so: undefined reference to `dorgbr_'
lib/liblapacktest.so: undefined reference to `dorm2r_'
lib/libmagma.so: undefined reference to `ctrsv_'
lib/liblapacktest.so: undefined reference to `clange_'
lib/libmagma.so: undefined reference to `cstemr_'
lib/libmagma.so: undefined reference to `sbdsqr_'
lib/libmagma.so: undefined reference to `sstedc_'
lib/liblapacktest.so: undefined reference to `cungqr_'
lib/libmagma.so: undefined reference to `zgetrf_'
lib/libmagma.so: undefined reference to `slaqp2_'
lib/libmagma.so: undefined reference to `zlacp2_'
lib/libmagma.so: undefined reference to `claswp_'
lib/libmagma.so: undefined reference to `cgeqlf_'
lib/libmagma.so: undefined reference to `sgetrf_'
lib/liblapacktest.so: undefined reference to `zlaset_'
lib/libmagma.so: undefined reference to `clauum_'
lib/libmagma.so: undefined reference to `chseqr_'
lib/libmagma.so: undefined reference to `dlarfx_'
lib/liblapacktest.so: undefined reference to `dcopy_'
lib/libmagma.so: undefined reference to `cgelqf_'
lib/libmagma.so: undefined reference to `zlauum_'
lib/libmagma.so: undefined reference to `cheevx_'
lib/libmagma.so: undefined reference to `dger_'
lib/liblapacktest.so: undefined reference to `dorm2l_'
lib/libmagma.so: undefined reference to `dormbr_'
lib/libmagma.so: undefined reference to `dlarft_'
lib/libmagma.so: undefined reference to `zbdsqr_'
lib/libmagma.so: undefined reference to `zlarfg_'
lib/libmagma.so: undefined reference to `zlaswp_'
lib/liblapacktest.so: undefined reference to `cgemm_'
lib/libmagma.so: undefined reference to `dgeqrf_'
lib/libmagma.so: undefined reference to `idamax_'
lib/libmagma.so: undefined reference to `ctrsm_'
lib/liblapacktest.so: undefined reference to `sasum_'
lib/libmagma.so: undefined reference to `dsytrs_'
lib/libmagma.so: undefined reference to `zlarfb_'
lib/liblapacktest.so: undefined reference to `zlange_'
lib/libmagma.so: undefined reference to `cpotrf_'
lib/libmagma.so: undefined reference to `ztrsv_'
lib/libmagma_sparse.so: undefined reference to `ssyev_'
lib/libmagma.so: undefined reference to `cgebak_'
lib/libmagma.so: undefined reference to `spotrf_'
lib/libmagma.so: undefined reference to `zunmql_'
lib/libmagma.so: undefined reference to `strmm_'
lib/libmagma.so: undefined reference to `slaed2_'
lib/libmagma.so: undefined reference to `zsteqr_'
lib/libmagma.so: undefined reference to `zgebak_'
lib/libmagma.so: undefined reference to `isamax_'
lib/libmagma.so: undefined reference to `dlarfg_'
lib/libmagma.so: undefined reference to `slauum_'
lib/liblapacktest.so: undefined reference to `chemv_'
lib/libmagma.so: undefined reference to `dsytf2_'
lib/liblapacktest.so: undefined reference to `saxpy_'
lib/libmagma.so: undefined reference to `zpotrf_'
lib/libmagma_sparse.so: undefined reference to `slarnv_'
lib/libmagma.so: undefined reference to `sgebal_'
lib/liblapacktest.so: undefined reference to `zdotc_'
lib/liblapacktest.so: undefined reference to `sgemm_'
lib/libmagma.so: undefined reference to `dgesvd_'
lib/libmagma.so: undefined reference to `chegst_'
lib/liblapacktest.so: undefined reference to `dsyrk_'
lib/libmagma.so: undefined reference to `zhetrd_'
lib/libmagma.so: undefined reference to `zhegst_'
lib/liblapacktest.so: undefined reference to `dasum_'
lib/libmagma.so: undefined reference to `strtri_'
lib/libmagma.so: undefined reference to `slartg_'
lib/libmagma.so: undefined reference to `srot_'
lib/libmagma.so: undefined reference to `zgeru_'
lib/libmagma_sparse.so: undefined reference to `dsyev_'
lib/libmagma.so: undefined reference to `izamax_'
lib/libmagma.so: undefined reference to `ctrmv_'
lib/libmagma.so: undefined reference to `dtrmv_'
lib/libmagma.so: undefined reference to `zhetrs_'
lib/libmagma.so: undefined reference to `dtrtri_'
lib/libmagma.so: undefined reference to `dgetrs_'
lib/libmagma.so: undefined reference to `icamax_'
lib/libmagma.so: undefined reference to `strmv_'
lib/libmagma.so: undefined reference to `zhetf2_'
lib/libmagma.so: undefined reference to `claqp2_'
lib/libmagma.so: undefined reference to `slanst_'
lib/libmagma.so: undefined reference to `slarfg_'
lib/libmagma.so: undefined reference to `dsterf_'
lib/libmagma.so: undefined reference to `dstebz_'
lib/libmagma.so: undefined reference to `sgeqrf_'
lib/libmagma.so: undefined reference to `zstein_'
lib/liblapacktest.so: undefined reference to `zaxpy_'
lib/liblapacktest.so: undefined reference to `dzasum_'
lib/libmagma.so: undefined reference to `zlascl_'
lib/liblapacktest.so: undefined reference to `claset_'
lib/libmagma.so: undefined reference to `strsm_'
lib/libmagma.so: undefined reference to `slarfb_'
lib/libmagma.so: undefined reference to `dgehd2_'
lib/libmagma.so: undefined reference to `zgeqlf_'
lib/libmagma.so: undefined reference to `sormql_'
lib/liblapacktest.so: undefined reference to `ddot_'
lib/libmagma.so: undefined reference to `ztrsm_'
lib/liblapacktest.so: undefined reference to `sgemv_'
lib/libmagma.so: undefined reference to `zlatrs_'
lib/liblapacktest.so: undefined reference to `sorgqr_'
lib/liblapacktest.so: undefined reference to `sorm2r_'
lib/libmagma.so: undefined reference to `clatrs_'
lib/libmagma.so: undefined reference to `zlarft_'
lib/libmagma.so: undefined reference to `sormlq_'
lib/libmagma.so: undefined reference to `dladiv_'
lib/libmagma.so: undefined reference to `cunmql_'
lib/liblapacktest.so: undefined reference to `zunmqr_'
lib/liblapacktest.so: undefined reference to `ssyr2_'
lib/libmagma.so: undefined reference to `zgesvd_'
lib/libmagma.so: undefined reference to `slarfx_'
lib/libmagma.so: undefined reference to `slaed4_'
lib/libmagma.so: undefined reference to `sgelqf_'
lib/libmagma.so: undefined reference to `dlaed4_'
lib/libmagma.so: undefined reference to `sormbr_'
lib/libmagma.so: undefined reference to `spotrs_'
lib/libmagma.so: undefined reference to `cstedc_'
lib/libmagma.so: undefined reference to `zgebrd_'
lib/libmagma.so: undefined reference to `dormlq_'
lib/liblapacktest.so: undefined reference to `dlaset_'
lib/liblapacktest.so: undefined reference to `zcopy_'
lib/liblapacktest.so: undefined reference to `dsymv_'
lib/liblapacktest.so: undefined reference to `scopy_'
lib/libmagma.so: undefined reference to `zungbr_'
lib/libmagma.so: undefined reference to `dlarfb_'
lib/libmagma.so: undefined reference to `MKL_Set_Num_Threads'
lib/libmagma.so: undefined reference to `zsyr_'
lib/libmagma.so: undefined reference to `dgebal_'
lib/liblapacktest.so: undefined reference to `zunm2l_'
lib/liblapacktest.so: undefined reference to `dsyr2_'
lib/libmagma.so: undefined reference to `sorgbr_'
lib/libmagma.so: undefined reference to `zdscal_'
lib/libmagma.so: undefined reference to `cheevd_'
lib/libmagma.so: undefined reference to `clarfx_'
lib/libmagma_sparse.so: undefined reference to `ssygvd_'
lib/libmagma.so: undefined reference to `cungtr_'
lib/liblapacktest.so: undefined reference to `dgemv_'
lib/liblapacktest.so: undefined reference to `zher2_'
lib/libmagma.so: undefined reference to `cpotrs_'
lib/libmagma.so: undefined reference to `chetrs_'
lib/liblapacktest.so: undefined reference to `dlamch_'
lib/liblapacktest.so: undefined reference to `slabad_'
lib/libmagma.so: undefined reference to `cswap_'
lib/libmagma_sparse.so: undefined reference to `zheev_'
lib/libmagma.so: undefined reference to `zlaqp2_'
lib/libmagma.so: undefined reference to `sgesvd_'
lib/libmagma.so: undefined reference to `ctrtri_'
lib/libmagma.so: undefined reference to `dgeqlf_'
lib/libmagma.so: undefined reference to `zlarfx_'
collect2: error: ld returned 1 exit status
make[2]: *** [sparse-iter/testing/testing_zsolver] Error 1
make[1]: *** [CMakeFiles/testing_zsolver.dir/all] Error 2
make: *** [all] Error 2

Re: Build 2.0.2 error

PostPosted: Tue Jul 12, 2016 11:04 am
by mgates3
Those are LAPACK functions. Check that you have provided the correct path to your LAPACK library (such as Intel MKL, OpenBLAS, or ACML). There are directions for using CMake in the README-Windows file, though some may be Windows-specific. Generally, we compiling using Make with a make.inc file, rather than using CMake.

-mark