| Summary: | error in linking for N01 example | ||
|---|---|---|---|
| Product: | Examples/Basic and Novice | Reporter: | Pat Lawton <patricia.j.lawton.1> |
| Component: | N01 | Assignee: | Gabriele Cosmo <Gabriele.Cosmo> |
| Status: | RESOLVED WONTFIX | ||
| Severity: | normal | CC: | asai, Gabriele.Cosmo, patricia.j.lawton.1 |
| Priority: | P5 | ||
| Version: | 8.2 | ||
| Hardware: | All | ||
| OS: | All | ||
I presume you have migrated to 8.2.p01 from older version. Could you please confirm that you have compiled Geant4 from scratch (i.e. removing all the files in "tmp" and "lib")? (In reply to comment #1) > I presume you have migrated to 8.2.p01 from older version. > Could you please confirm that you have compiled Geant4 from scratch > (i.e. removing all the files in "tmp" and "lib")? > This is a brand new installation. We have never used this software before. The install seemed to go fine, but the check out has been frustrating. (In reply to comment #2) One more question. Did you compile CLHEP library with exactly the same compiler, or you have downloaded a binary file? (In reply to comment #3) > (In reply to comment #2) > One more question. > Did you compile CLHEP library with exactly the same > compiler, or you have downloaded a binary file? > compiled CLHEP with the same compiler on the same computer (In reply to comment #2) Thanks. Since we have not tested Geant4 for Solaris 9 with Sun C 5.8 2005/10/13 compiler (we tested with SUN Solaris 5.8, C++ CC-5.5), let me forward your issue to our release coordinator. Meanwhile, have you seen any compiler message when you compiled Geant4 library? Or, could you please go to geant4/source/processes/transportation and try "make" again to see any message shown? The output is below. I will see if I can have access to a Solaris 8 computer next week to try the software there - although it will have the same version of the C compiler as the Solaris 9 computer. Thanks, Pat ---- > cd /opt/geant4.8.2.p01/source/processes/transportation/ > gmake Making dependency for file src/G4WeightCutOffProcess.cc ... Making dependency for file src/G4WeightCutOffConfigurator.cc ... Making dependency for file src/G4VTrackTerminator.cc ... Making dependency for file src/G4VSamplerConfigurator.cc ... Making dependency for file src/G4VSampler.cc ... Making dependency for file src/G4VProcessPlacer.cc ... Making dependency for file src/G4UserSpecialCuts.cc ... Making dependency for file src/G4Transportation.cc ... Making dependency for file src/G4StepLimiter.cc ...Making dependency for file src/G4SamplingPostStepAction.cc ... Making dependency for file src/G4PWeightWindowConfigurator.cc ... Making dependency for file src/G4PScoreProcess.cc ... Making dependency for file src/G4PScoreConfigurator.cc ... Making dependency for file src/G4ProcessPlacer.cc ... Making dependency for file src/G4PImportanceConfigurator.cc ... Making dependency for file src/G4ParallelWWnTransportProcess.cc ... Making dependency for file src/G4ParallelWeightWindowProcess.cc ... Making dependency for file src/G4ParallelTransportConfigurator.cc ... Making dependency for file src/G4ParallelTransport.cc ... Making dependency for file src/G4ParallelImportanceProcess.cc ... Making dependency for file src/G4ParallelGeometrySampler.cc ... Making dependency for file src/G4ParallelGCellFinder.cc ... Making dependency for file src/G4NeutronKillerMessenger.cc ... Making dependency for file src/G4NeutronKiller.cc ... Making dependency for file src/G4MWeightWindowConfigurator.cc ... Making dependency for file src/G4MScoreProcess.cc ... Making dependency for file src/G4MScoreConfigurator.cc ... Making dependency for file src/G4MImportanceConfigurator.cc ... Making dependency for file src/G4MassWeightWindowProcess.cc ... Making dependency for file src/G4MassImportanceProcess.cc ... Making dependency for file src/G4MassGeometrySampler.cc ... Making dependency for file src/G4MassGCellFinder.cc ... Making dependency for file src/G4CoupledTransportation.cc ... Compiling G4CoupledTransportation.cc ... Compiling G4MassGCellFinder.cc ... Compiling G4MassGeometrySampler.cc ... Compiling G4MassImportanceProcess.cc ... Compiling G4MassWeightWindowProcess.cc ... Compiling G4MImportanceConfigurator.cc ... Compiling G4MScoreConfigurator.cc ... Compiling G4MScoreProcess.cc ... Compiling G4MWeightWindowConfigurator.cc ... Compiling G4NeutronKiller.cc ... Compiling G4NeutronKillerMessenger.cc ... Compiling G4ParallelGCellFinder.cc ... Compiling G4ParallelGeometrySampler.cc ... Compiling G4ParallelImportanceProcess.cc ... Compiling G4ParallelTransport.cc ... Compiling G4ParallelTransportConfigurator.cc ... Compiling G4ParallelWeightWindowProcess.cc ... Compiling G4ParallelWWnTransportProcess.cc ... Compiling G4PImportanceConfigurator.cc ... Compiling G4ProcessPlacer.cc ... Compiling G4PScoreConfigurator.cc ... Compiling G4PScoreProcess.cc ... Compiling G4PWeightWindowConfigurator.cc ... Compiling G4SamplingPostStepAction.cc ... Compiling G4StepLimiter.cc ... Compiling G4Transportation.cc ... Compiling G4UserSpecialCuts.cc ... Compiling G4VProcessPlacer.cc ... Compiling G4VSampler.cc ... Compiling G4VSamplerConfigurator.cc ... Compiling G4VTrackTerminator.cc ... Compiling G4WeightCutOffConfigurator.cc ... Compiling G4WeightCutOffProcess.cc ... Creating/replacing object files in /opt/geant4.8.2.p01/lib/SUN-CC/libG4transportation.a ... lepmom# pwd /opt/geant4.8.2.p01/source/processes/transportation Deleted old files and started new: > cd /temp_space/pat/geant4/N01 > 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 /temp_space/pat/geant/tmp/SUN-CC/exampleN01/libexampleN01.a ... Compiling exampleN01.cc ... Using granular libraries ... Linking exampleN01 ... Undefined first referenced symbol in file void G4PathFinder::PrepareNewTrack(CLHEP::Hep3Vector,CLHEP::Hep3Vector) /opt/geant4.8.2.p01/lib/SUN-CC/libG4transportation.a(G4CoupledTransportation.o) ld: fatal: Symbol referencing errors. No output written to /temp_space/pat/geant/bin/SUN-CC/exampleN01 gmake: *** [/temp_space/pat/geant/bin/SUN-CC/exampleN01] Error 1 I realize just now (eventually after the Bugzilla update of yesterday...) that this problem was assigned to me ... Have no longer way to verify porting of the code on SUN systems, and recent Geant4 releases do no longer support SunOS. Sorry. |
Hello, I have installed GEANT4 on a Sun running Solaris 9 using the Sun C 5.8 2005/10/13 compiler. The examples compile but do not link - details below. Any suggestions please? Thanks, Pat When compiling the N01 example, the output from gmake is: > 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 /temp_space/pat/geant/tmp/SUN-CC/exampleN01/libexampleN01.a ... Compiling exampleN01.cc ... Using granular libraries ... Linking exampleN01 ... Undefined first referenced symbol in file void G4PathFinder::PrepareNewTrack(CLHEP::Hep3Vector,CLHEP::Hep3Vector) /opt/geant4.8.2.p01/lib/SUN-CC/libG4transportation.a(G4CoupledTransportation.o) ld: fatal: Symbol referencing errors. No output written to /temp_space/pat/geant/bin/SUN-CC/exampleN01 gmake: *** [/temp_space/pat/geant/bin/SUN-CC/exampleN01] Error 1 The GEANT4 related output from env is: LD_LIBRARY_PATH=/opt/geant4.8.2.p01/lib:/opt/clhep-2.0.3.1/lib:/usr/local/lib:/opt/SUNWspro_11/lib G4SYSTEM=SUN-CC G4INSTALL=/opt/geant4.8.2.p01 G4LIB=/opt/geant4.8.2.p01/lib G4LEVELGAMMADATA=/opt/geant4.8.2.p01/data/PhotonEvaporation2.0 G4RADIOACTIVEDATA=/opt/geant4.8.2.p01/data/RadioactiveDecay3.1 G4LEDATA=/opt/geant4.8.2.p01/data/G4EMLOW4.2 NeutronHPCrossSections=/opt/geant4.8.2.p01/data/G4NDL3.10 CLHEP_BASE_DIR=/opt/clhep-2.0.3.1 CLHEP_INCLUDE_DIR=/opt/clhep-2.0.3.1/include CLHEP_LIB_DIR=/opt/clhep-2.0.3.1/lib CLHEP_LIB=CLHEP G4VIS_BUILD_RAYTRACERX_DRIVER=1 G4VIS_USE_RAYTRACERX=1 XMFLAGS= XMLIBS= XAWFLAGS= XAWLIBS= G4LIB_BUILD_STATIC=1 G4LIB_USE_GRANULAR=1 G4UI_USE_TCSH=1 G4WORKDIR=/temp_space/pat/geant