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

CMake build error on Windows system

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • WT11.2.0, 7.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • 3
    • StorEng - 2023-01-24, StorEng - 2023-02-07, 2023-02-23 "Stoney Baloney"

      I followed the online documentation to build wiredtiger on a Windows spawn host (VS 2017), and ran into the below CMake error:

      C:\cygwin\home\Administrator\wiredtiger\build>C:\cmake\bin\cmake ..\.
      C:\cmake\bin\cmake ..\.
      -- Building for: Visual Studio 15 2017
      -- Selecting Windows SDK version 10.0.17763.0 to target Windows 10.0.14393.
      -- The C compiler identification is MSVC 19.16.27043.0
      -- The CXX compiler identification is MSVC 19.16.27043.0
      -- The ASM compiler identification is MSVC
      -- Found assembler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Professional/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x86/cl.exe
      -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Professional/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x86/cl.exe
      -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Professional/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x86/cl.exe -- works
      -- Detecting C compiler ABI info
      -- Detecting C compiler ABI info - done
      -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Professional/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x86/cl.exe
      -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Professional/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x86/cl.exe -- works
      -- Detecting CXX compiler ABI info
      -- Detecting CXX compiler ABI info - done
      -- Detecting CXX compile features
      -- Detecting CXX compile features - done
      -- Performing Test HAVE_BUILD_MODE_C_FLAGS
      -- Performing Test HAVE_BUILD_MODE_C_FLAGS - Failed
      VERBOSESkipping build mode definition due to unavailable C flags: ASan
      VERBOSESkipping build mode definition due to unmet dependencies: UBSan
      VERBOSESkipping build mode definition due to unmet dependencies: MSan
      VERBOSESkipping build mode definition due to unmet dependencies: TSan
      VERBOSESkipping build mode definition due to unmet dependencies: Coverage
      CMake Error at CMakeLists.txt:39 (message):
        cmake/configs//windows/config.cmake does not exist
      -- Configuring incomplete, errors occurred!
      See also "C:/cygwin/home/Administrator/wiredtiger/build/CMakeFiles/CMakeOutput.log".
      See also "C:/cygwin/home/Administrator/wiredtiger/build/CMakeFiles/CMakeError.log". 

      We need to understand the cause of this error and provide a fix to unblock WiredTiger builds on Windows systems. 

            Assignee:
            luke.chen@mongodb.com Luke Chen
            Reporter:
            luke.chen@mongodb.com Luke Chen
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: