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

Installation error with 'C++17 or later compatible compiler is required' #149

Open
ZHANGWENTAI opened this issue Nov 6, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@ZHANGWENTAI
Copy link

Describe the bug
report bug while installing marius by pip3 install .

To Reproduce
Steps to reproduce the behavior:
git clone https://github.com/marius-team/marius.git
cd marius
pip3 install .
report the bug:

/tmp/pip-build-env-w3j3rbae/overlay/lib/python3.9/site-packages/torch/include/torch/csrc/api/include/torch/all.h:4:2: error: #error C++17 or later compatible compiler is required to use PyTorch.
          4 | #error C++17 or later compatible compiler is required to use PyTorch.
            |  ^~~~~
...

/tmp/pip-build-env-w3j3rbae/overlay/lib/python3.9/site-packages/torch/include/c10/util/C++17.h:27:2: error: #error You need C++17 to compile PyTorch
         27 | #error You need C++17 to compile PyTorch
            |  ^~~~~
...

subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--target', 'bindings', '--config', 'Release', '--', '-j80']' returned non-zero exit status 2.
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for marius
Failed to build marius

Environment
Executed on Ubuntu system, all the dependencies satisfy the requirement.

Additional context
Add any other context about the problem here.

@ZHANGWENTAI ZHANGWENTAI added the bug Something isn't working label Nov 6, 2023
@yichuan520030910320
Copy link

you can add 'add_compile_options(-std=c++17)
' in your cmakelist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants