I'm trying to install the HurdleNormal R package as a dependency for another package (COZINE), and I'm getting the following error:
C:\rtools45\x86_64-w64-mingw32.static.posix\bin/ld.exe:
hurdle_likelihood.o:hurdle_likelihood.cpp:(.text+0x1fc): undefined reference to `ddot_'
C:\rtools45\x86_64-w64-mingw32.static.posix\bin/ld.exe:
hurdle_likelihood.o:hurdle_likelihood.cpp:(.text+0x3be): undefined reference to `dsyrk_'
C:\rtools45\x86_64-w64-mingw32.static.posix\bin/ld.exe:
hurdle_likelihood.o:hurdle_likelihood.cpp:(.text+0x6c8): undefined reference to `dgemv_'
C:\rtools45\x86_64-w64-mingw32.static.posix\bin/ld.exe:
hurdle_likelihood.o:hurdle_likelihood.cpp:(.text+0x23f0): undefined reference to `dgemm_'
C:\rtools45\x86_64-w64-mingw32.static.posix\bin/ld.exe:
hurdle_likelihood.o:hurdle_likelihood.cpp:(.text+0x49c4): undefined reference to `ddot_'
C:\rtools45\x86_64-w64-mingw32.static.posix\bin/ld.exe:
hurdle_likelihood.o:hurdle_likelihood.cpp:(.text.hot+0x12c): undefined reference to `dgemv_'
C:\rtools45\x86_64-w64-mingw32.static.posix\bin/ld.exe:
hurdle_likelihood.o:hurdle_likelihood.cpp:(.text.hot+0x263): undefined reference to `dgemv_'
C:\rtools45\x86_64-w64-mingw32.static.posix\bin/ld.exe:
hurdle_likelihood.o:hurdle_likelihood.cpp:(.text.hot+0x3ba): undefined reference to `dgemv_'
C:\rtools45\x86_64-w64-mingw32.static.posix\bin/ld.exe:
hurdle_likelihood.o:hurdle_likelihood.cpp:(.text.hot+0x7cc): undefined reference to `dgemv_'
C:\rtools45\x86_64-w64-mingw32.static.posix\bin/ld.exe:
hurdle_likelihood.o:hurdle_likelihood.cpp:(.text.hot+0x882): undefined reference to `dgemv_'
collect2.exe: error: ld returned 1 exit status
no DLL was created
ERROR: compilation failed for package 'HurdleNormal'
* removing 'C:/Users/miran/AppData/Local/R/win-library/4.5/HurdleNormal'
Warning message:
In i.p(...) :
installation of package
‘C:/Users/myname/AppData/Local/Temp/RtmpM19b7s/file3f984fe63d57/HurdleNormal_0.98.8.tar.gz’
had non-zero exit status
It seems that R can't find basic BLAS functions that are used in the package code.
I have tried multiple troubleshooting fixes, including reinstalling R tools, and manually copy/pasting the .dll files from the OpenBLAS-0.3.29_x64 downloaded .zip file, and installing openblas from the terminal using conda install openblas. So far nothing has worked. I am aware of ropenblas, but based on the package documentation it only configures R to use OpenBLAS on Linux systems.
I am working in Windows 11, RStudio version 2023060 (Build 421) with R version 4.5.
I have seen so many different solutions to this online (which all seem to do different things, none of which have worked so far), half of which I don't have enough computer knowledge to implement.
This specific package is needed to try and replicate a previous analysis. Any assistance is appreciated.
-
3Looks like a bug or omission. Seems there is already a recent ticket open at github.jay.sf– jay.sf2025年05月16日 16:16:22 +00:00Commented May 16, 2025 at 16:16
-
1that ticket might have been opened by the OP ... ???Ben Bolker– Ben Bolker2025年05月16日 17:58:20 +00:00Commented May 16, 2025 at 17:58
-
yep. Sorry for doubling up, not sure if it's an issue with the package code itself or my setup/machine. Other solutions online were a mixed bag; some packages with similar issues had tickets which were resolved with package updates, while others were resolved by the OP making changes to their device configuration.Miranda Green– Miranda Green2025年05月16日 20:11:23 +00:00Commented May 16, 2025 at 20:11
-
Why bothering with a package that was last maintained more than three years ago?jay.sf– jay.sf2025年05月17日 15:19:55 +00:00Commented May 17, 2025 at 15:19
-
@jay.sf OP says "This specific package is needed to try and replicate a previous analysis."Ben Bolker– Ben Bolker2025年05月17日 16:14:49 +00:00Commented May 17, 2025 at 16:14