-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Problem with gfortran linking on macOS 10.15.7 #2524
Comments
The quick workaround: @kpj In order your build to success you have to create one more link
@al-cheb @AlenaSviridenko @maxim-lobanov - it is not clear that caused the problem - either the build system used by the workflow picked up the incorrect path to fortran libraries (most probably) or there's something wrong with the gcc installation (almost no chance) In order to fix the issue i suggest to improve the documentation mentioning the one more link has to be created. The other solutions require the additional triage |
@dsame Thanks a lot! Why did you use Unfortunately, your suggestion crashes with If I wanted to use
|
We use brew to install gcc and its components on macos images, so the exact paths are managed by the brew team README shows the installed version of gfortran, but the exact directory where it is installed is 9.3.0_1 Before the creating of the link For full working pipeline i created this build https://github.com/dsame/actions-demo/runs/1774695708?check_suite_focus=true , please use it as a reference @al-cheb @AlenaSviridenko @maxim-lobanov the build https://github.com/dsame/actions-demo/runs/1774695708?check_suite_focus=true shows there's no need any extra links to build both fortran77 and fortran99 and therefore the original issue is caused by the 3rd party build system and we do not need to update the docs @kpj please confirm the original issue is solved with
|
Hi! I am closing this issue due to no response in a week. Please, feel free to contact us in case of any questions |
@dsame Sorry for not responding earlier. The issue is that the (binary) dependencies of my project were updated and the fortran compiler is not required until another dependency changes. So unfortunately, I cannot confirm whether the fix works or not. I added it successfully to my workflow nonetheless, so it will probably work out. Should other issues arise later, I'll create another issue. |
Description
I am using this setup:
My goal is to compile software which relies on gfortran.
Following #1280, I added this step to my workflow:
However, compilation of other software now fails with
ld: library not found for -lgfortran
(affected run).Area for Triage:
Apple
Question, Bug, or Feature?:
Bug
Virtual environments affected
Expected behavior
Installation of software which requires fortran should be possible.
Actual behavior
Installation of software which requires fortran crashes with
Repro steps
Affected run: https://github.com/kpj/dce/runs/1748442835
The text was updated successfully, but these errors were encountered: