DHARMa
DHARMa copied to clipboard
GH Action dependency issues -> nloptr, rcmdcheck
Since a few weeks, there are dependency issues in GH Actions, similar to the old Travis CI problem, #166
Under windows the issue is
2021-11-17T08:49:04.0744694Z * installing *source* package 'nloptr' ...
2021-11-17T08:49:04.1354028Z ** package 'nloptr' successfully unpacked and MD5 sums checked
2021-11-17T08:49:04.1356201Z ** using staged installation
2021-11-17T08:49:04.1377179Z
2021-11-17T08:49:04.1377815Z **********************************************
2021-11-17T08:49:04.1378466Z WARNING: this package has a configure script
2021-11-17T08:49:04.1379234Z It probably needs manual configuration
2021-11-17T08:49:04.1379870Z **********************************************
2021-11-17T08:49:04.1380215Z
2021-11-17T08:49:04.1380505Z
2021-11-17T08:49:04.1903580Z ** libs
2021-11-17T08:49:04.1914904Z
2021-11-17T08:49:04.1916532Z *** arch - i386
2021-11-17T08:49:06.3993080Z "C:/rtools40/mingw32/bin/"g++ -std=gnu++11 -I"C:/R/include" -DNDEBUG -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c dummy.cpp -o dummy.o
2021-11-17T08:49:13.0765620Z "C:/rtools40/mingw32/bin/"gcc -I"C:/R/include" -DNDEBUG -I"/i386/include" -O2 -Wall -std=gnu99 -mfpmath=sse -msse2 -mstackrealign -c init_nloptr.c -o init_nloptr.o
2021-11-17T08:49:19.6277646Z init_nloptr.c:35:10: fatal error: nlopt.h: No such file or directory
2021-11-17T08:49:19.6278405Z #include "nlopt.h"
2021-11-17T08:49:19.6278784Z ^~~~~~~~~
2021-11-17T08:49:20.6887125Z compilation terminated.
2021-11-17T08:49:20.6888058Z make: *** [C:/R/etc/i386/Makeconf:238: init_nloptr.o] Error 1
2021-11-17T08:49:20.6888956Z ERROR: compilation failed for package 'nloptr'
2021-11-17T08:49:20.6889564Z * removing 'D:/a/_temp/Library/nloptr'
and under Linux, R-dev, there is another issue:
ERROR: dependency ‘curl’ is not available for package ‘rcmdcheck’
which then causes
Run rcmdcheck::rcmdcheck("DHARMa", args = c("--no-multiarch", "--no-manual"), error_on = "warning", check_dir = "check")
Error: Error in loadNamespace(x) : there is no package called ‘rcmdcheck’
For some reason the Win issue has disappeared, rmdcheck issue remaining
OK, the latest issue seems to be the RStudio package manager, which causes linux builds to fail ...
Warning: unable to access index for repository https://packagemanager.rstudio.com/cran/linux/focal/latest/src/contrib:
Issue persists in Ubuntu 20.04
Error: Error in loadNamespace(x) : there is no package called ‘rcmdcheck’
https://github.com/stan-dev/cmdstan/issues/1037#issuecomment-928049885 suggests to install libcurl-devel
No real solution, I'll just leave this involved for the moment and check devel on Windows.
I ran into the same issue in one of my repos and this thread helped me pin down the problem - Thanks!
FWIW - I managed to fix it by adding
- name: install libcurl-devel on linux
if: runner.os == 'Linux'
run: sudo apt-get install -y libcurl4-openssl-dev
to my R-CMD-check.yaml
(between the block for installing system dependencies, and the one installing R pkg dependencies)
Thanks for the info, much appreciated! I also received another tip, which I have currently here https://github.com/florianhartig/DHARMa/pull/326 - should give this another go to be able to test dev on all OS, so I'll re-open!
So, currently this is not a problem any more, i.e. Ubuntu devel runs without modifications, so I will close this