Cannot download TBB and VDT

Hi,
I get an error when trying to compile root from the git repository.
It seems to be due to an issue when downloading TBB and VDT from lcgpackages.web.cern.sh.

I get when following error after making:

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

   '/usr/local/bin/cmake' '-Dmake=' '-Dconfig=' '-P' '/home/myuser/tools/root_v6-20-06/VDT-prefix/src/VDT-stamp/VDT-download-Release-impl.cmake'

  See also

    /home/myuser/tools/root_v6-20-06/VDT-prefix/src/VDT-stamp/VDT-download-*.log


CMakeFiles/VDT.dir/build.make:89: recipe for target 'VDT-prefix/src/VDT-stamp/VDT-download' failed
make[2]: *** [VDT-prefix/src/VDT-stamp/VDT-download] Error 1
CMakeFiles/Makefile2:482: recipe for target 'CMakeFiles/VDT.dir/all' failed
make[1]: *** [CMakeFiles/VDT.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 58%] Building CXX object interpreter/llvm/src/lib/CodeGen/SelectionDAG/CMakeFiles/LLVMSelectionDAG.dir/InstrEmitter.cpp.o
CMake Error at TBB-stamp/TBB-download-Release.cmake:16 (message):
  Command failed: 1

   '/usr/local/bin/cmake' '-Dmake=' '-Dconfig=' '-P' '/home/myuser/tools/root_v6-20-06/TBB-prefix/src/TBB-stamp/TBB-download-Release-impl.cmake'

  See also

    /home/myuser/tools/root_v6-20-06/TBB-prefix/src/TBB-stamp/TBB-download-*.log


`CMakeFiles/TBB.dir/build.make:89: recipe for target 'TBB-prefix/src/TBB-stamp/TBB-download' failed
make[2]: *** [TBB-prefix/src/TBB-stamp/TBB-download] Error 1
CMakeFiles/Makefile2:299: recipe for target 'CMakeFiles/TBB.dir/all' failed
make[1]: *** [CMakeFiles/TBB.dir/all] Error 2

The output from /home/myuser/tools/root_v6-20-06/TBB-prefix/src/TBB-stamp/TBB-download-*.log is:

-- verifying file...
       file='/home/myuser/tools/root_v6-20-06/TBB-prefix/src/tbb-2019_U9.tar.gz'
-- SHA256 hash of
    /home/myuser/tools/root_v6-20-06/TBB-prefix/src/tbb-2019_U9.tar.gz
  does not match expected value
    expected: '15652f5328cf00c576f065e5cd3eaf3317422fe82afb67a9bcec0dc065bd2abe'
      actual: 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855'
-- File already exists but hash mismatch. Removing...
-- Downloading...
   dst='/home/myuser/tools/root_v6-20-06/TBB-prefix/src/tbb-2019_U9.tar.gz'
   timeout='none'
-- Using src='http://lcgpackages.web.cern.ch/lcgpackages/tarFiles/sources/tbb-2019_U9.tar.gz'
-- Retrying...
-- Using src='http://lcgpackages.web.cern.ch/lcgpackages/tarFiles/sources/tbb-2019_U9.tar.gz'
-- Retry after 5 seconds (attempt #2) ...
-- Using src='http://lcgpackages.web.cern.ch/lcgpackages/tarFiles/sources/tbb-2019_U9.tar.gz'
-- Retry after 5 seconds (attempt #3) ...
-- Using src='http://lcgpackages.web.cern.ch/lcgpackages/tarFiles/sources/tbb-2019_U9.tar.gz'
-- Retry after 15 seconds (attempt #4) ...
-- Using src='http://lcgpackages.web.cern.ch/lcgpackages/tarFiles/sources/tbb-2019_U9.tar.gz'
-- Retry after 60 seconds (attempt #5) ...
-- Using src='http://lcgpackages.web.cern.ch/lcgpackages/tarFiles/sources/tbb-2019_U9.tar.gz' 

And similarly for VDT.

I can download it manually by clicking the link, so I don’t think its a problem with the server or the internet connection.

ROOT Version: v6-20-06
Platform: Ubuntu 18.04.4 LTS
Compiler: gcc7.5

Hi @angad,
uhm sorry about that, it’s quite bizarre :sweat_smile:
Could you try building v6.22/06 instead (git checkout v6-22-06) and see if that helps?

Also note that unless you have specific needs you don’t have to compile ROOT from sources: you can choose between a few simpler and quicker installation methods (e.g. you can install ROOT via conda), and recently a snap package was also made available for Ubuntu.

@Axel or @oshadura might have a hunch about what’s wrong with the TBB and VDT downloads.

Cheers,
Enrico

error tells that hash of TBB that you have in your directory is incorrect (probably old).

I just downloaded TBB from http://lcgpackages.web.cern.ch and checked hash, everything is right:

~ sha256sum tbb-2019_U9.tar.gz                                                                                                                    
~ 15652f5328cf00c576f065e5cd3eaf3317422fe82afb67a9bcec0dc065bd2abe  tbb-2019_U9.tar.gz

Can you please delete

/home/myuser/tools/root_v6-20-06/TBB-prefix/src/tbb-2019_U9.tar.gz

file and start from scratch?

Thanks for the quick reply.
I tried deleting the tbb tar.gz file and recompiling, which did not help.
However, now I got an error in /home/myuser/tools/root_v6-20-06/TBB-prefix/src/TBB-stamp/TBB-download-err.log
TBB-download-err.log.txt (5.9 KB)

This happened with both v6-22-06 and v6-20-06

Just thought I’d clarify, while Canonical makes both Ubuntu and Snapcraft and so the two have a special relationship, snaps should work fine on basically every major OS once the daemon is properly setup so if anyone has issues running the package on a none Ubuntu system, I can look into it.

Thanks @James-Carroll, @angad says they are on Ubuntu 18 in the first post :smiley:

1 Like

My apologies if my intention came off a bit wrong there, my brain had interpretted what you said as Snaps were an Ubuntu specific technology since it’s a concern I’ve seen in the past so I just wanted to sure it wasn’t the case. Thanks for understanding :slight_smile:

1 Like

Hi,
I have observed this in the past in my Ubuntu18 and I noticed it was caused by the fact that when downloading the file CMake unzipped it automatically resulting then in a wrong hash.
The workaround I did is to download manually the files using wget

Lorenzo

1 Like

@angad cmake --version shows what?

cmake --version shows:

cmake version 3.9.4

CMake suite maintained and supported by Kitware (kitware.com/cmake).

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