After executing cmake -Dgdml=ON -DCMAKE_INSTALL_PREFIX=../install ../source I receive an error message stating that the “Configuring incomplete, errors occurred!”.
In CMakeError.log I have found that
/usr/bin/ld: src.c:(.text+0x52): undefined reference to `pthread_detach'
/usr/bin/ld: src.c:(.text+0x63): undefined reference to `pthread_join'
All of my packages are up to date.
Command nm /lib/x86_64-linux-gnu/libpthread.so.0 | grep thread_detach shows that pthread_detach is present in the library of interest:
al264242@dphnpcl147:~/Documents/Files$ nm /lib/x86_64-linux-gnu/libpthread.so.0 | grep thread_detach
000000000000a980 t __pthread_detach
000000000000a980 W pthread_detach
Hi,
can you also post the full output of the cmake configuration command, and try again after removing the LD_LIBRARY_PATH customization from .bashrc and starting a new shell?
Also note that unless you have some specific needs you don’t have to compile ROOT from source: there are several other installation methods.
Hi,
thank you for your message.
I downloaded the root_v6.20.08.source.tar.gz file, extracted it, made the build directory in which I executed cmake command:
After removing export LD_LIBRARY_PATH=/lib/x86_64-linux-gnu:/usr/lib64:/usr/local/lib:/usr/lib:$LD_LIBRARY_PATH line from the .bashrc I got the same result.
I have to compile another software based on root, so this is why I tried to compile root from source, as it would be compiled with the same version of compiler.
But, I hope it will work fine with the precompiled version of root. Thank you, I will try it out.
Hi @alobasenko,
it’s hard for me to say what exactly, but there is something broken in your environment (do you have all ROOT dependencies installed (openssl-dev is called libssl-dev in Ubuntu 20.04)?).
I just tried building ROOT 6.20.08 from source in a Ubuntu 20.04 docker container, and it completed successfully with this sequence of commands: