Problem 226

Summary: Parse and compile error when installing geant on RedHat 7.0
Product: Geant4 Reporter: jakob.himmelman
Component: configAssignee: Gabriele Cosmo <Gabriele.Cosmo>
Status: CLOSED WORKSFORME    
Severity: critical CC: Hans-Peter.Wellisch
Priority: P2    
Version: 3.0   
Hardware: PC   
OS: Linux   

Description jakob.himmelman 2001-02-28 01:43:42 CET
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
Comment 1 Hans-Peter.Wellisch 2001-03-02 02:30:59 CET
I cannot reproduce this one. May be you can?
Comment 2 Gabriele Cosmo 2001-03-05 02:50:59 CET
*** Bug 225 has been marked as a duplicate of this bug. ***
*** 'Gabriele.Cosmo@cern.ch' will be responsible for bug 225. ***
Comment 3 Gabriele Cosmo 2001-03-05 03:06:59 CET
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 ?
Comment 4 Gabriele Cosmo 2001-06-14 11:57:59 CEST
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
--------