Cmake error building root on ubuntu 18.04


_ROOT Version: v6-14-06
_Platform: ubuntu 18.04
_Compiler: gcc 7.3.0


Hello,

I am trying to build root on ubuntu 18.04 and cmake returns an error “Configuring incomplete, errors occurred”. The Makefile is not generated. Below I list the output of cmake:

$ cmake …/root
– The C compiler identification is GNU 7.3.0
– The CXX compiler identification is GNU 7.3.0
– Check for working C compiler: /usr/bin/cc
– Check for working C compiler: /usr/bin/cc – works
– Detecting C compiler ABI info
– Detecting C compiler ABI info - done
– Detecting C compile features
– Detecting C compile features - done
– Check for working CXX compiler: /usr/bin/c++
– Check for working CXX compiler: /usr/bin/c++ – works
– Detecting CXX compiler ABI info
– Detecting CXX compiler ABI info - done
– Detecting CXX compile features
– Detecting CXX compile features - done
– ROOT default compression algorithm is zlib
– Found GCC. Major version 7, minor version 7
– Performing Test HAS_CXX11
– Performing Test HAS_CXX11 - Success
– Looking for pthread.h
– Looking for pthread.h - found
– Looking for pthread_create
– Looking for pthread_create - not found
– Looking for pthread_create in pthreads
– Looking for pthread_create in pthreads - not found
– Looking for pthread_create in pthread
– Looking for pthread_create in pthread - found
– Found Threads: TRUE
– Found a 64bit system
– Found GNU compiler collection
– Performing Test GLIBCXX_USE_CXX11_ABI
– Performing Test GLIBCXX_USE_CXX11_ABI - Success
– ROOT Platform: linux
– ROOT Architecture: linuxx8664gcc
– Build Type: RelWithDebInfo
– Compiler Flags: -O3 -march=native -DNDEBUG -Wno-implicit-fallthrough -Wno-noexcept-type -pipe -m64 -Wshadow -Wall -W -Woverloaded-virtual -fsigned-char -pthread -std=c++11
– Looking for ZLib
– Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version “1.2.11”)
– Looking for Freetype
– Found Freetype: /usr/lib/x86_64-linux-gnu/libfreetype.so (found version “2.8.1”)
– Looking for PCRE
– Found PCRE: /usr/include
– Looking for LZMA
– LZMA not found. Switching on builtin_lzma option
– Building LZMA version 5.2.1 included in ROOT itself
– Looking for xxHash
– Could NOT find xxHash (missing: xxHash_LIBRARY xxHash_INCLUDE_DIR)
– xxHash not found. Switching on builtin_xxhash option
– Looking for LZ4
– Could NOT find LZ4 (missing: LZ4_LIBRARY LZ4_INCLUDE_DIR)
– LZ4 not found. Switching on builtin_lz4 option
– Looking for X11
– Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
– Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so - found
– Looking for gethostbyname
– Looking for gethostbyname - found
– Looking for connect
– Looking for connect - found
– Looking for remove
– Looking for remove - found
– Looking for shmat
– Looking for shmat - found
– Found X11: /usr/lib/x86_64-linux-gnu/libX11.so
– X11_INCLUDE_DIR: /usr/include
– X11_LIBRARIES: /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
– X11_Xpm_INCLUDE_PATH: /usr/include
– X11_Xpm_LIB: /usr/lib/x86_64-linux-gnu/libXpm.so
– X11_Xft_INCLUDE_PATH: /usr/include
– X11_Xft_LIB: /usr/lib/x86_64-linux-gnu/libXft.so
– X11_Xext_INCLUDE_PATH:
– X11_Xext_LIB: /usr/lib/x86_64-linux-gnu/libXext.so
– Could NOT find GIF (missing: GIF_LIBRARY GIF_INCLUDE_DIR)
– Could NOT find TIFF (missing: TIFF_LIBRARY TIFF_INCLUDE_DIR)
– Found PNG: /usr/lib/x86_64-linux-gnu/libpng.so (found version “1.6.34”)
– Could NOT find JPEG (missing: JPEG_LIBRARY JPEG_INCLUDE_DIR)
– Building AfterImage library included in ROOT itself
– Looking for GSL
– Found GSL: /usr/include (found suitable version “2.4”, minimum required is “1.10”)
– Found PythonInterp: /usr/bin/python (found version “2.7.15”)
– Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython2.7.so (found version “2.7.15rc1”)
– Looking for OpenGL
– Found OpenGL: /usr/lib/x86_64-linux-gnu/libOpenGL.so
– Looking for gl2ps
– Could NOT find GL2PS (missing: GL2PS_LIBRARY GL2PS_INCLUDE_DIR)
– gl2ps not found. Switching on builtin_gl2ps option
– Looking for LibXml2
– Found LibXml2: /usr/lib/x86_64-linux-gnu/libxml2.so (found version “2.9.4”)
– Found OpenSSL: /usr/lib/x86_64-linux-gnu/libcrypto.so (found version “1.1.0g”)
– Looking for Castor
– Could NOT find CASTOR (missing: CASTOR_shift_LIBRARY CASTOR_INCLUDE_DIR)
– Castor not found. Switching off castor option
– Looking for MySQL
– Found MYSQL: /usr/include/mysql
– Looking for Oracle
– Oracle not found.
– Oracle: You can specify includes: -DORACLE_PATH_INCLUDES=/usr/include/oracle/10.2.0.3/client
– currently found includes:
– Oracle: You can specify libs: -DORACLE_PATH_LIB=/usr/lib/oracle/10.2.0.3/client/lib
– currently found libs: ORACLE_LIBRARY_OCCI-NOTFOUND;ORACLE_LIBRARY_CLNTSH-NOTFOUND;ORACLE_LIBRARY_LNNZ-NOTFOUND
– Oracle not found. Switching off oracle option
– Looking for PostgreSQL
– Could NOT find PostgreSQL (missing: POSTGRESQL_INCLUDE_DIR POSTGRESQL_LIBRARY)
– PostgreSQL not found. Switching off pgsql option
– Looking for SQLite
– Found PkgConfig: /usr/bin/pkg-config (found version “0.29.1”)
– Could NOT find Sqlite (missing: SQLITE_INCLUDE_DIR SQLITE_LIBRARIES)
– SQLite not found. Switching off sqlite option
– Looking for Pythia6
– Pythia6 not found. Switching off pythia6 option
– Looking for Pythia8
– Could NOT find Pythia8 (missing: PYTHIA8_INCLUDE_DIR PYTHIA8_LIBRARY)
– Pythia8 not found. Switching off pythia8 option
– Looking for FFTW3
– Found fftw3 includes at /usr/include
– Found fftw3 library at /usr/lib/x86_64-linux-gnu/libfftw3.so
– Looking for CFITSIO
– Found CFITSIO: /usr/include
– Found CFITSIO version: 3.43
– Looking for XROOTD
– XROOTD not found. Set environment variable XRDSYS to point to your XROOTD installation
– Alternatively, you can also enable the option ‘builtin_xrootd’ to build XROOTD internally
– For the time being switching OFF ‘xrootd’ option
– Could NOT find GFAL (missing: GFAL_INCLUDE_DIR SRM_IFCE_INCLUDE_DIR GFAL_LIBRARY)
– GFAL library not found. Set variable GFAL_DIR to point to your gfal installation
and the variable SRM_IFCE_DIR to the srm_ifce installation
– For the time being switching OFF ‘gfal’ option
– Checking for module ‘davix>=0.6.4’
– No package ‘davix’ found
– Looking for uuid_generate_random in uuid
– Looking for uuid_generate_random in uuid - not found
– Could NOT find uuid (missing: UUID_INCLUDE_DIR)
– Davix dependencies not found, switching OFF ‘davix’ option.
– Looking for TBB
– Could NOT find TBB (missing: TBB_ROOT_DIR TBB_INCLUDE_DIR TBB_LIBRARY)
– TBB not found. Switching on builtin_tbb option
– Performing Test CXX_HAS_mno_rtm
– Performing Test CXX_HAS_mno_rtm - Success
– Looking for VDT
– Could NOT find VDT (missing: VDT_INCLUDE_DIR VDT_LIBRARY)
– VDT not found. Ensure that the installation of VDT is in the CMAKE_PREFIX_PATH
– Switching ON ‘builtin_vdt’ option
– Looking for BLAS for optional parts of TMVA
– A library with BLAS API not found. Please specify library location.
– Using GSL CBLAS for optional parts of TMVA
– Enabled support for: asimage astiff builtin_afterimage builtin_ftgl builtin_gl2ps builtin_glew builtin_llvm builtin_clang builtin_lzma builtin_lz4 builtin_tbb builtin_vdt builtin_xxhash cling cxx11 exceptions explicitlink fftw3 fitsio gdml genvector http imt mathmore mysql opengl pch python roofit shared ssl thread tmva tmva-cpu vdt x11 xft xml
– The ASM compiler identification is GNU
– Found assembler: /usr/bin/cc
– Looking for backtrace
– Looking for backtrace - found
– backtrace facility detected in default set of libraries
– Found Backtrace: /usr/include
– Native target architecture is X86
– Threads disabled.
– Doxygen disabled.
– Go bindings disabled.
– Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH)
– Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH)
– OCaml bindings disabled.
– LLVM host triple: x86_64-unknown-linux-gnu
– LLVM default target triple: x86_64-unknown-linux-gnu
– Building with -fPIC
– Constructing LLVMBuild project information
– Linker detection: GNU ld
– SysLibs: rt;dl;-lpthread;/usr/lib/x86_64-linux-gnu/libz.so
– Targeting X86
– Clang version: 5.0.0
– Cling version (from VERSION file): ROOT_0.6~dev
– Cling will look for C++ headers in ‘/usr/include/c++/7:/usr/include/x86_64-linux-gnu/c++/7:/usr/include/c++/7/backward’ at runtime.
– And then fallback to: ‘x86_64-linux-gnu-g+±7’
– Performing Test CXX_HAS_Wno_maybe_uninitialized
– Performing Test CXX_HAS_Wno_maybe_uninitialized - Success
– Performing Test CXX_HAS_fno_rtti
– Performing Test CXX_HAS_fno_rtti - Success
– Performing Test C_HAS_Wno_strict_overflow
– Performing Test C_HAS_Wno_strict_overflow - Success
– Performing Test C_HAS_Wno_maybe_uninitialized
– Performing Test C_HAS_Wno_maybe_uninitialized - Success
– Performing Test C_HAS_Wno_parentheses_equality
– Performing Test C_HAS_Wno_parentheses_equality - Success
– Use SSL API VERSION 1.1 for civetweb
– Performing Test CXX_HAS_fno_strict_aliasing
– Performing Test CXX_HAS_fno_strict_aliasing - Success
– Performing Test CXX_HAS_Wno_parentheses_equality
– Performing Test CXX_HAS_Wno_parentheses_equality - Success
– Using TMVA-DNN with gslcblas installation
– TMVA: Deactivate PyMVA because numpy is not found
CMake Error: Attempt to add a custom rule to output “/home/giraudpf/share/root-build/etc/dictpch/allLinkDefs.h.rule” which already has a custom rule.
CMake Error: Attempt to add a custom rule to output “/home/giraudpf/share/root-build/etc/allDict.cxx.pch.rule” which already has a custom rule.
CMake Error: Attempt to add a custom rule to output “/home/giraudpf/share/root-build/tutorials/hsimple.root.rule” which already has a custom rule.
– Performing Test found_setresuid
– Performing Test found_setresuid - Success
– Performing Test found_stdstringview
– Performing Test found_stdstringview - Failed
– Performing Test found_stdexpstringview
– Performing Test found_stdexpstringview - Failed
– Performing Test found_stdapply
– Performing Test found_stdapply - Failed
– Performing Test found_stdinvoke
– Performing Test found_stdinvoke - Failed
– Performing Test found_stdindexsequence
– Performing Test found_stdindexsequence - Failed
– Performing Test found_attribute_always_inline
– Performing Test found_attribute_always_inline - Success
Running /home/giraudpf/share/root/build/unix/compiledata.sh
Making /home/giraudpf/share/root-build/include/compiledata.h
– Configuring incomplete, errors occurred!
See also “/home/giraudpf/share/root-build/CMakeFiles/CMakeOutput.log”.
See also “/home/giraudpf/share/root-build/CMakeFiles/CMakeError.log”.

Below I upload the two above mentioned log files:

CMakeError.log.txt (41.2 KB)
CMakeOutput.log.txt (168.2 KB)

Do you understand what is the problem ?

Thanks!
Pierre-François

Have you sourced a thisroot.sh script before trying to build ROOT 6.14.06? I just downloaded that version and configured it without problems on Ubuntu 18.04. Can you please give more details on how you are configuring ROOT?

Indeed you are right: I had some faulty (gitignored) files left over in my source tree. I cleaned up and it seems to work now.

Sorry about the confusion, and thanks for the help!

Cheers,
Pierre-François

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.