Gcenx / macports-wine

Updated wine Portfiles for macports
88 stars 11 forks source link

macosx 10.13 sdk causes problems with installing macport dependencies #120

Closed asvitkine closed 3 months ago

asvitkine commented 3 months ago

For example, I see:

--->  Configuring libinotify
Error: Failed to configure libinotify: consult /opt/local/var/macports/build/_opt_macports-wine_devel_libinotify/libinotify/work/libinotify-kqueue-9c20cc1/config.log
Error: Failed to configure libinotify: configure failure: command execution failed
Error: See /opt/local/var/macports/logs/_opt_macports-wine_devel_libinotify/libinotify/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Error: Processing of port wine-devel failed

From the logfile:

configure:14965: /usr/bin/clang++ -std=gnu++11 -E -I/opt/local/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.13.sdk conftest.cpp
In file included from conftest.cpp:41:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/limits.h:57:
In file included from /Library/Developer/CommandLineTools/usr/lib/clang/12.0.5/include/limits.h:21:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.13.sdk/usr/include/limits.h:63:
/Library/Developer/CommandLineTools/SDKs/MacOSX10.13.sdk/usr/include/sys/cdefs.h:763:2: error: Unsupported architecture
#error Unsupported architecture
 ^

This was when running sudo port install wine-devel with the 10.13sdk instructions followed on Ventura.

Without the 10.13sdk, I get:

Error: Cannot install wine-devel for the arch 'x86_64' because
Error: its dependency MoltenVK does not build for the required arch by default
Error: and does not have a universal variant.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Error: Processing of port wine-devel failed

It's unclear to me whether:

  1. I'm not supposed to use the 10.13 SDK (and if so, how to resolve the MoltenVK error)
  2. I'm supposed to use the 10.13 SDK (and if so, what's up with the Unsupported architecture errors)
  3. Or if M1 is not supported by this project?

If it is a user error, better documentation would be appreciated!

Gcenx commented 3 months ago

Why have you even installed macosx10.13.sdk that’s only a required step for macOS Mojave it’s even explained in the heading https://github.com/Gcenx/macports-wine#macos-mojave

The section is only for macOS Mojave no other version.

asvitkine commented 3 months ago

Without it, I get the error I quoted above about MoltenVK

Gcenx commented 3 months ago

So the actual issue is MoltenVK is claiming it doesn’t have a universal variant, your attempt to workaround this by forcing another SDK causes other issues.

For now run sudo port install moltenvk-latest +universal this should work around the problem with macports-ports moltenvk Portfile.

Gcenx commented 3 months ago

@asvitkine I'm assuming as you’ve not responded since to this issue the above resolved your issue?

Gcenx commented 3 months ago

Closing assuming this issue was resolved.