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

Ravikiran Rajagopal ravi at ati.com
Wed Jul 20 09:45:50 EDT 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://mail.python.org/pipermail/scipy-dev/attachments/20050720/d5ff50c3/attachment.diff>


More information about the SciPy-Dev mailing list