← Back to team overview

dolfin team mailing list archive

installation error: relocation R_X86_64_32 against `a local symbol'

 


My system is x86_64-redhat-linux. The latest version of FFC, the latest version of FIAT, uBLAS boost version 1.33 and libxml2 were installed correctly.  Then, I configured dolfin with: 

./configure --prefix="/home/wenzw/local" --with-boost="/home/wenzw/local"

It genereted makefiles succesfully. But during "make", an error happened:

 relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/python2.5/config/libpython2.5.a: could not read symbols: Bad value


Any suggestion about this problem? Thanks!


Detailed information:
--------------------------------------------------------------------
make[2]: Entering directory `/home/wenzw/store/dolfin-0.6.4/src/pydolfin'
make  all-am
make[3]: Entering directory `/home/wenzw/store/dolfin-0.6.4/src/pydolfin'
/bin/sh ../../libtool --tag=CXX --mode=link g++  -DNDEBUG -g -O2 -Wall -ansi  -L/usr/local/lib/python2.5/config -lpython2.5  -lpthread -ldl  -lutil -o _dolfin.la -rpath /home/wenzw/local/lib/python2.5/site-packages/dolfin -module -lncurses   -lxml2 -lz -lpthread -lm   _dolfin_la-dolfin_wrap.lo _dolfin_la-dolfin_glue.lo  ../../src/lib/libdolfin.la -lncurses 
g++ -shared -nostdlib /usr/lib/gcc/x86_64-redhat-linux/3.4.5/../../../../lib64/crti.o /usr/lib/gcc/x86_64-redhat-linux/3.4.5/crtbeginS.o  .libs/_dolfin_la-dolfin_wrap.o .libs/_dolfin_la-dolfin_glue.o  -Wl,--rpath -Wl,/home/wenzw/store/dolfin-0.6.4/src/lib/.libs -Wl,--rpath -Wl,/home/wenzw/local/lib -L/usr/local/lib/python2.5/config -lpython2.5 -ldl -lutil -lxml2 -lz -lpthread ../../src/lib/.libs/libdolfin.so -lncurses -L/usr/lib/gcc/x86_64-redhat-linux/3.4.5 -L/usr/lib/gcc/x86_64-redhat-linux/3.4.5/../../../../lib64 -L/usr/lib/gcc/x86_64-redhat-linux/3.4.5/../../.. -L/lib/../lib64 -L/usr/lib/../lib64 -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-redhat-linux/3.4.5/crtendS.o /usr/lib/gcc/x86_64-redhat-linux/3.4.5/../../../../lib64/crtn.o  -Wl,-soname -Wl,_dolfin.so.0 -o .libs/_dolfin.so.0.0.0
/usr/bin/ld: /usr/local/lib/python2.5/config/libpython2.5.a(abstract.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/python2.5/config/libpython2.5.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[3]: *** [_dolfin.la] Error 1
make[3]: Leaving directory `/home/wenzw/store/dolfin-0.6.4/src/pydolfin'

--------------------------------------------------------------------


I have also tested: 

./configure --prefix="/home/wenzw/local" --with-boost="/home/wenzw/local" --with-pic

and 

./configure --prefix="/home/wenzw/local" --with-boost="/home/wenzw/local" --with-non-pic

but still can not get through this error.




Best Regards!
Zaiwen









Follow ups