https://bugs.winehq.org/show_bug.cgi?id=50735
Bug ID: 50735 Summary: MSBuild fails to launch FileTracker Product: Wine Version: 6.3 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: ntdll Assignee: wine-bugs@winehq.org Reporter: rpisl@seznam.cz Distribution: ---
Created attachment 69503 --> https://bugs.winehq.org/attachment.cgi?id=69503 WINEDEBUG=+relay,+process,+module,+loaddll BAD
MSBuild from Visual Studio build tools 2019 fails to launch FileTracker which is needed for incremental builds. This apply for Wine 6.3 but it works on Staging. I bisected this to wow64cpu patchset which is tracked in bug 45567.
Then I found that there are patches for wow64cpu on the list for upstream. But these don't fix the problem. So after investigating this further I've found this: what really fixes the problem is calling load_builtin_dll() in process_init() and this builtin dll must not be in PE format. If -mno-cygwin is enabled, it does not work. It is not important which exports the library has, no need for setting Wow64Transition.
I'm attaching two traces - good and bad. Maybe someone could identify what is happening here.
https://bugs.winehq.org/show_bug.cgi?id=50735
--- Comment #1 from Roman Pišl rpisl@seznam.cz --- Created attachment 69504 --> https://bugs.winehq.org/attachment.cgi?id=69504 WINEDEBUG=+relay,+process,+module,+loaddll GOOD
https://bugs.winehq.org/show_bug.cgi?id=50735
winetaste@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |winetaste@gmx.net
https://bugs.winehq.org/show_bug.cgi?id=50735
Roman Pišl rpisl@seznam.cz changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |rpisl@seznam.cz
--- Comment #2 from Roman Pišl rpisl@seznam.cz --- Created attachment 69728 --> https://bugs.winehq.org/attachment.cgi?id=69728 Trace log since e6ed943028d8d5d63ae0d40c898fbf0fbfc38c54
A hack to load a builtin library just after build_ntdll_module() does not work anymore since e6ed943028d8d5d63ae0d40c898fbf0fbfc38c54.
https://bugs.winehq.org/show_bug.cgi?id=50735
--- Comment #3 from Roman Pišl rpisl@seznam.cz --- Created attachment 69978 --> https://bugs.winehq.org/attachment.cgi?id=69978 Hack for Wine 6.4
Wine 6.8 is in a good shape and reproducing is now simple.
In a clean prefix with Wine 6.8: winetricks vstools2019 git clone https://github.com/carterjones/hello-world-dll.git 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
TRACKER : error TRK0002: Failed to execute command ... FileTracker error code: 0xc1 ...
Switch to Wine 6.4 and run MSBuild again with the same result. With the attached patch applied on top of Wine 6.4, MSBuild succeeds.
https://bugs.winehq.org/show_bug.cgi?id=50735
François Gouget fgouget@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch CC| |fgouget@codeweavers.com
https://bugs.winehq.org/show_bug.cgi?id=50735
Roman Pišl rpisl@seznam.cz changed:
What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.winehq.org/sho | |w_bug.cgi?id=50993
https://bugs.winehq.org/show_bug.cgi?id=50735
Roman Pišl rpisl@seznam.cz changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |0ec555e58ea9d5b33f4c825e969 | |65ad0cb15d00f Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED
--- Comment #4 from Roman Pišl rpisl@seznam.cz --- Fixed by https://source.winehq.org/git/wine.git/commit/0ec555e58ea9d5b33f4c825e96965a...
https://bugs.winehq.org/show_bug.cgi?id=50735
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #5 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 6.12.
https://bugs.winehq.org/show_bug.cgi?id=50735
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |6.0.x
https://bugs.winehq.org/show_bug.cgi?id=50735
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|6.0.x |---
--- Comment #6 from Michael Stefaniuc mstefani@winehq.org --- Removing the 6.0.x milestone from bug fixes included in 6.0.3.