[Numpy-svn] r5990 - trunk

numpy-svn@scip... numpy-svn@scip...
Sat Nov 8 01:07:29 CST 2008

Author: cdavid
Date: 2008-11-08 01:07:17 -0600 (Sat, 08 Nov 2008)
New Revision: 5990

Add mention of g77 vs gfortran in INSTALL notes.

Modified: trunk/INSTALL.txt
--- trunk/INSTALL.txt	2008-11-08 07:01:16 UTC (rev 5989)
+++ trunk/INSTALL.txt	2008-11-08 07:07:17 UTC (rev 5990)
@@ -29,6 +29,36 @@
 __ http://www.python.org
+Fortran ABI mismatch
+The two most popular open source fortran compilers are g77 and gfortran.
+Unfortunately, they are not ABI compatible, which means that concretely you
+should avoid mixing libraries built with one with another. In particular, if
+your blas/lapack/atlas is built with g77, you *must* use g77 when building
+numpy and scipy; on the contrary, if your atlas is built with gfortran, you
+*must* build numpy/scipy with gfortran.
+Choosing the fortran compiler
+To build with g77:
+    python setup.py build --fcompiler=gnu
+To build with gfortran:
+    python setup.py build --fcompiler=gnu95
+How to check the ABI of blas/lapack/atlas
+One relatively simple and reliable way to check for the compiler used to build
+a library is to use ldd on the library. If libg2c.so is a dependency, this
+means that g77 has been used. If libgfortran.so is a a dependency, gfortran has
+been used. If both are dependencies, this means both have been used, which is
+almost always a very bad idea.
 Building with ATLAS support

More information about the Numpy-svn mailing list