Skip to content
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

Il mismatch between 'P1' version '20220421' and 'P2' version '20211117' #6107

Closed
2 of 10 tasks
matthiakl opened this issue Aug 18, 2022 · 3 comments
Closed
2 of 10 tasks
Labels
Area: C/C++ bug report investigate Collect additional information, like space on disk, other tool incompatibilities etc. OS: Windows

Comments

@matthiakl
Copy link

Description

Since the 20220814.1 Windows runner update MSVC fails linking MSIL module with LTCG. First I thought, the problem was that the vcpkg bincache was built with an older version, but now vcpkg got an update and the problem persists.
This looks similar to #6091

Platforms affected

  • Azure DevOps
  • GitHub Actions

Virtual environments affected

  • Ubuntu 18.04
  • Ubuntu 20.04
  • Ubuntu 22.04
  • macOS 10.15
  • macOS 11
  • macOS 12
  • Windows Server 2019
  • Windows Server 2022

Image version and build link

Version: 20220816.1
https://github.com/widelands/widelands/runs/7888821429?check_suite_focus=true

Is it regression?

20220808.1: https://github.com/widelands/widelands/runs/7846519644?check_suite_focus=true

Expected behavior

Linking should succeed.

Actual behavior

NMAKE : fatal error U1077: '"C:\Program Files\CMake\bin\cmake.exe"' : return code '0xffffffff'
glbinding.lib(functions_d.cpp.obj) : MSIL .netmodule or module compiled with /GL found; restarting link with /LTCG; add /LTCG to the link command line to improve linker performance
Stop.
fatal error C1900: Il mismatch between 'P1' version '20220421' and 'P2' version '20211117'
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.32.31326\bin\HostX86\x86\nmake.exe"' : return code '0x2'
LINK : fatal error LNK1257: code generation failed
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.32.31326\bin\HostX86\x86\nmake.exe"' : return code '0x2'
Stop.

Repro steps

This seems to only affect release builds. Debug builds link successfully: https://github.com/widelands/widelands/runs/7888821298?check_suite_focus=true

@al-cheb
Copy link
Contributor

al-cheb commented Aug 18, 2022

@matthiakl, Could you please test a workaround - #6091 (comment) ?

@al-cheb al-cheb added Area: C/C++ OS: Windows investigate Collect additional information, like space on disk, other tool incompatibilities etc. and removed needs triage labels Aug 18, 2022
@matthiakl
Copy link
Author

Thanks @al-cheb, with the workaround it links successfully again.
(https://github.com/matthiakl/widelands/runs/7898693155?check_suite_focus=true)

@al-cheb
Copy link
Contributor

al-cheb commented Aug 18, 2022

Thank you . Close to track #6091

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: C/C++ bug report investigate Collect additional information, like space on disk, other tool incompatibilities etc. OS: Windows
Projects
None yet
Development

No branches or pull requests

2 participants