Fix WT build issue on Intel-based Macs by disabling CppSuite.

XMLWordPrintableJSON

    • Storage Engines
    • 2024-08-06 - Withholding Tax
    • 1

      WT-13012 introduced benchmarking for frequently called session and cursor APIs.

      Doing so introduced a dependency for Cppsuite on linux-only header files. As a result of this WT-13012 included a change to disable Cppsuite from running on Arm-based Macs by adding

      # Disable cppsuite as it only runs on linux.
      set(ENABLE_CPPSUITE 0)

      to the file cmake/configs/aarch64/darwin/config.cmake.

      However, this change was not made to the relevant Intel-based Mac file:

      cmake/configs/x86/darwin/config.cmake

      This means that attempting to build WT on an Intel Mac using

      cmake -G "Ninja" ./..
      ninja -j 8 

      Fails with the errorĀ 

      fatal error: 'linux/perf_event.h' file not found

      This ticket will disable Cppsuite for Intel-based Macs too

      We no longer use Intel Macs in Evergreen, so the issue was not detected there. The issue was found on a MacBook Pro.

              Assignee:
              Jeremy Thorp (Inactive)
              Reporter:
              Jeremy Thorp (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: