[Numpy-discussion] Compiling numpy with 64 bits support under Solaris

Langella Raphael raphael.langella@steria.cnes...
Fri Sep 14 02:27:38 CDT 2007


Hi,
I'm trying to compile numpy with 64 bits support under 
Sparc/Solaris 8. I've already compiled Python 2.5.1 with 64 
bits. I've set up my environnement with :

export CC="gcc -mcpu=v9 -m64 -D_LARGEFILE64_SOURCE=1"
export CXX="g++ -mcpu=v9 -m64 -D_LARGEFILE64_SOURCE=1"
export LDFLAGS='-mcpu=v9 -m64'
export LDDFLAGS='-mcpu=v9 -m64 -G'

I also compiled blas and lapack in 64 bits. I know I don't 
need them for numpy, but I will soon when I'll compile scipy. 
I've tried to set up my site.cfg, tu use libfblas and 
libflapack and it didn't work. I tried libsunperf and got the 
same result :

/outils_std/csw/gcc3/bin/g77 -mcpu=v9 -m64 
build/temp.solaris-2.8-sun4u-2.5/numpy/core/blasdot/_dotblas.o
 -L/outils_std/SUNS11/SUNWspro/lib/v9 
-L/outils_std/csw/gcc3/bin/../lib/gcc/sparc-sun-solaris2.8/3.4
.4 -lsunperf -lg2c -o 
build/lib.solaris-2.8-sun4u-2.5/numpy/core/_dotblas.so
Undefined                       first referenced
 symbol                             in file
PyExc_ImportError                   
build/temp.solaris-2.8-sun4u-2.5/numpy/core/blasdot/_dotblas.o
PyCObject_AsVoidPtr                 
build/temp.solaris-2.8-sun4u-2.5/numpy/core/blasdot/_dotblas.o
PyArg_ParseTuple                    
build/temp.solaris-2.8-sun4u-2.5/numpy/core/blasdot/_dotblas.o
PyExc_RuntimeError                  
build/temp.solaris-2.8-sun4u-2.5/numpy/core/blasdot/_dotblas.o
PyEval_SaveThread                   
build/temp.solaris-2.8-sun4u-2.5/numpy/core/blasdot/_dotblas.o
PyObject_GetAttrString              
build/temp.solaris-2.8-sun4u-2.5/numpy/core/blasdot/_dotblas.o
PyExc_ValueError                    
build/temp.solaris-2.8-sun4u-2.5/numpy/core/blasdot/_dotblas.o
MAIN__                              
/outils_std/csw/gcc3/bin/../lib/gcc/sparc-sun-solaris2.8/3.4.4
/../../../sparcv9/libfrtbegin.a(frtbegin.o)
PyErr_SetString                     
build/temp.solaris-2.8-sun4u-2.5/numpy/core/blasdot/_dotblas.o
PyErr_Format                        
build/temp.solaris-2.8-sun4u-2.5/numpy/core/blasdot/_dotblas.o
PyCObject_Type                      
build/temp.solaris-2.8-sun4u-2.5/numpy/core/blasdot/_dotblas.o
PyTuple_New                         
build/temp.solaris-2.8-sun4u-2.5/numpy/core/blasdot/_dotblas.o
PyErr_Print                         
build/temp.solaris-2.8-sun4u-2.5/numpy/core/blasdot/_dotblas.o
PyImport_ImportModule               
build/temp.solaris-2.8-sun4u-2.5/numpy/core/blasdot/_dotblas.o
_Py_NoneStruct                      
build/temp.solaris-2.8-sun4u-2.5/numpy/core/blasdot/_dotblas.o
Py_InitModule4_64                   
build/temp.solaris-2.8-sun4u-2.5/numpy/core/blasdot/_dotblas.o
PyEval_RestoreThread                
build/temp.solaris-2.8-sun4u-2.5/numpy/core/blasdot/_dotblas.o
ld: fatal: Symbol referencing errors. No output written to 
build/lib.solaris-2.8-sun4u-2.5/numpy/core/_dotblas.so
collect2: ld returned 1 exit status
Undefined                       first referenced
 symbol                             in file
PyExc_ImportError                   
build/temp.solaris-2.8-sun4u-2.5/numpy/core/blasdot/_dotblas.o
PyCObject_AsVoidPtr                 
build/temp.solaris-2.8-sun4u-2.5/numpy/core/blasdot/_dotblas.o
PyArg_ParseTuple                    
build/temp.solaris-2.8-sun4u-2.5/numpy/core/blasdot/_dotblas.o
PyExc_RuntimeError                  
build/temp.solaris-2.8-sun4u-2.5/numpy/core/blasdot/_dotblas.o
PyEval_SaveThread                   
build/temp.solaris-2.8-sun4u-2.5/numpy/core/blasdot/_dotblas.o
PyObject_GetAttrString              
build/temp.solaris-2.8-sun4u-2.5/numpy/core/blasdot/_dotblas.o
PyExc_ValueError                    
build/temp.solaris-2.8-sun4u-2.5/numpy/core/blasdot/_dotblas.o
MAIN__                              
/outils_std/csw/gcc3/bin/../lib/gcc/sparc-sun-solaris2.8/3.4.4
/../../../sparcv9/libfrtbegin.a(frtbegin.o)
PyErr_SetString                     
build/temp.solaris-2.8-sun4u-2.5/numpy/core/blasdot/_dotblas.o
PyErr_Format                        
build/temp.solaris-2.8-sun4u-2.5/numpy/core/blasdot/_dotblas.o
PyCObject_Type                      
build/temp.solaris-2.8-sun4u-2.5/numpy/core/blasdot/_dotblas.o
PyTuple_New                         
build/temp.solaris-2.8-sun4u-2.5/numpy/core/blasdot/_dotblas.o
PyErr_Print                         
build/temp.solaris-2.8-sun4u-2.5/numpy/core/blasdot/_dotblas.o
PyImport_ImportModule               
build/temp.solaris-2.8-sun4u-2.5/numpy/core/blasdot/_dotblas.o
_Py_NoneStruct                      
build/temp.solaris-2.8-sun4u-2.5/numpy/core/blasdot/_dotblas.o
Py_InitModule4_64                   
build/temp.solaris-2.8-sun4u-2.5/numpy/core/blasdot/_dotblas.o
PyEval_RestoreThread                
build/temp.solaris-2.8-sun4u-2.5/numpy/core/blasdot/_dotblas.o
ld: fatal: Symbol referencing errors. No output written to 
build/lib.solaris-2.8-sun4u-2.5/numpy/core/_dotblas.so
collect2: ld returned 1 exit status
error: Command "/outils_std/csw/gcc3/bin/g77 -mcpu=v9 -m64 
build/temp.solaris-2.8-sun4u-2.5/numpy/core/blasdot/_dotblas.o
 -L/outils_std/SUNS11/SUNWspro/lib/v9 
-L/outils_std/csw/gcc3/bin/../lib/gcc/sparc-sun-solaris2.8/3.4
.4 -lsunperf -lg2c -o 
build/lib.solaris-2.8-sun4u-2.5/numpy/core/_dotblas.so" 
failed with exit status 1

Does numpy and scipy support 64 bits under Sparc/Solaris?
Thanks.

Regards,
Raphaël Langella


More information about the Numpy-discussion mailing list