Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-11762

Fix cmake configuration failure with clang toolchain file on M1 mac

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • WT11.2.0, 7.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Storage Engines
    • 1
    • NachoCheese - 2023-10-03

      By specifying the existing clang toolchain file on the M1 mac machine to build the WiredTiger, it fails during the configuration with the following error:

      CMake Error at /Users/haribabukommi/work/code/wiredtiger/cmake/toolchains/clang.cmake:34 (message):
        (aarch64/darwin) directory does not have a plat_clang.cmake file
      Call Stack (most recent call first):
        /Users/haribabukommi/work/code/wiredtiger/build/CMakeFiles/3.27.6/CMakeSystem.cmake:6 (include)
        /Users/haribabukommi/work/code/wiredtiger/build/CMakeFiles/CMakeScratch/TryCompile-yrwldL/CMakeLists.txt:4 (project)
      
      
      CMake Error at /opt/homebrew/Cellar/cmake/3.27.6/share/cmake/Modules/CheckIncludeFiles.cmake:132 (try_compile):
        Failed to configure test project build system.
      Call Stack (most recent call first):
        cmake/helpers.cmake:350 (check_include_files)
        cmake/configs/auto.cmake:43 (config_include)
        CMakeLists.txt:47 (include)
      

      The cmake build command:

      cmake -DCMAKE_TOOLCHAIN_FILE=../cmake/toolchains/clang.cmake -G "Ninja" ./..
      

            Assignee:
            haribabu.kommi@mongodb.com Haribabu Kommi
            Reporter:
            haribabu.kommi@mongodb.com Haribabu Kommi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: