You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
When I was compiling the c++ interface for deepmd, error occured.here is my log
my command: cmake -DTENSORFLOW_ROOT=$tensorflow_root -DCMAKE_INSTALL_PREFIX=$deepmd_root ..
my fogfile:
kind: "try_compile-v1"
backtrace:
- "cmake/Findtensorflow.cmake:326 (try_compile)"
- "CMakeLists.txt:134 (find_package)"
directories:
source: "/home/luowh35/workspace/deepmd-kit/source/build/tf_cxx_abi0/CMakeFiles/CMakeTmp"
binary: "/home/luowh35/workspace/deepmd-kit/source/build/tf_cxx_abi0/CMakeFiles/CMakeTmp"
cmakeVariables:
CMAKE_CXX_FLAGS: ""
CMAKE_CXX_FLAGS_DEBUG: "-g"
CMAKE_EXE_LINKER_FLAGS: ""
CMAKE_MODULE_PATH: "/home/luowh35/workspace/deepmd-kit/source/cmake/"
buildResult:
variable: "CPP_CXX_ABI_COMPILE_RESULT_VAR0"
cached: true
stdout: |
Change Dir: /home/luowh35/workspace/deepmd-kit/source/build/tf_cxx_abi0/CMakeFiles/CMakeTmp
kind: "try_compile-v1"
backtrace:
"cmake/Findtensorflow.cmake:332 (try_compile)"
"CMakeLists.txt:134 (find_package)"
directories:
source: "/home/luowh35/workspace/deepmd-kit/source/build/tf_cxx_abi1/CMakeFiles/CMakeTmp"
binary: "/home/luowh35/workspace/deepmd-kit/source/build/tf_cxx_abi1/CMakeFiles/CMakeTmp"
cmakeVariables:
CMAKE_CXX_FLAGS: ""
CMAKE_CXX_FLAGS_DEBUG: "-g"
CMAKE_EXE_LINKER_FLAGS: ""
CMAKE_MODULE_PATH: "/home/luowh35/workspace/deepmd-kit/source/cmake/"
buildResult:
variable: "CPP_CXX_ABI_COMPILE_RESULT_VAR1"
cached: true
stdout: |
Change Dir: /home/luowh35/workspace/deepmd-kit/source/build/tf_cxx_abi1/CMakeFiles/CMakeTmp
Run Build Command(s):/home/luowh35/anaconda3/envs/deepmd/lib/python3.11/site-packages/cmake/data/bin/cmake -E env VERBOSE=1 /usr/bin/gmake -f Makefile cmTC_d2ba6/fast && /usr/bin/gmake -f CMakeFiles/cmTC_d2ba6.dir/build.make CMakeFiles/cmTC_d2ba6.dir/build
gmake[1]: 进入目录“/home/luowh35/workspace/deepmd-kit/source/build/tf_cxx_abi1/CMakeFiles/CMakeTmp”
Building CXX object CMakeFiles/cmTC_d2ba6.dir/test_cxx_abi.cpp.o
/home/luowh35/gcc-bin-7.5.0/bin/g++ -D_GLIBCXX_USE_CXX11_ABI=1 -I/home/luowh35/anaconda3/envs/deepmd/include -std=gnu++1z -o CMakeFiles/cmTC_d2ba6.dir/test_cxx_abi.cpp.o -c /home/luowh35/workspace/deepmd-kit/source/cmake/test_cxx_abi.cpp
Linking CXX executable cmTC_d2ba6
/home/luowh35/anaconda3/envs/deepmd/lib/python3.11/site-packages/cmake/data/bin/cmake -E cmake_link_script CMakeFiles/cmTC_d2ba6.dir/link.txt --verbose=1
/home/luowh35/gcc-bin-7.5.0/bin/g++ CMakeFiles/cmTC_d2ba6.dir/test_cxx_abi.cpp.o -o cmTC_d2ba6 -Wl,-rpath,/home/luowh35/anaconda3/envs/deepmd/lib /home/luowh35/anaconda3/envs/deepmd/lib/libtensorflow_framework.so
/home/luowh35/anaconda3/envs/deepmd/lib/libtensorflow_framework.so:对‘std::__cxx11::basic_string<char, std::char_traits, std::allocator >::reserve()@GLIBCXX_3.4.29’未定义的引用
/home/luowh35/anaconda3/envs/deepmd/lib/libtensorflow_framework.so:对‘std::__throw_bad_array_new_length()@GLIBCXX_3.4.29’未定义的引用
/home/luowh35/anaconda3/envs/deepmd/lib/libtensorflow_framework.so:对‘std::__exception_ptr::exception_ptr::_M_release()@CXXABI_1.3.13’未定义的引用
/home/luowh35/anaconda3/envs/deepmd/lib/libtensorflow_framework.so:对‘std::condition_variable::wait(std::unique_lockstd::mutex&)@GLIBCXX_3.4.30’未定义的引用
collect2: 错误:ld 返回 1
gmake[1]: *** [cmTC_d2ba6] 错误 1
gmake[1]: 离开目录“/home/luowh35/workspace/deepmd-kit/source/build/tf_cxx_abi1/CMakeFiles/CMakeTmp”
gmake: *** [cmTC_d2ba6/fast] 错误 2
exitCode: 2
...
Could anyone know anything wrong?
I need help
Beta Was this translation helpful? Give feedback.
All reactions