You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I am currently facing some issues while trying to compile Fortran dynamic libraries and would appreciate insights into others’compiler environments, as well as advice from anyone who might have encountered similar challenges.
My environment configuration:
Operating System: Ubuntu 20.04
Compiler: gfortran 9.4.0
Python Version: 3.8.10
Numpy Version: 1.24.4
Issues Encountered:
While compiling with gfortran, I encountered the error message fpp not found. To address this, I switched to using cpp as the preprocessor. However, cpp generates comments in C/C++ style (/* */), which gfortran does not recognize, leading to compilation failures.
To resolve this issue, I switched to the Intel oneAPI Toolkit and used the latest compiler (ifx). However, I still encountered problems where certain dynamic libraries failed to compile successfully. I suspect this might be related to compatibility issues with the Intel compiler version.
Questions:
1.Could you share details about your development environment (e.g., Fortran compiler version, Python and numpy versions, etc.)?
2. Are there any recommended solutions or best practices to ensure compatibility when compiling Fortran dynamic libraries, particularly with preprocessor usage or compiler options?
I would greatly appreciate any guidance or suggestions to help resolve these issues. If more details are needed, I am happy to provide further information.
Thank you in advance for your help!
The text was updated successfully, but these errors were encountered:
Hello,
I am currently facing some issues while trying to compile Fortran dynamic libraries and would appreciate insights into others’compiler environments, as well as advice from anyone who might have encountered similar challenges.
My environment configuration:
Issues Encountered:
Questions:
1.Could you share details about your development environment (e.g., Fortran compiler version, Python and numpy versions, etc.)?
2. Are there any recommended solutions or best practices to ensure compatibility when compiling Fortran dynamic libraries, particularly with preprocessor usage or compiler options?
I would greatly appreciate any guidance or suggestions to help resolve these issues. If more details are needed, I am happy to provide further information.
Thank you in advance for your help!
The text was updated successfully, but these errors were encountered: