[SciPy-user] building numpy/scipy on Solaris

raphael langella raphael.langella@steria....
Tue Mar 27 08:21:54 CDT 2007


OK, I tried so many different ways of compiling numpy with libsunperf, I
think I'm heading nowhere.
Let's try with Atlas. It's much more documented and tested.
I get this when compiling numpy :

gcc -shared
build/temp.solaris-2.8-sun4u-2.5/numpy/core/blasdot/_dotblas.o
-L/tmp/ATLAS/lib/SunOS_SunUSIII_8 -llapack -lf77blas -lcblas -latlas -o
build/lib.solaris-2.8-sun4u-2.5/numpy/core/_dotblas.so
Text relocation remains                         referenced
    against symbol                  offset      in file
ATL_zupKBmm32_8_1_b0                0x514      
/tmp/ATLAS/lib/SunOS_SunUSIII_8/libatlas.a(ATL_zupKBmm_b0.o)
...
(hundreds of similar lines)
...
ATL_zaxpby_aX_bXi0                  0x1a8      
/tmp/ATLAS/lib/SunOS_SunUSIII_8/libatlas.a(ATL_zaxpby.o)
ld: fatal: relocations remain against allocatable but non-writable sections
collect2: ld returned 1 exit status
error: Command "gcc -shared
build/temp.solaris-2.8-sun4u-2.5/numpy/core/blasdot/_dotblas.o
-L/tmp/ATLAS/lib/SunOS_SunUSIII_8 -llapack -lf77blas -lcblas -latlas -o
build/lib.solaris-2.8-sun4u-2.5/numpy/core/_dotblas.so" failed with exit
status 1

by the way, my site.cfg looks like this :
[DEFAULT]
library_dirs = /tmp/ATLAS/lib/SunOS_SunUSIII_8
include_dirs = /tmp/ATLAS/include/SunOS_SunUSIII_8

[atlas]
atlas_libs = lapack, f77blas, cblas, atlas

I also tried to add search_static_first = 0
but it didn't change anything. So, I converted all the atlas library to
dynamic versions and tried again :

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

creating build/temp.solaris-2.8-sun4u-2.5/numpy/core/blasdot
compile options: '-DNO_ATLAS_INFO=2 -Inumpy/core/blasdot
-Inumpy/core/include -Ibuild/src.solaris-2.8-sun4u-2.5/numpy/core
-Inumpy/core/src -Inumpy/core/include
-I/Produits/publics/sparc.SunOS.5.8/python/2.5.0/include/python2.5 -c'
gcc: numpy/core/blasdot/_dotblas.c
gcc -shared
build/temp.solaris-2.8-sun4u-2.5/numpy/core/blasdot/_dotblas.o
-L/tmp/ATLAS/lib/SunOS_SunUSIII_8 -llapack -lf77blas -lcblas -latlas -o
build/lib.solaris-2.8-sun4u-2.5/numpy/core/_dotblas.so
ld: fatal: symbol `lsame_' is multiply-defined:
        (file /tmp/ATLAS/lib/SunOS_SunUSIII_8/liblapack.so type=FUNC;
file /tmp/ATLAS/lib/SunOS_SunUSIII_8/libf77blas.so type=FUNC);
ld: fatal: symbol `xerbla_' is multiply-defined:
        (file /tmp/ATLAS/lib/SunOS_SunUSIII_8/liblapack.so type=FUNC;
file /tmp/ATLAS/lib/SunOS_SunUSIII_8/libf77blas.so type=FUNC);
ld: fatal: File processing errors. No output written to
build/lib.solaris-2.8-sun4u-2.5/numpy/core/_dotblas.so
collect2: ld returned 1 exit status
ld: fatal: symbol `lsame_' is multiply-defined:
        (file /tmp/ATLAS/lib/SunOS_SunUSIII_8/liblapack.so type=FUNC;
file /tmp/ATLAS/lib/SunOS_SunUSIII_8/libf77blas.so type=FUNC);
ld: fatal: symbol `xerbla_' is multiply-defined:
        (file /tmp/ATLAS/lib/SunOS_SunUSIII_8/liblapack.so type=FUNC;
file /tmp/ATLAS/lib/SunOS_SunUSIII_8/libf77blas.so type=FUNC);
ld: fatal: File processing 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 "gcc -shared
build/temp.solaris-2.8-sun4u-2.5/numpy/core/blasdot/_dotblas.o
-L/tmp/ATLAS/lib/SunOS_SunUSIII_8 -llapack -lf77blas -lcblas -latlas -o
build/lib.solaris-2.8-sun4u-2.5/numpy/core/_dotblas.so" failed with exit
status 1

I tried with both GNU and Sun ld with same result.
Any idea ?
-------------- next part --------------
_______________________________________________
SciPy-user mailing list
SciPy-user@scipy.org
http://projects.scipy.org/mailman/listinfo/scipy-user


More information about the SciPy-user mailing list