ROOT Version: 6.22.99
_Platform: Ubuntu 18.04
_Compiler:gcc 9.3
Hi
I have encountered the following problem when compiling ROOT. Updating Python and gcc seems to have no effect. Hopefully there is an easy fix.
Kind regards. Rasmus
Scanning dependencies of target JupyROOT2_7
[ 77%] Building CXX object bindings/jupyroot/CMakeFiles/JupyROOT2_7.dir/src/IOHandler.cxx.o
[ 77%] Built target G__unordered_multimapDict
Scanning dependencies of target Rint
[ 77%] Building CXX object core/rint/CMakeFiles/Rint.dir/src/TRint.cxx.o
[ 77%] Linking CXX shared library …/…/lib/libJupyROOT3_8.so
/usr/bin/ld: /usr/local/lib/libpython3.8.a(longobject.o): relocation R_X86_64_32 against `.rodata.str1.1’ can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libpython3.8.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
bindings/jupyroot/CMakeFiles/JupyROOT3_8.dir/build.make:102: recipe for target ‘lib/libJupyROOT3_8.so’ failed
make[2]: *** [lib/libJupyROOT3_8.so] Error 1
CMakeFiles/Makefile2:26475: recipe for target ‘bindings/jupyroot/CMakeFiles/JupyROOT3_8.dir/all’ failed
make[1]: *** [bindings/jupyroot/CMakeFiles/JupyROOT3_8.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs…
[ 77%] Building CXX object core/rint/CMakeFiles/Rint.dir/src/TTabCom.cxx.o
[ 77%] Linking CXX shared library …/…/lib/libJupyROOT2_7.so
[ 77%] Built target JupyROOT2_7
[ 77%] Linking CXX shared library …/…/lib/libRint.so
[ 77%] Linking CXX shared library …/…/…/…/lib/libcppyy_backend2_7.so
[ 77%] Built target Rint
[ 77%] Built target cppyy_backend2_7
Makefile:168: recipe for target ‘all’ failed
make: *** [all] Error 2