-
Notifications
You must be signed in to change notification settings - Fork 25
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
intel
compiler not found in Windows cmake
project build
#45
Comments
Thanks for raising, ideally this could be tested (planned in #31). Does anything here help? modflowpy/install-intelfortran-action#10 issues with cmake discovery have been reported before. See also #6 |
@wpbonelli Thank you for the links. It does seem like some people have found workarounds by using a different generator. I will investigate and report back if I find a solution. In the meantime, I fully support the work planned in #31 ! |
@wpbonelli It's been a minute since I looked into this. Let me give it a try with this new version. I will report back ASAP. |
@wpbonelli Unfortunately, the cache restore still does not work. I used the action with jobs:
CI_Windows:
runs-on: [windows-latest]
strategy:
fail-fast: false
- name: Setup Fortran
uses: fortran-lang/setup-fortran@main
id: setup-fortran
with:
compiler: intel-classic
version: '2021.10' |
@wpbonelli The fresh install also fails, but I'm now looking into other generators. As mentioned above, the |
@zbeekman I am tagging because you might be able to help... |
I'm on Windows and using fortran-lang/setup-fortran@main and have a similar problem. When there isn't a cache the build will work but once the cache is hit cmake fails to find the fortran compiler. I briefly tried '-G Ninja' in my local environment and that caused my local build to fail in ways I didn't know how to solve. I was hopeful that #48 was going to fix my build issue but something in my setup still isn't quite right. I'd appreciate any suggestions or next steps I could try to improve the build configuration. |
Summary
This is for a Windows
fortran
project that usescmake
to build and test and usesVisual Studio 17 2022
as the generator. I need to install theintel-classic
compiler, preferably the latest version, which is2021.10
. The compiler seemingly installs, but thencmake
does not know the Fortran compiler identification and the build fails.Details
My CI script (relevant parts):
My
build_and_test.bat
script is as follows:The output/error in the GitHub CI is:
I tried other GitHub Actions and the
modflowpy/install-intelfortran-action@v1
action works for my project by takes a very long time. It appears this action is an ancestor of the currentfortran-lang/setup-fortran
action, so I'm hoping there is something in that older action that could be added to the current action to properly set environment variables such thatcmake
can correctly detect the Fortran compiler.For information, here is the output of my successful CI when using the older Action:
Thanks for helping and for creating these great tools!
The text was updated successfully, but these errors were encountered: