[Gate-users] G4Exception when building GATE v7.2 w/ GPU

Edwin Leung ekleung at ucdavis.edu
Fri Aug 5 00:58:52 CEST 2016


Dear gate users,

I'm attempting to compile GATE v7.2 (Commit #66 from the develop branch)
with the GPU option and I received the following errors when building GATE:

[100%] Linking CXX executable Gate
CMakeFiles/Gate.dir/source/geometry/src/GateCylinder.cc.o: In function
`G4Tubs::SetOuterRadius(double)':
GateCylinder.cc:(.text._ZN6G4Tubs14SetOuterRadiusEd[_ZN6G4Tubs14SetOuterRadiusEd]+0x323):
undefined reference to `G4Exception(char const*, char const*,
G4ExceptionSeverity, std::basic_ostringstream<char, std::char_traits<char>,
std::allocator<char> >&)'
CMakeFiles/Gate.dir/source/geometry/src/GateCylinder.cc.o: In function
`G4Tubs::SetZHalfLength(double)':
GateCylinder.cc:(.text._ZN6G4Tubs14SetZHalfLengthEd[_ZN6G4Tubs14SetZHalfLengthEd]+0x26a):
undefined reference to `G4Exception(char const*, char const*,
G4ExceptionSeverity, std::basic_ostringstream<char, std::char_traits<char>,
std::allocator<char> >&)'
CMakeFiles/Gate.dir/source/geometry/src/GateCylinder.cc.o: In function
`G4Tubs::CheckDPhiAngle(double)':
GateCylinder.cc:(.text._ZN6G4Tubs14CheckDPhiAngleEd[_ZN6G4Tubs14CheckDPhiAngleEd]+0x286):
undefined reference to `G4Exception(char const*, char const*,
G4ExceptionSeverity, std::basic_ostringstream<char, std::char_traits<char>,
std::allocator<char> >&)'
CMakeFiles/Gate.dir/source/geometry/src/GateCylinder.cc.o: In function
`G4Tubs::SetInnerRadius(double)':
GateCylinder.cc:(.text._ZN6G4Tubs14SetInnerRadiusEd[_ZN6G4Tubs14SetInnerRadiusEd]+0x323):
undefined reference to `G4Exception(char const*, char const*,
G4ExceptionSeverity, std::basic_ostringstream<char, std::char_traits<char>,
std::allocator<char> >&)'
CMakeFiles/Gate.dir/source/geometry/src/GateSphere.cc.o: In function
`G4Sphere::CheckDPhiAngle(double)':
GateSphere.cc:(.text._ZN8G4Sphere14CheckDPhiAngleEd[_ZN8G4Sphere14CheckDPhiAngleEd]+0x286):
undefined reference to `G4Exception(char const*, char const*,
G4ExceptionSeverity, std::basic_ostringstream<char, std::char_traits<char>,
std::allocator<char> >&)'
CMakeFiles/Gate.dir/source/geometry/src/GateSphere.cc.o:GateSphere.cc:(.text._ZN8G4Sphere16CheckThetaAnglesEdd[_ZN8G4Sphere16CheckThetaAnglesEdd]+0x218):
more undefined references to `G4Exception(char const*, char const*,
G4ExceptionSeverity, std::basic_ostringstream<char, std::char_traits<char>,
std::allocator<char> >&)' follow
collect2: error: ld returned 1 exit status
CMakeFiles/Gate.dir/build.make:16737: recipe for target 'Gate' failed
make[2]: *** [Gate] Error 1
CMakeFiles/Makefile2:68: recipe for target 'CMakeFiles/Gate.dir/all' failed
make[1]: *** [CMakeFiles/Gate.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

Can anyone help? I'm currently running the following hardware and software
configurations after many attempts:

Motherboard: Gigabyte Z170N-Gaming-5
CPU: i7-6600K (Skylake)
GPU: GTX 1080 Armor
OS: Ubuntu 16.04.1 LTS
GPU driver version: 367.35
CUDA version: 8.0RC
gcc version: 4.9.3 (Used the default 5.4.0 for everything else except GATE
and used --override when installing CUDA 8.0RC from *.run file)

Many thanks,

Ed
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20160804/8f10f7b0/attachment.html>


More information about the Gate-users mailing list