Problem 806

Summary: Compilation error
Product: Geant4 Reporter: paganini
Component: processes/hadronicAssignee: Gunter.Folger
Status: RESOLVED FIXED    
Severity: critical    
Priority: P1    
Version: 7.1   
Hardware: Other   
OS: Linux   

Description paganini 2005-10-20 10:19:39 CEST
My personal program that created a voxel-based phantom run in my laptop and
university pc with Linux (Kurumin), but not in other pc with Linux (Red Hat)
showing the following :In file included from include/G4HadronQEDBuilder.hh:47,
>                  from src/G4HadronQEDBuilder.cc:23:
> include/plist.tmp: In static member function `static void
> Apply<functor>::CallBac
> k<current, Rest>::Call_Back()':
> include/plist.tmp:39: error: non-template `Fun' used as template
> include/plist.tmp:39: note: use `functor::template Fun' to indicate that
> it is a
> template
> include/plist.tmp:39: error: declaration does not declare anything
> include/plist.tmp:40: error: `it' undeclared (first use this function)
> include/plist.tmp:40: error: (Each undeclared identifier is reported only
> once fo
> r each function it appears in.)
> include/plist.tmp:40: error: expected `;' before "aF"
> include/plist.tmp:40: error: there are no arguments to `aF' that depend on
> a temp
> late parameter, so a declaration of `aF' must be available
> include/plist.tmp:40: error: (if you use `-fpermissive', G++ will accept
> your cod
> e, but allowing the use of an undeclared name is deprecated)
> include/plist.tmp:43: error: expected primary-expression before ',' token
> include/plist.tmp:43: error: expected primary-expression before '>' token
> include/plist.tmp:43: error: `::Call_Back' has not been declared
> In file included from src/G4HadronQEDBuilder.cc:23:
> include/G4HadronQEDBuilder.hh: In member function `void
> G4HadronQEDBuilder::Regis
> ter::Fun<T>::operator()()':
> include/G4HadronQEDBuilder.hh:95: error: incomplete type `G4ParticleTable'
> used i
> n nested name specifier
> include/plist.tmp: In static member function `static void
> Apply<functor>::CallBac
> k<current, Rest>::Call_Back() [with current = G4PionPlus, Rest =
> Plist<G4PionMinu
> s, G4KaonPlus, G4KaonMinus, G4Proton, G4AntiProton, G4SigmaMinus,
> G4AntiSigmaMinu
> s, G4SigmaPlus, G4AntiSigmaPlus, G4XiMinus, G4AntiXiMinus, G4OmegaMinus,
> G4AntiOm
> egaMinus, PNullType, PNullType, PNullType, PNullType, PNullType,
> PNullType, PNull
> Type, PNullType, PNullType, PNullType, PNullType, PNullType, PNullType,
> PNullType
> , PNullType, PNullType, PNullType, PNullType, PNullType, PNullType,
> PNullType, PN
> ullType, PNullType, PNullType, PNullType, PNullType, PNullType, PNullType,
> PNullT
> ype, PNullType, PNullType, PNullType, PNullType, PNullType, PNullType,
> PNullType,
>  PNullType, PNullType, PNullType, PNullType, PNullType, PNullType,
> PNullType, PNu
> llType, PNullType, PNullType, PNullType, PNullType, PNullType, PNullType,
> PNullTy
> pe>, functor = G4HadronQEDBuilder::Register]':
> include/plist.tmp:50:   instantiated from `static void
> Apply<functor>::ForEachIn(
> ) [with group = Plist<G4PionPlus, G4PionMinus, G4KaonPlus, G4KaonMinus,
> G4Proton,
>  G4AntiProton, G4SigmaMinus, G4AntiSigmaMinus, G4SigmaPlus,
> G4AntiSigmaPlus, G4Xi
> Minus, G4AntiXiMinus, G4OmegaMinus, G4AntiOmegaMinus, PNullType,
> PNullType, PNull
> Type, PNullType, PNullType, PNullType, PNullType, PNullType, PNullType,
> PNullType
> , PNullType, PNullType, PNullType, PNullType, PNullType, PNullType,
> PNullType, PN
> ullType, PNullType, PNullType, PNullType, PNullType, PNullType, PNullType,
> PNullT
> ype, PNullType, PNullType, PNullType, PNullType, PNullType, PNullType,
> PNullType,
>  PNullType, PNullType, PNullType, PNullType, PNullType, PNullType,
> PNullType, PNu
> llType, PNullType, PNullType, PNullType, PNullType, PNullType, PNullType,
> PNullTy
> pe, PNullType, PNullType, PNullType>, functor =
> G4HadronQEDBuilder::Register]'
> src/G4HadronQEDBuilder.cc:31:   instantiated from here
> include/plist.tmp:40: error: `aF' undeclared (first use this function)
> include/plist.tmp:50:   instantiated from `static void
> Apply<functor>::ForEachIn(
> ) [with group = Plist<G4PionPlus, G4PionMinus, G4KaonPlus, G4KaonMinus,
> G4Proton, G4AntiProton, G4SigmaMinus, G4AntiSigmaMinus, G4SigmaPlus,
> G4AntiSigmaPlus, G4XiMinus, G4AntiXiMinus, G4OmegaMinus, G4AntiOmegaMinus,
> PNullType, PNullType, PNullType, PNullType, PNullType, PNullType,
> PNullType, PNullType, PNullType, PNullType, PNullType, PNullType,
> PNullType, PNullType, PNullType, PNullType, PNullType, PNullType,
> PNullType, PNullType, PNullType, PNullType, PNullType, PNullType,
> PNullType, PNullType, PNullType, PNullType, PNullType, PNullType,
> PNullType, PNullType, PNullType, PNullType, PNullType, PNullType,
> PNullType, PNullType, PNullType, PNullType, PNullType, PNullType,
> PNullType, PNullType, PNullType, PNullType, PNullType, PNullType,
> PNullType, PNullType>, functor = G4HadronQEDBuilder::Register]'
> src/G4HadronQEDBuilder.cc:31:   instantiated from here
> include/plist.tmp:43: error: dependent-name ` Apply<functor>::CallBack' is
> parsed as a non-type, but instantiation yields a type
> include/plist.tmp:43: note: say `typename  Apply<functor>::CallBack' if a
> type is meant
> /opt/CLHEP/include/CLHEP/Random/Randomize.h: At global scope:
> /opt/CLHEP/include/CLHEP/Random/Randomize.h:64: warning:
> 'HepRandomGenActive' defined but not used
> make: ***
> [/home/drc01/paganini/geant4/tmp/Linux-g++/iso/G4HadronQEDBuilder.o] Error
> 1

thanks
Silvia
Comment 1 Gunter.Folger 2005-11-24 03:26:59 CET
This will be fixed by the physics lists in Geant4 release 8.0 in December 2005.
The plist.tmp will not be used any more.

I do suspect however that your other PC has an old and no longer supported
version of g++. So you might try to upgrade the compiler.

If you urgently need the newer version of physics lists, please mail me.