Message: Compilation error in g4py Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Compilation error in g4py 

Forum: Installation and Configuration
Date: 01 Jun, 2016
From: Vitaliy Ziskin <Vitaliy Ziskin>

I'm trying to compile g4py on mac OS X, El Capitan (version 10.11.5). Geant4.10.02.p01. Boost version 1.59.0. clang-703.0.29

I end up with the following error:

[  1%] Building CXX object source/global/CMakeFiles/pyG4global.dir/pyG4Exception.cc.o
[  1%] Building CXX object source/global/CMakeFiles/pyG4global.dir/pyG4ExceptionHandler.cc.o
[  2%] Building CXX object source/global/CMakeFiles/pyG4global.dir/pyG4ExceptionSeverity.cc.o
[  2%] Building CXX object source/global/CMakeFiles/pyG4global.dir/pyG4RandomDirection.cc.o
[  2%] Building CXX object source/global/CMakeFiles/pyG4global.dir/pyG4RotationMatrix.cc.o
[  3%] Building CXX object source/global/CMakeFiles/pyG4global.dir/pyG4StateManager.cc.o
[  3%] Building CXX object source/global/CMakeFiles/pyG4global.dir/pyG4String.cc.o
[  4%] Building CXX object source/global/CMakeFiles/pyG4global.dir/pyG4ThreeVector.cc.o
[  4%] Building CXX object source/global/CMakeFiles/pyG4global.dir/pyG4Timer.cc.o
[  4%] Building CXX object source/global/CMakeFiles/pyG4global.dir/pyG4Transform3D.cc.o
[  6%] Building CXX object source/global/CMakeFiles/pyG4global.dir/pyG4TwoVector.cc.o
[  6%] Building CXX object source/global/CMakeFiles/pyG4global.dir/pyG4UnitsTable.cc.o
[  6%] Building CXX object source/global/CMakeFiles/pyG4global.dir/pyG4UserLimits.cc.o
[  7%] Building CXX object source/global/CMakeFiles/pyG4global.dir/pyG4Version.cc.o
[  7%] Building CXX object source/global/CMakeFiles/pyG4global.dir/pyRandomEngines.cc.o
[  8%] Building CXX object source/global/CMakeFiles/pyG4global.dir/pyRandomize.cc.o
[  8%] Building CXX object source/global/CMakeFiles/pyG4global.dir/pygeomdefs.cc.o
[  8%] Building CXX object source/global/CMakeFiles/pyG4global.dir/pyglobals.cc.o
[  9%] Building CXX object source/global/CMakeFiles/pyG4global.dir/pymodG4global.cc.o
[  9%]Linking CXX shared library G4global.so
Undefined symbols for architecture x86_64:
  "_G4cerr", referenced from:
      pyG4Exception::f2_G4Exception(char const*, char const*, G4ExceptionSeverity, char const*) in pyG4Exception.cc.o
      PyG4ExceptionHandler::Notify(char const*, char const*, G4ExceptionSeverity, char const*) in pyG4ExceptionHandler.cc.o
  "_G4cerrbuf", referenced from:
      pyglobals::SetG4PyCoutDestination() in pyglobals.cc.o
  "_G4cout", referenced from:
      pyG4Exception::f2_G4Exception(char const*, char const*, G4ExceptionSeverity, char const*) in pyG4Exception.cc.o
  "_G4coutbuf", referenced from:
      pyglobals::SetG4PyCoutDestination() in pyglobals.cc.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [source/global/G4global.so] Error 1
make[1]: *** [source/global/CMakeFiles/pyG4global.dir/all] Error 2
make: *** [all] Error 2

Please help.

Vitaliy

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

1 Feedback: Re: Compilation error in g4py   (Ritchie Cai - 17 Jul, 2017)
 Add Message Add Message
to: "Compilation error in g4py"

 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 ]