Gmake: *** [Makefile:171: all] Error 2

/!\ We works without possible Internet connexion /!
So no the sofware cannot install from internet.

Does the LHC is connected to internet ? Why ? (same for us ;-))

# cmake -DCMAKE_INSTALL_PREFIX=../root_install ../root-6.24.00 -Dxroot=off -Dasimage=on -Dcocoa=on -Dvdt=off -Dclad=off
# cmake --build . -- install -j8
# pwd
/users5/appli/produits/root-6.24/root_build
...
[ 58%] Linking CXX static library ../libLLVMCodeGen.a
[ 58%] Built target LLVMCodeGen
gmake: *** [Makefile:171: all] Error 2

ROOT Version: 6.24
Platform: RHEL8.2
Compiler: cmake version 3.18.2 // GNU Make 4.2.1


Hi @aurelien ,
that’s likely not the full error (there is no compiler or cmake error displayed). In a multi-core build -j8 the actual error message might be many lines above. Please post the result of make VERBOSE=1 -j1.

About building offline: @bellenot might be able to indicate which cmake configuration flags you should pass in order to build ROOT offline. This post might also help: Offline Build Update

Cheers,
Enrico

[ 67%] Building CXX object interpreter/llvm/src/tools/clang/lib/Lex/CMakeFiles/obj.clangLex.dir/PPCaching.cpp.o
cd /users5/appli/produits/root-6.24/root_build/interpreter/llvm/src/tools/clang/lib/Lex && /usr/bin/c++ -DGTEST_HAS_RTTI=0 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/users5/appli/produits/root-6.24/root_build/interpreter/llvm/src/tools/clang/lib/Lex -I/users5/appli/produits/root-6.24/root-6.24.00/interpreter/llvm/src/tools/clang/lib/Lex -I/users5/appli/produits/root-6.24/root-6.24.00/interpreter/llvm/src/tools/clang/include -I/users5/appli/produits/root-6.24/root_build/interpreter/llvm/src/tools/clang/include -I/usr/include/libxml2 -I/users5/appli/produits/root-6.24/root_build/interpreter/llvm/src/include -I/users5/appli/produits/root-6.24/root-6.24.00/interpreter/llvm/src/include -std=c++14 -Wno-implicit-fallthrough -Wno-noexcept-type -pipe  -Wshadow -Wall -W -Woverloaded-virtual -fsigned-char -pthread  -fPIC -fvisibility-inlines-hidden -Werror=date-time -std=c++1y -w -ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual -fno-strict-aliasing -O3 -DNDEBUG -fvisibility=hidden  -fno-exceptions -fno-rtti -std=c++14 -o CMakeFiles/obj.clangLex.dir/PPCaching.cpp.o -c /users5/appli/produits/root-6.24/root-6.24.00/interpreter/llvm/src/tools/clang/lib/Lex/PPCaching.cpp
CMake Error at VDT-stamp/VDT-download-Release.cmake:49 (message):
  Command failed: 1

   '/usr/bin/cmake' '-Dmake=' '-Dconfig=' '-P' '/users5/appli/produits/root-6.24/root_build/VDT-prefix/src/VDT-stamp/VDT-download-Release-impl.cmake'

  See also

    /users5/appli/produits/root-6.24/root_build/VDT-prefix/src/VDT-stamp/VDT-download-*.log


CMake Error at TBB-stamp/TBB-download-Release.cmake:49 (message):
  Command failed: 1

   '/usr/bin/cmake' '-Dmake=' '-Dconfig=' '-P' '/users5/appli/produits/root-6.24/root_build/TBB-prefix/src/TBB-stamp/TBB-download-Release-impl.cmake'

  See also

    /users5/appli/produits/root-6.24/root_build/TBB-prefix/src/TBB-stamp/TBB-download-*.log


