• Im试图建造一个C++项目,利用新的膝上型计算机进行录音,并在我操作马克时留下以下错误:
/home/labuser/anaconda3/envs/Research/bin/../lib/gcc/x86_64-conda-linux-gnu/13.1.0/../../../../x86_64-conda-linux-gnu/bin/ld: /home/labuser/anaconda3/envs/Research/lib/python3.11/site-packages/torch/lib/libc10.so: undefined reference to `memcpy@GLIBC_2.14
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/learn.dir/build.make:101: learn] Error 1
make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/learn.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
作为参考,我的业务系统是Fedora 38,我使用Conda安装了Pytorch/Libtorch和GXX。 该项目本身是利用CMake进行的,然后运行显示上述错误。
Things I ve tried:
- Updated glibc using
dnf update glibc
- Updated my Pytorch installation etc in conda
我很想知道如何从这里着手。
另有一件事:管理CMakeList确实向我的其他Fedora电脑发出警告。
-- Caffe2: Protobuf version 3.20.3
CMake Warning at /home/labuser/anaconda3/envs/Research/lib/python3.11/site-packages/torch/share/cmake/Torch/TorchConfig.cmake:22 (message):
static library kineto_LIBRARY-NOTFOUND not found.
Call Stack (most recent call first):
/home/labuser/anaconda3/envs/Research/lib/python3.11/site-packages/torch/share/cmake/Torch/TorchConfig.cmake:127 (append_torchlib_if_found)
CMakeLists.txt:8 (find_package)
就如何开展工作提出任何建议? 在撰写自己的法典时,我发现了一些关于交换校准的建议,没有确定如何围绕Pytorch/Libtorch开展工作。
Updated Pytorch and GXX in my conda install, updated glibc using dnf.