[SciPy-dev] Confused over site.cfg

Pierre GM pgmdevlist@gmail....
Fri Jun 20 00:03:32 CDT 2008

I just spent the last 6 hours trying to compile scipy from the SVN, with 
various success. Note that in each of the following examples, I had removed 
any previous scipy installation and build directory.

* Running setup.py install without creating a site.cfg resulted in an 
apparently successful compilation. However, import scipy.stats failed because 
of z_abs being undefined in scipy/linalg/fblas.so. Turned out that c_abs 
wasn't defined either.
ImportError: /usr/lib64/python2.4/site-packages/scipy/linalg/fblas.so: 
undefined symbol: z_abs

* Uncommented the lapack_opt, blas_opt and DEFAULT sections in 
site.cfg.example and renaming the file to site.cfg gave the same results.

* Defining a [atlas] section, with `atlas_libs=lapack, blas, f77blas, cblas, 
atlas` eventually worked (I was able to import scipy.stats).

What bothers me is that the use of [atlas] seems to be deprecated (as stated 
in site.cfg.example). So what's happening ? In the three cases, my atlas 
version was properly recognized (you'll find the info below).

Any hint would be welcomed (and I'm not modifying my site.cfg any more...)


ATLAS version 3.8.2 built by root on Thu Jun 19 14:40:27 EDT 2008:
   UNAME    : Linux back2tux 2.6.22-suspend2-r1 #8 Fri Feb 15 17:00:17 EST 
2008 x86_64 Mobile AMD Athlon(tm) 64 Processor 3400+ AuthenticAMD GNU/Linux
   INSTFLG  : -1 0 -a 1
   F2CDEFS  : -DAdd_ -DF77_INTEGER=int -DStringSunStyle
   CACHEEDGE: 262144
   F77      : gfortran, version GNU Fortran 95 (GCC) 4.1.2 (Gentoo 4.1.2 
   F77FLAGS : -O2 -m64
   SMC      : x86_64-pc-linux-gnu-gcc, version x86_64-pc-linux-gnu-gcc (GCC) 
4.1.2 (Gentoo 4.1.2 p1.0.1)
   SMCFLAGS : -march=k8 -O2 -pipe -m64
   SKC      : x86_64-pc-linux-gnu-gcc, version x86_64-pc-linux-gnu-gcc (GCC) 
4.1.2 (Gentoo 4.1.2 p1.0.1)
   SKCFLAGS : -march=k8 -O2 -pipe -m64

More information about the Scipy-dev mailing list