Skip to content

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

@jeffbdavenport

Description

@jeffbdavenport

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions