Problem 387

Summary: Can not compile GEANT 4 in Tru64
Product: Geant4 Reporter: agomez
Component: configAssignee: Gabriele Cosmo <Gabriele.Cosmo>
Status: RESOLVED INVALID    
Severity: critical    
Priority: P2    
Version: 4.0   
Hardware: DEC   
OS: OSF/1   

Description agomez 2002-07-10 03:39:17 CEST
Hello

I am compiling the GEANT 4.4.0p2 in Tru64. I am using

Compaq C V6.4-014 on Compaq Tru64 UNIX V5.1A (Rev. 1885)
Compiler Driver V6.4-215 (sys) cc Driver

I get the next errors compiling some files:

Compiling G4DataVector.cc ...
cxx: Error: /usr/lib/cmplrs/cxx/V6.3-008/include/cxx_cname/math.h, line 39:
          namespace "std" has no member "acos"
using std::acos;
-----------^
cxx: Error: /usr/lib/cmplrs/cxx/V6.3-008/include/cxx_cname/math.h, line 40:
          namespace "std" has no member "asin"
using std::asin;
-----------^
cxx: Error: /usr/lib/cmplrs/cxx/V6.3-008/include/cxx_cname/math.h, line 41:
          namespace "std" has no member "atan"
using std::atan;
-----------^
cxx: Error: /usr/lib/cmplrs/cxx/V6.3-008/include/cxx_cname/math.h, line 42:
          namespace "std" has no member "atan2"
using std::atan2;
-----------^
cxx: Error: /usr/lib/cmplrs/cxx/V6.3-008/include/cxx_cname/math.h, line 43:
          namespace "std" has no member "ceil"
using std::ceil;
-----------^
/memcp
--------------------------^
cxx: Error: /usr/lib/cmplrs/cxx/V6.3-008/include/cxx/traits, line 264:
          identifier "strlen" is undefined
    { return strlen(s); }
-------------^
cxx: Error: /usr/lib/cmplrs/cxx/V6.3-008/include/cxx/traits, line 269:
          identifier "memmove" is undefined
      memmove(s1, s2, n);
------^
cxx: Error: /usr/lib/cmplrs/cxx/V6.3-008/include/cxx/traits, line 287:
          identifier "memcpy" is undefined
      memcpy(dst, src, n);
------^
cxx: Error: /usr/lib/cmplrs/cxx/V6.3-008/include/cxx/traits, line 297:
          identifier "memset" is undefined
      memset(s,a,n);
------^
cxx: Error: /usr/lib/cmplrs/cxx/V6.3-008/include/cxx/traits, line 371:
          identifier "memcmp" is undefined
      return memcmp(s1, s2, n*sizeof(char_type));
-------------^

These errors are also present in G4AntiNeutrinoE.cc,  G4DiQuarks.cc,
G4AntiBMesonZero.cc,  G4AntiLambda.cc,  G4Alpha.cc,
G4IVContinuousDiscreteProcess.cc,  G4OpAbsorption.cc, etc.

Please, could you help me?

Best regards.

Andrés Gómez
Comment 1 agomez 2002-07-10 03:41:59 CEST
Sorry. The compiler is:

sc1/agomez> cxx -V
Compaq C++ V6.3-008 for Compaq Tru64 UNIX V5.1A (Rev. 1885)
Compiler Driver V6.3-008 (cxx) cxx Driver
Comment 2 Gabriele Cosmo 2002-08-08 02:32:59 CEST
This looks like a problem in the installation of the C++ compiler.
Unfortunately, we cannot verify, since that version of the compiler
is not available to us and we do not support DEC/Compaq systems any
longer.
The Geant4 toolkit installs correctly on True64 with cxx-6.1.