# New error on build

**URL:** <https://root-forum.cern.ch/t/new-error-on-build/51117>\
**Category:** ROOT\
**Tags:** build, root\
**Created:** [August 9, 2022, 11:40am UTC](https://root-forum.cern.ch/t/new-error-on-build/51117 "2022-08-09T11:40:22Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![chromafunk](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/chromafunk/32/30364_2.png) [@chromafunk](https://root-forum.cern.ch/u/chromafunk)\
**Post date:** [August 9, 2022, 11:40am UTC](https://root-forum.cern.ch/t/new-error-on-build/51117/1 "2022-08-09T11:40:22Z")

</div>

so I’m running an automated root build ( clones latest master )

and I’m getting this error on build this last time I tested it :

```auto
CMake Error at XROOTD-stamp/download-XROOTD.cmake:170 (message):
  Each download failed!

    
    

CMake Error at XROOTD-stamp/XROOTD-download-Release-impl.cmake:9 (message):
  Command failed (1):

   '/usr/local/bin/cmake' '-P' external_builds/root/rootbuild/builtins/xrootd/XROOTD-prefix/src/XROOTD-stamp/download-XROOTD.cmake'

```

at the logs:

```auto
-- verifying file...
       file='external_builds/root/rootbuild/builtins/xrootd/XROOTD-prefix/src/xrootd-5.4.3.tar.gz'
-- SHA256 hash of
   external_builds/root/rootbuild/builtins/xrootd/XROOTD-prefix/src/xrootd-5.4.3.tar.gz
  does not match expected value
    expected: '56a29c88232f2f384e151b148fcaaa8d8db5c5fdc4615193978c8f4f3a99663c'
      actual: '2d58210161ef61fabad7c86a038f2ef71c2ba1a0e782fcb6b8c92a1ba5f2a2b3'
-- Hash mismatch, removing...

```

---

<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:** [August 9, 2022, 11:45am UTC](https://root-forum.cern.ch/t/new-error-on-build/51117/2 "2022-08-09T11:45:25Z")

</div>

Hi @chromafunk ,

this was fixed by a recent commit, can you try again with latest master?

Cheers,  
Enrico

---

<div class="post-metadata">

**Author:** ![chromafunk](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/chromafunk/32/30364_2.png) [@chromafunk](https://root-forum.cern.ch/u/chromafunk)\
**Post date:** [August 9, 2022, 11:53am UTC](https://root-forum.cern.ch/t/new-error-on-build/51117/3 "2022-08-09T11:53:05Z")

</div>

Hi Enrico, the automated install does this : `git clone --branch latest-stable --depth=1 https://github.com/root-project/root.git`

and I just tested it right now but still happens … was this fixed on this branch ?

---

<div class="post-metadata">

**Author:** ![chromafunk](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/chromafunk/32/30364_2.png) [@chromafunk](https://root-forum.cern.ch/u/chromafunk)\
**Post date:** [August 9, 2022, 11:59am UTC](https://root-forum.cern.ch/t/new-error-on-build/51117/4 "2022-08-09T11:59:25Z")

</div>

sorry did not read correctly, I’m testing with latest master now, will let you know

---

<div class="post-metadata">

**Author:** ![chromafunk](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/chromafunk/32/30364_2.png) [@chromafunk](https://root-forum.cern.ch/u/chromafunk)\
**Post date:** [August 9, 2022, 12:07pm UTC](https://root-forum.cern.ch/t/new-error-on-build/51117/5 "2022-08-09T12:07:51Z")

</div>

seems to be building now, thanks

is it safe to switch it to latest master instead of latest-stable ?

---

<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:** [August 9, 2022, 1:17pm UTC](https://root-forum.cern.ch/t/new-error-on-build/51117/6 "2022-08-09T13:17:38Z")

</div>

Hi @chromafunk ,

`latest-stable` points to the latest released version (6.26.06 at the time of writing). Normally it’s a safe bet (hence the name), but unfortunately when something like this happens (the hash of the xrootd package changed) it breaks builds that use built-in xrootd and expect the old hash.

`master` points to the tip of the development branch – it usually compiles and works fine (all ROOT devs based their dev work on `master`) it’s definitely less stable than `latest-stable`.

I just realized that the best of both worlds is probably using the `v6-26-00-patches` branch, which is where `latest-stable` will point to as soon as we have the next patch release.

Sorry for the trouble!  
Enrico

---

<div class="post-metadata">

**Author:** ![chromafunk](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/chromafunk/32/30364_2.png) [@chromafunk](https://root-forum.cern.ch/u/chromafunk)\
**Post date:** [August 9, 2022, 1:37pm UTC](https://root-forum.cern.ch/t/new-error-on-build/51117/7 "2022-08-09T13:37:46Z")

</div>

understood, no problem and thank you Enrico

---

<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:** [August 23, 2022, 1:38pm UTC](https://root-forum.cern.ch/t/new-error-on-build/51117/8 "2022-08-23T13:38:37Z")

</div>

Closed on August 23, 2022, 1:38pm UTC

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