https://bugs.winehq.org/show_bug.cgi?id=46559
Bug ID: 46559 Summary: Visual C++ Build Tools 2015 fails to install Product: Wine Version: 4.0 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: winsock Assignee: wine-bugs@winehq.org Reporter: andremohren@gmail.com Distribution: ---
Created attachment 63431 --> https://bugs.winehq.org/attachment.cgi?id=63431 Default output when running
Environment: Fresh wine 4.0 (from default repository in ubuntu disco) with installed "dotnet462" via winetricks. Executable: https://download.microsoft.com/download/5/f/7/5f7acaeb-8363-451f-9425-68a90f...
The installer itself starts correctly. When comparing it with a proper windows environment, the installer checks for available packages before giving the user the opportunity to select which packages to install (in my case the defaults plus the MFC libraries and the Windows 8.1 SDK, so the goal is to get this stack installed for an linux based build server which has to compile the windows binaries). While this takes some time on windows, wine instantly switches to the next "finalizing" step, which causes the application to close shortly afterwards. I suspect the winsock error causing the installer to not find any downloadable packages, resulting in a proper finalizing and closing.
If any specific additional logs are required, please tell me and i will add them here instantly. Thanks in advance for the help!
https://bugs.winehq.org/show_bug.cgi?id=46559
Andre Mohren andremohren@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Hardware|x86 |x86-64
https://bugs.winehq.org/show_bug.cgi?id=46559
--- Comment #1 from Andre Mohren andremohren@gmail.com --- Created attachment 63433 --> https://bugs.winehq.org/attachment.cgi?id=63433 Logile created by using the /Log argument
https://bugs.winehq.org/show_bug.cgi?id=46559
Andre Mohren andremohren@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|winsock |-unknown
https://bugs.winehq.org/show_bug.cgi?id=46559
Louis Lenders xerox.xerox2000x@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |xerox.xerox2000x@gmail.com Keywords| |dotnet, download Status|UNCONFIRMED |NEW Ever confirmed|0 |1 URL| |https://download.microsoft. | |com/download/5/f/7/5f7acaeb | |-8363-451f-9425-68a90f98b23 | |8/visualcppbuildtools_full. | |exe
--- Comment #2 from Louis Lenders xerox.xerox2000x@gmail.com --- Hi,
For me it stops with a window: Setup blocked
The error below from your log could be due missing font: 003b:err:eventlog:ReportEventW L"Application: visualcppbuildtools_full.exe\nFramework Version: v4.0.30319\nDescription: The application requested process termination through System.Environment.FailFast(string message).\nMessage: Unrecoverable system error.\nStack:\n at System.Environment.FailFast(System.String)\n at MS.Internal."...
Could you try if ``winetricks arial`` makes any difference?
At least i can confirm there`s a problem with the installer
https://bugs.winehq.org/show_bug.cgi?id=46559
--- Comment #3 from Andre Mohren andremohren@gmail.com --- I do not have any MS fonts installed. I simply installed Wine 4.0 from the repository and installed the .NET 4.6.2 stack via winetricks to get the installer to run. Using mono or a different .NET version results in crashes. After some additional debugging im now pretty sure, the installer manages to fetch the information form the server, however he fails to verify the signature. Im not realy sure whats causing that, but it may be as simple as a missing checksum algorythm or a missing certificate.
https://bugs.winehq.org/show_bug.cgi?id=46559
--- Comment #4 from Andre Mohren andremohren@gmail.com --- After even more debugging, i came across this secion in the wine log:
0037:fixme:bcrypt:BCryptGetFipsAlgorithmMode 0x33eb68 - semi-stub 0037:fixme:ncrypt:NCryptOpenStorageProvider (0x33ed0c, L"Microsoft Software Key Storage Provider", 0): stub
As the installer fails at some xml signature verification, it might be possible that the unimplemented method is actualy the reason.
https://bugs.winehq.org/show_bug.cgi?id=46559
--- Comment #5 from Andre Mohren andremohren@gmail.com --- After copying over ncrypt.dll from windows (and setting it to native in winecfg), the installer now validates the feed :) This however makes the installer crash at a later state. Installing Arial with winetricks was the perfect solution for this, thanks. Ill now check if the installer is able to install all the components and either update this ticket or resolve it if everything can be installed correctly.
https://bugs.winehq.org/show_bug.cgi?id=46559
--- Comment #6 from Andre Mohren andremohren@gmail.com --- Currently the installer seems to hang upon downloading files. He starts by creating a tempfile, then downloads the data into that tempfile. This works so far and the file is downloaded completely. However afterwards it seems the installer does not notice the file is being downloaded completely, as he simply hangs (not freezes) on the downloading state of a completely downloaded file. The tempfile does also not get renamed to its correct target filename, so i expect another unimplemented method here. Need to check.
https://bugs.winehq.org/show_bug.cgi?id=46559
--- Comment #7 from Andre Mohren andremohren@gmail.com --- Debug output shows this at the time the file is completely downloaded: 0037:fixme:advapi:DecryptFileW (L"C:\users\andre\Temp\{a9528995-e130-4501-ae19-bbfaddb779cc}\", 00000000): stub Copying over the advapi32.dll seems to break the whole wine environment.
https://bugs.winehq.org/show_bug.cgi?id=46559
Andre Mohren andremohren@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Visual C++ Build Tools 2015 |Visual C++ Build Tools 2015 |fails to install |hangs on install
https://bugs.winehq.org/show_bug.cgi?id=46559
Andre Mohren andremohren@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |advapi32
https://bugs.winehq.org/show_bug.cgi?id=46559
--- Comment #8 from Andre Mohren andremohren@gmail.com --- Installing this on windows first, and then copying over the contens of "c:\ProgramData\Package Cache" into wine makes the installer recognize the packages as already downloaded, skipping the unimplemented part of the advpi32.dll which downloads and decrypts the files.
Installation of the generic build tools works, as well as the MFC additions. Installation of Windows 8.1 SDK however results in another error, ill comment about it when i found out what the problem is.
Besides: Running MSBuild from the wine cmd works, most of my code here even compiles. Linking seems to cause some problems with "invalid or corrupt file...". But ill move the compiling issues to another bug report, as this is unrelated to the installer.
https://bugs.winehq.org/show_bug.cgi?id=46559
--- Comment #9 from Andre Mohren andremohren@gmail.com --- Final summary: There are three problems with installing. Two of them rely on unimplemented methods in ncrypt.dll and advapi32.dll and require a Windows installation. Im not sure what causes the third problem, but there is an easy workaround which does not require a Windows environment.
Preparation: - Using a fresh Wine 4.0 (64bit) installation. - Running winetricks dotnet462 arial ## workaround for wine "ncrypt:NCryptOpenStorageProvider" not implemented yet - Copy ncrypt.dll from Windows over and set it no native in winecfg ## workaround for wine "advapi:DecryptFileW" not implemented yet - Install on Windows first, and copy the package folders from c:/ProgramData/Package Cache/
Installation: - https://download.microsoft.com/download/5/f/7/5f7acaeb-8363-451f-9425-68a90f... ## workaround for Windows SDK not being installable by build tools - https://download.microsoft.com/download/B/0/C/B0C80BA3-8AD6-4958-810B-688248...
Using the build tools to compile an application does not completely work yet. Problems regarding the usage of the build tools will be reported as seperate bugs.
https://bugs.winehq.org/show_bug.cgi?id=46559
Zebediah Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |z.figura12@gmail.com Component|advapi32 |bcrypt
--- Comment #10 from Zebediah Figura z.figura12@gmail.com --- I suspect the advapi32 FIXME is not a real problem, on the grounds that I've seen it printed in many applications that work fine. (And yes, using native advapi32 is not expected to work).
https://bugs.winehq.org/show_bug.cgi?id=46559
Sergey Isakov isakov-sl@bk.ru changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |isakov-sl@bk.ru
--- Comment #11 from Sergey Isakov isakov-sl@bk.ru --- I am trying to make fresh install 3DMark Vantage and see the same bug. Installer started but hangs with additional package VC++2010. The link is https://benchmarks.ul.com/legacy-benchmarks
I have to mention that it can be installed with wine-3.0 for example. Not with wine-4.1.
https://bugs.winehq.org/show_bug.cgi?id=46559
Erich E. Hoover erich.e.hoover@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |erich.e.hoover@gmail.com
--- Comment #12 from Erich E. Hoover erich.e.hoover@gmail.com --- Have you guys tried this recently? I have created a utility for building Python packages under Wine that depends on installing on the Visual C++ 2015 build tools ( https://github.com/sweptlaser/build-python-wine ) and the only problem that I had was that I had to kill the svchost when the installer hung trying to create a system restore point.
https://bugs.winehq.org/show_bug.cgi?id=46559
Roman Pišl rpisl@seznam.cz changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |rpisl@seznam.cz
https://bugs.winehq.org/show_bug.cgi?id=46559
--- Comment #13 from Roman Pišl rpisl@seznam.cz --- As I am working on the same thing I think that it is worth mentioning here: it is now also possible to create functional MSVC 2015 build environment using Visual Studio 2019 build tools installer, see https://bugs.winehq.org/show_bug.cgi?id=47626 It requires applying one patch on top of wine-staging 4.17, but then everything works smoothly.
https://bugs.winehq.org/show_bug.cgi?id=46559
--- Comment #14 from Erich E. Hoover erich.e.hoover@gmail.com --- (In reply to Roman Pišl from comment #13)
As I am working on the same thing I think that it is worth mentioning here: it is now also possible to create functional MSVC 2015 build environment using Visual Studio 2019 build tools installer, see https://bugs.winehq.org/show_bug.cgi?id=47626 It requires applying one patch on top of wine-staging 4.17, but then everything works smoothly.
Nice! With my script I have it working with the 2015 installer (haven't tried anything more recent) without any patches. Feel free to take a look at what I've done and see if it helps you at all. I've compiled a number of projects with it at this point and, for the most part, everything is pretty smooth.
https://bugs.winehq.org/show_bug.cgi?id=46559
winetest@luukku.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |winetest@luukku.com
--- Comment #15 from winetest@luukku.com --- with wine 5.20 I am only able to see Visual studio text on black/grey background and it vanishes quite fast. Clearly it fails to install. I would not call it a hang, just fails.
https://bugs.winehq.org/show_bug.cgi?id=46559
--- Comment #16 from Erich E. Hoover erich.e.hoover@gmail.com --- (In reply to winetest from comment #15)
with wine 5.20 I am only able to see Visual studio text on black/grey background and it vanishes quite fast. Clearly it fails to install. I would not call it a hang, just fails.
Huh, I'm pretty sure that I fixed this with commit 34ed1e37da1e1c1cfd641f1f16b0e00030cbb357 and forgot to close this bug. Would you mind trying with something like wine-4.20 and seeing if that works for you? (if it does, then it would be awesome if you open another bug and do a regression test to find where the installer broke)
https://bugs.winehq.org/show_bug.cgi?id=46559
--- Comment #17 from Erich E. Hoover erich.e.hoover@gmail.com --- (In reply to Erich E. Hoover from comment #16)
... Huh, I'm pretty sure that I fixed this with commit 34ed1e37da1e1c1cfd641f1f16b0e00030cbb357 and forgot to close this bug. Would you mind trying with something like wine-4.20 and seeing if that works for you? (if it does, then it would be awesome if you open another bug and do a regression test to find where the installer broke)
Scratch that, use wine-5.0: https://github.com/sweptlaser/build-python-wine/commit/9009c35c6e6be62241cbb... (probably had a regression with something else)
https://bugs.winehq.org/show_bug.cgi?id=46559
--- Comment #18 from Erich E. Hoover erich.e.hoover@gmail.com --- (In reply to winetest from comment #15)
with wine 5.20 I am only able to see Visual studio text on black/grey background and it vanishes quite fast. Clearly it fails to install. I would not call it a hang, just fails.
With both wine-5.20 and wine-5.21 it's working for me. Test protocol: 0) wget http://download.microsoft.com/download/5/F/7/5F7ACAEB-8363-451F-9425-68A90F9...; 1) winetricks -q dotnet452; 2) winetricks win7; 3) wine visualcppbuildtools_full.exe;
https://bugs.winehq.org/show_bug.cgi?id=46559
dragonwarriorxtreme@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dragonwarriorxtreme@gmail.c | |om
--- Comment #19 from dragonwarriorxtreme@gmail.com --- XML feed validation seems to still fail with wine-staging 7.1, even after I replace ncrypt.dll. Note that I replaced it with Windows 7 equivalents.
Is there an offline routine for MSVC 2015 that I can use?
https://bugs.winehq.org/show_bug.cgi?id=46559
--- Comment #20 from Erich E. Hoover erich.e.hoover@gmail.com --- (In reply to dragonwarriorxtreme from comment #19)
XML feed validation seems to still fail with wine-staging 7.1, even after I replace ncrypt.dll. Note that I replaced it with Windows 7 equivalents.
Is there an offline routine for MSVC 2015 that I can use?
Are you trying to install actual MSVC or the Build Tools?
https://bugs.winehq.org/show_bug.cgi?id=46559
--- Comment #21 from dragonwarriorxtreme@gmail.com --- (In reply to Erich E. Hoover from comment #20)
(In reply to dragonwarriorxtreme from comment #19)
XML feed validation seems to still fail with wine-staging 7.1, even after I replace ncrypt.dll. Note that I replaced it with Windows 7 equivalents.
Is there an offline routine for MSVC 2015 that I can use?
Are you trying to install actual MSVC or the Build Tools?
Just the build tools; I should have mentioned this. I'm using the full ISO.
https://bugs.winehq.org/show_bug.cgi?id=46559
--- Comment #22 from Erich E. Hoover erich.e.hoover@gmail.com --- (In reply to dragonwarriorxtreme from comment #21)
Just the build tools; I should have mentioned this. I'm using the full ISO.
Have you tried the steps I put in comment #18? It may be that your installer is different, but it might be that something in Wine broke since I tested last.
https://bugs.winehq.org/show_bug.cgi?id=46559
--- Comment #23 from dragonwarriorxtreme@gmail.com --- (In reply to Erich E. Hoover from comment #22)
(In reply to dragonwarriorxtreme from comment #21)
Just the build tools; I should have mentioned this. I'm using the full ISO.
Have you tried the steps I put in comment #18? It may be that your installer is different, but it might be that something in Wine broke since I tested last.
Even with the EXE that you provided, the problem still does not solve itself. This is in Fedora Rawhide current, by the way, but I get similar problems in Void glibc as well. This may be one of the problems:
wine: Call from 7B0110C6 to unimplemented function bcrypt.dll.BCryptResolveProviders, aborting
Once again, this is using native ncrypt.dll from Windows 7 build *7601* from dll-files, replacing both the 64-bit version (in System32, considering I am using a 64-bit prefix), and the 32-bit version (in SysWow64).
Please attempt reproducing. Note that I installed up to dotnet472, and also needed to install d3dcompiler_47.
https://bugs.winehq.org/show_bug.cgi?id=46559
--- Comment #24 from dragonwarriorxtreme@gmail.com --- (in regards to this: Santino Mazza is busy implementing parts of ncrypt, although functions like NCryptVerifySignature are still needed. This is a step in the right direction.)
https://bugs.winehq.org/show_bug.cgi?id=46559
--- Comment #25 from Hans Leidekker hans@meelstraat.net --- (In reply to dragonwarriorxtreme from comment #24)
(in regards to this: Santino Mazza is busy implementing parts of ncrypt, although functions like NCryptVerifySignature are still needed. This is a step in the right direction.)
NCryptVerifySignature is implemented for RSA now. Is this still an issue?
https://bugs.winehq.org/show_bug.cgi?id=46559
temp82@luukku.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |temp82@luukku.com
--- Comment #26 from temp82@luukku.com --- (In reply to Hans Leidekker from comment #25)
(In reply to dragonwarriorxtreme from comment #24)
(in regards to this: Santino Mazza is busy implementing parts of ncrypt, although functions like NCryptVerifySignature are still needed. This is a step in the right direction.)
NCryptVerifySignature is implemented for RSA now. Is this still an issue?
no idea the installer can't Finnish with wine 7.16. no crash though.