gmake[2]: *** [CMakeFiles/VDT.dir/build.make:111: VDT-prefix/src/VDT-stamp/VDT-download] Error 1
gmake[2]: Leaving directory '/users5/appli/produits/root-6.24/root_build'
gmake[2]: *** [CMakeFiles/TBB.dir/build.make:111: TBB-prefix/src/TBB-stamp/TBB-download] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:9061: CMakeFiles/VDT.dir/all] Error 2
gmake[1]: *** Waiting for unfinished jobs....
gmake[2]: Leaving directory '/users5/appli/produits/root-6.24/root_build'
gmake[1]: *** [CMakeFiles/Makefile2:8600: CMakeFiles/TBB.dir/all] Error 2
[ 67%] Building CXX object interpreter/llvm/src/tools/clang/lib/Parse/CMakeFiles/obj.clangParse.dir/ParseExpr.cpp.o
[ 67%] Building CXX object interpreter/llvm/src/tools/clang/lib/Lex/CMakeFiles/obj.clangLex.dir/PPCallbacks.cpp.o
cd /users5/appli/produits/root-6.24/root_build/interpreter/llvm/src/tools/clang/lib/Parse && /usr/bin/c++ -DGTEST_HAS_RTTI=0 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/users5/appli/produits/root-6.24/root_build/interpreter/llvm/src/tools/clang/lib/Parse -I/users5/appli/produits/root-6.24/root-6.24.00/interpreter/llvm/src/tools/clang/lib/Parse -I/users5/appli/produits/root-6.24/root-6.24.00/interpreter/llvm/src/tools/clang/include -I/users5/appli/produits/root-6.24/root_build/interpreter/llvm/src/tools/clang/include -I/usr/include/libxml2 -I/users5/appli/produits/root-6.24/root_build/interpreter/llvm/src/include -I/users5/appli/produits/root-6.24/root-6.24.00/interpreter/llvm/src/include -std=c++14 -Wno-implicit-fallthrough -Wno-noexcept-type -pipe  -Wshadow -Wall -W -Woverloaded-virtual -fsigned-char -pthread  -fPIC -fvisibility-inlines-hidden -Werror=date-time -std=c++1y -w -ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual -fno-strict-aliasing -O3 -DNDEBUG -fvisibility=hidden  -fno-exceptions -fno-rtti -std=c++14 -o CMakeFiles/obj.clangParse.dir/ParseExpr.cpp.o -c /users5/appli/produits/root-6.24/root-6.24.00/interpreter/llvm/src/tools/clang/lib/Parse/ParseExpr.cpp
cd /users5/appli/produits/root-6.24/root_build/interpreter/llvm/src/tools/clang/lib/Lex && /usr/bin/c++ -DGTEST_HAS_RTTI=0 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/users5/appli/produits/root-6.24/root_build/interpreter/llvm/src/tools/clang/lib/Lex -I/users5/appli/produits/root-6.24/root-6.24.00/interpreter/llvm/src/tools/clang/lib/Lex -I/users5/appli/produits/root-6.24/root-6.24.00/interpreter/llvm/src/tools/clang/include -I/users5/appli/produits/root-6.24/root_build/interpreter/llvm/src/tools/clang/include -I/usr/include/libxml2 -I/users5/appli/produits/root-6.24/root_build/interpreter/llvm/src/include -I/users5/appli/produits/root-6.24/root-6.24.00/interpreter/llvm/src/include -std=c++14 -Wno-implicit-fallthrough -Wno-noexcept-type -pipe  -Wshadow -Wall -W -Woverloaded-virtual -fsigned-char -pthread  -fPIC -fvisibility-inlines-hidden -Werror=date-time -std=c++1y -w -ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual -fno-strict-aliasing -O3 -DNDEBUG -fvisibility=hidden  -fno-exceptions -fno-rtti -std=c++14 -o CMakeFiles/obj.clangLex.dir/PPCallbacks.cpp.o -c /users5/appli/produits/root-6.24/root-6.24.00/interpreter/llvm/src/tools/clang/lib/Lex/PPCallbacks.cpp
CMake Error at XROOTD-stamp/XROOTD-download-Release.cmake:49 (message):
  Command failed: 1

   '/usr/bin/cmake' '-Dmake=' '-Dconfig=' '-P' '/users5/appli/produits/root-6.24/root_build/XROOTD-prefix/src/XROOTD-stamp/XROOTD-download-Release-impl.cmake'

  See also

    /users5/appli/produits/root-6.24/root_build/XROOTD-prefix/src/XROOTD-stamp/XROOTD-download-*.log


