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

Langella Raphael raphael.langella@steria.cnes...
Fri Sep 14 05:33:16 CDT 2007


> -----Message d'origine-----
> De : Langella Raphael 
> Envoyé : vendredi 14 septembre 2007 11:56
> À : 'SciPy Users List'
> Objet : RE: [Numpy-discussion] Compiling numpy with 64 bits 
> support under Solaris
> 
> > -----Message d'origine-----
> > De : numpy-discussion-bounces@scipy.org
> > [mailto:numpy-discussion-bounces@scipy.org] De la part de David 
> > Cournapeau Envoyé : vendredi 14 septembre 2007 09:27 À : 
> Discussion of 
> > Numerical Python Objet : Re: [Numpy-discussion] Compiling 
> numpy with 
> > 64 bits support under Solaris
> > 
> > Langella Raphael wrote:
> > > 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 am afraid this won't work really well, because it overwrites 
> > LDFLAGS.
> > Unfortunately, AFAIK, there is no easy way to change flags used for 
> > compilation and linking. I don't think this is linked to 32 
> vs 64 bits 
> > problem (though I may be wrong; I don't know much about solaris).
> > > 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 :
> > >   
> > See
> > http://projects.scipy.org/pipermail/scipy-user/2007-September/
> > 013580.html
> > (the problem being about the sun compilers, I think this applies to 
> > sparc as well).
> 
> Thanks, I haven't noticed my old thread as been revived. I 
> would post in it, but I only recently subscribed, so I've got 
> no mail to answer to.
> Last time, I gave up trying to link with libsunperf. I linked 
> numpy and scipy against standard blas and lapack and it worked well. 
> But this time, with 64 bits, even standard blas and lapack 
> gives me errors. I've been able to compile numpy with the 
> integrated blas, but for scipy, I really need it, and I still 
> run into linking problem. The fortran code gets compiled in 
> 32 bits. How to pass flags to g77 ?

I set F77FLAGS and G77FLAGS and one of them worked, all my objects are compiled in 64 bits. But I've got this linking error (note that I'm using GNU compilers and standard blas and lapack) :

/outils_std/csw/gcc3/bin/g77 -mcpu=v9 -m64 build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/Lib/fftpack/_fftpackmodule.o build/temp.solaris-2.8-sun4u-2.5/Lib/fftpack/src/zfft.o build/temp.solaris-2.8-sun4u-2.5/Lib/fftpack/src/drfft.o build/temp.solaris-2.8-sun4u-2.5/Lib/fftpack/src/zrfft.o build/temp.solaris-2.8-sun4u-2.5/Lib/fftpack/src/zfftnd.o build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/fortranobject.o -L/outils_std/csw/gcc3/bin/../lib/gcc/sparc-sun-solaris2.8/3.4.4/sparcv9 -Lbuild/temp.solaris-2.8-sun4u-2.5 -ldfftpack -lg2c -o build/lib.solaris-2.8-sun4u-2.5/scipy/fftpack/_fftpack.so
Undefined                       first referenced
 symbol                             in file
PyString_AsString                   build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/fortranobject.o
PyArg_ParseTupleAndKeywords         build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/Lib/fftpack/_fftpackmodule.o
Py_FindMethod                       build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/fortranobject.o
PyExc_ImportError                   build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/Lib/fftpack/_fftpackmodule.o
PyCObject_AsVoidPtr                 build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/Lib/fftpack/_fftpackmodule.o
PyString_ConcatAndDel               build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/fortranobject.o
PyComplex_Type                      build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/Lib/fftpack/_fftpackmodule.o
PyString_FromString                 build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/Lib/fftpack/_fftpackmodule.o
PyExc_RuntimeError                  build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/Lib/fftpack/_fftpackmodule.o
PyDict_GetItemString                build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/fortranobject.o
PySequence_GetItem                  build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/Lib/fftpack/_fftpackmodule.o
PyString_Type                       build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/Lib/fftpack/_fftpackmodule.o
PyObject_GetAttrString              build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/Lib/fftpack/_fftpackmodule.o
PyErr_Occurred                      build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/Lib/fftpack/_fftpackmodule.o
PyExc_ValueError                    build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/fortranobject.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/build/src.solaris-2.8-sun4u-2.5/Lib/fftpack/_fftpackmodule.o
Py_BuildValue                       build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/Lib/fftpack/_fftpackmodule.o
PyDict_DelItemString                build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/fortranobject.o
PyInt_Type                          build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/Lib/fftpack/_fftpackmodule.o
PyDict_SetItemString                build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/Lib/fftpack/_fftpackmodule.o
PyErr_Format                        build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/Lib/fftpack/_fftpackmodule.o
PyType_Type                         build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/Lib/fftpack/_fftpackmodule.o
PyCObject_Type                      build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/Lib/fftpack/_fftpackmodule.o
PySequence_Check                    build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/Lib/fftpack/_fftpackmodule.o
PyErr_Print                         build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/Lib/fftpack/_fftpackmodule.o
PyErr_Clear                         build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/Lib/fftpack/_fftpackmodule.o
PyModule_GetDict                    build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/Lib/fftpack/_fftpackmodule.o
PyExc_TypeError                     build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/fortranobject.o
PyType_IsSubtype                    build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/Lib/fftpack/_fftpackmodule.o
PyMem_Free                          build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/fortranobject.o
PyExc_AttributeError                build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/fortranobject.o
PyImport_ImportModule               build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/Lib/fftpack/_fftpackmodule.o
_Py_NoneStruct                      build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/Lib/fftpack/_fftpackmodule.o
PyObject_Type                       build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/fortranobject.o
PyNumber_Int                        build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/Lib/fftpack/_fftpackmodule.o
PyObject_Str                        build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/fortranobject.o
PyErr_NewException                  build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/Lib/fftpack/_fftpackmodule.o
PyCObject_FromVoidPtr               build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/fortranobject.o
Py_InitModule4_64                   build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/Lib/fftpack/_fftpackmodule.o
PyDict_New                          build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/fortranobject.o
_PyObject_New                       build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/fortranobject.o
ld: fatal: Symbol referencing errors. No output written to build/lib.solaris-2.8-sun4u-2.5/scipy/fftpack/_fftpack.so
collect2: ld returned 1 exit status
Undefined                       first referenced
 symbol                             in file
