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

Does any one encounter this compile question? Please show your solution. Thanks! #20

Open
qingmeizhujiu opened this issue Nov 9, 2021 · 0 comments

Comments

@qingmeizhujiu
Copy link

['pytorch_points', 'pytorch_points.network', 'pytorch_points.misc', 'pytorch_points.utils']
running develop
running egg_info
writing pytorch_points.egg-info/PKG-INFO
writing dependency_links to pytorch_points.egg-info/dependency_links.txt
writing requirements to pytorch_points.egg-info/requires.txt
writing top-level names to pytorch_points.egg-info/top_level.txt
reading manifest file 'pytorch_points.egg-info/SOURCES.txt'
writing manifest file 'pytorch_points.egg-info/SOURCES.txt'
running build_ext
building 'linalg' extension
/home/zhonggan/miniconda3/envs/pytorch-all/lib/python3.7/site-packages/torch/utils/cpp_extension.py:287: UserWarning:

                           !! WARNING !!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Your compiler (c++) is not compatible with the compiler Pytorch was
built with for this platform, which is g++ on linux. Please
use g++ to to compile your extension. Alternatively, you may
compile PyTorch from source using c++, and then you can also use
c++ to compile your extension.

See https://github.com/pytorch/pytorch/blob/master/CONTRIBUTING.md for help
with compiling PyTorch from source.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

                          !! WARNING !!

platform=sys.platform))
Emitting ninja build file /home/zhonggan/workspace/face3D/deep_cage/pytorch_points/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/1] c++ -MMD -MF /home/zhonggan/workspace/face3D/deep_cage/pytorch_points/build/temp.linux-x86_64-3.7/pytorch_points/_ext/torch_batch_svd.o.d -pthread -B /home/zhonggan/miniconda3/envs/pytorch-all/compiler_compat -Wl,--sysroot=/ -Wsign-compare -D$DEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/zhonggan/miniconda3/envs/pytorch-all/lib/python3.7/site-packages/torch/include -I/home/zhonggan/miniconda3/envs/pytorch-all/lib/python3.7/site-packages/torch/include/torch/csrc/api/includ$ -I/home/zhonggan/miniconda3/envs/pytorch-all/lib/python3.7/site-packages/torch/include/TH -I/home/zhonggan/miniconda3/envs/pytorch-all/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda-11.0/include -I/home/zhonggan/miniconda3/envs/py$orch-all/include/python3.7m -c -c /home/zhonggan/workspace/face3D/deep_cage/pytorch_points/pytorch_points/_ext/torch_batch_svd.cpp -o /home/zhonggan/workspace/face3D/deep_cage/pytorch_points/build/temp.linux-x86_64-3.7/pytorch_points/_ext/torch_bat$h_svd.o -g -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=linalg -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
FAILED: /home/zhonggan/workspace/face3D/deep_cage/pytorch_points/build/temp.linux-x86_64-3.7/pytorch_points/_ext/torch_batch_svd.o
c++ -MMD -MF /home/zhonggan/workspace/face3D/deep_cage/pytorch_points/build/temp.linux-x86_64-3.7/pytorch_points/_ext/torch_batch_svd.o.d -pthread -B /home/zhonggan/miniconda3/envs/pytorch-all/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/zhonggan/miniconda3/envs/pytorch-all/lib/python3.7/site-packages/torch/include -I/home/zhonggan/miniconda3/envs/pytorch-all/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/h$me/zhonggan/miniconda3/envs/pytorch-all/lib/python3.7/site-packages/torch/include/TH -I/home/zhonggan/miniconda3/envs/pytorch-all/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda-11.0/include -I/home/zhonggan/miniconda3/envs/pytorch-$ll/include/python3.7m -c -c /home/zhonggan/workspace/face3D/deep_cage/pytorch_points/pytorch_points/_ext/torch_batch_svd.cpp -o /home/zhonggan/workspace/face3D/deep_cage/pytorch_points/build/temp.linux-x86_64-3.7/pytorch_points/_ext/torch_batch_svd$o -g -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=linalg -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
c++: error: unrecognized command line option ‘-std=c++14’
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "/home/zhonggan/miniconda3/envs/pytorch-all/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1672, in _run_ninja_build
env=env)
File "/home/zhonggan/miniconda3/envs/pytorch-all/lib/python3.7/subprocess.py", line 512, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.

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

1 participant