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

Fix failing job on gcc 11 #123

Merged
merged 1 commit into from
Dec 20, 2023
Merged

Conversation

nbelakovski
Copy link
Contributor

There's a comment in the .yml which describes the fix, but basically setup-fortran doesn't quite set up gcc 11 correctly. It's not quite their fault since the windows-latest image contains gcc 12 by default so they need to work around that and they didn't quite do it correctly.

What was happening is that the programs would get compiled with gcc 11, but when they ran, due to issues with how the PATH was set up, they would try to link against libgfortran-5.dll that was compiled with gcc 12 and this led to a crash. I tried to fix the PATH issues, but was unable to, so I decided to just rename the gcc 12 version of the dll so that it wouldn't get picked up.

I also noticed that the base image does not provide ninja, nor were the windows runners installing it explicitly. I'm not sure how it was installed, I think as a side effect of the setup-fortran action, but in any case I got some errors due to ninja not being installed so I went ahead and installed it explicitly.

Lastly I added the bash shell during some of my testing and I thought it was best to leave it there so that we can use bash across all 3 platforms for any future work.

This obviously supercedes #115

.github/workflows/cmake.yml Fixed Show fixed Hide fixed
.github/workflows/cmake.yml Fixed Show fixed Hide fixed
.github/workflows/cmake.yml Fixed Show fixed Hide fixed
.github/workflows/cmake.yml Fixed Show fixed Hide fixed
.github/workflows/cmake.yml Fixed Show fixed Hide fixed
.github/workflows/cmake.yml Fixed Show fixed Hide fixed
.github/workflows/cmake.yml Fixed Show fixed Hide fixed
@zaikunzhang zaikunzhang merged commit 88b5151 into libprima:main Dec 20, 2023
35 checks passed
@nbelakovski nbelakovski deleted the fix_gcc_11_windows branch December 21, 2023 02:59
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

Successfully merging this pull request may close these issues.

2 participants