ROOT Version: 6.18.00
Platform: Ubuntu 20.04.4_ARM (virtualized with Parallels from a Mac M1 PRO)
Compiler: gcc(g++) 9.4.0
Goodmorning,
I just received my new MAC Book PRO with M1 PRO chip and I’m trying to install root on a virtual machine (with Parallels) of Ubuntu 20.04.4 LTS.
I downloaded the source code from: root.cern/releases/release-61800/
I need to make this option (needed for the analysis tool we have in lab):
cmake -DCMAKE_INSTALL_PREFIX=/home/cmspix/daq/root-6.18.00/install -DPYTHON_EXECUTABLE=/usr/bin/python3 --enable-minuit2 -DCMAKE_CXX_STANDARD=17 -Ddavix=off ..
Everything seems fine and when I run:
cmake --build . --target install -j4
It start compiling but it stops here:
[ 80%] Generating G__Matrix.cxx, ../../lib/libMatrix_rdict.pcm, ../../lib/libMatrix.rootmap
/usr/bin/ld: ../../builtins/openssl/OPENSSL-prefix/lib/libcrypto.a(sha1-armv8.o): relocation R_AARCH64_PREL64 against symbol `OPENSSL_armcap_P' which may bind externally can not be used when making a shared object; recompile with -fPIC
../../builtins/openssl/OPENSSL-prefix/lib/libcrypto.a(sha1-armv8.o): in function `sha1_block_armv8':
(.text+0x1240): dangerous relocation: unsupported relocation
/usr/bin/ld: ../../builtins/openssl/OPENSSL-prefix/lib/libcrypto.a(sha256-armv8.o): relocation R_AARCH64_PREL64 against symbol `OPENSSL_armcap_P' which may bind externally can not be used when making a shared object; recompile with -fPIC
../../builtins/openssl/OPENSSL-prefix/lib/libcrypto.a(sha256-armv8.o): in function `sha256_block_data_order':
(.text+0xf48): dangerous relocation: unsupported relocation
/usr/bin/ld: ../../builtins/openssl/OPENSSL-prefix/lib/libcrypto.a(sha512-armv8.o): relocation R_AARCH64_PREL64 against symbol `OPENSSL_armcap_P' which may bind externally can not be used when making a shared object; recompile with -fPIC
../../builtins/openssl/OPENSSL-prefix/lib/libcrypto.a(sha512-armv8.o): in function `sha512_block_data_order':
(.text+0x10c8): dangerous relocation: unsupported relocation
collect2: error: ld returned 1 exit status
make[2]: *** [net/http/CMakeFiles/RHTTP.dir/build.make:284: lib/libRHTTP.so] Error 1
make[1]: *** [CMakeFiles/Makefile2:22291: net/http/CMakeFiles/RHTTP.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
/usr/bin/ld: ../../builtins/openssl/OPENSSL-prefix/lib/libcrypto.a(sha1-armv8.o): relocation R_AARCH64_PREL64 against symbol `OPENSSL_armcap_P' which may bind externally can not be used when making a shared object; recompile with -fPIC
../../builtins/openssl/OPENSSL-prefix/lib/libcrypto.a(sha1-armv8.o): in function `sha1_block_armv8':
(.text+0x1240): dangerous relocation: unsupported relocation
/usr/bin/ld: ../../builtins/openssl/OPENSSL-prefix/lib/libcrypto.a(sha256-armv8.o): relocation R_AARCH64_PREL64 against symbol `OPENSSL_armcap_P' which may bind externally can not be used when making a shared object; recompile with -fPIC
../../builtins/openssl/OPENSSL-prefix/lib/libcrypto.a(sha256-armv8.o): in function `sha256_block_data_order':
(.text+0xf48): dangerous relocation: unsupported relocation
/usr/bin/ld: ../../builtins/openssl/OPENSSL-prefix/lib/libcrypto.a(sha512-armv8.o): relocation R_AARCH64_PREL64 against symbol `OPENSSL_armcap_P' which may bind externally can not be used when making a shared object; recompile with -fPIC
../../builtins/openssl/OPENSSL-prefix/lib/libcrypto.a(sha512-armv8.o): in function `sha512_block_data_order':
(.text+0x10c8): dangerous relocation: unsupported relocation
collect2: error: ld returned 1 exit status
make[2]: *** [net/net/CMakeFiles/Net.dir/build.make:667: lib/libNet.so] Error 1
make[1]: *** [CMakeFiles/Makefile2:22027: net/net/CMakeFiles/Net.dir/all] Error 2
Do you have some suggestions? What I’m doing wrong?
Thanks for your help and time!