-
Notifications
You must be signed in to change notification settings - Fork 9
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
F2PY installation crashes sometimes #22
Comments
Do you mean that in FindBuildF2pyModule.cmake line 38 What if we put gnu95 as a standard and people want to compile with ifort ? |
The CMAKE_Fortran_COMPILER is correct in the module, the problem is that one should not use the --f90exec flag with specifying just the F90 executable. That leads to wrong linking in many cases. |
@aichhorn: is there a way to reproduce this issue? I would like to avoid the vendor flag. Are you sure the fact that there are links to libgfortran is not a consequence of linking to lapack? |
Right now, I cannot reproduce this issue myself either. I tried all possible combinations of gfortran and ifort, with lapack and without, and everything worked out fine. This seems to be a well hidden problem in the f2py linking procedure that I don't understand. |
OK, let's close the issue for now and if ever the problem appears again we can still reopen it... |
The f2py call for the fortran modules is not always stable. The BuildF2PYModule of cmake executes the command
f2py -c --f90exec= ....
This results in many cases in bad linking of the library file. Instead, the command should be
f2py -c --fcompiler= ...
where is gnu95 or intelem, for example. Problem: can not be detected easily. Maybe set gnu95 as standard, that should work always.
The text was updated successfully, but these errors were encountered: