From: Travis O. <oli...@ee...> - 2006-10-11 16:50:53
|
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 |