[SciPy-user] building SciPy on Mac OS X

Andrew Straw andrew.straw at adelaide.edu.au
Fri Nov 22 00:10:26 EST 2002


Hi,

I'm trying to install SciPy on my Mac OS X 10.2.2 box.  After following 
INSTALL.txt to install the prerequisites, I run "python setup.py build" 
which fails at the following command:

cc -Wl,-F. -Wl,-flat_namespace,-U,_environ -bundle -framework Python 
build/temp.darwin-6.2-Power_Macintosh-2.2/fortranobject.o 
build/temp.darwin-6.2-Power_Macintosh-2.2/fblasmodule.o 
-L/usr/local/lib/atlas -Lbuild/temp.darwin-6.2-Power_Macintosh-2.2 
-Lbuild/temp.darwin-6.2-Power_Macintosh-2.2 -lfblas -llapack -lf77blas 
-lcblas -latlas -lc_misc -lcephes -lrootfind -lg2c -o 
build/lib.darwin-6.2-Power_Macintosh-2.2/scipy/linalg/fblas.so
ld: Undefined symbols:
_atl_f77wrap_caxpy__
_atl_f77wrap_ccopy__
_atl_f77wrap_cgemm__
_atl_f77wrap_cgemv__
_atl_f77wrap_chemv__
_atl_f77wrap_crotg__
_atl_f77wrap_cscal__
_atl_f77wrap_csscal__
_atl_f77wrap_cswap__
... snip ...

I don't know where those symbols are (or should be defined), nor am I a 
library file expert-- does anyone know where these symbols are defined 
and how I can get SciPy to build?

Perhaps the errors above are related to the following: I used the 
instructions in INSTALL.txt to compile LAPACK and ATLAS, including the 
usage of "ar" to  create an ATLAS optimized LAPACK library, which I 
placed in /usr/local/lib/atlas/. If I run ranlib on this liblapack.a I 
get the following errors.  The names of the objects seem to be 
intriguingly similar but not identical to the undefined symbols above.

$ ranlib /usr/local/lib/atlas/liblapack.a
ranlib: same symbol defined in more than one member in: 
/usr/local/lib/atlas/liblapack.a (table of contents will not be sorted)
ranlib: file: /usr/local/lib/atlas/liblapack.a(ATL_f77wrap_sgesv.o) 
defines symbol: _F77WRAP_GESV
ranlib: file: /usr/local/lib/atlas/liblapack.a(ATL_f77wrap_cgesv.o) 
defines symbol: _F77WRAP_GESV
ranlib: file: /usr/local/lib/atlas/liblapack.a(ATL_f77wrap_dgesv.o) 
defines symbol: _F77WRAP_GESV
ranlib: file: /usr/local/lib/atlas/liblapack.a(ATL_f77wrap_zgesv.o) 
defines symbol: _F77WRAP_GESV
... snip ...

Any help would be greatly appreciated!

Thanks,
Andrew




More information about the SciPy-User mailing list