Problem 28 - Example N01 wont compile
Summary: Example N01 wont compile
Status: CLOSED WORKSFORME
Alias: None
Product: Examples/Basic and Novice
Classification: Unclassified
Component: N01 (show other problems)
Version: 0.1
Hardware: Sun Solaris
: P2 normal
Assignee: Gabriele Cosmo
URL:
Depends on:
Blocks:
 
Reported: 1999-10-31 09:33 CET by rtascher
Modified: 2007-04-08 18:42 CEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
Description rtascher 1999-10-31 09:33:08 CET
When trying to "gmake" example N01, I get the following message

robson:30> gmake
Linking exampleN01 ...
ld: fatal: library -lG4processes: not found
ld: fatal: File processing errors. No output written to /dat10/ylaroche/geant4/
geant4.0.1/bin/SUN-CC/exampleN01
make: *** [/dat10/ylaroche/geant4/geant4.0.1/bin/SUN-CC/exampleN01] Error 1

There is no libG4processes library in /lib/SUN-CC; so I have tried to compile it.
From the /source/processes directory, I have made a "gmake" and got the following
messages:
Compiling G4StopTheoDeexcitation.cc ...
"/dat10/ylaroche/geant4/geant4.0.1/source/processes/hadronic/models/generator/
de_excitation/include/G4Evaporation.hh", line 20: Error: Could not open include
file "G4VEvaporationChannel.hh".

"/dat10/ylaroche/geant4/geant4.0.1/source/processes/hadronic/models/generator/
de_excitation/include/G4EvaporationProbability.hh", line 27: Error:
G4VEvaporationChannel is not defined.
"/dat10/ylaroche/geant4/geant4.0.1/source/processes/hadronic/models/generator/
de_excitation/include/G4EvaporationProbability.hh", line 33: Error: Multiple
declaration for G4EvaporationProbability::G4EvaporationProbability().

and so on ...

Please give me a hint on what is wrong. (we are using SUN CC 4.2 and the
RogueWave standard libraries). Thank you !

Richard Taschereau
rtascher@phy.ulaval.ca
Département de physique
Université Laval
Comment 1 Makoto.Asai 1999-10-31 18:48:59 CET
This seems to be a problem of making a library of G4processes.
Comment 2 Hans-Peter.Wellisch 1999-11-01 07:55:59 CET
Hi Gabriele,

cvs co -r geant4-00-01 and gmake yields
template manager : Warning: No valid template database available.  Creating
default repository "../../../../tmp/SUN-CC/g4.ptrepository/Templates.DB".
Compiling G4AntiProtonAnnihilationAtRest.cc ...
Compiling G4DistributionGenerator.cc ...
Compiling G4KaonMinusAbsorption.cc ...
Compiling G4KaonMinusAbsorptionAtRest.cc ...
Compiling G4MuonMinusCaptureAtRest.cc ...
Compiling G4NeutronCaptureAtRest.cc ...
Compiling G4PiMinusAbsorptionAtRest.cc ...
Compiling G4PiMinusStopAbsorption.cc ...
Compiling G4PiMinusStopAl.cc ...
Compiling G4PiMinusStopC.cc ...
Compiling G4PiMinusStopCo.cc ...
Compiling G4PiMinusStopCu.cc ...
Compiling G4PiMinusStopLi.cc ...
Compiling G4PiMinusStopMaterial.cc ...
Compiling G4PiMinusStopN.cc ...
Compiling G4PiMinusStopO.cc ...
Compiling G4PiMinusStopPb.cc ...
Compiling G4PiMinusStopTa.cc ...
Compiling G4PionMinusAbsorptionAtRest.cc ...
Compiling G4StopDeexcitation.cc ...
Compiling G4StopDummyDeexcitation.cc ...
Compiling G4StopTheoDeexcitation.cc ... <====== is ok.
Creating/replacing object files in ../../../../lib/SUN-CC/libG4hadronic_stop.a

What he sees is either a problem in his local area, or a difference between the
release and the tag. (Or I use the wrong tag-name.)

Many greetings,
              Hans-Peter.
Comment 3 Gabriele Cosmo 1999-11-04 11:35:59 CET
It looks like you tried to build compound libraries (using the "gmake global"
command from $G4INSTALL/source) but did not succeed to build the library for
processes at a first trial.
Please, check that your extracted code from tar is not corrupted (NB: on SUN
platforms we experienced a bug in the "tar" command, having a limitation to
the length of the source path - as reported in our web page). Untar it using a
different system if at all possible or use the GNU tar.
Then reinstall the G4 libraries from scratch (remove the old installation).
From $G4INSTALL/source:
 "gmake global" to build compound libraries
   or
 "gmake" to build granular libraries.