Skip to content

requires the language dialect "CXX26" (with compiler extensions). But the current compiler "GNU" does not support this #290

@ClausKlein

Description

@ClausKlein
Run cmake \
  cmake \
    -B build \
    -S . \
    -DCMAKE_CXX_STANDARD=26 \
    -DCMAKE_TOOLCHAIN_FILE="infra/cmake/gnu-toolchain.cmake" \
    -DCMAKE_PROJECT_TOP_LEVEL_INCLUDES="./infra/cmake/use-fetch-content.cmake" \
    
  shell: bash --noprofile --norc -e -o pipefail {0}
  env:
    CMAKE_GENERATOR: Ninja Multi-Config
-- The CXX compiler identification is GNU 13.4.1
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/sbin/g++ - skipped
-- Detecting CXX compile features
CMake Warning (dev) at /usr/share/cmake/Modules/Compiler/CMakeCommonCompilerMacros.cmake:248 (cmake_language):
  CMake's support for `import std;` in C++23 and newer is experimental.  It
  is meant only for experimentation and feedback to CMake developers.
Call Stack (most recent call first):
  /usr/share/cmake/Modules/CMakeDetermineCompilerSupport.cmake:113 (cmake_create_cxx_import_std)
  /usr/share/cmake/Modules/CMakeTestCXXCompiler.cmake:83 (CMAKE_DETERMINE_COMPILER_SUPPORT)
  CMakeLists.txt:7 (project)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Detecting CXX compile features - done
-- CMAKE_CXX_COMPILER_IMPORT_STD=
-- CMAKE_CXX_SCAN_FOR_MODULES=OFF
-- The C compiler identification is GNU 13.4.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/sbin/gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Looking for __cpp_lib_ranges
CMake Error in /__w/exemplar/exemplar/build/CMakeFiles/CMakeScratch/TryCompile-ijMWEL/CMakeLists.txt:
  Target "cmTC_693ad" requires the language dialect "CXX26" (with compiler
  extensions).  But the current compiler "GNU" does not support this, or
  CMake does not know the flags to enable it.

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