FairRootGroup/FairSoft

Fairsoft compilation on ubuntu 22.04

EBEDupont opened this issue · 11 comments

Hello everyone,
I am asking for your help after many errors in the CMake, apparently always related to the download.
I could use pre-downolad files but I do not know where to find them.

I followed the following steps : `

cd ~/fair_install
git clone -b nov22_patches https://github.com/FairRootGroup/FairSoft
cd FairSoft
sudo ./legacy/setup-ubuntu.sh
mkdir build
cmake -S ./ -B ./build/ -C ./FairSoftConfig.cmake
cmake --build ./build/ -j 8

Some informations that could help to solve the problem

gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
GNU Make 4.3

Thank you for your help!
Etienne

The kind of error I get :

[ 17%] Performing download step (download, verify and extract) for 'boost'
CMake Error at /home/etiennedupont/fair_install/FairSoft/build/Stamp/boost/boost-download-RelWithDebInfo.cmake:37 (message):
  Command failed: 1

   '/usr/bin/cmake' '-Dmake=' '-Dconfig=' '-P' '/home/etiennedupont/fair_install/FairSoft/build/Stamp/boost/boost-download-RelWithDebInfo-impl.cmake'

  See also

    /home/etiennedupont/fair_install/FairSoft/build/Log/boost-download.log


-- Log output is:
-- Downloading...
   dst='/home/etiennedupont/fair_install/FairSoft/build/Download/boost/boost_1_80_0.tar.bz2'
   timeout='none'
   inactivity timeout='none'
-- Using src='https://boostorg.jfrog.io/artifactory/main/release/1.80.0/source/boost_1_80_0.tar.bz2'
CMake Error at /home/etiennedupont/fair_install/FairSoft/build/Stamp/boost/download-boost.cmake:170 (message):
  Each download failed!

    error: downloading 'https://boostorg.jfrog.io/artifactory/main/release/1.80.0/source/boost_1_80_0.tar.bz2' failed
          status_code: 28
          status_string: "Timeout was reached"
          log:
          --- LOG BEGIN ---
            Trying 44.226.59.123:443...

  Connected to boostorg.jfrog.io (44.226.59.123) port 443 (#0)

  ALPN, offering h2

  ALPN, offering http/1.1

  TLSv1.0 (OUT), TLS header, Certificate Status (22):

  [5 bytes data]

  TLSv1.3 (OUT), TLS handshake, Client hello (1):

  [512 bytes data]

  SSL connection timeout

  Closing connection 0

  

          --- LOG END ---
          
    


CMake Error at /home/etiennedupont/fair_install/FairSoft/build/Stamp/boost/boost-download-RelWithDebInfo-impl.cmake:9 (message):
  Command failed (1):

   '/usr/bin/cmake' '-P' '/home/etiennedupont/fair_install/FairSoft/build/Stamp/boost/download-boost.cmake'



CMake Error at /home/etiennedupont/fair_install/FairSoft/build/Stamp/boost/boost-download-RelWithDebInfo.cmake:47 (message):
  Stopping after outputting logs.


gmake[2]: *** [CMakeFiles/boost.dir/build.make:97: Stamp/boost/boost-download] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:724: CMakeFiles/boost.dir/all] Error 2
gmake: *** [Makefile:101: all] Error 2

Please try a download via the command curl -v -O https://boostorg.jfrog.io/artifactory/main/release/1.80.0/source/boost_1_80_0.tar.bz2 and post the output here if it fails.

Here we are :

etiennedupont@dell-PowerEdge-R740:~$ curl -v -O https://boostorg.jfrog.io/artifactory/main/release/1.80.0/source/boost_1_80_0.tar.bz2
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0*   Trying 100.21.156.46:443...
* Connected to boostorg.jfrog.io (100.21.156.46) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
*  CAfile: /etc/ssl/certs/ca-certificates.crt
*  CApath: /usr/lib/ssl/certs
* TLSv1.0 (OUT), TLS header, Certificate Status (22):
} [5 bytes data]
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
} [512 bytes data]
* TLSv1.2 (IN), TLS header, Certificate Status (22):
{ [5 bytes data]
* TLSv1.3 (IN), TLS handshake, Server hello (2):
{ [112 bytes data]
* TLSv1.2 (IN), TLS header, Certificate Status (22):
{ [5 bytes data]
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0* TLSv1.2 (IN), TLS handshake, Certificate (11):
{ [3701 bytes data]
* TLSv1.2 (IN), TLS header, Certificate Status (22):
{ [5 bytes data]
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
{ [300 bytes data]
* TLSv1.2 (IN), TLS header, Certificate Status (22):
{ [5 bytes data]
* TLSv1.2 (IN), TLS handshake, Server finished (14):
{ [4 bytes data]
* TLSv1.2 (OUT), TLS header, Certificate Status (22):
} [5 bytes data]
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
} [37 bytes data]
* TLSv1.2 (OUT), TLS header, Finished (20):
} [5 bytes data]
* TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):
} [1 bytes data]
* TLSv1.2 (OUT), TLS header, Certificate Status (22):
} [5 bytes data]
* TLSv1.2 (OUT), TLS handshake, Finished (20):
} [16 bytes data]
* TLSv1.2 (IN), TLS header, Finished (20):
{ [5 bytes data]
* TLSv1.2 (IN), TLS header, Certificate Status (22):
{ [5 bytes data]
* TLSv1.2 (IN), TLS handshake, Finished (20):
{ [16 bytes data]
* SSL connection using TLSv1.2 / ECDHE-RSA-AES256-GCM-SHA384
* ALPN, server accepted to use http/1.1
* Server certificate:
*  subject: CN=*.jfrog.io
*  start date: Jan 17 00:00:00 2024 GMT
*  expire date: Feb 16 23:59:59 2025 GMT
*  subjectAltName: host "boostorg.jfrog.io" matched cert's "*.jfrog.io"
*  issuer: C=US; O=DigiCert Inc; OU=www.digicert.com; CN=GeoTrust TLS RSA CA G1
*  SSL certificate verify ok.
* TLSv1.2 (OUT), TLS header, Supplemental data (23):
} [5 bytes data]
> GET /artifactory/main/release/1.80.0/source/boost_1_80_0.tar.bz2 HTTP/1.1
> Host: boostorg.jfrog.io
> User-Agent: curl/7.81.0
> Accept: */*
> 
* TLSv1.2 (IN), TLS header, Supplemental data (23):
{ [5 bytes data]
* Mark bundle as not supporting multiuse
< HTTP/1.1 302 
< Date: Thu, 07 Mar 2024 06:38:03 GMT
< Transfer-Encoding: chunked
< Connection: keep-alive
< X-JFrog-Version: Artifactory/7.81.1 78101900
< X-Artifactory-Id: 35257f8e64b36cc5a550fce070e3cbb6ac4c6d6d
< X-Artifactory-Node-Id: boostorg-artifactory-primary-0
* TLSv1.2 (IN), TLS header, Supplemental data (23):
{ [5 bytes data]
< Location: https://jfrog-prod-usw2-shared-oregon-main.s3.amazonaws.com/aol-boostorg/filestore/69/690a2a2ed6861129828984b1d52a473d2c8393d1?X-Artifactory-username=anonymous&X-Artifactory-repoType=local&X-Artifactory-repositoryKey=main&X-Artifactory-packageType=generic&X-Artifactory-artifactPath=release%2F1.80.0%2Fsource%2Fboost_1_80_0.tar.bz2&X-Artifactory-projectKey=default&x-jf-traceId=1c0116f6992e3208&response-content-disposition=attachment%3Bfilename%3D%22boost_1_80_0.tar.bz2%22&response-content-type=application%2Fx-bzip2&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEL7%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCXVzLXdlc3QtMiJHMEUCIBIKLGVpyCap3WTQPUwSiKppKp40yoOldCkreFTK179cAiEAwvTNuVJaAkGFS5jb7CO9Uy1eS4yFBRTrBcEE845ZBgEqjwUIt%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FARAAGgw3MjE4ODI2MTMwMzciDHmfbi6XEYimyGGGvCrjBAm2k3EbdA08ZXNRzJoUfuHO3CVygFswKlZ4DVmCwmVKnZkmngmOGxGhX8u9ddkXfUaKw1DXyxzZ24S8tgLguSbohYahp%2Btm84qYn%2Bz14abLimGXQ8BY9Qi2rrXQ8VpDgO1Ran5tzTlOlD1m%2FmhF31OZs7EnEJlrORH0jaCjbX1WeFfjo4pUG8zo90GKlWFvckXxGGZziCEP%2Bls74F8QF0QBGGtjw6FZfRPUUYpuuldVgkems3dFM%2BqDbdKSj6PcYyyg6ttGrr4OBhhWaKi5oEpY9iAn2g01v7ONzNXwSkqM4VP96rVWsM5e3%2BBx7jzXr32NdF4XFdqB7ofP0yYxhebuPXS6WmFZ1HinGeFAOKW%2FwbYHMd41ycRVv1FYqkwjJXMDmulG%2FHV8md%2BnXrm8xG4Xvpqn076A5KIaGT58qrwKAGVmBbf4XZ%2BReYZw8DDqQzpynuzyTM9q36EmEXWYd5IMBDnXKBJGO9sTe8mDHTUnTLJPZjDNHLGnj0571Kv079IwolGMBWEOrrYbVgslbbu6d6tV%2FurdEXHdPn8sxX%2B8GaAaDUk5Ir%2B7Fp%2BnJP%2BLEnrD6Bq%2FGEVhiJ0jqIY1nK%2BYuI0npWvtANTEHIYS7sU2LvqNqV8br2Zm%2B6LUEZpMb7LXqNe%2BZqYJ7m60lJttFCGba%2FXuP3NYbunJeaOXOoK9T%2FLBCfmG%2Bytr8VD%2FJObCSEnsaR74G6z34AMl7%2Bflp0DY8Q9QFR90fMaTP60T%2B8H6w7tFcNdNEN4y6N2XE4NoFicAdf5ksJhcjMtkqGgCeGV%2FfoxUSoZ%2BBW9H1jBW6a6FDlC6MMGxpa8GOpoBi99i3Nr91%2FRvRb%2F%2BO5HOKVCg%2Ffo9txTYOCtQuS9jNJZNMAzwrnOmpqjFaZQJkcqyLCQdiVfHbxWetebziweOj8SXJZdSnuYpNGZPwYK2VR8I9Aq5zw1s2Yh86RrXQsFdABxZIAQ9tzZZhOqYcYAL6y2fNVtvuFkY0MjMonkDy2jsJk6LrwPvGRqMr%2FWZF7%2Btj7OHc0WBrH%2BVXQ%3D%3D&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20240307T063803Z&X-Amz-SignedHeaders=host&X-Amz-Expires=30&X-Amz-Credential=ASIA2QE4OQUW5EWNJZ6J%2F20240307%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Signature=ab927289e93558d846f577f6d9dd4421b06b5f7ed53a43d00d55c87e57e85516
< X-Request-ID: d1345e1008fdf901a713c57432ebcb1d
< 
* TLSv1.2 (IN), TLS header, Supplemental data (23):
{ [5 bytes data]
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
* Connection #0 to host boostorg.jfrog.io left intact
*

and curl -v -O -L https://boostorg.jfrog.io/artifactory/main/release/1.80.0/source/boost_1_80_0.tar.bz2?

If this works, I would say it was a temporary problem and you can just try building FairSoft again.

Sometimes I get this (and it seems blocked)

> curl -v -O -L https://boostorg.jfrog.io/artifactory/main/release/1.80.0/source/boost_1_80_0.tar.bz2 > curlcommande.txt
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0*   Trying 44.226.59.123:443...
  0     0    0     0    0     0      0      0 --:--:--  0:01:04 --:--:--     0* Connected to boostorg.jfrog.io (44.226.59.123) port 443 (#0)
  0     0    0     0    0     0      0      0 --:--:--  0:01:04 --:--:--     0* ALPN, offering h2
* ALPN, offering http/1.1
*  CAfile: /etc/ssl/certs/ca-certificates.crt
*  CApath: /usr/lib/ssl/certs
* TLSv1.0 (OUT), TLS header, Certificate Status (22):
} [5 bytes data]
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
} [512 bytes data]
  0     0    0     0    0     0      0      0 --:--:--  0:01:3  0     0    0     0    0     0      0      0 --:--:--  0:01:3  0     0    0     0    0     0      0      0 --:--:--  0:01:3  0     0    0     0    0     0      0      0 --:--:--  0:01:4  0     0    0     0    0     0      0      0 --:--:--  0:01:4  0     0    0     0    0     0      0      0 --:--:--  0:01:4

And sometimes this (the output is not complete) :

* TLSv1.2 (IN), TLS header, Supplemental data (23):
{ [5 bytes data]
* TLSv1.2 (IN), TLS header, Supplemental data (23):
{ [5 bytes data]
* TLSv1.2 (IN), TLS header, Supplemental data (23):
{ [5 bytes data]
* TLSv1.2 (IN), TLS header, Supplemental data (23):
{ [5 bytes data]
* TLSv1.2 (IN), TLS header, Supplemental data (23):
{ [5 bytes data]
* TLSv1.2 (IN), TLS header, Supplemental data (23):
{ [5 bytes data]
100  110M  100  110M    0     0  11.9M      0  0:00:09  0:00:09 --:--:-- 16.2M

It appears the jfrog server with IP 44.226.59.123 is not well-reachable from your network. However, curl -v -O -L --resolve boostorg.jfrog.io:443:44.226.59.123 https://boostorg.jfrog.io/artifactory/main/release/1.80.0/source/boost_1_80_0.tar.bz2 works for me so far (tried a few times without problems).

I think the best you can do for now is to just repeat the cmake --build ./build/ -j 8 command and hope to get a different jfrog server on the next attempt.

The URL is correct, at least at 2023-07-03 8:18 CET.

I copied the URL into my web browser and was able to download the package and unpack it.
Also the manual download using curl worked as expected

curl -L -O https://boostorg.jfrog.io/artifactory/main/release/1.80.0/source/boost_1_80_0.tar.bz2

Thank you for your answers. For an unknown reason, I cannot download from the server on which I want to install the soft. However there is no problem to do it from my personal computer.

curl -L -O https://boostorg.jfrog.io/artifactory/main/release/1.80.0/source/boost_1_80_0.tar.bz2
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
100 110M 100 110M 0 0 9703k 0 0:00:11 0:00:11 --:--:-- 18.7M

Can you please tell me how I can make a tarball from it and add it with the command -DSOURCE_CACHE= as explained here : https://github.com/FairRootGroup/FairSoft/blob/master/legacy/advanced.md

Thank you

Can you please tell me how I can make a tarball from it and add it with the command -DSOURCE_CACHE= as explained here : https://github.com/FairRootGroup/FairSoft/blob/master/legacy/advanced.md

Hm, not sure, what you mean? The link gives you two commands, the first one is to consume a source cache and the second is the one to generate it (make sure to start with a fresh build directory when generating)

> git clone -b nov22_patches https://github.com/FairRootGroup/FairSoft
> cd FairSoft
> rm -rf build  # in case you already created it before
> sudo legacy/setup-ubuntu.sh
> cmake -S . -B build -C FairSoftConfig.cmake
...
--   SOURCE CACHE       using upstream URLs (generate cache by building target 'source-cache' and pass via -DSOURCE_CACHE=...)
...
> cmake --build build --target source-cache -j 8
...
[100%] Creating source cache at .../build/FairSoft_source_cache_fae837212b.tar.gz
[100%] Built target source-cache

Once its finished, it will print the filename and location of the generated tarball (it is in the build/ dir)

edit: The path given to the -DSOURCE_CACHE=... argument when consuming the tarball must be absolute. It should look similar to this:

> git clone -b nov22_patches https://github.com/FairRootGroup/FairSoft
> cd FairSoft
> rm -rf build  # in case you already created it before
> sudo legacy/setup-ubuntu.sh
> cmake -S. -Bbuild -C FairSoftConfig.cmake -DSOURCE_CACHE=/path/to/FairSoft_source_cache_fae837212b.tar.gz
...
--   SOURCE CACHE       /path/to/FairSoft_source_cache_fae837212b.tar.gz
...
> cmake --build build -j 8
[  4%] Extracting source cache /path/to/FairSoft_source_cache_fae837212b.tar.gz at .../build
[  4%] Built target extract-source-cache
...

@dennisklein,

I think the part in brackets is the important information. I tried to start from an existing directory and got several error messages. Only after I came to the idea to start with a fresh build directory the procedure works.

As a side remark the size of the tar file is more than 4GB so you should have enough disk space available.

Bravo !
This worked. I got a proper install up to the end. Thank you !