gmake[2]: *** [CMakeFiles/XROOTD.dir/build.make:110: XROOTD-prefix/src/XROOTD-stamp/XROOTD-download] Error 1
gmake[2]: Leaving directory '/users5/appli/produits/root-6.24/root_build'
gmake[1]: *** [CMakeFiles/Makefile2:8717: CMakeFiles/XROOTD.dir/all] Error 2
[ 67%] Building CXX object interpreter/llvm/src/tools/clang/lib/Parse/CMakeFiles/obj.clangParse.dir/ParseExprCXX.cpp.o
cd /users5/appli/produits/root-6.24/root_build/interpreter/llvm/src/tools/clang/lib/Parse && /usr/bin/c++ -DGTEST_HAS_RTTI=0 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/users5/appli/produits/root-6.24/root_build/interpreter/llvm/src/tools/clang/lib/Parse -I/users5/appli/produits/root-6.24/root-6.24.00/interpreter/llvm/src/tools/clang/lib/Parse -I/users5/appli/produits/root-6.24/root-6.24.00/interpreter/llvm/src/tools/clang/include -I/users5/appli/produits/root-6.24/root_build/interpreter/llvm/src/tools/clang/include -I/usr/include/libxml2 -I/users5/appli/produits/root-6.24/root_build/interpreter/llvm/src/include -I/users5/appli/produits/root-6.24/root-6.24.00/interpreter/llvm/src/include -std=c++14 -Wno-implicit-fallthrough -Wno-noexcept-type -pipe  -Wshadow -Wall -W -Woverloaded-virtual -fsigned-char -pthread  -fPIC -fvisibility-inlines-hidden -Werror=date-time -std=c++1y -w -ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual -fno-strict-aliasing -O3 -DNDEBUG -fvisibility=hidden  -fno-exceptions -fno-rtti -std=c++14 -o CMakeFiles/obj.clangParse.dir/ParseExprCXX.cpp.o -c /users5/appli/produits/root-6.24/root-6.24.00/interpreter/llvm/src/tools/clang/lib/Parse/ParseExprCXX.cpp
[ 67%] Building CXX object interpreter/llvm/src/tools/clang/lib/Parse/CMakeFiles/obj.clangParse.dir/ParseInit.cpp.o
cd /users5/appli/produits/root-6.24/root_build/interpreter/llvm/src/tools/clang/lib/Parse && /usr/bin/c++ -DGTEST_HAS_RTTI=0 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/users5/appli/produits/root-6.24/root_build/interpreter/llvm/src/tools/clang/lib/Parse -I/users5/appli/produits/root-6.24/root-6.24.00/interpreter/llvm/src/tools/clang/lib/Parse -I/users5/appli/produits/root-6.24/root-6.24.00/interpreter/llvm/src/tools/clang/include -I/users5/appli/produits/root-6.24/root_build/interpreter/llvm/src/tools/clang/include -I/usr/include/libxml2 -I/users5/appli/produits/root-6.24/root_build/interpreter/llvm/src/include -I/users5/appli/produits/root-6.24/root-6.24.00/interpreter/llvm/src/include -std=c++14 -Wno-implicit-fallthrough -Wno-noexcept-type -pipe  -Wshadow -Wall -W -Woverloaded-virtual -fsigned-char -pthread  -fPIC -fvisibility-inlines-hidden -Werror=date-time -std=c++1y -w -ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual -fno-strict-aliasing -O3 -DNDEBUG -fvisibility=hidden  -fno-exceptions -fno-rtti -std=c++14 -o CMakeFiles/obj.clangParse.dir/ParseInit.cpp.o -c /users5/appli/produits/root-6.24/root-6.24.00/interpreter/llvm/src/tools/clang/lib/Parse/ParseInit.cpp
[ 67%] Building CXX object interpreter/llvm/src/tools/clang/lib/Lex/CMakeFiles/obj.clangLex.dir/PPConditionalDirectiveRecord.cpp.o

gmake[2]: Leaving directory '/users5/appli/produits/root-6.24/root_build'
[ 68%] Built target obj.clangAST
gmake[1]: Leaving directory '/users5/appli/produits/root-6.24/root_build'
gmake: *** [Makefile:171: all] Error 2
[root@einstein root_build]# cmake --build . -- install make VERBOSE=1 -j8

