Problem 940 - error in linking for N01 example
Summary: error in linking for N01 example
Status: RESOLVED WONTFIX
Alias: None
Product: Examples/Basic and Novice
Classification: Unclassified
Component: N01 (show other problems)
Version: 8.2
Hardware: All All
: P5 normal
Assignee: Gabriele Cosmo
URL:
Depends on:
Blocks:
 
Reported: 2007-05-04 20:16 CEST by Pat Lawton
Modified: 2009-01-20 17:24 CET (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
Description Pat Lawton 2007-05-04 20:16:55 CEST
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
Comment 1 asai 2007-05-04 20:39:04 CEST
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")?
Comment 2 Pat Lawton 2007-05-04 20:46:54 CEST
(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.
Comment 3 asai 2007-05-04 21:07:52 CEST
(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?
Comment 4 Pat Lawton 2007-05-04 21:09:50 CEST
(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
Comment 5 asai 2007-05-04 21:23:47 CEST
(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?

Comment 6 Pat Lawton 2007-05-04 21:53:53 CEST
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

Comment 7 Gabriele Cosmo 2009-01-20 17:24:38 CET
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.