PyString_AsString                   build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/fortranobject.o
PyArg_ParseTupleAndKeywords         build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/Lib/fftpack/_fftpackmodule.o
Py_FindMethod                       build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/fortranobject.o
PyExc_ImportError                   build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/Lib/fftpack/_fftpackmodule.o
PyCObject_AsVoidPtr                 build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/Lib/fftpack/_fftpackmodule.o
PyString_ConcatAndDel               build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/fortranobject.o
PyComplex_Type                      build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/Lib/fftpack/_fftpackmodule.o
PyString_FromString                 build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/Lib/fftpack/_fftpackmodule.o
PyExc_RuntimeError                  build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/Lib/fftpack/_fftpackmodule.o
PyDict_GetItemString                build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/fortranobject.o
PySequence_GetItem                  build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/Lib/fftpack/_fftpackmodule.o
PyString_Type                       build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/Lib/fftpack/_fftpackmodule.o
PyObject_GetAttrString              build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/Lib/fftpack/_fftpackmodule.o
PyErr_Occurred                      build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/Lib/fftpack/_fftpackmodule.o
PyExc_ValueError                    build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/fortranobject.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/build/src.solaris-2.8-sun4u-2.5/Lib/fftpack/_fftpackmodule.o
Py_BuildValue                       build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/Lib/fftpack/_fftpackmodule.o
PyDict_DelItemString                build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/fortranobject.o
PyInt_Type                          build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/Lib/fftpack/_fftpackmodule.o
PyDict_SetItemString                build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/Lib/fftpack/_fftpackmodule.o
PyErr_Format                        build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/Lib/fftpack/_fftpackmodule.o
PyType_Type                         build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/Lib/fftpack/_fftpackmodule.o
PyCObject_Type                      build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/Lib/fftpack/_fftpackmodule.o
PySequence_Check                    build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/Lib/fftpack/_fftpackmodule.o
PyErr_Print                         build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/Lib/fftpack/_fftpackmodule.o
PyErr_Clear                         build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/Lib/fftpack/_fftpackmodule.o
PyModule_GetDict                    build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/Lib/fftpack/_fftpackmodule.o
PyExc_TypeError                     build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/fortranobject.o
PyType_IsSubtype                    build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/Lib/fftpack/_fftpackmodule.o
PyMem_Free                          build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/fortranobject.o
PyExc_AttributeError                build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/fortranobject.o
PyImport_ImportModule               build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/Lib/fftpack/_fftpackmodule.o
_Py_NoneStruct                      build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/Lib/fftpack/_fftpackmodule.o
PyObject_Type                       build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/fortranobject.o
PyNumber_Int                        build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/Lib/fftpack/_fftpackmodule.o
PyObject_Str                        build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/fortranobject.o
PyErr_NewException                  build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/Lib/fftpack/_fftpackmodule.o
PyCObject_FromVoidPtr               build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/fortranobject.o
Py_InitModule4_64                   build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/Lib/fftpack/_fftpackmodule.o
PyDict_New                          build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/fortranobject.o
_PyObject_New                       build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/fortranobject.o
ld: fatal: Symbol referencing errors. No output written to build/lib.solaris-2.8-sun4u-2.5/scipy/fftpack/_fftpack.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/build/src.solaris-2.8-sun4u-2.5/Lib/fftpack/_fftpackmodule.o build/temp.solaris-2.8-sun4u-2.5/Lib/fftpack/src/zfft.o build/temp.solaris-2.8-sun4u-2.5/Lib/fftpack/src/drfft.o build/temp.solaris-2.8-sun4u-2.5/Lib/fftpack/src/zrfft.o build/temp.solaris-2.8-sun4u-2.5/Lib/fftpack/src/zfftnd.o build/temp.solaris-2.8-sun4u-2.5/build/src.solaris-2.8-sun4u-2.5/fortranobject.o -L/outils_std/csw/gcc3/bin/../lib/gcc/sparc-sun-solaris2.8/3.4.4/sparcv9 -Lbuild/temp.solaris-2.8-sun4u-2.5 -ldfftpack -lg2c -o build/lib.solaris-2.8-sun4u-2.5/scipy/fftpack/_fftpack.so" failed with exit status 1

Raphaël


More information about the SciPy-user mailing list