Problem 250

Summary: Compile problem under RedHat 6.1
Product: Geant4 Reporter: jon.handiboe
Component: configAssignee: Gabriele Cosmo <Gabriele.Cosmo>
Status: RESOLVED DUPLICATE    
Severity: normal CC: Gabriele.Cosmo
Priority: P2    
Version: 3.1   
Hardware: PC   
OS: Linux   

Description jon.handiboe 2001-04-20 09:38:57 CEST
Redhat 6.1
egcs 2.91.66
make-3.77-6

gmake produces:

Making dependency for file src/G4ios.cc ...
Making dependency for file src/G4VStateDependent.cc ...
Making dependency for file src/G4UnitsTable.cc ...
Making dependency for file src/G4Timer.cc ...
Making dependency for file src/G4StateManager.cc ...
Making dependency for file src/G4PhysicsVector.cc ...
Making dependency for file src/G4PhysicsTable.cc ...
Making dependency for file src/G4PhysicsOrderedFreeVector.cc ...
Making dependency for file src/G4PhysicsLogVector.cc ...
Making dependency for file src/G4PhysicsLnVector.cc ...
Making dependency for file src/G4PhysicsLinearVector.cc ...
Making dependency for file src/G4PhysicsFreeVector.cc ...
Making dependency for file src/G4LPhysicsFreeVector.cc ...
Making dependency for file src/G4Exception.cc ...
/LOCAL/geant4.3.1/tmp/Linux-g++/G4globman/G4Exception.d:1: *** missing separator
.  Stop.


Problem seems to be the config/common.gmk file line:

@($(ECHO) $(G4TMPDIR)/\\c ; \


Change to:

@($(ECHO) $(G4TMPDIR)/\\ ; \

and error goes away and compile continues without problem
Comment 1 Gabriele Cosmo 2001-04-20 10:13:59 CEST
Did you try to remove the file:
  /LOCAL/geant4.3.1/tmp/Linux-g++/G4globman/G4Exception.d
and rebuild (using the original rule) ?  It might be corrupted.
\c option is required in order to avoid appending a new line to the
command which may cause the mechanism to fail on most systems.

A similar problem has been reported in the past (see report #35)
and was due to a peculiar version of 'echo' on Linux systems.
Comment 2 Gabriele Cosmo 2001-04-20 12:07:59 CEST
*** This bug has been marked as a duplicate of 35 ***
*** 'Gabriele.Cosmo@cern.ch' will be responsible for this bug. ***