[  0%] Performing download step (download, verify and extract) for 'TBB'
cd /users5/appli/produits/root-6.24/root_build/TBB-prefix/src && /usr/bin/cmake -P /users5/appli/produits/root-6.24/root_build/TBB-prefix/src/TBB-stamp/TBB-download-Release.cmake
CMake Error at TBB-stamp/TBB-download-Release.cmake:49 (message):
  Command failed: 1

   '/usr/bin/cmake' '-Dmake=' '-Dconfig=' '-P' '/users5/appli/produits/root-6.24/root_build/TBB-prefix/src/TBB-stamp/TBB-download-Release-impl.cmake'

  See also

    /users5/appli/produits/root-6.24/root_build/TBB-prefix/src/TBB-stamp/TBB-download-*.log


gmake[2]: *** [CMakeFiles/TBB.dir/build.make:111: TBB-prefix/src/TBB-stamp/TBB-download] Error 1
gmake[2]: Leaving directory '/users5/appli/produits/root-6.24/root_build'
gmake[1]: *** [CMakeFiles/Makefile2:8600: CMakeFiles/TBB.dir/all] Error 2
gmake[1]: Leaving directory '/users5/appli/produits/root-6.24/root_build'
gmake: *** [Makefile:171: all] Error 2

Alright, you need to either install VDT and TBB or turn off the options that require them (plus a few others, see the post I linked).

Cheers,
Enrico

I have edited the file to put the flag OFF

But the flag change example with xrootd

 grep -B1 ^builtin CMakeCache.txt
//Build bundled copy of libAfterImage
builtin_afterimage:BOOL=ON
--
//Build CFITSIO internally (requires network)
builtin_cfitsio:BOOL=OFF
--
//Build bundled copy of Clang
builtin_clang:BOOL=ON
--
//Build bundled copy of Cling
builtin_cling:BOOL=ON
--
//Build Davix internally (requires network)
builtin_davix:BOOL=OFF
--
//Build FFTW3 internally (requires network)
builtin_fftw3:BOOL=OFF
--
//Build bundled copy of freetype
builtin_freetype:BOOL=OFF
--
//Build bundled copy of FTGL
builtin_ftgl:BOOL=OFF
--
//Build bundled copy of gl2ps
builtin_gl2ps:BOOL=ON
--
//Build bundled copy of GLEW
builtin_glew:BOOL=OFF
--
//Build GSL internally (requires network)
builtin_gsl:BOOL=OFF
--
//Build bundled copy of LLVM
builtin_llvm:BOOL=ON
--
//Build bundled copy of lz4
builtin_lz4:BOOL=ON
--
//Build bundled copy of lzma
builtin_lzma:BOOL=OFF
--
//Use nlohmann/json.hpp file distributed with ROOT
builtin_nlohmannjson:BOOL=ON
--
//Build OpenSSL internally (requires network)
builtin_openssl:BOOL=OFF
--
//Use openui5 bundle distributed with ROOT
builtin_openui5:BOOL=ON
--
//Build bundled copy of PCRE
builtin_pcre:BOOL=OFF
--
//Build TBB internally (requires network)
builtin_tbb:BOOL=OFF
--
//Build bundled copy of unuran
builtin_unuran:BOOL=OFF
--
//Build Vc internally (requires network)
builtin_vc:BOOL=OFF
--
//Build VDT internally (requires network)
builtin_vdt:BOOL=OFF
--
//Build VecCore internally (requires network)
builtin_veccore:BOOL=OFF
--
// found (Enable support for XRootD file server and client)
builtin_xrootd:BOOL=ON
--
//Build bundled copy of xxHash
builtin_xxhash:BOOL=ON
--
//Build bundled copy of zlib
builtin_zlib:BOOL=OFF
--
//Build included libzstd, or use system libzstd
builtin_zstd:BOOL=ON

# cmake --build . -- install -j8



