0

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 2023.06.0 (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.

7
  • 3
    Looks like a bug or omission. Seems there is already a recent ticket open at github. Commented May 16 at 16:16
  • 1
    that ticket might have been opened by the OP ... ??? Commented May 16 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. Commented May 16 at 20:11
  • Why bothering with a package that was last maintained more than three years ago? Commented May 17 at 15:19
  • @jay.sf OP says "This specific package is needed to try and replicate a previous analysis." Commented May 17 at 16:14

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.