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

Cannot build on Fedora 32: Incorrect 'clang', is not the one detected by CMake: 'clang++-6.0 #10

Open
jeffbdavenport opened this issue Jul 30, 2020 · 0 comments

Comments

@jeffbdavenport
Copy link

jeffbdavenport commented Jul 30, 2020

I can't seem to get it to compile for the life of me.

Clang 6 is so old I had to resort to downloading the clang 6 binaries and installing them into my path just to have them. On top of having to rename my gcc and g++ binaries to gcc.bak and g++.bak in order to get CMake to ignore them, as I was getting
Incorrect 'clang', is not the one detected by CMake: 'GNU' originally

But alas, build still fails. What Operating System is best to build this on? Really excited to try this out

(conanenv) [jeff@jeffs-machine build_hello_world]$ cmake ../hello_world/
-- Conan: Adjusting output directories
-- Conan: Using cmake global configuration
-- Conan: Adjusting default RPATHs Conan policies
-- Conan: Adjusting language standard
-- Current conanbuildinfo.cmake directory: /opt/build_hello_world
CMake Error at /opt/build_hello_world/conanbuildinfo.cmake:2346 (message):
  Incorrect 'clang', is not the one detected by CMake: 'clang++-6.0'
Call Stack (most recent call first):
  /opt/build_hello_world/conanbuildinfo.cmake:1909 (conan_check_compiler)
  CMakeLists.txt:6 (conan_basic_setup)


-- Configuring incomplete, errors occurred!
See also "/opt/build_hello_world/CMakeFiles/CMakeOutput.log".

I've tried these two profiles with the same result. The gcc profiles failed to even install at all.

conan install ../hello_world -pr clang-6.0-linux-x86_64-toolchain
conan install ../hello_world -pr clang-6.0-linux-x86_64

@jeffbdavenport jeffbdavenport changed the title Cannot build on Fedora 32 Incorrect 'clang', is not the one detected by CMake: 'clang++-6.0 Cannot build on Fedora 32: Incorrect 'clang', is not the one detected by CMake: 'clang++-6.0 Jul 30, 2020
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