Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error installing quadprog #196

Open
abhinaynagpal opened this issue Feb 6, 2022 · 3 comments
Open

Error installing quadprog #196

abhinaynagpal opened this issue Feb 6, 2022 · 3 comments
Labels

Comments

@abhinaynagpal
Copy link

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
Copy link
Author

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

@steve-s
Copy link
Member

steve-s commented Feb 7, 2022

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

@abhinaynagpal
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants