Skip to content

Il mismatch between 'P1' version '20221215' and 'P2' version '20220715' #7832

@matthiakl

Description

@matthiakl

Description

This is the same error that appeared a while ago (#6107) after updating the runner image, just with newer versions. I guess there is again a component update for VC missing to match compiler and Visual Studio version.
I did not found a current equivalent to #6091, but I guess these repos have the same issues as well.

Platforms affected

  • Azure DevOps
  • GitHub Actions - Standard Runners
  • GitHub Actions - Larger Runners

Runner images affected

  • Ubuntu 20.04
  • Ubuntu 22.04
  • macOS 11
  • macOS 12
  • macOS 13
  • Windows Server 2019
  • Windows Server 2022

Image version and build link

20230625.1.0
https://github.com/widelands/widelands/actions/runs/5424202817/jobs/9870401742

Is it regression?

20230612.1 https://github.com/widelands/widelands/actions/runs/5370020940/jobs/9741885143

Expected behavior

Linking should succeed.

Actual behavior

NMAKE : fatal error U1077: '"C:\Program Files\CMake\bin\cmake.exe" -E vs_link_exe --intdir=CMakeFiles\test_ai.dir --rc=C:\PROGRA~2\WI3CF2~1\10\bin\100226~1.0\x64\rc.exe --mt=C:\PROGRA~2\WI3CF2~1\10\bin\100226~1.0\x64\mt.exe --manifests -- C:\PROGRA~1\MICROS~2\2022\ENTERP~1\VC\Tools\MSVC\1435~1.322\bin\HostX64\x64\link.exe /nologo @CMakeFiles\test_ai.dir\objects1.rsp @C:\Users\RUNNER~1\AppData\Local\Temp\nmE99E.tmp' : return code '0xffffffff'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.35.32215\bin\HostX64\x64\nmake.exe" -s -f src\ai\test\CMakeFiles\test_ai.dir\build.make /nologo -SL                 src\ai\test\CMakeFiles\test_ai.dir\build' : return code '0x2'
Stop.
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
fatal error C1900: Il mismatch between 'P1' version '20221215' and 'P2' version '20220715'
LINK : fatal error LNK1257: code generation failed
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.35.32215\bin\HostX64\x64\nmake.exe" -s -f CMakeFiles\Makefile2 /nologo -S                  all' : return code '0x2'
Stop.
C:\ProgramData\Chocolatey\lib\mingw\tools\install\mingw64\x86_64-w64-mingw32\bin\strip.exe: './src/widelands.exe': No such file

Repro steps

I guess it affects other Visual Studio builds as well.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions