[SciPy-user] building numpy/scipy on Solaris

Lucas Barbuto lucasjb@csse.unimelb.edu...
Fri Sep 7 04:01:51 CDT 2007


On 07/09/2007, at 5:09 PM, David Cournapeau wrote:
> Did you manage to build numpy at least ? Could you provide us the  
> exact
> steps you followed until the failure ?

Yes, NumPy 1.0.3 has been built and installed separately but without  
reference to any optimised BLAS or LAPACK libraries so I assume that  
"a slower default version is used".  If I try to rebuild NumPy  
referencing Sun's Performance Library I have the same problems as  
with SciPy, so I suppose if I solve one, I'll have solved the other!

So, I've unpacked Sun Studio 12 and the interesting bits live in / 
local as per below.  I've got a pretty basic environment which finds  
GCC 3.4.5 as my default C compiler and G77 as my default Fortran  
compiler.  I don't have ATLAS installed.  My site.cfg:

[DEFAULT]
library_dirs = /local/cat2/apps-archive/SUNWspro-12/prod/lib:/usr/ 
local/lib
include_dirs = /local/cat2/apps-archive/SUNWspro-12/prod/include:/usr/ 
local/include

[blas_opt]
blas_libs = sunperf

[lapack_opt]
lapack_libs = sunperf

And then I simply run 'python setup.py build'.  The config script  
appears to find libsunperf.a OK...

blas_info:
   FOUND:
     libraries = ['blas']
     library_dirs = ['/local/cat2/apps-archive/SUNWspro-12/prod/lib']
     language = f77

   FOUND:
     libraries = ['blas']
     library_dirs = ['/local/cat2/apps-archive/SUNWspro-12/prod/lib']
     define_macros = [('NO_ATLAS_INFO', 1)]
     language = f77

... and similarly for LAPACK.

But I get symbol reference errors, output pasted below.  Hope that's  
the appropriate information!

--
Lucas Barbuto

building 'numpy.core._dotblas' extension
compiling C sources
C compiler: gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC

creating build/temp.solaris-2.9-i86pc-2.5/numpy/core/blasdot
compile options: '-DNO_ATLAS_INFO=1 -Inumpy/core/blasdot -Inumpy/core/ 
include -Ibuild/src.solaris-2.9-i86pc-2.5/numpy/core -Inumpy/core/src  
-Inumpy/core/include -I/usr/local/apps/python-2.5.0/include/python2.5  
-c'
gcc: numpy/core/blasdot/_dotblas.c
/usr/local/bin/g77 build/temp.solaris-2.9-i86pc-2.5/numpy/core/ 
blasdot/_dotblas.o -L/local/cat2/apps-archive/SUNWspro-12/prod/lib -L/ 
local/solaris86/apps/gcc-3.4.5/bin/../lib/gcc/i386-pc- 
solaris2.9/3.4.5 -lblas -lg2c -o build/lib.solaris-2.9-i86pc-2.5/ 
numpy/core/_dotblas.so
Undefined                       first referenced
symbol                             in file
PyExc_ImportError                   build/temp.solaris-2.9-i86pc-2.5/ 
numpy/core/blasdot/_dotblas.o
PyCObject_AsVoidPtr                 build/temp.solaris-2.9-i86pc-2.5/ 
numpy/core/blasdot/_dotblas.o
PyArg_ParseTuple                    build/temp.solaris-2.9-i86pc-2.5/ 
numpy/core/blasdot/_dotblas.o
PyExc_RuntimeError                  build/temp.solaris-2.9-i86pc-2.5/ 
numpy/core/blasdot/_dotblas.o
PyEval_SaveThread                   build/temp.solaris-2.9-i86pc-2.5/ 
numpy/core/blasdot/_dotblas.o
PyObject_GetAttrString              build/temp.solaris-2.9-i86pc-2.5/ 
numpy/core/blasdot/_dotblas.o
__f95_error_message_and_abort       /local/cat2/apps-archive/ 
SUNWspro-12/prod/lib/libblas.a(caxpy.o)
PyExc_ValueError                    build/temp.solaris-2.9-i86pc-2.5/ 
numpy/core/blasdot/_dotblas.o
MAIN__                              /local/solaris86/apps/gcc-3.4.5/ 
bin/../lib/gcc/i386-pc-solaris2.9/3.4.5/../../../libfrtbegin.a 
(frtbegin.o)
PyErr_SetString                     build/temp.solaris-2.9-i86pc-2.5/ 
numpy/core/blasdot/_dotblas.o
__mt_get_next_chunk_invoke_mfunc_once_int_ /local/cat2/apps-archive/ 
SUNWspro-12/prod/lib/libblas.a(cgemv.o)
PyErr_Format                        build/temp.solaris-2.9-i86pc-2.5/ 
numpy/core/blasdot/_dotblas.o
PyCObject_Type                      build/temp.solaris-2.9-i86pc-2.5/ 
numpy/core/blasdot/_dotblas.o
PyTuple_New                         build/temp.solaris-2.9-i86pc-2.5/ 
numpy/core/blasdot/_dotblas.o
PyErr_Print                         build/temp.solaris-2.9-i86pc-2.5/ 
numpy/core/blasdot/_dotblas.o
__omp_in_parallel_                  /local/cat2/apps-archive/ 
SUNWspro-12/prod/lib/libblas.a(using_threads.o)
__f90_allocate2                     /local/cat2/apps-archive/ 
SUNWspro-12/prod/lib/libblas.a(cgemm.o)
PyImport_ImportModule               build/temp.solaris-2.9-i86pc-2.5/ 
numpy/core/blasdot/_dotblas.o
Py_InitModule4                      build/temp.solaris-2.9-i86pc-2.5/ 
numpy/core/blasdot/_dotblas.o
_Py_NoneStruct                      build/temp.solaris-2.9-i86pc-2.5/ 
numpy/core/blasdot/_dotblas.o
__omp_get_max_threads_              /local/cat2/apps-archive/ 
SUNWspro-12/prod/lib/libblas.a(using_threads.o)
__mt_MasterFunction_rtc_            /local/cat2/apps-archive/ 
SUNWspro-12/prod/lib/libblas.a(cgemv.o)
__f90_deallocate                    /local/cat2/apps-archive/ 
SUNWspro-12/prod/lib/libblas.a(cgemm.o)
PyEval_RestoreThread                build/temp.solaris-2.9-i86pc-2.5/ 
numpy/core/blasdot/_dotblas.o
ld: fatal: Symbol referencing errors. No output written to build/ 
lib.solaris-2.9-i86pc-2.5/numpy/core/_dotblas.so
collect2: ld returned 1 exit status
Undefined                       first referenced
symbol                             in file
PyExc_ImportError                   build/temp.solaris-2.9-i86pc-2.5/ 
numpy/core/blasdot/_dotblas.o
PyCObject_AsVoidPtr                 build/temp.solaris-2.9-i86pc-2.5/ 
numpy/core/blasdot/_dotblas.o
PyArg_ParseTuple                    build/temp.solaris-2.9-i86pc-2.5/ 
numpy/core/blasdot/_dotblas.o
PyExc_RuntimeError                  build/temp.solaris-2.9-i86pc-2.5/ 
numpy/core/blasdot/_dotblas.o
PyEval_SaveThread                   build/temp.solaris-2.9-i86pc-2.5/ 
numpy/core/blasdot/_dotblas.o
PyObject_GetAttrString              build/temp.solaris-2.9-i86pc-2.5/ 
numpy/core/blasdot/_dotblas.o
__f95_error_message_and_abort       /local/cat2/apps-archive/ 
SUNWspro-12/prod/lib/libblas.a(caxpy.o)
PyExc_ValueError                    build/temp.solaris-2.9-i86pc-2.5/ 
numpy/core/blasdot/_dotblas.o
MAIN__                              /local/solaris86/apps/gcc-3.4.5/ 
bin/../lib/gcc/i386-pc-solaris2.9/3.4.5/../../../libfrtbegin.a 
(frtbegin.o)
PyErr_SetString                     build/temp.solaris-2.9-i86pc-2.5/ 
numpy/core/blasdot/_dotblas.o
__mt_get_next_chunk_invoke_mfunc_once_int_ /local/cat2/apps-archive/ 
SUNWspro-12/prod/lib/libblas.a(cgemv.o)
PyErr_Format                        build/temp.solaris-2.9-i86pc-2.5/ 
numpy/core/blasdot/_dotblas.o
PyCObject_Type                      build/temp.solaris-2.9-i86pc-2.5/ 
numpy/core/blasdot/_dotblas.o
PyTuple_New                         build/temp.solaris-2.9-i86pc-2.5/ 
numpy/core/blasdot/_dotblas.o
PyErr_Print                         build/temp.solaris-2.9-i86pc-2.5/ 
numpy/core/blasdot/_dotblas.o
__omp_in_parallel_                  /local/cat2/apps-archive/ 
SUNWspro-12/prod/lib/libblas.a(using_threads.o)
__f90_allocate2                     /local/cat2/apps-archive/ 
SUNWspro-12/prod/lib/libblas.a(cgemm.o)
PyImport_ImportModule               build/temp.solaris-2.9-i86pc-2.5/ 
numpy/core/blasdot/_dotblas.o
Py_InitModule4                      build/temp.solaris-2.9-i86pc-2.5/ 
numpy/core/blasdot/_dotblas.o
_Py_NoneStruct                      build/temp.solaris-2.9-i86pc-2.5/ 
numpy/core/blasdot/_dotblas.o
__omp_get_max_threads_              /local/cat2/apps-archive/ 
SUNWspro-12/prod/lib/libblas.a(using_threads.o)
__mt_MasterFunction_rtc_            /local/cat2/apps-archive/ 
SUNWspro-12/prod/lib/libblas.a(cgemv.o)
__f90_deallocate                    /local/cat2/apps-archive/ 
SUNWspro-12/prod/lib/libblas.a(cgemm.o)
PyEval_RestoreThread                build/temp.solaris-2.9-i86pc-2.5/ 
numpy/core/blasdot/_dotblas.o
ld: fatal: Symbol referencing errors. No output written to build/ 
lib.solaris-2.9-i86pc-2.5/numpy/core/_dotblas.so
collect2: ld returned 1 exit status



More information about the SciPy-user mailing list