Megvii-BaseDetection / Megvii-BaseDetection/TreeFilter-Torch

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

Open
#11 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
144
Forks
14
PR merge metrics
No merged PRs in 30d

Description

(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?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing python setup.py build develop in furnace/kernels/lib_tree_filter and inspect setup.py together with the listed sources under src/. Check why the expected object files are missing before the final g++ link step. Done means the tree_filter_cuda extension builds successfully in the reported Python and PyTorch environment.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, python, pytorch
Domain
build-system, machine-learning
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.