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

R 4.1.3 is now installed with gfortran 12, which it doesn't work with #722

Closed
jonathon-love opened this issue Apr 26, 2023 · 2 comments
Closed
Labels
bug an unexpected problem or unintended behavior

Comments

@jonathon-love
Copy link

To Reproduce

log here https://github.com/jonathon-love/r-package-snapshot/actions/runs/4805568169/jobs/8552111730

i'm using:

    - name: Set up R
      uses: r-lib/actions/setup-r@v2
      with:
        r-version: '4.1.3'

this used to install gfortran 8.2, but now it installs 12, which leads to:

clang -mmacosx-version-min=10.13 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/Library/Frameworks/R.framework/Resources/lib -L/usr/local/lib -o flashClust.so hc.o hcass2.o -L/usr/local/gfortran/lib/gcc/x86_64-apple-darwin18/8.2.0 -L/usr/local/gfortran/lib -lgfortran -lquadmath -lm -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation
ld: warning: directory not found for option '-L/usr/local/gfortran/lib/gcc/x86_64-apple-darwin18/8.2.0'
ld: warning: directory not found for option '-L/usr/local/gfortran/lib'
ld: library not found for -lgfortran

i think it's because R 4.1.3 was built against gfortran 8.2 ... and now setup-r has moved to gfortran 12 (for these older versions of R), it no longer works.

with thanks

@jonathon-love jonathon-love added the bug an unexpected problem or unintended behavior label Apr 26, 2023
gaborcsardi added a commit that referenced this issue Apr 26, 2023
@gaborcsardi
Copy link
Member

Thanks for the report! I did try it with R 3.6.x, but that does not hardcode the paths into the R config, like R 4.1.x does. Just fixed this in v2, so if you re-run it, it should work.

@github-actions
Copy link

This issue has been automatically locked. If you believe you have found a related problem, please file a new issue and include a link to this issue

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

2 participants