Some datasets cannot be found (G4EMLOW & G4INCL)

Geant4 Version: 11.2.0
Operating System: macos 11.7.10
Compiler/Version: AppleClang 13.0.0.13000029
CMake Version: 3.28.1


I installed everything with spack.

When I try to generate the configuration with cmake I get these warnings,

CMake Warning at cmake/Geant4.cmake:21 (message):
  G4EMLOW not located at
  /Users/michele/Applications/spack/opt/spack/darwin-bigsur-broadwell/apple-clang-13.0.0/geant4-data-11.2.0-zcoc5gtfq2ra3mqubw252kh2w7ih6rzj/share/geant4-data-11.2.0/G4EMLOW8.5
Call Stack (most recent call first):
  CMakeLists.txt:19 (include)


CMake Warning at cmake/Geant4.cmake:21 (message):
  G4INCL not located at
  /Users/michele/Applications/spack/opt/spack/darwin-bigsur-broadwell/apple-clang-13.0.0/geant4-data-11.2.0-zcoc5gtfq2ra3mqubw252kh2w7ih6rzj/share/geant4-data-11.2.0/G4INCL1.2
Call Stack (most recent call first):
  CMakeLists.txt:19 (include)

By issuing the command geant4-config --check-datasets I get

G4NDL INSTALLED /Users/michele/Applications/spack/opt/spack/darwin-bigsur-broadwell/apple-clang-13.0.0/geant4-data-11.2.0-zcoc5gtfq2ra3mqubw252kh2w7ih6rzj/share/geant4-data-11.2.0/G4NDL4.7
G4EMLOW NOTFOUND /Users/michele/Applications/spack/opt/spack/darwin-bigsur-broadwell/apple-clang-13.0.0/geant4-data-11.2.0-zcoc5gtfq2ra3mqubw252kh2w7ih6rzj/share/geant4-data-11.2.0/G4EMLOW8.5
PhotonEvaporation INSTALLED /Users/michele/Applications/spack/opt/spack/darwin-bigsur-broadwell/apple-clang-13.0.0/geant4-data-11.2.0-zcoc5gtfq2ra3mqubw252kh2w7ih6rzj/share/geant4-data-11.2.0/PhotonEvaporation5.7
RadioactiveDecay INSTALLED /Users/michele/Applications/spack/opt/spack/darwin-bigsur-broadwell/apple-clang-13.0.0/geant4-data-11.2.0-zcoc5gtfq2ra3mqubw252kh2w7ih6rzj/share/geant4-data-11.2.0/RadioactiveDecay5.6
G4PARTICLEXS INSTALLED /Users/michele/Applications/spack/opt/spack/darwin-bigsur-broadwell/apple-clang-13.0.0/geant4-data-11.2.0-zcoc5gtfq2ra3mqubw252kh2w7ih6rzj/share/geant4-data-11.2.0/G4PARTICLEXS4.0
G4PII INSTALLED /Users/michele/Applications/spack/opt/spack/darwin-bigsur-broadwell/apple-clang-13.0.0/geant4-data-11.2.0-zcoc5gtfq2ra3mqubw252kh2w7ih6rzj/share/geant4-data-11.2.0/G4PII1.3
RealSurface INSTALLED /Users/michele/Applications/spack/opt/spack/darwin-bigsur-broadwell/apple-clang-13.0.0/geant4-data-11.2.0-zcoc5gtfq2ra3mqubw252kh2w7ih6rzj/share/geant4-data-11.2.0/RealSurface2.2
G4SAIDDATA INSTALLED /Users/michele/Applications/spack/opt/spack/darwin-bigsur-broadwell/apple-clang-13.0.0/geant4-data-11.2.0-zcoc5gtfq2ra3mqubw252kh2w7ih6rzj/share/geant4-data-11.2.0/G4SAIDDATA2.0
G4ABLA INSTALLED /Users/michele/Applications/spack/opt/spack/darwin-bigsur-broadwell/apple-clang-13.0.0/geant4-data-11.2.0-zcoc5gtfq2ra3mqubw252kh2w7ih6rzj/share/geant4-data-11.2.0/G4ABLA3.3
G4INCL NOTFOUND /Users/michele/Applications/spack/opt/spack/darwin-bigsur-broadwell/apple-clang-13.0.0/geant4-data-11.2.0-zcoc5gtfq2ra3mqubw252kh2w7ih6rzj/share/geant4-data-11.2.0/G4INCL1.2
G4ENSDFSTATE INSTALLED /Users/michele/Applications/spack/opt/spack/darwin-bigsur-broadwell/apple-clang-13.0.0/geant4-data-11.2.0-zcoc5gtfq2ra3mqubw252kh2w7ih6rzj/share/geant4-data-11.2.0/G4ENSDFSTATE2.3

So the two datasets are installed, but for some reason they are not found like the others…

Could you clarify a couple of things please:

  • Did you install Geant4 with spack, or are you trying to build Geant4 locally having installed the datasets through spack?
  • Do the follow directories/paths actually exist:
    • /Users/michele/Applications/spack/opt/spack/darwin-bigsur-broadwell/apple-clang-13.0.0/geant4-data-11.2.0-zcoc5gtfq2ra3mqubw252kh2w7ih6rzj/share/geant4-data-11.2.0/G4EMLOW8.5
    • /Users/michele/Applications/spack/opt/spack/darwin-bigsur-broadwell/apple-clang-13.0.0/geant4-data-11.2.0-zcoc5gtfq2ra3mqubw252kh2w7ih6rzj/share/geant4-data-11.2.0/G4INCL1.2
  • What is the file cmake/Geant4.cmake and what does it contain?
  • What spack version (commit on develop if you’re using that rather than a release) was the install done with?
  • Did you install Geant4 with spack, or are you trying to build Geant4 locally having installed the datasets through spack?

I installed everything with spack in one go

  • Do the follow directories/paths actually exist

“ish” there seems to be a version mismatch: what I have,

/Users/michele/Applications/spack/opt/spack/darwin-bigsur-broadwell/apple-clang-13.0.0/geant4-data-11.2.0-zcoc5gtfq2ra3mqubw252kh2w7ih6rzj/share/geant4-data-11.2.0/G4EMLOW8.4

and

/Users/michele/Applications/spack/opt/spack/darwin-bigsur-broadwell/apple-clang-13.0.0/geant4-data-11.2.0-zcoc5gtfq2ra3mqubw252kh2w7ih6rzj/share/geant4-data-11.2.0/G4INCL1.1

  • What is the file cmake/Geant4.cmake and what does it contain?

I can’t seem to find this file in my installation under /Users/michele/Applications/spack/var/spack/environments/spades-dev/.spack-env/view/

  • What spack version (commit on develop if you’re using that rather than a release) was the install done with?

I am on develop, but I can’t remember the exact commit at the time of installation; the one on which I am now is c074bf0865

Thanks for the info! I think the data issue is due to a problem for 11.2 that was fixed recently here: geant4-data: fix versions for 11.2 by sethrj · Pull Request #41895 · spack/spack · GitHub

Updating to the latest develop should bring that in and resolve the issue, albeit requiring a reinstall of the spack package of Geant4.

I’d guess cmake/Geant4.cmake is in the project you’re building rather than in spack, so not critical unless the issue persists after the above fix.

1 Like

Thanks for the explanation; I am trying to use spack more these days, so I’ll check first in their issues next time!

Don’t hesitate to report here as well on issues with the Spack package - the GitHub Issues/MRs are pretty dense, so issues might not be obvious!

1 Like

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