# ROOT 6.12/02 and LZ4

**URL:** <https://root-forum.cern.ch/t/root-6-12-02-and-lz4/27259>\
**Category:** ROOT\
**Tags:** cmake\
**Created:** [December 12, 2017, 5:27pm UTC](https://root-forum.cern.ch/t/root-6-12-02-and-lz4/27259 "2017-12-12T17:27:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pamputt](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pamputt/32/12526_2.png) [@pamputt](https://root-forum.cern.ch/u/pamputt)\
**Post date:** [December 12, 2017, 5:27pm UTC](https://root-forum.cern.ch/t/root-6-12-02-and-lz4/27259/1 "2017-12-12T17:27:33Z")

</div>

Hello, I downloaded ROOT 6.12/02 and tried to compile it. After few minutes, I get the following error

> CMake Error at LZ4-stamp/LZ4-download-RelWithDebInfo.cmake:16 (message):  
> Command failed: 1
> 
> ‘/opt/cmake/bin/cmake’ ‘-Dmake=’ ‘-Dconfig=’ ‘-P’ ‘/home/cea/root-6.12.02/builddir/LZ4-prefix/src/LZ4-stamp/LZ4-download-RelWithDebInfo-impl.cmake’
> 
> See also
> 
> ```
> /home/cea/root-6.12.02/builddir/LZ4-prefix/src/LZ4-stamp/LZ4-download-*.log
> 
> ```
> 
> CMakeFiles/LZ4.dir/build.make:89: recipe for target ‘LZ4-prefix/src/LZ4-stamp/LZ4-download’ failed  
> make[2]: \*\*\* [LZ4-prefix/src/LZ4-stamp/LZ4-download] Error 1  
> CMakeFiles/Makefile2:405: recipe for target ‘CMakeFiles/LZ4.dir/all’ failed  
> make[1]: \*\*\* [CMakeFiles/LZ4.dir/all] Error 2

I attach the LZ4-download-\*.log files but it seems that the problem comes from the fact the computer on which I try to install this ROOT version is not connected to the Internet.

I [already suffered](https://root-forum.cern.ch/t/cannot-compile-root-6-10/25125) of this with ROOT 6.10. I gave some arguments explaining why I think that supposing that the computer is connected to the Internet is not a good idea in the post I linked and @faustus123 gave [other arguments](https://root-forum.cern.ch/t/cannot-compile-root-6-10/25125/12).

Could you change cmake in order it fails if LZ4 is not found on the computer (without supposing that it could get it from the Internet later)?

[LZ4-download-out.txt](https://root-forum.cern.ch/uploads/default/original/2X/9/962de87a91ee64f3f6bae5fdb4afa9ffcdcde788.txt) (853 Bytes)  
[LZ4-download-err.txt](https://root-forum.cern.ch/uploads/default/original/2X/c/c89b9adb5de12584104ae49a326017177dc645b9.txt) (2.7 KB)

---

<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:** [December 13, 2017, 3:54pm UTC](https://root-forum.cern.ch/t/root-6-12-02-and-lz4/27259/2 "2017-12-13T15:54:14Z")

</div>

Hi, we are aware of the problem that certain dependencies require a network connection. This isn’t easy to address, unfortunately, at least not without some major changes to the build system. However, it is in our plan of work for next year. LZ4, TBB, etc, all need to be available without a network connection. For now, you will have to install the dependencies on your system, and use `-Dbuiltin_<package>=OFF` if you want `<package>` to not be downloaded when ROOT is built.

---

<div class="post-metadata">

**Author:** ![pamputt](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pamputt/32/12526_2.png) [@pamputt](https://root-forum.cern.ch/u/pamputt)\
**Post date:** [December 13, 2017, 7:35pm UTC](https://root-forum.cern.ch/t/root-6-12-02-and-lz4/27259/3 "2017-12-13T19:35:53Z")

</div>

Ok! Thanks for these informations. Should we open a JIRA ticket to follow the evolution of this task?

Note that concerning LZ4, ccmake does not allow me to disable builtin\_LZ4 (OFF). Is there any reason?

---

<div class="post-metadata">

**Author:** ![pamputt](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pamputt/32/12526_2.png) [@pamputt](https://root-forum.cern.ch/u/pamputt)\
**Post date:** [December 21, 2017, 9:24am UTC](https://root-forum.cern.ch/t/root-6-12-02-and-lz4/27259/4 "2017-12-21T09:24:21Z")

</div>

A [JIRA ticket](https://sft.its.cern.ch/jira/browse/ROOT-9163) has been opened aboutthis behaviour.

---

<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:** [January 4, 2018, 9:24am UTC](https://root-forum.cern.ch/t/root-6-12-02-and-lz4/27259/5 "2018-01-04T09:24:23Z")

</div>

Closed on January 4, 2018, 9:24am UTC

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