***********Problems installing G4 on SUN Solaris Compiling SdaiAll.cc ... CC -features=no%anachronisms -mt -lpthread -ptr/usr/hep0/cerng4/geant4.3.2/tmp/SUN-CC5/g4.ptrepository -DG4OPTIMISE -DG4USE_STL -Iinclude -I/usr/hep0/cerng4/geant4.3.2/source/global/STLInterface -I/usr/local/include -DSOCKET_IRIX_SOLARIS -DG4NOT_ISO_DELETES -I/usr/hep0/cerng4/geant4.3.2/source/global/STLInterface/wrappers/SUN-CC5 -DG4USE_STD_NAMESPACE -DG4_HAVE_BOOL -DG4VERBOSE -DG4_STORE_TRAJECTORY -I/usr/hep0/cerng4/geant4.3.2/source/global/management/include -I/usr/hep0/cerng4/geant4.3.2/source/global/HEPRandom/include -I/usr/hep0/cerng4/geant4.3.2/source/global/HEPGeometry/include -c -o /usr/hep0/cerng4/geant4.3.2/tmp/SUN-CC5/G4step/SdaiCONFIG_CONTROL_DESIGN.o src/SdaiCONFIG_CONTROL_DESIGN.cc ***********I get several hundred warnings of the form: "src/SdaiCONFIG_CONTROL_DESIGN.cc", line 1418: Warning: String literal converted to char* in formal argument 1 in call to SDAI::Select::Error(char*). ***********and a few hundred others of the form: "src/SdaiCONFIG_CONTROL_DESIGN.cc", line 1506: Warning: String literal converted to char* in formal argument tokenList in call to ReadEntityRef(std::basic_istream<char, std::char_traits<char>>&, ErrorDescriptor*, char*, InstMgr*, int). ***********found in directory geant4.3.2/source/geometry/solids/STEP/src ***********In addition two other routines contributed five warning messages. "src/G4NeutronHPVector.cc", line 411: Warning: theLin hides G4NeutronHPVector::theLin. 1 Warning(s) detected. "src/G4KineticTrack.cc", line 436: Warning: theDefinition hides G4KineticTrack::theDefinition. "src/G4KineticTrack.cc", line 498: Warning: theFormationTime hides G4KineticTrack::theFormationTime. "src/G4KineticTrack.cc", line 499: Warning: thePosition hides G4KineticTrack::thePosition. "src/G4KineticTrack.cc", line 500: Warning: the4Momentum hides G4KineticTrack::the4Momentum. 4 Warning(s) detected. ************The bottom line is that I can not run the examples distributed with GEANT4 due to a bad_alloc ************message. I can not tell if the installation warnings above are related to the failure to ************execute. hepsun17> gmake clean Cleaning up ... hepsun17> gmake Making dependency for file exampleN01.cc... Making dependency for file src/ExN01PrimaryGeneratorAction.cc ... Making dependency for file src/ExN01PhysicsList.cc ... Making dependency for file src/ExN01DetectorConstruction.cc ... Compiling ExN01DetectorConstruction.cc ... Compiling ExN01PhysicsList.cc ... Compiling ExN01PrimaryGeneratorAction.cc ... Creating/replacing object files in /usr/hep0/cerng4/geant4.3.2/tmp/SUN-CC5/exampleN01/libexampleN01.a Compiling exampleN01.cc ... Using granular libraries ... Linking exampleN01 ... Undefined first referenced symbol in file void __Crun::register_exit_code(void(*)()extern"C") /usr/hep0/cerng4/geant4.3.2/lib/SUN-CC5/libG4run.a(G4Run.o) std::bad_alloc::__vtbl /usr/hep0/cerng4/geant4.3.2/lib/SUN-CC5/libG4run.a(j7AMJ8jeAeuy-UFoa20o.o) [Hint: try checking whether the first non-inlined, non-pure virtual function of class std::bad_alloc is defined] void __Cimpl::cplus_init() (command line) ld: fatal: Symbol referencing errors. No output written to /usr/hep0/cerng4/geant4.3.2/bin/SUN-CC5/exampleN01 gmake: *** [/usr/hep0/cerng4/geant4.3.2/bin/SUN-CC5/exampleN01] Error 1
To slater@physics.ucla.edu : Compilation warnings in STL interface should cause no problem for exampleN01. So is other warnings in hadronics. The problem should be the compiler option or something. Please specify the version of your compiler. Also please confirm that CLHEP library is compiled with the same version of your compiler. To Gabriele : Please follow up, since this looks user's problem on installation.
This is a duplicate of report #287. Warnings produced by SdaiCONFIG_CONTROL_DESIGN.cc and in hadronics are harmless.