TVAM / winetricks

Automatically exported from code.google.com/p/winetricks
0 stars 0 forks source link

msxml winetricks fail on OS X with winemac.drv #331

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Install Wine 1.6 on OS X 10.8.x
2. run winetricks msxml3, winetricks msxml4 or winetricks msxml6
3. watch it fail

What is the expected output? What do you see instead?
The msxml installer runs and installs fine, but winetricks fails to detect the 
installation, as it reports it failed before the installer even shows up. Look 
at the log below. This causes problems especially when a winetrick needs 
prerequisites, as they fail to get detected and winetricks eventually quits 
before everything is installed

What version of the product are you using? On what operating system?
Wine 1.6, latest winetricks, OS X 10.8.3

Please provide any additional information below.
LOG for "winetricks msxml4":
Executing w_do_call msxml4
Executing load_msxml4
Using native,builtin override for following DLLs: msxml4
Executing winetricks_early_wine regedit C:\windows\Temp\_msxml4\override-dll.reg
Executing wine msiexec /i msxml.msi
------------------------------------------------------
msxml4 install completed, but installed file 
/Volumes/Work/Barrel/Library/games/adventure/RealMyst/.wine/dosdevices/c:/window
s/system32/msxml4.dll not found
------------------------------------------------------
fixme:storage:create_storagefile Storage share mode not implemented.
err:mscoree:LoadLibraryShim error reading registry key for installroot [repeats 
a lot]
err:richedit:ReadStyleSheet skipping optional destination [repeats a lot]
fixme:msi:ControlEvent_SpawnWaitDialog Doing Nothing

More verbs could be affected, I didn't try all of them

Thanks

Original issue reported on code.google.com by thanou...@gmail.com on 25 Jul 2013 at 11:07

GoogleCodeExporter commented 8 years ago
This is probably not a winetricks bug, but rather a Wine or OSX/Clang bug (see 
below).

Does it work with the X11 driver? If you keep the Mac driver, but use 
winetricks' quiet mode, does it work?

If it only fails with Mac driver and non-quiet mode, can you try compiling wine 
with gcc instead of clang? I think you may be seeing 
http://bugs.winehq.org/show_bug.cgi?id=33746

Original comment by austinenglish@gmail.com on 30 Jul 2013 at 12:48

GoogleCodeExporter commented 8 years ago
Ok, did some more tests
My wine is built with macports gcc4.8 and OS X 10.8 SDK. It fails with both the 
X11 and the mac driver.
The setup windows show up fine, but it looks like winetricks think it's 
finished for some reason and tries to check for the file before the setup has a 
chance to start. It doesn't look like the issue in the link you provided

P.S. I'm running winetricks with the "--no-isolate" switch

Original comment by thanou...@gmail.com on 30 Jul 2013 at 8:54

GoogleCodeExporter commented 8 years ago
So I tested this on a Mac. It's a clang bug.

Workarounds are compiling wine with gcc-apple-4.2 (from XCode or Macports) or 
disabling the mac driver (winetricks macdriver=x11).

Original comment by austinenglish@gmail.com on 1 Aug 2013 at 11:41

GoogleCodeExporter commented 8 years ago
Got a link to the clang bug report?

Original comment by daniel.r...@gmail.com on 1 Aug 2013 at 11:54

GoogleCodeExporter commented 8 years ago
No, I'll be filing one shortly. I'm narrowing down what source file it's 
miscompiling.

Original comment by austinenglish@gmail.com on 1 Aug 2013 at 11:57

GoogleCodeExporter commented 8 years ago
I can't get it to consistently happen :/.

In any case, not a winetricks bug.

Original comment by austinenglish@gmail.com on 2 Aug 2013 at 1:23

GoogleCodeExporter commented 8 years ago
I'm sorry, I don't get it.
How is it possible it's a clang bug when I compile with gcc-mp-4.8?
Furthermore, I already said that it fails with both the X11 and the mac driver.
Compiling with gcc-4.2 is not an option for me as I'm trying to make a game 
that needs to be compiled with >=gcc4.5 run

Original comment by thanou...@gmail.com on 2 Aug 2013 at 11:04

GoogleCodeExporter commented 8 years ago
gcc-mp-4.8 can't compile wine, it lacks support for blocks. How did you get it 
to compile?

In any case, it's not a winetricks bug, the bug is somewhere else..

Original comment by austinenglish@gmail.com on 2 Aug 2013 at 5:05

GoogleCodeExporter commented 8 years ago
I'm compiling everything with gcc-mp-4.8 except for the winemac.drv which I'm 
compiling it with clang. Is this possibly the cause of the issue?
I'll try and build wine with gcc48 and winemac.drv with gcc42, see if that works

The only thing I don't understand is why it still fails for me with x11

Original comment by thanou...@gmail.com on 2 Aug 2013 at 11:55

GoogleCodeExporter commented 8 years ago
I found a similar issue with the Batman Arkham Asylum demo, and tracked it down 
to 
http://llvm.org/bugs/show_bug.cgi?id=9707

you might try with a lower version of gcc-mp, instead of 4.8. Try 4.6/4.7 and 
see if it helps.

The bug that clang exposed was in dlls/user32/dialog.c, fwiw. Potentially the 
same bug is showing in winemac.drv (though it also occurs for you in x11).

Original comment by austinenglish@gmail.com on 3 Aug 2013 at 12:23

GoogleCodeExporter commented 8 years ago
Ok problem solved.
The problem was a bash script I built. I basically had to rename the wine and 
wineserver binaries, and replace them with my own wine and wineserver bash 
scripts, which do all the redirection needed for the input and output. The 
problem, I guess, was that winetricks couldn't find the process as it was no 
longer named wine or wineserver.

Sorry for wasting your time, you were right, it had nothing to do with 
winetricks.

Thanks

Original comment by thanou...@gmail.com on 7 Aug 2013 at 9:43

GoogleCodeExporter commented 8 years ago
Glad you got it sorted out.

Original comment by austinenglish@gmail.com on 7 Aug 2013 at 9:46