welch-lab / cytosignal

13 stars 0 forks source link

Problems when installing this package (undefined reference to `dgemm_', `dgemv_',`dsyrk_') #4

Closed ZHOUDI0929 closed 5 months ago

ZHOUDI0929 commented 5 months ago

I ran into some problems when installing this package. At first, I used R4.3.3 (Rtools 43) to install this package, and an error occurred. To solve the installation problem, I was on R4.2.0 (Rtools 42) and set up a new environment using renv and tried again, but the problem was still not solved. Below is the error content, If additional information is needed I will be happy to provide it.

wilcox.cpp: In function 'std::__cxx11::list cpp_in_place_rank_mean(arma::vec&, int, int)': wilcox.cpp:18:32: warning: comparison of integer expressions of different signedness: 'size_t' {aka 'long long unsigned int'} and 'int' [-Wsign-compare] 18 | for (size_t i = idx_begin; i <= idx_end; i++) { | ^~~~ g++ -std=gnu++11 -shared -s -static-libgcc -o cytosignal.dll tmp.def RcppExports.o mat_exp.o utils_velo.o wilcox.o -LC:/rtools42/x86_64-w64-mingw32.static.posix/lib/x64 -LC:/rtools42/x86_64-w64-mingw32.static.posix/lib -LC:/PROGRA~1/R/R-42~1.0/bin/x64 -lR C:\rtools42\x86_64-w64-mingw32.static.posix\bin/ld.exe: mat_exp.o:matexp.cpp:(.text.hot+0x1cc): undefined reference to `dgemm' C:\rtools42\x86_64-w64-mingw32.static.posix\bin/ld.exe: mat_exp.o:matexp.cpp:(.text.hot+0x2af): undefined reference to `dgemv' C:\rtools42\x86_64-w64-mingw32.static.posix\bin/ld.exe: mat_exp.o:matexp.cpp:(.text.hot+0x64e): undefined reference to `dsyrk' collect2.exe: error: ld returned 1 exit status no DLL was created ERROR: compilation failed for package 'cytosignal'

sessionInfo() R version 4.2.0 (2022-04-22 ucrt) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 10 x64 (build 22621)

Matrix products: default

locale: [1] LC_COLLATE=Chinese (Simplified)_China.utf8 [2] LC_CTYPE=Chinese (Simplified)_China.utf8
[3] LC_MONETARY=Chinese (Simplified)_China.utf8 [4] LC_NUMERIC=C
[5] LC_TIME=Chinese (Simplified)_China.utf8

attached base packages: [1] stats graphics grDevices utils datasets methods base

loaded via a namespace (and not attached): [1] Rcpp_1.0.12 compiler_4.2.0 later_1.3.2 urlchecker_1.0.1 [5] profvis_0.3.8 remotes_2.5.0 tools_4.2.0 digest_0.6.35
[9] pkgbuild_1.4.4 pkgload_1.3.4 memoise_2.0.1 lifecycle_1.0.4
[13] rlang_1.1.3 shiny_1.8.1 cli_3.6.2 rstudioapi_0.16.0 [17] curl_5.2.1 xfun_0.43 fastmap_1.1.1 stringr_1.5.1
[21] desc_1.4.3 fs_1.6.3 htmlwidgets_1.6.4 vctrs_0.6.5
[25] devtools_2.4.5 glue_1.7.0 R6_2.5.1 processx_3.8.4
[29] sessioninfo_1.2.2 purrr_1.0.2 callr_3.7.6 magrittr_2.0.3
[33] ps_1.7.6 promises_1.2.1 ellipsis_0.3.2 htmltools_0.5.8
[37] usethis_2.2.3 mime_0.12 xtable_1.8-4 httpuv_1.6.15
[41] tinytex_0.50 stringi_1.8.3 miniUI_0.1.1.1 cachem_1.0.8

extSoftVersion() zlib bzlib xz "1.2.11" "1.0.8, 13-Jul-2019" "5.2.5" PCRE ICU TRE "10.37 2021-05-26" "70.1" "TRE 0.8.0 R_fixes (BSD)" iconv readline BLAS "win_iconv" "" ""

mvfki commented 5 months ago

Hi

I just made an update trying to fix the compilation error.

We apologize that we have been developing the package totally on Mac and Linux based environments and rarely tested it on a windows machine. I could see the same error on my alt windows laptop, too. Now it builds fine on my end. Would you please try again and see if it works now?

Yichen

ZHOUDI0929 commented 5 months ago

Thank you very much! this problem has been solved, I can now install this package.

Best, Di