Compile with atlas 3.7.17 fails

Travis Oliphant oliphant at ee.byu.edu
Wed Oct 11 12:50:51 EDT 2006


Hanno Klemm wrote:

>Hi, 
>
>I don't know if this is a bug or just me doing something wrong (I
>suspect the latter). I try to compile numpy-1.0rc1 with python2.5 and
>atlas 3.7.17.
>
>I have build the atlas library myself, it doesn't give any errors
>under make test or make pttest, so it seems to be okay. if I try to
>build numpy I get the following error:
>
>creating build/temp.linux-x86_64-2.5/numpy/core/blasdot
>compile options: '-DATLAS_INFO="\"3.7.17\"" -Inumpy/core/blasdot
>-I/scratch/python2.5/include -Inumpy/core/include
>-Ibuild/src.linux-x86_64-2.5/numpy/core -Inumpy/core/src
>-Inumpy/core/include -I/scratch/python2.5/include/python2.5 -c'
>gcc: numpy/core/blasdot/_dotblas.c
>gcc -pthread -shared
>build/temp.linux-x86_64-2.5/numpy/core/blasdot/_dotblas.o
>-L/scratch/python2.5/lib -lcblas -latlas -o
>build/lib.linux-x86_64-2.5/numpy/core/_dotblas.so
>/usr/bin/ld: /scratch/python2.5/lib/libcblas.a(cblas_dgemm.o):
>relocation R_X86_64_32 can not be used when making a shared object;
>recompile with -fPIC
>  
>

This may be part of your problem.  It's looks like the linker is having 
a hard time making use of your compiled extension in a shared library.  
Perhaps you should make sure -fPIC is on when you compile atlas (I'm not 
sure how to do that --- perhaps setting CCFLAGS environment variable to 
include -fPIC would help).

-Travis


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642




More information about the NumPy-Discussion mailing list