Project

General

Profile

Bug #25500

cannot build root v6_22_06a for Ubuntu LTS 18

Added by Lynn Garren 2 months ago. Updated about 1 month ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
-
Start date:
02/09/2021
Due date:
% Done:

100%

Estimated time:
Spent time:
Scope:
Internal
Experiment:
-
SSI Package:
Co-Assignees:
Duration:

Description

The standard Ubuntu LTS 18 distribution is missing xxHash. The root build fails. I have installed golang-github-cespare-xxhash-dev, but that does not solve the problem. This is a vaguely familiar problem.

-- Looking for xxHash
CMake Error at /home/vagrant/build/e19/build/cmake/v3_18_2/Linux64bit+4.15-2.27/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:165 (message):
  Could NOT find xxHash (missing: xxHash_LIBRARY xxHash_INCLUDE_DIR)
Call Stack (most recent call first):
  /home/vagrant/build/e19/build/cmake/v3_18_2/Linux64bit+4.15-2.27/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:458 (_FPHSA_FAILURE_MESSAGE)
  cmake/modules/FindxxHash.cmake:50 (find_package_handle_standard_args)
  cmake/modules/SearchInstalledSoftware.cmake:16 (_find_package)
  cmake/modules/SearchInstalledSoftware.cmake:261 (find_package)
  CMakeLists.txt:192 (include)

History

#1 Updated by Lynn Garren 2 months ago

The solution is to enable the builtin xxhash.

#2 Updated by Lynn Garren 2 months ago

We had this in root v6_20_08a

  elif [ `lsb_release -d | cut -f2 | cut  -f1 -d" "` = "Ubuntu" ]; then
    cmake_options+=( \
      -Dbuiltin_xxhash:BOOL=ON
      )

#3 Updated by Lynn Garren 2 months ago

After consulting with Chris, the following changes were made:

diff --git a/build_root.sh b/build_root.sh
index 72c80f6..1f7b25e 100755
--- a/build_root.sh
+++ b/build_root.sh
@@ -368,11 +368,13 @@ add_platform_options() {
       export CXXFLAGS="-D__builtin_unreachable=__builtin_trap" 
       export CFLAGS="-D__builtin_unreachable=__builtin_trap" 
     fi
-  else
-    if [[ $flvr == "Linux64bit+2.6-2.5" ]]; then # SLF 5.
+  elif [[ $flvr == "Linux64bit+2.6-2.5" ]]; then # SLF 5.
       # LZMA only available through DAG -- not an option.
       cmake_options+=(-Dbuiltin_lzma:BOOL=ON)
-    fi
+  elif [[ "${OS}" =~ ^u18 ]]; then
+       echo
+       echo "found ${OS}" 
+    cmake_options+=(-Dbuiltin_xxhash:BOOL=ON)
   fi
 }

#4 Updated by Lynn Garren 2 months ago

  • % Done changed from 0 to 100
  • Assignee set to Lynn Garren
  • Status changed from New to Resolved

The source code tarball has been replaced with the indicated change in build_root.sh.

#5 Updated by Lynn Garren about 1 month ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF