Geant4 build failed due to partial transferred file of G4NDL

Hi,

Geant4 build process failed with an error:

[1566/3163] Performing download step (download, verify and extract) for 'G4NDL'
FAILED: Externals/G4NDL-4.7/src/G4NDL-stamp/G4NDL-download Externals/G4NDL-4.7/src/G4NDL.4.7.tar.gz /Volumes/Main/software/source/FairSoft/build/Build/geant4/Externals/G4NDL-4.7/src/G4NDL-stamp/G4NDL-download /Volumes/Main/software/source/FairSoft/build/Build/geant4/Externals/G4NDL-4.7/src/G4NDL.4.7.tar.gz 
cd /Volumes/Main/software/source/FairSoft/build/Build/geant4/data && /opt/homebrew/Cellar/cmake/3.28.1/bin/cmake -P /Volumes/Main/software/source/FairSoft/build/Build/geant4/Externals/G4NDL-4.7/src/G4NDL-stamp/download-G4NDL.cmake && /opt/homebrew/Cellar/cmake/3.28.1/bin/cmake -P /Volumes/Main/software/source/FairSoft/build/Build/geant4/Externals/G4NDL-4.7/src/G4NDL-stamp/verify-G4NDL.cmake && /opt/homebrew/Cellar/cmake/3.28.1/bin/cmake -P /Volumes/Main/software/source/FairSoft/build/Build/geant4/Externals/G4NDL-4.7/src/G4NDL-stamp/extract-G4NDL.cmake && /opt/homebrew/Cellar/cmake/3.28.1/bin/cmake -E touch /Volumes/Main/software/source/FairSoft/build/Build/geant4/Externals/G4NDL-4.7/src/G4NDL-stamp/G4NDL-download
-- Downloading...
   dst='/Volumes/Main/software/source/FairSoft/build/Build/geant4/Externals/G4NDL-4.7/src/G4NDL.4.7.tar.gz'
   timeout='36000 seconds'
   inactivity timeout='none'
-- Using src='https://cern.ch/geant4-data/datasets/G4NDL.4.7.tar.gz'
-- [download 100% complete]
-- [download 0% complete]
-- [download 1% complete]
CMake Error at /Volumes/Main/software/source/FairSoft/build/Build/geant4/Externals/G4NDL-4.7/src/G4NDL-stamp/download-G4NDL.cmake:170 (message):
  Each download failed!

    error: downloading 'https://cern.ch/geant4-data/datasets/G4NDL.4.7.tar.gz' failed
          status_code: 18
          status_string: "Transferred a partial file"
          log:
          --- LOG BEGIN ---
            Trying [2001:1458:d00:3c::100:2f9]:443...

  Connected to cern.ch (2001:1458:d00:3c::100:2f9) port 443

  ALPN: curl offers h2,http/1.1

  (304) (OUT), TLS handshake, Client hello (1):

  [312 bytes data]

  (304) (IN), TLS handshake, Server hello (2):

  [122 bytes data]

  (304) (IN), TLS handshake, Unknown (8):

  [10 bytes data]

  (304) (IN), TLS handshake, Certificate (11):

  [4994 bytes data]

  (304) (IN), TLS handshake, CERT verify (15):

  [264 bytes data]

  (304) (IN), TLS handshake, Finished (20):

  [36 bytes data]

  (304) (OUT), TLS handshake, Finished (20):

  [36 bytes data]

_Geant4 Version: 11.2.0
_Operating System: macOS latest
_Compiler/Version: Apple clang 15.0
_CMake Version: 3.28.1


Did you try again? That sort of failure is almost always due to transient connectivity problems.

You can also set the appropriate build option to not do the download, and get the files yourself later.

Hi,

Thanks for your reply. Yes, I changed my network connection (from my home to office) and somehow it works.

You can also set the appropriate build option to not do the download, and get the files yourself later.

I’m afraid this isn’t an option as Geant4 is built as a dependency of our program. And we would like this build process (including building all required dependencies) to be as simple as possible. Therefore we can’t tell our user to download some data package manually.

I will close this issue when the whole process finishes.

Thanks again.

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