I have recently downloaded Geant4 7.1 (Unix tar format) from http://wwwasd.web.cern.ch/wwwasd/geant4/geant4.html. When I compile it under Solaris 5.8, I get the following error message: Compiling G4PiNuclearCrossSection.cc ... "/opt/SUNWspro/WS6U2/include/CC/Cstd/./memory", line 184: Error: Type name expected instead of "T". "/opt/SUNWspro/WS6U2/include/CC/Cstd/./memory", line 520: Where: While instantiating "__rwstd::__destroy<CLHEP::HepLorentzVector>(CLHEP::HepLorentzVector*)". "/opt/SUNWspro/WS6U2/include/CC/Cstd/./memory", line 520: Where: Instantiated from non-template code. 1 Error(s) detected. gmake[2]: *** [/a/moria/home/moria/phradst/phs3sd/research/unix_geant4/geant4.7.1/tmp/SUN-CC/G4hadronic_xsect/G4PiNuclearCrossSection.o] Error 1 Although there are several other compiler warnings, the rest of the compilation went smoothly, leading to the following final output: Making libname.map ... Reading library name map file... Reading dependency files... WARNING: It seems there is nothing after ':' in dependency file /a/moria/home/moria/phradst/phs3sd/research/unix_geant4/geant4.7.1/tmp/SUN-CC/G4baryons/G4OmegacZero.d. Checking for circular dependencies... Reordering according to dependencies... Writing new library map file... ############################################################ # It looks like you had errors during Geant4 installation # (or interrupted installation)! # Please check log file: # /a/moria/home/moria/phradst/phs3sd/research/unix_geant4/geant4.7.1/.config/bin/SUN-CC/g4make.log ############################################################ Is this a fatal error, or can I proceed to use the installation?
Can you please specify what compiler version you're using ?
S.Doran@surrey.ac.uk wrote: > Hi, > > Thanks for your reply. As far as I know the compiler used was > phs3sd@wigner% cc -V > cc: Sun WorkShop 6 update 2 C 5.3 2001/05/15 > although, I actually accessed it simply by typing gmake on my solaris > 5.8 machine. > Many thanks in advance for your help. > > Simon I'm afraid you need to upgrade your compiler to CC-5.4 at least. Geant4 will not compile on earlier versions of the CC compiler.