Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: command 'g++' failed with exit status 1 #56

Open
StiphyJay opened this issue Aug 5, 2021 · 1 comment
Open

error: command 'g++' failed with exit status 1 #56

StiphyJay opened this issue Aug 5, 2021 · 1 comment

Comments

@StiphyJay
Copy link

Hello. Thanks for you open-source code. However, when i run the command in
python setup.py build_ext --inplace.
I meet the problems in here:

(pytorch15) sifan@fudan:~/slam-package/vistr/models/dcn$ python setup.py build_ext --inplace
running build_ext
building '_C' extension
creating /home/sifan/slam-package/vistr/models/dcn/build
creating /home/sifan/slam-package/vistr/models/dcn/build/temp.linux-x86_64-3.7
creating /home/sifan/slam-package/vistr/models/dcn/build/temp.linux-x86_64-3.7/deformable
Emitting ninja build file /home/sifan/slam-package/vistr/models/dcn/build/temp.linux-x86_64-3.7/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
creating build/lib.linux-x86_64-3.7
g++ -pthread -shared -B /home/sifan/anaconda3/envs/pytorch15/compiler_compat -L/home/sifan/anaconda3/envs/pytorch15/lib -Wl,-rpath=/home/sifan/anaconda3/envs/pytorch15/lib -Wl,--no-as-needed -Wl,--sysroot=/ /home/sifan/slam-package/vistr/models/dcn/build/temp.linux-x86_64-3.7/deformable/deform_conv.o /home/sifan/slam-package/vistr/models/dcn/build/temp.linux-x86_64-3.7/deformable/deform_conv_cuda.o /home/sifan/slam-package/vistr/models/dcn/build/temp.linux-x86_64-3.7/deformable/deform_conv_cuda_kernel.o -L/home/sifan/anaconda3/envs/pytorch15/lib/python3.7/site-packages/torch/lib -L/usr/local/cuda/lib64 -lc10 -ltorch -ltorch_cpu -ltorch_python -lcudart -lc10_cuda -ltorch_cuda -o build/lib.linux-x86_64-3.7/_C.cpython-37m-x86_64-linux-gnu.so
g++: error: /home/sifan/slam-package/vistr/models/dcn/build/temp.linux-x86_64-3.7/deformable/deform_conv.o: No such file or directory
g++: error: /home/sifan/slam-package/vistr/models/dcn/build/temp.linux-x86_64-3.7/deformable/deform_conv_cuda.o: No such file or directory
g++: error: /home/sifan/slam-package/vistr/models/dcn/build/temp.linux-x86_64-3.7/deformable/deform_conv_cuda_kernel.o: No such file or directory
error: command 'g++' failed with exit status 1

I don't know how to solve this problem. Could you give me some help? Thank you very much!

@youngkyoonjang
Copy link

I have the same problem. Have you solved it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants