fastr icon indicating copy to clipboard operation
fastr copied to clipboard

Error installing quadprog

Open abhinaynagpal opened this issue 3 years ago • 3 comments

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’

abhinaynagpal avatar Feb 06 '22 22:02 abhinaynagpal

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

abhinaynagpal avatar Feb 06 '22 23:02 abhinaynagpal

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 :-)

steve-s avatar Feb 07 '22 15:02 steve-s

Thanks @steve-s ! i guess it worked for me since it did not have to fallback ?

abhinaynagpal avatar Feb 09 '22 03:02 abhinaynagpal