compilation on Rocky Linux 9

56 views
Skip to first unread message

Peter Kammel

unread,
Jun 10, 2024, 9:41:03 PM6/10/24
to G4Beamline
Dear Tom,

I tried to compile on Rocky Linux 9, which should be very similar to Alma Linux 9,
the new standard at Fermilab.

Things go well until
cmake --build . --config Release --target install
hangs at
G4beamline-3.08-source/g4bl/BLCMDphysics.cc:152:64: error: use of deleted function 'TrackTimeLimiter::TrackTimeLimiter(const TrackTimeLimiter&)'
  152 |         G4VProcess *clone() { return new TrackTimeLimiter(*this); }
      |                                                                ^
G4beamline-3.08-source/g4bl/BLCMDphysics.cc:137:7: note: 'TrackTimeLimiter::TrackTimeLimiter(const TrackTimeLimiter&)' is implicitly deleted because the default definition would be ill-formed:
  137 | class TrackTimeLimiter : public G4VProcess {
      |       ^~~~~~~~~~~~~~~~
G4beamline-3.08-source/g4bl/BLCMDphysics.cc:137:7: error: use of deleted function 'TrackTimeLimiter::ParticleChange::ParticleChange(const TrackTimeLimiter::ParticleChange&)'

I can limp along with a docker image installed on Rocky Linux 8, but it would
be nice to cleanly compile it on the native system.

Many thanks for your help

Peter

Tom Roberts

unread,
Jun 10, 2024, 10:09:04 PM6/10/24
to Peter Kammel, G4Beamline
On 6/10/24 8:41 PM, Peter Kammel wrote:
[...] I can limp along with a docker image [...]

Why "limp along"? -- what problems or limitations do you expect?

G4beamline is strongly CPU bound, so emulating the CPU is a non-starter, but translating the OS is fine, so I'm expecting/hoping that the next release of G4beamline will be built inside a container, requiring users to install an appropriate container app on their OS. That way I can build it just once (or twice for Apple CPUs), not the current six times (and growing with more Linux variants):
    macOS on Intel CPUs
    macOS on Apple CPUs
    Linux derived from Ubuntu
    Linux derived from Fedora
    Windows 10 (possibly deprecated)
    Windows 11
I'll still have to test it on all these, so I can instruct users how to install the appropriate container app.

I have never used containers, but am about to learn....

Tom Roberts

Peter Kammel

unread,
Jun 13, 2024, 1:46:21 PM6/13/24
to G4Beamline, Tom Roberts, Peter Kammel
Dear Tom,

On Urs' recommendations I switched back to  geant4-v11.0.2. Then I still had
problems with the Qt, but without visualization G$BL compiled on Rocky Linux 9.
If I have time, I'll will downgrade Qt as well.

cmake -DG4BL_GUI=OFF -DG4BL_VISUAL=OFF  ../G4beamline-3.08-source

Thanks

Peter
Reply all
Reply to author
Forward
0 new messages