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

Compiler Environment Compatibility Issues #2

Open
Vermouth20220305 opened this issue Dec 13, 2024 · 0 comments
Open

Compiler Environment Compatibility Issues #2

Vermouth20220305 opened this issue Dec 13, 2024 · 0 comments

Comments

@Vermouth20220305
Copy link

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:

  1. 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.
  2. 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!

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

No branches or pull requests

1 participant