https://bugs.winehq.org/show_bug.cgi?id=51396
Bug ID: 51396 Summary: cl.exe sometimes fails with internal compiler error Product: Wine Version: 6.12 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: rpisl@seznam.cz Distribution: ---
Cl.exe from MSVC 2019 Build Tools sometimes fails with: "fatal error C1001: Internal compiler error." A workaround is setting vcruntime140_1 to native.
This is possibly caused by unsupported flag in __CxxFrameHandler4: 0b24:fixme:seh:__CxxFrameHandler4 unsupported flags: 7a
which is unsupported FUNC_DESCR_IS_SEPARATED in dlls/vcruntime140_1/except_x86_64.c
Not critical since the workaround exists. I'm ready to test this when the flag is implemented.
https://bugs.winehq.org/show_bug.cgi?id=51396
Gijs Vermeulen gijsvrm@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |msvcrt
https://bugs.winehq.org/show_bug.cgi?id=51396
Piotr Caban piotr.caban@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |piotr.caban@gmail.com
--- Comment #1 from Piotr Caban piotr.caban@gmail.com --- Is it possible to reproduce it locally? Could you please describe the command line and attach a sample file that triggers mentioned crash?
https://bugs.winehq.org/show_bug.cgi?id=51396
--- Comment #2 from Roman Pišl rpisl@seznam.cz --- (In reply to Piotr Caban from comment #1)
Is it possible to reproduce it locally? Could you please describe the command line and attach a sample file that triggers mentioned crash?
I observed this with MSVC 2019 build tools installed (winetricks -q vstools2019). Then git clone https://github.com/carterjones/hello-world-dll.git. Make sure vcruntime140_1 is not overridden. Remove Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.28.29333/bin/Hostx64/x64/vctip.exe.
Then the following command should reproduce it (you can try Configuration=Debug if not):
wine "c:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/MSBuild/Current/Bin/amd64/MSBuild.exe" hello-world-dll/hello-world.vcxproj /p:PlatformToolset=v142 /p:Platform=x64 /p:Configuration=Release
If you prefer a simpler scenario (i.e. just cl.exe + source, without installing build tools which also needs dotnet 4.7.2), then I can try to prepare something, but it will take some time.
https://bugs.winehq.org/show_bug.cgi?id=51396
Roman Pišl rpisl@seznam.cz changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |rpisl@seznam.cz
--- Comment #3 from Roman Pišl rpisl@seznam.cz --- Created attachment 71206 --> https://bugs.winehq.org/attachment.cgi?id=71206 Batch to reproduce without msbuild
Batch to reproduce the issue without msbuild.
Run simply with: wine cmd /c run.bat
https://bugs.winehq.org/show_bug.cgi?id=51396
--- Comment #4 from Roman Pišl rpisl@seznam.cz --- Created attachment 71207 --> https://bugs.winehq.org/attachment.cgi?id=71207 Patch for winetricks
Patch for current winetricks that makes winetricks -q vstools2019 succeed. It now also overrides vcruntime140_1 which also makes cl.exe succeed.
https://bugs.winehq.org/show_bug.cgi?id=51396
--- Comment #5 from Piotr Caban piotr.caban@gmail.com --- I've sent a fix for the bug: https://source.winehq.org/patches/data/221415
https://bugs.winehq.org/show_bug.cgi?id=51396
--- Comment #6 from Roman Pišl rpisl@seznam.cz --- I can confirm that it works, that's great. Thanks!
https://bugs.winehq.org/show_bug.cgi?id=51396
Roman Pišl rpisl@seznam.cz changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|cl.exe sometimes fails with |cl.exe 64bit fails with |internal compiler error |internal compiler error, | |needs support for separated | |code segments in | |vcruntime140_1
https://bugs.winehq.org/show_bug.cgi?id=51396
Roman Pišl rpisl@seznam.cz changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |9ccd84b945c4935e200becfe08a | |9a5bdb4799bd5 Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED
--- Comment #7 from Roman Pišl rpisl@seznam.cz --- Fixed by https://source.winehq.org/git/wine.git/commit/9ccd84b945c4935e200becfe08a9a5...
https://bugs.winehq.org/show_bug.cgi?id=51396
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #8 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 7.0-rc1.
https://bugs.winehq.org/show_bug.cgi?id=51396
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |6.0.x
https://bugs.winehq.org/show_bug.cgi?id=51396
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|6.0.x |---
--- Comment #9 from Michael Stefaniuc mstefani@winehq.org --- Removing the 6.0.x milestone from bug fixes included in 6.0.4.