Megvii-BaseDetection/TreeFilter-Torch

error: command '/usr/bin/g++' failed with exit code 1

liusurufeng opened this issue · 2 comments

(b2m) quaiping@user-NF5280M5:~/TreeFilter/TreeFilter-Torch-master/furnace/kernels/lib_tree_filter$ python setup.py build develop
['/home/quaiping/TreeFilter/TreeFilter-Torch-master/furnace/kernels/lib_tree_filter/src/mst/boruvka.cpp', '/home/quaiping/TreeFilter/TreeFilter-Torch-master/furnace/kernels/lib_tree_filter/src/refine/refine.cu', '/home/quaiping/TreeFilter/TreeFilter-Torch-master/furnace/kernels/lib_tree_filter/src/bfs/bfs.cu', '/home/quaiping/TreeFilter/TreeFilter-Torch-master/furnace/kernels/lib_tree_filter/src/mst/mst.cu', '/home/quaiping/TreeFilter/TreeFilter-Torch-master/furnace/kernels/lib_tree_filter/src/tree_filter.cpp']
running build
running build_ext
building 'tree_filter_cuda' extension
Emitting ninja build file /home/quaiping/TreeFilter/TreeFilter-Torch-master/furnace/kernels/lib_tree_filter/build/temp.linux-x86_64-cpython-37/build.ninja...
Compiling objects...
Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
1.10.2
g++ -pthread -B /home/quaiping/anaconda3/envs/b2m/compiler_compat -Wl,--sysroot=/ -pthread -shared -B /home/quaiping/anaconda3/envs/b2m/compiler_compat -L/home/quaiping/anaconda3/envs/b2m/lib -Wl,-rpath=/home/quaiping/anaconda3/envs/b2m/lib -Wl,--no-as-needed -Wl,--sysroot=/ /home/quaiping/TreeFilter/TreeFilter-Torch-master/furnace/kernels/lib_tree_filter/build/temp.linux-x86_64-cpython-37/home/quaiping/TreeFilter/TreeFilter-Torch-master/furnace/kernels/lib_tree_filter/src/bfs/bfs.o /home/quaiping/TreeFilter/TreeFilter-Torch-master/furnace/kernels/lib_tree_filter/build/temp.linux-x86_64-cpython-37/home/quaiping/TreeFilter/TreeFilter-Torch-master/furnace/kernels/lib_tree_filter/src/mst/boruvka.o /home/quaiping/TreeFilter/TreeFilter-Torch-master/furnace/kernels/lib_tree_filter/build/temp.linux-x86_64-cpython-37/home/quaiping/TreeFilter/TreeFilter-Torch-master/furnace/kernels/lib_tree_filter/src/mst/mst.o /home/quaiping/TreeFilter/TreeFilter-Torch-master/furnace/kernels/lib_tree_filter/build/temp.linux-x86_64-cpython-37/home/quaiping/TreeFilter/TreeFilter-Torch-master/furnace/kernels/lib_tree_filter/src/refine/refine.o /home/quaiping/TreeFilter/TreeFilter-Torch-master/furnace/kernels/lib_tree_filter/build/temp.linux-x86_64-cpython-37/home/quaiping/TreeFilter/TreeFilter-Torch-master/furnace/kernels/lib_tree_filter/src/tree_filter.o -L -L/usr/local/cuda/lib64 -L/home/quaiping/anaconda3/envs/b2m/lib/python3.7/site-packages/torch/lib -L/usr/local/cuda/lib64 -L/home/quaiping/anaconda3/envs/b2m/lib/python3.7/site-packages/torch/lib -L/home/quaiping/anaconda3/envs/b2m/lib/python3.7/site-packages/torch/lib -L/usr/local/cuda-10.1/lib64 -lc10 -ltorch -ltorch_cpu -ltorch_python -lcudart -lc10_cuda -ltorch_cuda -o build/lib.linux-x86_64-cpython-37/tree_filter_cuda.cpython-37m-x86_64-linux-gnu.so
g++: error: /home/quaiping/TreeFilter/TreeFilter-Torch-master/furnace/kernels/lib_tree_filter/build/temp.linux-x86_64-cpython-37/home/quaiping/TreeFilter/TreeFilter-Torch-master/furnace/kernels/lib_tree_filter/src/bfs/bfs.o: 没有那个文件或目录
g++: error: /home/quaiping/TreeFilter/TreeFilter-Torch-master/furnace/kernels/lib_tree_filter/build/temp.linux-x86_64-cpython-37/home/quaiping/TreeFilter/TreeFilter-Torch-master/furnace/kernels/lib_tree_filter/src/mst/boruvka.o: 没有那个文件或目录
g++: error: /home/quaiping/TreeFilter/TreeFilter-Torch-master/furnace/kernels/lib_tree_filter/build/temp.linux-x86_64-cpython-37/home/quaiping/TreeFilter/TreeFilter-Torch-master/furnace/kernels/lib_tree_filter/src/mst/mst.o: 没有那个文件或目录
g++: error: /home/quaiping/TreeFilter/TreeFilter-Torch-master/furnace/kernels/lib_tree_filter/build/temp.linux-x86_64-cpython-37/home/quaiping/TreeFilter/TreeFilter-Torch-master/furnace/kernels/lib_tree_filter/src/refine/refine.o: 没有那个文件或目录
g++: error: /home/quaiping/TreeFilter/TreeFilter-Torch-master/furnace/kernels/lib_tree_filter/build/temp.linux-x86_64-cpython-37/home/quaiping/TreeFilter/TreeFilter-Torch-master/furnace/kernels/lib_tree_filter/src/tree_filter.o: 没有那个文件或目录
error: command '/usr/bin/g++' failed with exit code 1

how to solve the problem?

Hey bro! i met the same error too as you, do you solve it?