-
Notifications
You must be signed in to change notification settings - Fork 18
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
Add support for Intel Fortran compiler #78
Comments
I regularly use the Fortran intel compiler with cmake (and the clion plugin) without any issue. What exactly is not working? In any case, in principle, your problem is not really related to Clion or the fortran plugin but to cmake. Did you try building your cmake project from the command line? Clion does nothing but calling cmake for you, which is independent of the compiler etc. Best |
Hey Leonard,
Thanks for replying so quickly. I think the main problem is my
ignorance. I'm a very senior java developer assigned to build
C/Fortran libraries. :-)
Attached is a screenshot of my hello world fortran app, CMakeLists.txt
file and build output that shows "failed".
Tom
Quoting Leonard Reuter ***@***.***>:
I regularly use the Fortran intel compiler with cmake (and the
clion plugin) without any issue. What exactly is not working?
In any case, in principle, your problem is not really related to
Clion or the fortran plugin but to cmake. Did you try building your
cmake project from the command line? Clion does nothing but calling
cmake for you, which is independent of the compiler etc.
Best
Leonard
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub[1], or unsubscribe[2].
|
can you scroll further down to the error message? you can also copy-paste the text. |
"C:\Program Files\JetBrains\CLion 2021.2\bin\cmake\win\bin\cmake.exe" -DCMAKE_BUILD_TYPE=Debug -DCMAKE_DEPENDS_USE_COMPILER=FALSE -G "CodeBlocks - NMake Makefiles" C:\Users\tom.soraoka\CLionProjects\untitled3 -- Detecting Fortran compiler ABI info
is not able to compile a simple test program. It fails with the following output:
CMake will not be able to correctly generate this project. -- Configuring incomplete, errors occurred! [Finished] |
If it's an option I would suggest trying it on Linux first. On Windows, the Intel compiler requires MS build tools and it's hard to use them separately. It should be easier on Linux Regarding the issue, I'll take a look at what can be done on Windows |
Thank you. I have a centos 7 box I can try it on. |
An update here, in https://youtrack.jetbrains.com/issue/CPP-42977 it came that to use clion / fortran plugin with intel fortran compiler on windows, it is required to specify a toolchain script that invokes The issue that remains is that the debugging doesn't seem to pick up any breakpoint, I was wondering if there was any way to diagnose it and if any people using this plugin with intel compiler, disregarding the platform, could confirm wether debugging works or not? Thanks! |
I cannot seem to get CLion's Fortran plugin to work with the Intel Fortran compiler. I only tried on Windows, but will need it to work on Linux also. It only needs to call iFort.exe (or ifx.exe). The current (as of 7/28/2021) Intel Fortran compiler is in the OneAPI package. MS Visual Studio 2019 integrates with it just fine. I wanted to use CLion to step thru C code and into Fortran code. I got the following message from a CLion developer:
Hi Tom!
I consulted with the developer of the Fortran plugin. The Intel compiler for Fortran is integrated only with Visual Studio and therefore works only in Visual Studio or in CLI which takes all that is needed from VS. It seems CMake doesn't fully support this compiler. Hence the Fortran plugin doesn't work with it. Feel free to create a feature request in the plugin tracker - https://github.com/satamas/fortran-plugin/issues.
Best regards,
Anna Falevskaya
JetBrains
http://www.jetbrains.com
The Drive to Develop
The text was updated successfully, but these errors were encountered: