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

gfortran warning solved on M1 macOS 11.6.2 #441

Closed
wyq977 opened this issue Nov 21, 2022 · 3 comments
Closed

gfortran warning solved on M1 macOS 11.6.2 #441

wyq977 opened this issue Nov 21, 2022 · 3 comments

Comments

@wyq977
Copy link

wyq977 commented Nov 21, 2022

This is a re-post of the RubD/Giotto_site#11 here on Giotto_site as suggested by RubD

Hi, I found out that the even with R 4.2.0 and apple silicon Macs, gfortran can still be installed manally following the instruction here. Updates on https://rubd.github.io/Giotto_site/articles/installation_issues.html#errors-on-macos might be needed. I can make a pull requests if needed on gfortran on you can simply refer users here

This is specific to Apple silicon Macs, an experimental build of GNU Fortran compiler is required otherwise errors like these would pop up during installation:

ld: warning: directory not found for option '-L/opt/R/arm64/gfortran/lib/gcc/aarch64-apple-darwin20.6.0/12.0.1'

This is due to no Fortran compiler and it can be solved with an experimental build given that the R is installed at /opt/R/arm64/ via Homebrew

# for R>=4.2.0
curl -O https://mac.r-project.org/tools/gfortran-12.0.1-20220312-is-darwin20-arm64.tar.xz

# unpack
sudo tar fxz gfortran-12.0.1-20220312-is-darwin20-arm64.tar.xz -C /

# /opt/R/arm64/gfortran/SDK has to point to your macOS SDK
sudo gfortran-update-sdk

Ref: https://support.bioconductor.org/p/9138121/

@wyq977
Copy link
Author

wyq977 commented Nov 21, 2022

@mikeroswell We should continue the issue here as suggested by RubD.

Did you installed the gFortran (Apple silicon) from https://mac.r-project.org/tools/

@mikeroswell
Copy link

mikeroswell commented Nov 21, 2022

Got past this step, feel free to disregard, thanks! Fixed #441

@RubD
Copy link
Collaborator

RubD commented Nov 22, 2022

Ok, we will close the issue!

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

No branches or pull requests

3 participants