Open thouis opened 12 years ago
Attachment in Trac by trac user noam.bernstein, 2009-07-10: pg.py.patch
Comment in Trac by atmention:cournape, 2009-11-25
Comment in Trac by atmention:rgommers, 2010-12-12
This doesn't look like the right solution, it may hide other wrong switches. module_dir_switch
should not be used for Fortran 77 source files, so if this gives errors then there is probably an error in the build_clib or build_ext logic somewhere.
Do you have a build log that shows where the issue occurs?
Comment in Trac by atmention:mwiebe, 2011-03-24
Comment in Trac by atmention:rgommers, 2011-03-25
Can't really move this forward for 1.6.0 if no one replies to my question.
This sort of stuff is hard to solve since I don't have the compiler in question.
Original ticket http://projects.scipy.org/numpy/ticket/1164 Reported 2009-07-10 by trac user noam.bernstein, assigned to atmention:dmcooke.
numpy/distutils/fcompiler/pg.py specifies "-module" for searching for module files. Since fortran 77 doesn't have modules, pgf77 complains. This can be fixed by adding -noswitcherror to the default set of flags for pgf77. I'm definitely seeing it in 1.2.1, but searching for module_dir_switch suggests that it's not been fixed in more recent versions.
A (nearly trivial) diff is attached.