[ 71%] Building CXX object interpreter/llvm/src/tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/RISCVToolchain.cpp.o
[ 71%] Building CXX object interpreter/llvm/src/tools/clang/lib/Serialization/CMakeFiles/obj.clangSerialization.dir/PCHContainerOperations.cpp.o
CMake Error at XROOTD-stamp/XROOTD-download-Release.cmake:49 (message):
  Command failed: 1

   '/usr/bin/cmake' '-Dmake=' '-Dconfig=' '-P' '/users5/appli/produits/root-6.24/root_build/XROOTD-prefix/src/XROOTD-stamp/XROOTD-download-Release-impl.cmake'

  See also

    /users5/appli/produits/root-6.24/root_build/XROOTD-prefix/src/XROOTD-stamp/XROOTD-download-*.log


gmake[2]: *** [CMakeFiles/XROOTD.dir/build.make:110: XROOTD-prefix/src/XROOTD-stamp/XROOTD-download] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:8838: CMakeFiles/XROOTD.dir/all] Error 2
gmake[1]: *** Waiting for unfinished jobs....
[ 71%] Building CXX object interpreter/llvm/src/tools/clang/lib/Analysis/CMakeFiles/obj.clangAnalysis.dir/ThreadSafetyCommon.cpp.o
[ 71%] Building CXX object interpreter/llvm/src/tools/clang/lib/Frontend/Rewrite/CMakeFiles/obj.clangRewriteFrontend.dir/RewriteModernObjC.cpp.o


...



[ 72%] Building CXX object interpreter/llvm/src/tools/clang/lib/CodeGen/CMakeFiles/obj.clangCodeGen.dir/VarBypassDetector.cpp.o
[ 72%] Built target obj.clangCodeGen
gmake: *** [Makefile:171: all] Error 2

[ 26%] Performing download step (download, verify and extract) for 'XROOTD'
cd /users5/appli/produits/root-6.24/root_build/XROOTD-prefix/src && /usr/bin/cmake -P /users5/appli/produits/root-6.24/root_build/XROOTD-prefix/src/XROOTD-stamp/XROOTD-download-Release.cmake
CMake Error at XROOTD-stamp/XROOTD-download-Release.cmake:49 (message):
  Command failed: 1

   '/usr/bin/cmake' '-Dmake=' '-Dconfig=' '-P' '/users5/appli/produits/root-6.24/root_build/XROOTD-prefix/src/XROOTD-stamp/XROOTD-download-Release-impl.cmake'

  See also

    /users5/appli/produits/root-6.24/root_build/XROOTD-prefix/src/XROOTD-stamp/XROOTD-download-*.log


gmake[2]: *** [CMakeFiles/XROOTD.dir/build.make:110: XROOTD-prefix/src/XROOTD-stamp/XROOTD-download] Error 1
gmake[2]: Leaving directory '/users5/appli/produits/root-6.24/root_build'
gmake[1]: *** [CMakeFiles/Makefile2:8838: CMakeFiles/XROOTD.dir/all] Error 2
gmake[1]: Leaving directory '/users5/appli/produits/root-6.24/root_build'
gmake: *** [Makefile:171: all] Error 2

Maybe it comes from another flag that put the flag ON

Hi, here is the list of built-in packages that are not available without internet connection:

  • builtin_gsl (for mathmore)
  • builtin_fftw3
  • builtin_cfitsio
  • builtin_xrootd
  • builtin_tbb (for Imt)
  • Vc
  • builtin_veccore
  • builtin_vdt
  • testing (googletest)

And should be disabled with (for example): -Dbuiltin_xrootd=OFF

You might also need to add -Dfail-on-missing=ON to make sure ROOT does not silently turn things back on.

1 Like

To avoid downloading TBB, it’s also needed to use -Dimt=OFF, which is the option that enabled use of TBB in ROOT. Just setting -Dbuiltin_tbb=OFF is not enough unless you use -Dfail-on-missing=ON like mentioned by @eguiraud.

-Dfail-on-missing=ON

Do the job perfectly with some modification of the CMakeCache.txt

So Perfect and Thanks once again !

The installation is now finished !
(you can put this thread as solved)

1 Like

BTW, we are currently working on a fix for such cases (no internet connection), i.e. automatically disabling options requiring an internet connection when there is none.

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