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

Pearu Peterson pearu at scipy.org
Sat Apr 8 12:16:38 CDT 2006

On Sat, 8 Apr 2006, Zachary Pincus wrote:

>> Try `config_fc --noopt --noarch build`. Does this fix these issues?
> Hmm. Now I get different errors (see below). Impressive.
>> Could you send me the patch or file the corresponding ticket to
>> numpy.distutils?
> My slightly modified versions of Neil Becker's patches are attached. Now, I'm 
> not sure that these should be applied generally. First, regarding the numpy 
> patch, I'm not sure if there's a reason for not passing the extra_postargs to 
> the fortran compiler, so I'm not sure if this patch would cause problems if 
> generally applied.
> Second, regarding the scipy patch, as is it will pass '-O' to all fortran 
> compilers when the mach codes are compiled. Probably not good! Better would 
> be to test if gfortran was in use and just pass '-O' in that case. Even 
> better might be to just assume that gfortran optimizations are bad in general 
> and disable them wholesale. Then at least bizarre compiler-specific stuff 
> wouldn't be littered all over various setup.py files.

Try the latest numpy and scipy from svn. I have added support to specify
config_fc options inside setup.py files for libraries. This feature would 
be probably useful also C libraries and extension modules but let's see
if this can fix the current issue first..


More information about the SciPy-user mailing list