-
-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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
wineWowPackages do not build on darwin x86_64 #137734
Comments
WineWOW needs a multilib compiler, because it compiles both 32 and 64 bit code in a single build. If nix on darwin doesn't provide that, that would be the place to start. Unfortunately, I don't have a mac and know little about how nix works on it. Do wine32 and wine64 both work? |
Since the 10.14 SDK, it’s not possible to link 32-bit applications on Darwin. While x86_64-darwin is currently using the 10.12 SDK, I don’t know whether it can link 32-bit applications either. The future will be using Wine’s new WoW64 support. However, from what I understand, it doesn’t yet support Darwin. |
What's the status on this? IIRC Wine upstream should support WoW on Darwin now. |
I’ve read the conversion is not quite done yet, but it wouldn’t hurt to try building it anyway. The previous failures were during the build, so any problems should be obvious right away. I can look at it sometime this week. |
I haven’t had a chance to take a look at it, and I’m currently trying to figure out how/what broke when I upgraded to macOS 13.3 yesterday, so I’m not sure when I’ll get a chance. From looking at the Wine bugtracker, it appears it works for some things but is experimental and not quite ready (e.g., https://bugs.winehq.org/show_bug.cgi?id=54367 and https://bugs.winehq.org/show_bug.cgi?id=54442). |
@Gcenx pinged me regarding a set of out of tree patches to make this work on Darwin. There are some caveats (e.g., printing is disabled), but it would allow some 32-bit Windows applications to run using Wine from nixpkgs. |
The WoW64 packages now build on Darwin. Is this still an issue? |
The title of this issue is that they did not build. If they build now then this issue is resolved. |
WoW64 != WoW Though I think WoW64 is the future of wine, so we might do without WoW EDIT though IIUC, WoW64 is still somewhat experimental ... |
The problem is WoW builds 32-bit libraries, which is effectively impossible in nixpkgs with our tooling. After 24.11 is released, the minimum version will be updated to 11.0, which does not support 32-bit at an OS level. Even if the WoW packages could be built, they wouldn’t work. Wine has to take special steps to run 32-bit code on macOS 10.15 and newer. The supported way to do that is using WoW64. CrossOver used to use a different way that required a custom clang, but I don’t think they use that anymore. Given the above, the question is whether WoW64 is an acceptable solution. If not, then this should be closed wontfix because it’ll never be implemented in nixpkgs for Darwin. Once #346043 is merged, I’ll be updating Wine to use the 14.4 SDK to take advantage of an API (when available) added in 14.4 for improved futex support. The 14.4 SDK definitely does not support building for 32-bit Darwin. It won’t even eval for it. |
Describe the bug
wineWowPackages.stable
doesn't build on x86_64-darwinSteps To Reproduce
Steps to reproduce the behavior:
nix-env -iA nixpkgs.wineWowPackages.stable
Expected behavior
Expected wine to install properly
Additional context
Problem looks to be stemming from
https://github.com/NixOS/nixpkgs/blob/master/pkgs/misc/emulators/wine/base.nix#L92
Notify maintainers
@avnik @raskin @bendlas
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.Maintainer information:
The text was updated successfully, but these errors were encountered: