Uploaded image for project: 'Core ReactOS'
  1. Core ReactOS
  2. CORE-17190

ReactOS doesn't compile with MSVC 19.28.29115

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Fix Version/s: 0.4.14
    • Component/s: SDK
    • Labels:
      None

      Description

      When I attempt to compile ReactOS using MSVC and Ninja using the above compiler version (which is included in Visual Studio 2019 16.8 Preview 1), I receive the following errors:

      D:\Projects\ReactOS\output-VS-i386\sdk\include\psdk\winnt.h(1681): error C2169: '_InterlockedExchange64': intrinsic function, cannot be defined
      D:\Projects\ReactOS\output-VS-i386\sdk\include\psdk\winnt.h(1696): error C2169: '_InterlockedAdd64': intrinsic function, cannot be defined
      D:\Projects\ReactOS\output-VS-i386\sdk\include\psdk\winnt.h(1713): error C2169: '_InterlockedExchangeAdd64': intrinsic function, cannot be defined
      D:\Projects\ReactOS\output-VS-i386\sdk\include\psdk\winnt.h(1729): error C2169: '_InterlockedAnd64': intrinsic function, cannot be defined
      D:\Projects\ReactOS\output-VS-i386\sdk\include\psdk\winnt.h(1745): error C2169: '_InterlockedOr64': intrinsic function, cannot be defined
      D:\Projects\ReactOS\output-VS-i386\sdk\include\psdk\winnt.h(1761): error C2169: '_InterlockedXor64': intrinsic function, cannot be defined
      D:\Projects\ReactOS\output-VS-i386\sdk\include\psdk\winnt.h(1776): error C2169: '_InterlockedIncrement64': intrinsic function, cannot be defined
      D:\Projects\ReactOS\output-VS-i386\sdk\include\psdk\winnt.h(1784): error C2169: '_InterlockedDecrement64': intrinsic function, cannot be defined
      

      I am building on master, commit ID 75a078709a3148affc61d60999b9ae69eceb1ae2. I have attempted adding the "/Oi-" flag to overrides-msvc.cmake (which I believed would disable MSVC intrinsics project-wide), to no effect.

        Attachments

          Activity

            People

            • Assignee:
              ThFabba ThFabba
              Reporter:
              wjk wjk
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: