Message: Compilation error of Geant4Py (geant4.9.4.p02) under macosx 10.6.8 Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Sad Compilation error of Geant4Py (geant4.9.4.p02) under macosx 10.6.8 

Forum: Installation and Configuration
Date: 04 Oct, 2011
From: Matilde <Matilde>

Hi everyone, 

I have a problem with the installation of Geant4Py. I've already installed Geant4 and it's working without any problem. Then, when I've tried to install Geant4Py everything has gone wrong. At first, the make script complained about an unknown compilers flag "-Wno-long-double" which we discovered being an obsolete flag for the older version of macosx (until 10.4). We removed the flag from the macosx.gmk script contained in the /Applications/geant4.9.4.p02/environments/g4py/config/sys/ directory. After that everything seemed to be going fine with the compilation until these errors came out.

Thanks for the help. 


THE PROBLEM:
Compilation error in the MAKE execution for the building of the Geant4Py module.
There are 3 errors like the following:

pyG4VProcess.cc:43: error: no matching function for call to ‘G4VProcess::StorePhysicsTable(const G4ParticleDefinition*&, const G4String&)’
/Applications/geant4.9.4.p02/include/G4VProcess.hh:232: note: candidates are: virtual G4bool G4VProcess::StorePhysicsTable(const G4ParticleDefinition*, const G4String&, G4bool)


SYSTEM CONFIGURATION:

Laptop model: Mac Book Pro 5 with Intel Core 2 Duo

Python version:

MacBook-Pro-di-matilde:g4py matilde$ python
Python 2.7 (r27:82508, Jul  3 2010, 21:12:11) 
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin

Xcode version 3.2.6 for Mac OS X 10.6

CLHEP version 2.1.0.1

Boost Library version 1.47.0

Geant version: geant4.9.4.p02

Operative system: Mac OS X version 10.6.8

g++ version: 
Target: i686-apple-darwin10
Configured with: /var/tmp/gcc/gcc-5666.3~6/src/configure --disable-checking --enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin10 --program-prefix=i686-apple-darwin10- --host=x86_64-apple-darwin10 --target=i686-apple-darwin10 --with-gxx-include-dir=/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Apple Inc. build 5666) (dot 3)


OUTPUT OF THE CONFIGURE SCRIPT:

MacBook-Pro-di-matilde:g4py matilde$ ./configure macosx

Checking for system type ... macosx
Checking for prefix ... /Applications/geant4.9.4.p02/environments/g4py
Checking for lib dir ... /Applications/geant4.9.4.p02/environments/g4py/lib
Checking for G4 include dir ... /Applications/geant4.9.4.p02/include
Checking for G4 lib dir ... /Applications/geant4.9.4.p02/lib/Darwin-g++
Checking for G4 libs are shared libraray ... ok
Checking for CLHEP include dir ... /Applications/CLHEP/include
Checking for CLHEP lib dir ... /Applications/CLHEP/lib
Checking for CLHEP lib name ... libCLHEP.dylib
Checking for Python include dir (pyconfig.h) ... /usr/include/python2.6
Checking for Python lib dir ... /usr/lib
Checking for Boost include dir (boost/python.hpp) ... /usr/local/include
Checking for Boost version ... ok
Checking for Boost lib dir ... /usr/local/lib
Checking for Boost Python lib name ... libboost_python.dylib
Checking for OpenGL support ...yes
Checking for GL2PS support ...yes
Checking for physics list support ...yes
Checking for GDML support ...no
Writing config.gmk ... done
Writing config.status ... done

Enabled support for openglx gl2ps physicslist.

To build Geant4Py type:

  make
  make install


OUTPUT OF THE MAKE SCRIPT:

MacBook-Pro-di-matilde:g4py matilde$ make

