[SciPy-user] SciPy with gcc4 and gfortran on OS X

Robert Kern robert.kern at gmail.com
Fri Apr 7 17:34:31 CDT 2006


Zachary Pincus wrote:

> I thought I had seen something, so some searching turned up a March 7  
> email by Neil Becker to scipy-dev (subject "[PATCH] d1mach problem")  
> which has a patch to make d1mach compile with -O0. I'll try out this  
> patch (and a version with -O) and let you know if it works. Neil also  
> had to patch numpy/distutils/command/build_clib.py to allow  
> 'extra_postargs' to be passed through to the fortran compiler.
> 
> Anyhow, I'll report on the success of these patches. If they work, is  
> this something that should or should not go into scipy, do you think?  
> (If they do go in, a bug ticket should be filed about not using -O2  
> so that this vaguely ugly hack gets revisited if/when gfortran gets  
> better.)

Yes, you're right there was a patch, and I missed it (as an aside, I do
recommend contributing patches to the Trac and not the mailing list so that we
don't lose track of them). My only concern is that adding extra_compile_args to
work around one compiler's bug may interfere with other compilers.

As for the extra_postargs fix, I have no objection to it, but it's possible
Pearu did that intentionally.

-- 
Robert Kern
robert.kern at gmail.com

"I have come to believe that the whole world is an enigma, a harmless enigma
 that is made terrible by our own mad attempt to interpret it as though it had
 an underlying truth."
  -- Umberto Eco



More information about the SciPy-user mailing list