fastr
fastr copied to clipboard
Error installing quadprog
This with graal 21.0.3
I enabled the fc frontend for llvm compilation and get the following error:
** package ‘quadprog’ successfully unpacked and MD5 sums checked ** using staged installation ** libs /opt/java/graalvm/languages/R/etc/Makeconf:103: *** Recursive variable 'FC' references itself (eventually). Stop. ERROR: compilation failed for package ‘quadprog’
- removing ‘/opt/java/graalvm/languages/R/library/quadprog’
this is because:
To use f2c uncomment the following line
FC = "$(R_HOME)/bin/f2c-wrapper" $(FC) remove the trailing $(FC) solves the problem, but maybe something that should be fixed while the file is generated
Hello abhinaynagpal,
thank you for the report. We will fix it. It should be:
FC = "$(R_HOME)/bin/f2c-wrapper" "$(R_HOME)/bin/safe-forward-gfortran"
the tool f2c-wrapper tries to use f2c to produce LLVM bitcode and if that fails it uses actual fortran compiler passed as the first argument, i.e., $(R_HOME)/bin/safe-forward-gfortran. I wonder how your solution could fix the problem, but it probably did somehow :-)
Thanks @steve-s ! i guess it worked for me since it did not have to fallback ?