-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cataclysm-DDA failed to build with "error C2011: '_CONTEXT': 'struct' type redefinition" with MSVC on Windows arm64 #62594
Comments
The |
The fix for |
@BrettDong I update to latest commit and rebuild, display two error:
Error log: Steps to reproduce
According to description of https://stackoverflow.com/questions/10888391/error-link-fatal-error-lnk1123-failure-during-conversion-to-coff-file-inval or https://learn.microsoft.com/en-us/cpp/error-messages/tool-errors/cvtres-fatal-error-cvt1100?view=msvc-170, run |
I have no problem cross-compiling to ARM64 on a x64 host with Visual Studio 2022. My commands are
Microsoft Visual Studio Community 2022 (64-bit) Version 17.4.2 |
@BrettDong We need to build this project on VS2019, I run
OS: Windows Server 2022 Datacenter Error log: |
Is there a reason you are unable to move to Visual Studio 2022? |
@BrettDong Yes, we need to build this project on VS2019 and are unable to move to VS2022 now. |
Now that the project compiles smoothly on Visual Studio 2022, I don't think there is fundamental incompatibility problem in our code base. |
The official Microsoft recommendation for ARM64EC at https://devblogs.microsoft.com/cppblog/arm64ec-support-in-visual-studio/ states you need to be using 'The latest Windows Insider SDK build which is available through the Windows Insider program' at the time. That was, on August 10 2021, version 22621. Your error messages say you are using 10.0.18362.0. Please update your windows 10 sdk and see if your problems are resolved. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. Please do not bump or comment on this issue unless you are actively working on it. Stale issues, and stale issues that are closed are still considered. |
Describe the bug
Cataclysm-DDA failed to build with "winnt.h(6097,16): error C2011: '_CONTEXT': 'struct' type redefinition (compiling source file F:\Cataclysm-DDA\src\catacharset.cpp)" with MSVC on Windows arm64. It can reproduce on latest version on master branch. Could you please help look at this issue?
Error info:
Steps to reproduce
Expected behavior
I expected build fine and does not error
Screenshots
No response
Versions and configuration
OS: Windows Server 2022 Datacenter
VS: Visual Studio 2019(16.11.21)
Additional context
Error log:
Cataclysm-DDA_arm64_build.log
patch log:
DDA_ARM64.patch.log
The text was updated successfully, but these errors were encountered: