❯ make ptl-shared VERBOSE=1 /Applications/CMake.app/Contents/bin/cmake -S/Users/r/Documents/College/SLP/GATE/g4-test/geant4-v11.1.1 -B/Users/r/Documents/College/SLP/GATE/g4-test/build1 --check-build-system CMakeFiles/Makefile.cmake 0 /Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/Makefile2 ptl-shared /Applications/CMake.app/Contents/bin/cmake -S/Users/r/Documents/College/SLP/GATE/g4-test/geant4-v11.1.1 -B/Users/r/Documents/College/SLP/GATE/g4-test/build1 --check-build-system CMakeFiles/Makefile.cmake 0 /Applications/CMake.app/Contents/bin/cmake -E cmake_progress_start /Users/r/Documents/College/SLP/GATE/g4-test/build1/CMakeFiles 0 /Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/Makefile2 source/externals/ptl/src/CMakeFiles/ptl-shared.dir/all /Applications/Xcode.app/Contents/Developer/usr/bin/make -f source/externals/ptl/src/CMakeFiles/ptl-shared.dir/build.make source/externals/ptl/src/CMakeFiles/ptl-shared.dir/depend cd /Users/r/Documents/College/SLP/GATE/g4-test/build1 && /Applications/CMake.app/Contents/bin/cmake -E cmake_depends "Unix Makefiles" /Users/r/Documents/College/SLP/GATE/g4-test/geant4-v11.1.1 /Users/r/Documents/College/SLP/GATE/g4-test/geant4-v11.1.1/source/externals/ptl/src /Users/r/Documents/College/SLP/GATE/g4-test/build1 /Users/r/Documents/College/SLP/GATE/g4-test/build1/source/externals/ptl/src /Users/r/Documents/College/SLP/GATE/g4-test/build1/source/externals/ptl/src/CMakeFiles/ptl-shared.dir/DependInfo.cmake --color= /Applications/Xcode.app/Contents/Developer/usr/bin/make -f source/externals/ptl/src/CMakeFiles/ptl-shared.dir/build.make source/externals/ptl/src/CMakeFiles/ptl-shared.dir/build Building CXX object source/externals/ptl/src/CMakeFiles/ptl-shared.dir/TaskGroup.cc.o cd /Users/r/Documents/College/SLP/GATE/g4-test/build1/source/externals/ptl/src && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DPTL_ALLOC_EXPORT -DPTL_BUILD_DLL -Dptl_shared_EXPORTS -I/Users/r/Documents/College/SLP/GATE/g4-test/geant4-v11.1.1/source/externals/ptl/include -I/Users/r/Documents/College/SLP/GATE/g4-test/build1/source/externals/ptl/src -W -Wall -pedantic -Wno-non-virtual-dtor -Wno-long-long -Wwrite-strings -Wpointer-arith -Woverloaded-virtual -Wno-variadic-macros -Wshadow -pipe -Qunused-arguments -DGL_SILENCE_DEPRECATION -O3 -DNDEBUG -fno-trapping-math -ftree-vectorize -fno-math-errno -std=c++17 -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk -fPIC -MD -MT source/externals/ptl/src/CMakeFiles/ptl-shared.dir/TaskGroup.cc.o -MF CMakeFiles/ptl-shared.dir/TaskGroup.cc.o.d -o CMakeFiles/ptl-shared.dir/TaskGroup.cc.o -c /Users/r/Documents/College/SLP/GATE/g4-test/geant4-v11.1.1/source/externals/ptl/src/TaskGroup.cc Building CXX object source/externals/ptl/src/CMakeFiles/ptl-shared.dir/TaskRunManager.cc.o cd /Users/r/Documents/College/SLP/GATE/g4-test/build1/source/externals/ptl/src && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DPTL_ALLOC_EXPORT -DPTL_BUILD_DLL -Dptl_shared_EXPORTS -I/Users/r/Documents/College/SLP/GATE/g4-test/geant4-v11.1.1/source/externals/ptl/include -I/Users/r/Documents/College/SLP/GATE/g4-test/build1/source/externals/ptl/src -W -Wall -pedantic -Wno-non-virtual-dtor -Wno-long-long -Wwrite-strings -Wpointer-arith -Woverloaded-virtual -Wno-variadic-macros -Wshadow -pipe -Qunused-arguments -DGL_SILENCE_DEPRECATION -O3 -DNDEBUG -fno-trapping-math -ftree-vectorize -fno-math-errno -std=c++17 -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk -fPIC -MD -MT source/externals/ptl/src/CMakeFiles/ptl-shared.dir/TaskRunManager.cc.o -MF CMakeFiles/ptl-shared.dir/TaskRunManager.cc.o.d -o CMakeFiles/ptl-shared.dir/TaskRunManager.cc.o -c /Users/r/Documents/College/SLP/GATE/g4-test/geant4-v11.1.1/source/externals/ptl/src/TaskRunManager.cc Building CXX object source/externals/ptl/src/CMakeFiles/ptl-shared.dir/ThreadData.cc.o cd /Users/r/Documents/College/SLP/GATE/g4-test/build1/source/externals/ptl/src && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DPTL_ALLOC_EXPORT -DPTL_BUILD_DLL -Dptl_shared_EXPORTS -I/Users/r/Documents/College/SLP/GATE/g4-test/geant4-v11.1.1/source/externals/ptl/include -I/Users/r/Documents/College/SLP/GATE/g4-test/build1/source/externals/ptl/src -W -Wall -pedantic -Wno-non-virtual-dtor -Wno-long-long -Wwrite-strings -Wpointer-arith -Woverloaded-virtual -Wno-variadic-macros -Wshadow -pipe -Qunused-arguments -DGL_SILENCE_DEPRECATION -O3 -DNDEBUG -fno-trapping-math -ftree-vectorize -fno-math-errno -std=c++17 -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk -fPIC -MD -MT source/externals/ptl/src/CMakeFiles/ptl-shared.dir/ThreadData.cc.o -MF CMakeFiles/ptl-shared.dir/ThreadData.cc.o.d -o CMakeFiles/ptl-shared.dir/ThreadData.cc.o -c /Users/r/Documents/College/SLP/GATE/g4-test/geant4-v11.1.1/source/externals/ptl/src/ThreadData.cc Building CXX object source/externals/ptl/src/CMakeFiles/ptl-shared.dir/ThreadPool.cc.o cd /Users/r/Documents/College/SLP/GATE/g4-test/build1/source/externals/ptl/src && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DPTL_ALLOC_EXPORT -DPTL_BUILD_DLL -Dptl_shared_EXPORTS -I/Users/r/Documents/College/SLP/GATE/g4-test/geant4-v11.1.1/source/externals/ptl/include -I/Users/r/Documents/College/SLP/GATE/g4-test/build1/source/externals/ptl/src -W -Wall -pedantic -Wno-non-virtual-dtor -Wno-long-long -Wwrite-strings -Wpointer-arith -Woverloaded-virtual -Wno-variadic-macros -Wshadow -pipe -Qunused-arguments -DGL_SILENCE_DEPRECATION -O3 -DNDEBUG -fno-trapping-math -ftree-vectorize -fno-math-errno -std=c++17 -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk -fPIC -MD -MT source/externals/ptl/src/CMakeFiles/ptl-shared.dir/ThreadPool.cc.o -MF CMakeFiles/ptl-shared.dir/ThreadPool.cc.o.d -o CMakeFiles/ptl-shared.dir/ThreadPool.cc.o -c /Users/r/Documents/College/SLP/GATE/g4-test/geant4-v11.1.1/source/externals/ptl/src/ThreadPool.cc Building CXX object source/externals/ptl/src/CMakeFiles/ptl-shared.dir/Threading.cc.o cd /Users/r/Documents/College/SLP/GATE/g4-test/build1/source/externals/ptl/src && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DPTL_ALLOC_EXPORT -DPTL_BUILD_DLL -Dptl_shared_EXPORTS -I/Users/r/Documents/College/SLP/GATE/g4-test/geant4-v11.1.1/source/externals/ptl/include -I/Users/r/Documents/College/SLP/GATE/g4-test/build1/source/externals/ptl/src -W -Wall -pedantic -Wno-non-virtual-dtor -Wno-long-long -Wwrite-strings -Wpointer-arith -Woverloaded-virtual -Wno-variadic-macros -Wshadow -pipe -Qunused-arguments -DGL_SILENCE_DEPRECATION -O3 -DNDEBUG -fno-trapping-math -ftree-vectorize -fno-math-errno -std=c++17 -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk -fPIC -MD -MT source/externals/ptl/src/CMakeFiles/ptl-shared.dir/Threading.cc.o -MF CMakeFiles/ptl-shared.dir/Threading.cc.o.d -o CMakeFiles/ptl-shared.dir/Threading.cc.o -c /Users/r/Documents/College/SLP/GATE/g4-test/geant4-v11.1.1/source/externals/ptl/src/Threading.cc Building CXX object source/externals/ptl/src/CMakeFiles/ptl-shared.dir/Timer.cc.o cd /Users/r/Documents/College/SLP/GATE/g4-test/build1/source/externals/ptl/src && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DPTL_ALLOC_EXPORT -DPTL_BUILD_DLL -Dptl_shared_EXPORTS -I/Users/r/Documents/College/SLP/GATE/g4-test/geant4-v11.1.1/source/externals/ptl/include -I/Users/r/Documents/College/SLP/GATE/g4-test/build1/source/externals/ptl/src -W -Wall -pedantic -Wno-non-virtual-dtor -Wno-long-long -Wwrite-strings -Wpointer-arith -Woverloaded-virtual -Wno-variadic-macros -Wshadow -pipe -Qunused-arguments -DGL_SILENCE_DEPRECATION -O3 -DNDEBUG -fno-trapping-math -ftree-vectorize -fno-math-errno -std=c++17 -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk -fPIC -MD -MT source/externals/ptl/src/CMakeFiles/ptl-shared.dir/Timer.cc.o -MF CMakeFiles/ptl-shared.dir/Timer.cc.o.d -o CMakeFiles/ptl-shared.dir/Timer.cc.o -c /Users/r/Documents/College/SLP/GATE/g4-test/geant4-v11.1.1/source/externals/ptl/src/Timer.cc Building CXX object source/externals/ptl/src/CMakeFiles/ptl-shared.dir/UserTaskQueue.cc.o cd /Users/r/Documents/College/SLP/GATE/g4-test/build1/source/externals/ptl/src && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DPTL_ALLOC_EXPORT -DPTL_BUILD_DLL -Dptl_shared_EXPORTS -I/Users/r/Documents/College/SLP/GATE/g4-test/geant4-v11.1.1/source/externals/ptl/include -I/Users/r/Documents/College/SLP/GATE/g4-test/build1/source/externals/ptl/src -W -Wall -pedantic -Wno-non-virtual-dtor -Wno-long-long -Wwrite-strings -Wpointer-arith -Woverloaded-virtual -Wno-variadic-macros -Wshadow -pipe -Qunused-arguments -DGL_SILENCE_DEPRECATION -O3 -DNDEBUG -fno-trapping-math -ftree-vectorize -fno-math-errno -std=c++17 -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk -fPIC -MD -MT source/externals/ptl/src/CMakeFiles/ptl-shared.dir/UserTaskQueue.cc.o -MF CMakeFiles/ptl-shared.dir/UserTaskQueue.cc.o.d -o CMakeFiles/ptl-shared.dir/UserTaskQueue.cc.o -c /Users/r/Documents/College/SLP/GATE/g4-test/geant4-v11.1.1/source/externals/ptl/src/UserTaskQueue.cc Building CXX object source/externals/ptl/src/CMakeFiles/ptl-shared.dir/VUserTaskQueue.cc.o cd /Users/r/Documents/College/SLP/GATE/g4-test/build1/source/externals/ptl/src && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DPTL_ALLOC_EXPORT -DPTL_BUILD_DLL -Dptl_shared_EXPORTS -I/Users/r/Documents/College/SLP/GATE/g4-test/geant4-v11.1.1/source/externals/ptl/include -I/Users/r/Documents/College/SLP/GATE/g4-test/build1/source/externals/ptl/src -W -Wall -pedantic -Wno-non-virtual-dtor -Wno-long-long -Wwrite-strings -Wpointer-arith -Woverloaded-virtual -Wno-variadic-macros -Wshadow -pipe -Qunused-arguments -DGL_SILENCE_DEPRECATION -O3 -DNDEBUG -fno-trapping-math -ftree-vectorize -fno-math-errno -std=c++17 -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk -fPIC -MD -MT source/externals/ptl/src/CMakeFiles/ptl-shared.dir/VUserTaskQueue.cc.o -MF CMakeFiles/ptl-shared.dir/VUserTaskQueue.cc.o.d -o CMakeFiles/ptl-shared.dir/VUserTaskQueue.cc.o -c /Users/r/Documents/College/SLP/GATE/g4-test/geant4-v11.1.1/source/externals/ptl/src/VUserTaskQueue.cc Linking CXX shared library ../../../../BuildProducts/lib/libG4ptl.dylib cd /Users/r/Documents/College/SLP/GATE/g4-test/build1/source/externals/ptl/src && /Applications/CMake.app/Contents/bin/cmake -E cmake_link_script CMakeFiles/ptl-shared.dir/link.txt --verbose=1 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -W -Wall -pedantic -Wno-non-virtual-dtor -Wno-long-long -Wwrite-strings -Wpointer-arith -Woverloaded-virtual -Wno-variadic-macros -Wshadow -pipe -Qunused-arguments -DGL_SILENCE_DEPRECATION -O3 -DNDEBUG -fno-trapping-math -ftree-vectorize -fno-math-errno -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk -dynamiclib -Wl,-headerpad_max_install_names -compatibility_version 2.0.0 -current_version 2.3.3 -o ../../../../BuildProducts/lib/libG4ptl.2.3.3.dylib -install_name @rpath/libG4ptl.2.dylib "CMakeFiles/ptl-shared.dir/TaskGroup.cc.o" "CMakeFiles/ptl-shared.dir/TaskRunManager.cc.o" "CMakeFiles/ptl-shared.dir/ThreadData.cc.o" "CMakeFiles/ptl-shared.dir/ThreadPool.cc.o" "CMakeFiles/ptl-shared.dir/Threading.cc.o" "CMakeFiles/ptl-shared.dir/Timer.cc.o" "CMakeFiles/ptl-shared.dir/UserTaskQueue.cc.o" "CMakeFiles/ptl-shared.dir/VUserTaskQueue.cc.o" Undefined symbols for architecture arm64: "std::__1::basic_stringbuf, std::__1::allocator>::str() const", referenced from: void PTL::EnvSettings::insert(std::__1::basic_string, std::__1::allocator> const&, unsigned long long) in TaskRunManager.cc.o PTL::ThreadPool::initialize_threadpool(unsigned long) in ThreadPool.cc.o PTL::ThreadPool::destroy_threadpool() in ThreadPool.cc.o void PTL::EnvSettings::insert(std::__1::basic_string, std::__1::allocator> const&, bool) in ThreadPool.cc.o void PTL::EnvSettings::insert(std::__1::basic_string, std::__1::allocator> const&, int) in ThreadPool.cc.o void PTL::EnvSettings::insert(std::__1::basic_string, std::__1::allocator> const&, unsigned long) in ThreadPool.cc.o PTL::UserTaskQueue::ExecuteOnAllThreads(PTL::ThreadPool*, std::__1::function) in UserTaskQueue.cc.o ... "std::__1::basic_stringbuf, std::__1::allocator>::str(std::__1::basic_string, std::__1::allocator> const&)", referenced from: std::__1::basic_istringstream, std::__1::allocator>::basic_istringstream[abi:v15006](std::__1::basic_string, std::__1::allocator> const&, unsigned int) in TaskRunManager.cc.o std::__1::basic_istringstream, std::__1::allocator>::basic_istringstream[abi:v15006](std::__1::basic_string, std::__1::allocator> const&, unsigned int) in ThreadPool.cc.o std::__1::basic_istringstream, std::__1::allocator>::basic_istringstream[abi:v15006](std::__1::basic_string, std::__1::allocator> const&, unsigned int) in UserTaskQueue.cc.o "VTT for std::__1::basic_stringstream, std::__1::allocator>", referenced from: void PTL::EnvSettings::insert(std::__1::basic_string, std::__1::allocator> const&, unsigned long long) in TaskRunManager.cc.o std::__1::basic_stringstream, std::__1::allocator>::basic_stringstream[abi:v15006]() in TaskRunManager.cc.o std::__1::basic_stringstream, std::__1::allocator>::~basic_stringstream() in TaskRunManager.cc.o std::__1::basic_stringstream, std::__1::allocator>::basic_stringstream[abi:v15006]() in ThreadPool.cc.o std::__1::basic_stringstream, std::__1::allocator>::~basic_stringstream() in ThreadPool.cc.o void PTL::EnvSettings::insert(std::__1::basic_string, std::__1::allocator> const&, bool) in ThreadPool.cc.o void PTL::EnvSettings::insert(std::__1::basic_string, std::__1::allocator> const&, int) in ThreadPool.cc.o ... "VTT for std::__1::basic_istringstream, std::__1::allocator>", referenced from: unsigned long long PTL::GetEnv(std::__1::basic_string, std::__1::allocator> const&, unsigned long long) in TaskRunManager.cc.o std::__1::basic_istringstream, std::__1::allocator>::basic_istringstream[abi:v15006](std::__1::basic_string, std::__1::allocator> const&, unsigned int) in TaskRunManager.cc.o std::__1::basic_istringstream, std::__1::allocator>::~basic_istringstream() in TaskRunManager.cc.o int PTL::GetEnv(std::__1::basic_string, std::__1::allocator> const&, int) in ThreadPool.cc.o unsigned long PTL::GetEnv(std::__1::basic_string, std::__1::allocator> const&, unsigned long) in ThreadPool.cc.o std::__1::basic_istringstream, std::__1::allocator>::basic_istringstream[abi:v15006](std::__1::basic_string, std::__1::allocator> const&, unsigned int) in ThreadPool.cc.o std::__1::basic_istringstream, std::__1::allocator>::~basic_istringstream() in ThreadPool.cc.o ... "vtable for std::__1::basic_stringbuf, std::__1::allocator>", referenced from: unsigned long long PTL::GetEnv(std::__1::basic_string, std::__1::allocator> const&, unsigned long long) in TaskRunManager.cc.o std::__1::basic_istringstream, std::__1::allocator>::basic_istringstream[abi:v15006](std::__1::basic_string, std::__1::allocator> const&, unsigned int) in TaskRunManager.cc.o void PTL::EnvSettings::insert(std::__1::basic_string, std::__1::allocator> const&, unsigned long long) in TaskRunManager.cc.o std::__1::basic_istringstream, std::__1::allocator>::~basic_istringstream() in TaskRunManager.cc.o std::__1::basic_stringstream, std::__1::allocator>::basic_stringstream[abi:v15006]() in TaskRunManager.cc.o std::__1::basic_stringstream, std::__1::allocator>::~basic_stringstream() in TaskRunManager.cc.o int PTL::GetEnv(std::__1::basic_string, std::__1::allocator> const&, int) in ThreadPool.cc.o ... NOTE: a missing vtable usually means the first non-inline virtual member function has no definition. "vtable for std::__1::basic_stringstream, std::__1::allocator>", referenced from: std::__1::basic_stringstream, std::__1::allocator>::basic_stringstream[abi:v15006]() in TaskRunManager.cc.o std::__1::basic_stringstream, std::__1::allocator>::basic_stringstream[abi:v15006]() in ThreadPool.cc.o std::__1::basic_stringstream, std::__1::allocator>::basic_stringstream[abi:v15006]() in UserTaskQueue.cc.o NOTE: a missing vtable usually means the first non-inline virtual member function has no definition. "vtable for std::__1::basic_istringstream, std::__1::allocator>", referenced from: std::__1::basic_istringstream, std::__1::allocator>::basic_istringstream[abi:v15006](std::__1::basic_string, std::__1::allocator> const&, unsigned int) in TaskRunManager.cc.o std::__1::basic_istringstream, std::__1::allocator>::basic_istringstream[abi:v15006](std::__1::basic_string, std::__1::allocator> const&, unsigned int) in ThreadPool.cc.o std::__1::basic_istringstream, std::__1::allocator>::basic_istringstream[abi:v15006](std::__1::basic_string, std::__1::allocator> const&, unsigned int) in UserTaskQueue.cc.o NOTE: a missing vtable usually means the first non-inline virtual member function has no definition. ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make[3]: *** [BuildProducts/lib/libG4ptl.2.3.3.dylib] Error 1 make[2]: *** [source/externals/ptl/src/CMakeFiles/ptl-shared.dir/all] Error 2 make[1]: *** [source/externals/ptl/src/CMakeFiles/ptl-shared.dir/rule] Error 2 make: *** [ptl-shared] Error 2