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

CMake Error at CMakeLists.txt:232 (message): Your C++ compiler does NOT fully support C++17. #3852

Closed
biel-wangdf3 opened this issue Feb 20, 2021 · 2 comments

Comments

@biel-wangdf3
Copy link

biel-wangdf3 commented Feb 20, 2021

datalab@***:~/.vim/bundle/YouCompleteMe$ python3 install.py --all
Searching Python 3.6 libraries...
Found Python library: /anaconda/envs/azureml_py36/lib/libpython3.6m.so
Found Python headers folder: /anaconda/envs/azureml_py36/include/python3.6m
-- The C compiler identification is GNU 7.3.0
-- The CXX compiler identification is GNU 7.3.0
-- Check for working C compiler: /anaconda/envs/azureml_py36/bin/x86_64-conda_cos6-linux-gnu-cc
-- Check for working C compiler: /anaconda/envs/azureml_py36/bin/x86_64-conda_cos6-linux-gnu-cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /anaconda/envs/azureml_py36/bin/x86_64-conda_cos6-linux-gnu-c++
-- Check for working CXX compiler: /anaconda/envs/azureml_py36/bin/x86_64-conda_cos6-linux-gnu-c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:232 (message):
Your C++ compiler does NOT fully support C++17.

-- Configuring incomplete, errors occurred!
See also "/tmp/ycm_build_2mq82s33/CMakeFiles/CMakeOutput.log".
ERROR: the build failed.

NOTE: it is highly unlikely that this is a bug but rather
that this is a problem with the configuration of your system
or a missing dependency. Please carefully read CONTRIBUTING.md
and if you're sure that it is a bug, please raise an issue on the
issue tracker, including the entire output of this script
and the invocation line used to run it.

-------gcc environment
gcc (Ubuntu 5.4.0-6ubuntu1~16.04.12) 5.4.0 20160609
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

---------try the follow commands didn't solve :
sudo apt-get install g++-8
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 700 --slave /usr/bin/g++ g++ /usr/bin/g++-7
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 800 --slave /usr/bin/g++ g++ /usr/bin/g++-8


help me!
How to solve it?

@puremourning
Copy link
Member

-- Check for working CXX compiler: /anaconda/envs/azureml_py36/bin/x86_64-conda_cos6-linux-gnu-c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:232 (message):
Your C++ compiler does NOT fully support C++17.

Disable anaconda.

@peakfa
Copy link

peakfa commented Apr 13, 2021

Searching Python 3.6 libraries...
Found Python library: /usr/lib/python3.6/config-3.6m-x86_64-linux-gnu/libpython3.6.so
Found Python headers folder: /usr/include/python3.6m
-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:220 (message):
Your C++ compiler does NOT fully support C++17.

-- Configuring incomplete, errors occurred!
See also "/tmp/ycm_build__7q7mgnt/CMakeFiles/CMakeOutput.log".
ERROR: the build failed.

NOTE: it is highly unlikely that this is a bug but rather
that this is a problem with the configuration of your system
or a missing dependency. Please carefully read CONTRIBUTING.md
and if you're sure that it is a bug, please raise an issue on the
issue tracker, including the entire output of this script
and the invocation line used to run it.

help me!
How to solve it?

hi I also met how to solve it?

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants