ROOT Version: v6-22-00
Platform: Linux xubuntu 5.4.0-40-generic #44-Ubuntu SMP Tue Jun 23 00:01:04 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Compiler: gcc (Ubuntu 9.3.0-10ubuntu2) 9.3.0
Hi!
Having successfully built ROOT with Python3 before, I updated my repository:
git pull origin master
git checkout tags/v6-22-00
git status
showed:
HEAD detached at v6-22-00
nothing to commit, working tree clean
I have none of the “optional” dependencies installed but have all the essential dependencies:
> apt list --installed dpkg-dev cmake g++ gcc binutils libx11-dev libxpm-dev libxft-dev libxext-dev python
binutils/focal,now 2.34-6ubuntu1 amd64 [installed]
cmake/focal,now 3.16.3-1ubuntu1 amd64 [installed]
dpkg-dev/focal,focal,now 1.19.7ubuntu3 all [installed,automatic]
g++/focal,now 4:9.3.0-1ubuntu2 amd64 [installed,automatic]
gcc/focal,now 4:9.3.0-1ubuntu2 amd64 [installed]
libx11-dev/focal,now 2:1.6.9-2ubuntu1 amd64 [installed,automatic]
libxext-dev/focal,now 2:1.3.4-0ubuntu1 amd64 [installed,automatic]
libxft-dev/focal,now 2.3.3-0ubuntu1 amd64 [installed,automatic]
libxpm-dev/focal,now 1:3.5.12-1 amd64 [installed]
Note that there is no listing for python, but python 3 is available:
python3/focal,now 3.8.2-0ubuntu2 amd64 [installed]
Without deleting the cache, cmake --build .
stopped at 45%, having completed target Unix:
Built target Unix
make[2]: *** No rule to make target '/[...]/root/core/clingutils/inc/TClingRuntime.h', needed by 'core/G__Core.cxx'. Stop.
make[1]: *** [CMakeFiles/Makefile2:17452: core/CMakeFiles/G__Core.dir/all] Error 2
make: *** [Makefile:152: all] Error 2
Presuming this might be a cmake
cache problem, I re-generated the build files, after deleting the build directory, using:
cmake -DPYTHON_EXECUTABLE=/usr/bin/python3.8 -DCMAKE_CXX_STANDARD=17 -DCMAKE_INSTALL_PREFIX=/home/[my path]/ ../root
And the result was:
CMake Error at /[...]/build-root-Desktop_Clang-Release/XROOTD-prefix/src/XROOTD-stamp/XROOTD-build-Release.cmake:49 (message):
Command failed: 2
'/usr/bin/make'
See also
/[...]/build-root-Desktop_Clang-Release/XROOTD-prefix/src/XROOTD-stamp/XROOTD-build-*.log
make[2]: *** [CMakeFiles/XROOTD.dir/build.make:113: XROOTD-prefix/src/XROOTD-stamp/XROOTD-build] Error 1
make[1]: *** [CMakeFiles/Makefile2:7144: CMakeFiles/XROOTD.dir/all] Error 2
make: *** [Makefile:152: all] Error 2
Note that ‘[…]’ is my shorthand for the path to my home directory.
XROOTD-build-out.log shows that the build stops at:
Scanning dependencies of target XrdSecProt-4
[ 89%] Building CXX object src/CMakeFiles/XrdSecProt-4.dir/XrdSec/XrdSecProtect.cc.o
And XROOTD-build-err.log shows:
[I] No git repository info found. Trying to interpret VERSION_INFO
[I] src/XrdVersion.hh successfully generated
/home/[...]/build-root-Desktop_Clang-Release/XROOTD-prefix/src/XROOTD/src/XrdSec/XrdSecProtect.cc:42:10: fatal error: openssl/sha.h: No such file or directory
42 | #include "openssl/sha.h"
| ^~~~~~~~~~~~~~~
compilation terminated.
make[5]: *** [src/CMakeFiles/XrdSecProt-4.dir/build.make:63: src/CMakeFiles/XrdSecProt-4.dir/XrdSec/XrdSecProtect.cc.o] Error 1
make[4]: *** [CMakeFiles/Makefile2:1539: src/CMakeFiles/XrdSecProt-4.dir/all] Error 2
make[3]: *** [Makefile:130: all] Error 2
All of which leads me wonder:
- Have I missed something obvious in my update sequence?
- Would this error suggest that there is an undeclared dependency of XROOTD on OpenSSL?
- Even if the problem with XROOTD is fixed, will the problem building
G__Core.cxx
recur?
FWIW: the cmake
command line works fine for v6-20-00, but the initial build order is different.
Many thanks in advance for any help you can give…
Marv