Compiling error: libpython3.5m.a(myreadline.o): relocation R_X86_64_32 against `.rodata.str1.1'

Hello, I like to install root on a computing cluster.
It seems, that there is a problem with the python libraries:

[ 96%] Linking CXX shared library …/…/lib/
/usr/bin/ld: /cm/shared/apps/python/3.5.0/lib/libpython3.5m.a(myreadline.o): relocation R_X86_64_32 against `.rodata.str1.1’ can not be used when making a shared object; recompile with -fPIC
/cm/shared/apps/python/3.5.0/lib/libpython3.5m.a: could not read symbols: Bad value
collect2: error: ld returned 1 exit status
make[2]: *** [lib/] Error 1
make[1]: *** [bindings/pyroot/CMakeFiles/PyROOT.dir/all] Error 2
make: *** [all] Error 2

Has any body an idea what i can try? :grimacing:

Thanks a lot in advance

ROOT Version (e.g. 6.12/02): 6.13/03
Platform, compiler (e.g. CentOS 7.3, gcc6.2): CentOS 6.8, gcc

Hi @Mr.M,

I believe you need a Python installation that has shared libraries (.so) rather than the static library (/cm/shared/apps/python/3.5.0/lib/libpython3.5m.a) that ROOT is trying to link against.

There is an --enable-shared option that you can use when building Python.



This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.