Problem 772 - Compilation error detected
Summary: Compilation error detected
Status: RESOLVED WORKSFORME
Alias: None
Product: Geant4
Classification: Unclassified
Component: processes/hadronic (show other problems)
Version: 7.1
Hardware: Sun Solaris
: P2 normal
Assignee: Gabriele Cosmo
URL:
Depends on:
Blocks:
 
Reported: 2005-07-27 03:38 CEST by S.Doran
Modified: 2005-07-28 10:12 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 S.Doran 2005-07-27 03:38:21 CEST
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?
Comment 1 Gabriele Cosmo 2005-07-28 03:06:59 CEST
Can you please specify what compiler version you're using ?
Comment 2 Gabriele Cosmo 2005-07-28 10:12:59 CEST
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.