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

gcc-9 build on macos-latest fails #696

Closed
milancurcic opened this issue Feb 22, 2023 · 1 comment · Fixed by #698
Closed

gcc-9 build on macos-latest fails #696

milancurcic opened this issue Feb 22, 2023 · 1 comment · Fixed by #698
Assignees
Labels
bug Something isn't working

Comments

@milancurcic
Copy link
Member

Description

See this job https://github.com/fortran-lang/stdlib/actions/runs/4235861778/jobs/7360686209

and specifically the error message from the CMake compiler tester: https://github.com/fortran-lang/stdlib/actions/runs/4235861778/jobs/7360686209#step:7:30

From the previous step, it looks like gfortran-9 is installed successfully via brew, however, I wonder if this link-time breakage is related to updates to the recent macos-latest change from v11 to v12 (actions/runner-images#6384) I don't have any experience with macOS so it's not obvious to me what exactly causes the issue here.

Possible solutions:

  • A macOS expert in the community can identify why gfortran-9 is not linking correctly and apply a fix;
  • We remove gfortran-9 from the matrix for macOS.

To reduce complexity in the future, we could also remove the brew install step and only rely on GH Action supported compiler versions. On the current macos-latest (macOS 12), that's gfortran 11 and 12.

What do you think? I'm personally in favor of simply relying on the GitHub Actions provided compiler versions. For this specific issue, it would mean removing gfortran-9 from the matrix for macOS.

Expected Behaviour

CI should succeed.

Version of stdlib

fba31e0

Platform and Architecture

macos-latest (macos-12)

Additional Information

No response

@milancurcic milancurcic added the bug Something isn't working label Feb 22, 2023
@barracuda156
Copy link

@milancurcic I am not an expert on fortran, but IMO the only GCC it makes sense to support besides the current one is GCC 10 (because it is the last version to be bootstrapped without C++11). Maybe GCC 7, since it has been and presently is the main compiler on older macOS in Macports (but I hope we move to GCC 12 soon). There is no special utility in GCC 9 on MacOS, AFAICT.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants