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

fatal error C1900: IL mismatch between "P1" version #738

Closed
VictorVG opened this issue Nov 17, 2020 · 5 comments
Closed

fatal error C1900: IL mismatch between "P1" version #738

VictorVG opened this issue Nov 17, 2020 · 5 comments

Comments

@VictorVG
Copy link

When trying to build in VC++ v16.7.7 v3.0.8120.3593 Git-994bb08e received an error message already when building x86:

[ERROR] (1) LIB: fatal error C1900: IL mismatch between "P1" version "20200803" and "P2" version "20190715" [. \Phlib\phlib.vcxproj]
LINK: fatal error LNK1257: failed to generate code [.\Phlib\phlib.vcxproj]

Did I understand correctly that in this case you need to update the compiler to v16.8.1? And then I'm afraid that fresh errors will come out in it ...

@VictorVG
Copy link
Author

After updating the compiler, PH got together, I check the rest - I'm afraid that there may be problems with linking in SumatraPDF and Rufus - assembly scripts are also used there ...

@dmex
Copy link
Member

dmex commented Nov 17, 2020

Did I understand correctly that in this case you need to update the compiler to v16.8.1?

You can recompile \tools\thirdparty\thirdparty.sln or upgrade visual studio.

@VictorVG
Copy link
Author

I upgrade MSVS up to v16.8.1, but have slow compile speed - v16.7.7 compile time ~ 1 min 39 sec, v16.8.1 compile time ~ 3 min 21 sec in some system:

1

In to MS TechNet have question Visual Studio 2019 version 16.8.0 very slow to build. VBCSCompiler stuck? Previous version fine with same solution. and according to the description of the Migrations Overview, it turns out that the new compiler checks the probability of data loss each time before performing the operation. Maybe you should think about how to eliminate these delays, for example, by writing CustomBuildTools not in .NET, but in C/C++ or use simple scripts build system exluded .NET?

@dmex
Copy link
Member

dmex commented Nov 18, 2020

VBCSCompiler

We don't use the VB and C# compilers since the project is C

Maybe you should think about how to eliminate these delays

Those bug reports are for MSBuild included with Visual Studio which is not the same as our CustomBuildTool which only launches MSBuild.

writing CustomBuildTools not in .NET, but in C/C++ or use simple scripts build system exluded .NET?

The project is AOT compiled and rewriting the entire thing won't solve the issue with MSBuild... You have to wait for Microsoft to fix the issue or rollback to an older version of Visual Studio.

@VictorVG
Copy link
Author

Got it. The only thing that I have not yet figured out is how to roll back the compiler on the server without breaking the entire build system, but for now I have to endure these arts of "students" from M$ ...

@dmex dmex changed the title Question - trying to build in VC++ v16.7.7 v3.0.8120.3593 Git-994bb08e received an error message already when building x86. Did I understand correctly that in this case you need to update the compiler to v16.8.1? fatal error C1900: IL mismatch between "P1" version Nov 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants