Message: Re: Problem with mavericks for Geant4.9.6p02 Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Re: Problem with mavericks for Geant4.9.6p02 

Forum: Installation and Configuration
Re: Question Problem with mavericks for Geant4.9.6p02 (Christian)
Re: Feedback Re: Problem with mavericks for Geant4.9.6p02 (Michael H. Kelsey)
Re: None Re: Problem with mavericks for Geant4.9.6p02 (Christian)
Re: Question Re: Problem with mavericks for Geant4.9.6p02 (Gabriele Cosmo)
Date: 02 Dec, 2013
From: Ildefonso Leon <Ildefonso Leon>

Dear all

I have been trying the installation of geant4.p02 in my Imac. I am using Mavericks. I must say that geant4 is compiled, and installed successfully. but when I try to compile one of the examples errors appears.

I have followed some ideas to fix the error, but none of them works. I will appreciate any help.

This is the error i have:

Compiling DetectorConstruction.cc ...
In file included from src/DetectorConstruction.cc:34:
In file included from include/DetectorConstruction.hh:37:
In file included from /Users/ileonmon/GEANT4/geant4.9.6-install/include/Geant4/G4VUserDetectorConstruction.hh:37:
In file included from /Users/ileonmon/GEANT4/geant4.9.6-install/include/Geant4/globals.hh:49:
In file included from /Users/ileonmon/GEANT4/geant4.9.6-install/include/Geant4/G4ios.hh:39:
In file included from /Users/ileonmon/GEANT4/geant4.9.6-install/include/Geant4/G4Types.hh:59:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/complex:247:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/sstream:174:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/ostream:130:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/ios:216:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/__locale:55:20: error: 
      use of undeclared identifier 'LC_COLLATE_MASK'
        collate  = LC_COLLATE_MASK,
                   ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/__locale:56:20: error: 
      use of undeclared identifier 'LC_CTYPE_MASK'
        ctype    = LC_CTYPE_MASK,
                   ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/__locale:57:20: error: 
      use of undeclared identifier 'LC_MONETARY_MASK'
        monetary = LC_MONETARY_MASK,
                   ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/__locale:58:20: error: 
      use of undeclared identifier 'LC_NUMERIC_MASK'
        numeric  = LC_NUMERIC_MASK,
                   ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/__locale:59:20: error: 
      use of undeclared identifier 'LC_TIME_MASK'
        time     = LC_TIME_MASK,
                   ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/__locale:60:20: error: 
      use of undeclared identifier 'LC_MESSAGES_MASK'
        messages = LC_MESSAGES_MASK,
                   ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/__locale:61:15: error: 
      in-class initializer for static data member is not a constant expression
        all = collate | ctype | monetary | numeric | time | messages;
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/__locale:267:5: error: 
      unknown type name 'locale_t'; did you mean 'locale'?
    locale_t __l;
    ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/__locale:45:24: note: 
      'locale' declared here
class _LIBCPP_TYPE_VIS locale
                       ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/__locale:286:5: error: 
      unknown type name 'locale_t'; did you mean 'locale'?
    locale_t __l;
    ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/__locale:45:24: note: 
      'locale' declared here
class _LIBCPP_TYPE_VIS locale
                       ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/__locale:617:5: error: 
      unknown type name 'locale_t'; did you mean 'locale'?
    locale_t __l;
    ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/__locale:45:24: note: 
      'locale' declared here
class _LIBCPP_TYPE_VIS locale
                       ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/__locale:635:5: error: 
      unknown type name 'locale_t'; did you mean 'locale'?
    locale_t __l;
    ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/__locale:45:24: note: 
      'locale' declared here
class _LIBCPP_TYPE_VIS locale
                       ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/__locale:867:5: error: 
      unknown type name 'locale_t'; did you mean 'locale'?
    locale_t __l;
    ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/__locale:45:24: note: 
      'locale' declared here
class _LIBCPP_TYPE_VIS locale
                       ^
In file included from src/DetectorConstruction.cc:34:
In file included from include/DetectorConstruction.hh:37:
In file included from /Users/ileonmon/GEANT4/geant4.9.6-install/include/Geant4/G4VUserDetectorConstruction.hh:37:
In file included from /Users/ileonmon/GEANT4/geant4.9.6-install/include/Geant4/globals.hh:49:
In file included from /Users/ileonmon/GEANT4/geant4.9.6-install/include/Geant4/G4ios.hh:39:
In file included from /Users/ileonmon/GEANT4/geant4.9.6-install/include/Geant4/G4Types.hh:59:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/complex:247:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/sstream:174:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/ostream:132:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/locale:215:31: error: 
      unknown type name 'locale_t'; did you mean 'locale'?
typedef _VSTD::remove_pointer<locale_t>::type __locale_struct;
                              ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/__locale:45:24: note: 
      'locale' declared here
class _LIBCPP_TYPE_VIS locale
                       ^
In file included from src/DetectorConstruction.cc:34:
In file included from include/DetectorConstruction.hh:37:
In file included from /Users/ileonmon/GEANT4/geant4.9.6-install/include/Geant4/G4VUserDetectorConstruction.hh:37:
In file included from /Users/ileonmon/GEANT4/geant4.9.6-install/include/Geant4/globals.hh:49:
In file included from /Users/ileonmon/GEANT4/geant4.9.6-install/include/Geant4/G4ios.hh:39:
In file included from /Users/ileonmon/GEANT4/geant4.9.6-install/include/Geant4/G4Types.hh:59:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/complex:247:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/sstream:174:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/ostream:132:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/locale:216:54: error: 
      use of undeclared identifier 'freelocale'; did you mean 'setlocale'?
typedef _VSTD::unique_ptr<__locale_struct, decltype(&freelocale)> __loca...
                                                     ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/__config:417:32: note: 
      expanded from macro 'decltype'
#define decltype(x) __typeof__(x)
                               ^
/usr/include/locale.h:53:8: note: 'setlocale' declared here
char            *setlocale(int, const char *);
                 ^
In file included from src/DetectorConstruction.cc:34:
In file included from include/DetectorConstruction.hh:37:
In file included from /Users/ileonmon/GEANT4/geant4.9.6-install/include/Geant4/G4VUserDetectorConstruction.hh:37:
In file included from /Users/ileonmon/GEANT4/geant4.9.6-install/include/Geant4/globals.hh:49:
In file included from /Users/ileonmon/GEANT4/geant4.9.6-install/include/Geant4/G4ios.hh:39:
In file included from /Users/ileonmon/GEANT4/geant4.9.6-install/include/Geant4/G4Types.hh:59:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/complex:247:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/sstream:174:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/ostream:132:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/locale:837:26: error: 
      use of undeclared identifier 'strtoll_l'
        long long __ll = strtoll_l(__a, &__p2, __base, _LIBCPP_GET_C_LOCALE);
                         ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/locale:877:35: error: 
      use of undeclared identifier 'strtoull_l'
        unsigned long long __ll = strtoull_l(__a, &__p2, __base, _LIBCPP...
                                  ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/locale:905:28: error: 
      use of undeclared identifier 'strtold_l'; did you mean 'strtoll'?
        long double __ld = strtold_l(__a, &__p2, _LIBCPP_GET_C_LOCALE);
                           ^
/usr/include/stdlib.h:169:3: note: 'strtoll' declared here
         strtoll(const char *, char **, int);
         ^
In file included from src/DetectorConstruction.cc:34:
In file included from include/DetectorConstruction.hh:37:
In file included from /Users/ileonmon/GEANT4/geant4.9.6-install/include/Geant4/G4VUserDetectorConstruction.hh:37:
In file included from /Users/ileonmon/GEANT4/geant4.9.6-install/include/Geant4/globals.hh:49:
In file included from /Users/ileonmon/GEANT4/geant4.9.6-install/include/Geant4/G4ios.hh:39:
In file included from /Users/ileonmon/GEANT4/geant4.9.6-install/include/Geant4/G4Types.hh:59:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/complex:247:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/sstream:174:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/ostream:132:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/locale:1431:9: error: 
      use of undeclared identifier 'sscanf_l'
    if (sscanf_l(__a, _LIBCPP_GET_C_LOCALE, "%p", &__v) != 1)
        ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/locale:1539:18: error: 
      use of undeclared identifier 'isxdigit_l'; did you mean 'isxdigit'?
            if (!isxdigit_l(*__ns, _LIBCPP_GET_C_LOCALE))
                 ^
/usr/include/ctype.h:280:1: note: 'isxdigit' declared here
isxdigit(int _c)
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [/Users/ileonmon/geant4_workdir/tmp/Darwin-clang/exampleN03/DetectorConstruction.o] Error 1

Regards,

 Add Message Add Message
to: "Re: Problem with mavericks for Geant4.9.6p02"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]