I have RedHat 7.0 full install right from the CD. CLHEP compiled just fine. After setting the needed environmental variables in /etc/profile I tried to install geant 4.3.0. The system is identified as Linux-g++ but when compiling I get a number of parse and compile errors like : -------------snip src/G4ReactionDynamics.cc:3591:parse error before ':' src/G4ReactionDynamics.cc:3784:internal error before #122 src/G4ReactionDynamics.cc:3584 compiler error -------------- home/geant/source/processes/hadronic/models/generator/de_exitation/include/G4sol ver/template.cc 156 parse error before else 165 parse error before else 169 internal error #122 169 compiler error in finish function at ../gcc/cp/decl.c:14422 ----------------- no rule to make target /home/geant/tmp/Linux-g++/G4muons/obj.last needed by '/home/geant/lib/Linux-g++/libG++/libG4process.a Stop ------------------snip When I try to compile N01 this is not possible in the absence of libG4process.a What to do? Thank You Jakob Himmelman Department of radiation physics Goteborg University jakob.himmelman@linne.net +46313422176
I cannot reproduce this one. May be you can?
*** Bug 225 has been marked as a duplicate of this bug. *** *** 'Gabriele.Cosmo@cern.ch' will be responsible for bug 225. ***
The Linux distribution we support on Geant4 3.0 is Red-Hat 6.1 with egcs-1.1.2 compiler installed. We're currently working on porting the code on gcc 2.95.2, but cannot reproduce the problem reported here. One observation: home/.../de_exitation/include/G4solver/template.cc ^ should be '.' As for the error in G4ReactionDynamics.cc:3591, try to modify expressions adding parenthesis; problems of the parser installed in your system ?
More info... (from a user: rob.pywell@usask.ca) --------- Thought I would let you know... The gcc-2.96-54 shipped with Red Hat 7.0 is flawed. Even the update version gcc-2.96-69 doesn't work for c++. I installed the last stable version gcc-2.95.3 from the gcc site and all of GEANT4.3.1 compiles fine on Red Hat 7.0 --------