make[2]: `G4global.so' is up to date.
make[2]: `G4interface.so' is up to date.
make[2]: `G4intercoms.so' is up to date.
make[2]: `G4run.so' is up to date.
make[2]: `G4event.so' is up to date.
make[2]: `G4tracking.so' is up to date.
make[2]: `G4track.so' is up to date.
make[2]: `G4geometry.so' is up to date.
make[2]: `G4materials.so' is up to date.
make[2]: `G4particles.so' is up to date.
Compiling pyG4VProcess.cc ...
pyG4VProcess.cc: In static member function ‘static typename boost::mpl::deref<typename boost::mpl::begin<T1>::type>::type pyG4VProcess::f_StorePhysicsTable::non_void_return_type::gen<SigT>::func_0(typename boost::mpl::deref<typename boost::mpl::next<typename boost::mpl::begin<T1>::type>::type>::type, typename boost::mpl::deref<typename boost::mpl::next<typename boost::mpl::next<typename boost::mpl::begin<T1>::type>::type>::type>::type, typename boost::mpl::deref<typename boost::mpl::next<typename boost::mpl::next<typename boost::mpl::next<typename boost::mpl::begin<T1>::type>::type>::type>::type>::type) [with SigT = boost::mpl::vector5<bool, G4VProcess&, const G4ParticleDefinition*, const G4String&, bool>]’:
/usr/local/include/boost/python/detail/defaults_def.hpp:280:   instantiated from ‘static void boost::python::detail::define_stub_function<0>::define(const char*, const StubsT&, const boost::python::detail::keyword_range&, const CallPolicies&, NameSpaceT&, const char*) [with StubsT = pyG4VProcess::f_StorePhysicsTable::non_void_return_type::gen<boost::mpl::vector5<bool, G4VProcess&, const G4ParticleDefinition*, const G4String&, bool> >, CallPolicies = boost::python::default_call_policies, NameSpaceT = boost::python::class_<G4VProcess, G4VProcess*, boost::noncopyable_::noncopyable, boost::python::detail::not_specified>]’
/usr/local/include/boost/python/detail/defaults_def.hpp:195:   instantiated from ‘static void boost::python::detail::define_with_defaults_helper<0>::def(const char*, StubsT, const boost::python::detail::keyword_range&, const CallPolicies&, NameSpaceT&, const char*) [with StubsT = pyG4VProcess::f_StorePhysicsTable::non_void_return_type::gen<boost::mpl::vector5<bool, G4VProcess&, const G4ParticleDefinition*, const G4String&, bool> >, CallPolicies = boost::python::default_call_policies, NameSpaceT = boost::python::class_<G4VProcess, G4VProcess*, boost::noncopyable_::noncopyable, boost::python::detail::not_specified>]’
/usr/local/include/boost/python/detail/defaults_def.hpp:177:   instantiated from ‘static void boost::python::detail::define_with_defaults_helper<N>::def(const char*, StubsT, boost::python::detail::keyword_range, const CallPolicies&, NameSpaceT&, const char*) [with StubsT = pyG4VProcess::f_StorePhysicsTable::non_void_return_type::gen<boost::mpl::vector5<bool, G4VProcess&, const G4ParticleDefinition*, const G4String&, bool> >, CallPolicies = boost::python::default_call_policies, NameSpaceT = boost::python::class_<G4VProcess, G4VProcess*, boost::noncopyable_::noncopyable, boost::python::detail::not_specified>, int N = 1]’
/usr/local/include/boost/python/detail/defaults_def.hpp:250:   instantiated from ‘void boost::python::detail::define_with_defaults(const char*, const OverloadsT&, NameSpaceT&, const SigT&) [with OverloadsT = pyG4VProcess::f_StorePhysicsTable, NameSpaceT = boost::python::class_<G4VProcess, G4VProcess*, boost::noncopyable_::noncopyable, boost::python::detail::not_specified>, SigT = boost::mpl::vector5<bool, G4VProcess&, const G4ParticleDefinition*, const G4String&, bool>]’
/usr/local/include/boost/python/class.hpp:597:   instantiated from ‘void boost::python::class_<T, X1, X2, X3>::def_maybe_overloads(const char*, SigT, const OverloadsT&, const boost::python::detail::overloads_base*) [with OverloadsT = pyG4VProcess::f_StorePhysicsTable, SigT = G4bool (G4VProcess::*)(const G4ParticleDefinition*, const G4String&, G4bool), W = G4VProcess, X1 = G4VProcess*, X2 = boost::noncopyable_::noncopyable, X3 = boost::python::detail::not_specified]’
/usr/local/include/boost/python/class.hpp:244:   instantiated from ‘boost::python::class_<T, X1, X2, X3>& boost::python::class_<T, X1, X2, X3>::def(const char*, A1, const A2&) [with A1 = G4bool (G4VProcess::*)(const G4ParticleDefinition*, const G4String&, G4bool), A2 = pyG4VProcess::f_StorePhysicsTable, W = G4VProcess, X1 = G4VProcess*, X2 = boost::noncopyable_::noncopyable, X3 = boost::python::detail::not_specified]’
pyG4VProcess.cc:68:   instantiated from here
pyG4VProcess.cc:43: error: no matching function for call to ‘G4VProcess::StorePhysicsTable(const G4ParticleDefinition*&, const G4String&)’
/Applications/geant4.9.4.p02/include/G4VProcess.hh:232: note: candidates are: virtual G4bool G4VProcess::StorePhysicsTable(const G4ParticleDefinition*, const G4String&, G4bool)
pyG4VProcess.cc: In static member function ‘static typename boost::mpl::deref<typename boost::mpl::begin<T1>::type>::type pyG4VProcess::f_RetrievePhysicsTable::non_void_return_type::gen<SigT>::func_0(typename boost::mpl::deref<typename boost::mpl::next<typename boost::mpl::begin<T1>::type>::type>::type, typename boost::mpl::deref<typename boost::mpl::next<typename boost::mpl::next<typename boost::mpl::begin<T1>::type>::type>::type>::type, typename boost::mpl::deref<typename boost::mpl::next<typename boost::mpl::next<typename boost::mpl::next<typename boost::mpl::begin<T1>::type>::type>::type>::type>::type) [with SigT = boost::mpl::vector5<bool, G4VProcess&, const G4ParticleDefinition*, const G4String&, bool>]’:
/usr/local/include/boost/python/detail/defaults_def.hpp:280:   instantiated from ‘static void boost::python::detail::define_stub_function<0>::define(const char*, const StubsT&, const boost::python::detail::keyword_range&, const CallPolicies&, NameSpaceT&, const char*) [with StubsT = pyG4VProcess::f_RetrievePhysicsTable::non_void_return_type::gen<boost::mpl::vector5<bool, G4VProcess&, const G4ParticleDefinition*, const G4String&, bool> >, CallPolicies = boost::python::default_call_policies, NameSpaceT = boost::python::class_<G4VProcess, G4VProcess*, boost::noncopyable_::noncopyable, boost::python::detail::not_specified>]’
/usr/local/include/boost/python/detail/defaults_def.hpp:195:   instantiated from ‘static void boost::python::detail::define_with_defaults_helper<0>::def(const char*, StubsT, const boost::python::detail::keyword_range&, const CallPolicies&, NameSpaceT&, const char*) [with StubsT = pyG4VProcess::f_RetrievePhysicsTable::non_void_return_type::gen<boost::mpl::vector5<bool, G4VProcess&, const G4ParticleDefinition*, const G4String&, bool> >, CallPolicies = boost::python::default_call_policies, NameSpaceT = boost::python::class_<G4VProcess, G4VProcess*, boost::noncopyable_::noncopyable, boost::python::detail::not_specified>]’
/usr/local/include/boost/python/detail/defaults_def.hpp:177:   instantiated from ‘static void boost::python::detail::define_with_defaults_helper<N>::def(const char*, StubsT, boost::python::detail::keyword_range, const CallPolicies&, NameSpaceT&, const char*) [with StubsT = pyG4VProcess::f_RetrievePhysicsTable::non_void_return_type::gen<boost::mpl::vector5<bool, G4VProcess&, const G4ParticleDefinition*, const G4String&, bool> >, CallPolicies = boost::python::default_call_policies, NameSpaceT = boost::python::class_<G4VProcess, G4VProcess*, boost::noncopyable_::noncopyable, boost::python::detail::not_specified>, int N = 1]’
/usr/local/include/boost/python/detail/defaults_def.hpp:250:   instantiated from ‘void boost::python::detail::define_with_defaults(const char*, const OverloadsT&, NameSpaceT&, const SigT&) [with OverloadsT = pyG4VProcess::f_RetrievePhysicsTable, NameSpaceT = boost::python::class_<G4VProcess, G4VProcess*, boost::noncopyable_::noncopyable, boost::python::detail::not_specified>, SigT = boost::mpl::vector5<bool, G4VProcess&, const G4ParticleDefinition*, const G4String&, bool>]’
/usr/local/include/boost/python/class.hpp:597:   instantiated from ‘void boost::python::class_<T, X1, X2, X3>::def_maybe_overloads(const char*, SigT, const OverloadsT&, const boost::python::detail::overloads_base*) [with OverloadsT = pyG4VProcess::f_RetrievePhysicsTable, SigT = G4bool (G4VProcess::*)(const G4ParticleDefinition*, const G4String&, G4bool), W = G4VProcess, X1 = G4VProcess*, X2 = boost::noncopyable_::noncopyable, X3 = boost::python::detail::not_specified]’
/usr/local/include/boost/python/class.hpp:244:   instantiated from ‘boost::python::class_<T, X1, X2, X3>& boost::python::class_<T, X1, X2, X3>::def(const char*, A1, const A2&) [with A1 = G4bool (G4VProcess::*)(const G4ParticleDefinition*, const G4String&, G4bool), A2 = pyG4VProcess::f_RetrievePhysicsTable, W = G4VProcess, X1 = G4VProcess*, X2 = boost::noncopyable_::noncopyable, X3 = boost::python::detail::not_specified]’
pyG4VProcess.cc:70:   instantiated from here
pyG4VProcess.cc:45: error: no matching function for call to ‘G4VProcess::RetrievePhysicsTable(const G4ParticleDefinition*&, const G4String&)’
/Applications/geant4.9.4.p02/include/G4VProcess.hh:237: note: candidates are: virtual G4bool G4VProcess::RetrievePhysicsTable(const G4ParticleDefinition*, const G4String&, G4bool)
make[2]: *** [pyG4VProcess.o] Error 1
make[2]: `G4digits_hits.so' is up to date.
make[2]: `G4visualization.so' is up to date.
make[2]: `G4graphics_reps.so' is up to date.
make[2]: `G4physicslists.so' is up to date.
make[2]: `G4gdml.so' is up to date.
make[2]: Nothing to be done for `all'.
make[3]: `Qgeom.so' is up to date.
make[3]: `ExN01geom.so' is up to date.
make[3]: `ExN03geom.so' is up to date.
make[3]: `ezgeom.so' is up to date.
make[3]: `Qmaterials.so' is up to date.
make[3]: `NISTmaterials.so' is up to date.
make[3]: Nothing to be done for `all'.
make[3]: `ExN01pl.so' is up to date.
make[3]: `ExN03pl.so' is up to date.
make[3]: `EMSTDpl.so' is up to date.
make[3]: `EMLowEpl.so' is up to date.
#@for dir in ; do (cd $dir && make); done;:
make[3]: `ParticleGun.so' is up to date.
make[3]: `MedicalBeam.so' is up to date.
make[3]: Nothing to be done for `all'.
make[2]: Nothing to be done for `all'.

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 Question: Re: Compilation error of Geant4Py (geant4.9.4.p02) under macosx 10.6.8   (Jeff George - 08 Nov, 2011)
2 None: Re: Compilation error of Geant4Py (geant4.9.4.p02) under macosx 10.6.8   (Ben Connors - 14 Dec, 2011)
1 Idea: Re: Compilation error of Geant4Py (geant4.9.4.p02) under macosx 10.6.8   (Ben Morgan - 15 Dec, 2011)
 Add Message Add Message
to: "Compilation error of Geant4Py (geant4.9.4.p02) under macosx 10.6.8"

 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 ]