Building root, Issue with bin/thisroot.sh

Ok, I saw you have xpm already at /usr/lib64/libXpm.so

So, yes, the actual error is in [ 47%] Linking CXX shared library ../../lib/libCling.so /usr/bin/ld: ../../interpreter/llvm/src/lib/libclingInterpreter.a(ClangInternalState.cpp.o): relocation R_X86_64_PC32 against `_ZNK5clang12CapturedDecl7getBodyEv' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: final link failed: Bad value collect2: error: ld returned 1 exit status gmake[2]: *** [lib/libCling.so] Error 1 gmake[1]: *** [core/meta/CMakeFiles/Cling.dir/all] Error 2 gmake: *** [all] Error 2

I would tend to submit the bug report to ROOT developers as mentioned in the previous post.

In the meantime, try to edit/hack the cling CMakefile by hand and add option -fPIC if you find where it may be missing.

See also: