[SciPy-dev] [PATCH] Compilation with gcc4/gfortran

Ravikiran Rajagopal ravi at ati.com
Wed Jul 20 08:45:50 CDT 2005


Hi,
  Please find attached a patch (against scipy CVS) to compile with gcc 4.0. 
The changes are very simple and should not hurt any other set up:
  1. Add "gfortran" as an option for Fortran compilation.
  2. Add libgfortran as a replacement for libg2c (needs some tweaking).
  3. Modify Lib/linalg/iterative/*.f.src to avoid jumping into a block.
  4. Remove sse2 optimizations (see mailing lists for more information).
I have tested this on Linux x86 with gcc CVS stable branch (4_0_branch) which 
is scheduled to be released as gcc 4.0.2. gcc 4.0.1 does not work since 
support for Hollerith constants (this obsolete construct is heavily used in 
scipy) was added only last week. Could someone with sufficient karma commit 
this?
  Would there be any object to contributing C++ code into scipy? As far as I 
can see, scipy does not use any C++ constructs. Is this intentional?

Regards,
Ravi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: s.diff
Type: text/x-diff
Size: 6018 bytes
Desc: not available
Url : http://projects.scipy.org/pipermail/scipy-dev/attachments/20050720/d5ff50c3/attachment.bin 


More information about the Scipy-dev mailing list