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

**URL:** <https://root-forum.cern.ch/t/gmake-makefile-all-error-2/45488>\
**Category:** ROOT\
**Created:** [June 21, 2021, 7:40am UTC](https://root-forum.cern.ch/t/gmake-makefile-all-error-2/45488 "2021-06-21T07:40:21Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![aurelien](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/a/67e7ee/32.png) [@aurelien](https://root-forum.cern.ch/u/aurelien)\
**Post date:** [June 21, 2021, 7:40am UTC](https://root-forum.cern.ch/t/gmake-makefile-all-error-2/45488/1 "2021-06-21T07:40:21Z")

</div>

/!\ 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 ;-))

```auto
# 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

* * *

---

<div class="post-metadata">

**Author:** ![eguiraud](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/eguiraud/32/32217_2.png) [@eguiraud](https://root-forum.cern.ch/u/eguiraud)\
**Post date:** [June 21, 2021, 7:51am UTC](https://root-forum.cern.ch/t/gmake-makefile-all-error-2/45488/2 "2021-06-21T07:51:53Z")

</div>

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](https://root-forum.cern.ch/t/offline-build-update/32725)

Cheers,  
Enrico

---

<div class="post-metadata">

**Author:** ![aurelien](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/a/67e7ee/32.png) [@aurelien](https://root-forum.cern.ch/u/aurelien)\
**Post date:** [June 21, 2021, 8:00am UTC](https://root-forum.cern.ch/t/gmake-makefile-all-error-2/45488/3 "2021-06-21T08:00:07Z")

</div>

```auto
[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

```

…

```auto
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

```

…

```auto
[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

```

---

<div class="post-metadata">

**Author:** ![eguiraud](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/eguiraud/32/32217_2.png) [@eguiraud](https://root-forum.cern.ch/u/eguiraud)\
**Post date:** [June 21, 2021, 8:07am UTC](https://root-forum.cern.ch/t/gmake-makefile-all-error-2/45488/4 "2021-06-21T08:07:08Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![aurelien](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/a/67e7ee/32.png) [@aurelien](https://root-forum.cern.ch/u/aurelien)\
**Post date:** [June 21, 2021, 8:09am UTC](https://root-forum.cern.ch/t/gmake-makefile-all-error-2/45488/5 "2021-06-21T08:09:11Z")

</div>

I have edited the file to put the flag OFF

But the flag change example with xrootd

```auto
 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

```

```auto
# 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

```

```auto
[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

```

---

<div class="post-metadata">

**Author:** ![aurelien](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/a/67e7ee/32.png) [@aurelien](https://root-forum.cern.ch/u/aurelien)\
**Post date:** [June 21, 2021, 8:25am UTC](https://root-forum.cern.ch/t/gmake-makefile-all-error-2/45488/6 "2021-06-21T08:25:07Z")

</div>

Maybe it comes from another flag that put the flag ON

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [June 21, 2021, 8:26am UTC](https://root-forum.cern.ch/t/gmake-makefile-all-error-2/45488/7 "2021-06-21T08:26:38Z")

</div>

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`

---

<div class="post-metadata">

**Author:** ![eguiraud](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/eguiraud/32/32217_2.png) [@eguiraud](https://root-forum.cern.ch/u/eguiraud)\
**Post date:** [June 21, 2021, 8:33am UTC](https://root-forum.cern.ch/t/gmake-makefile-all-error-2/45488/8 "2021-06-21T08:33:17Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![amadio](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/amadio/32/12562_2.png) [@amadio](https://root-forum.cern.ch/u/amadio)\
**Post date:** [June 23, 2021, 9:15am UTC](https://root-forum.cern.ch/t/gmake-makefile-all-error-2/45488/9 "2021-06-23T09:15:41Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![aurelien](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/a/67e7ee/32.png) [@aurelien](https://root-forum.cern.ch/u/aurelien)\
**Post date:** [June 23, 2021, 9:29am UTC](https://root-forum.cern.ch/t/gmake-makefile-all-error-2/45488/10 "2021-06-23T09:29:57Z")

</div>

` -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)

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [June 23, 2021, 9:42am UTC](https://root-forum.cern.ch/t/gmake-makefile-all-error-2/45488/11 "2021-06-23T09:42:51Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [July 7, 2021, 9:43am UTC](https://root-forum.cern.ch/t/gmake-makefile-all-error-2/45488/12 "2021-07-07T09:43:42Z")

</div>

Closed on July 7, 2021, 9:43am UTC

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