Skip to content
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

Installation fails on Error: apple/apple/game-porting-toolkit 1.1 did not build #9

Open
marlonrichert opened this issue Mar 11, 2024 · 8 comments

Comments

@marlonrichert
Copy link

marlonrichert commented Mar 11, 2024

I get the above error after running

brew86 -v install apple/apple/game-porting-toolkit

The following part of the output appears to be where the problem occurs:

/private/tmp/game-porting-toolkit-20240311-6601-nrgwc4/wine/dlls/crypt32/unixlib.c:629:11: error: unknown type name 'SecTrustSettingsDomain'
    const SecTrustSettingsDomain domains[] = {
          ^
/private/tmp/game-porting-toolkit-20240311-6601-nrgwc4/wine/dlls/crypt32/unixlib.c:630:9: error: use of undeclared identifier 'kSecTrustSettingsDomainSystem'
        kSecTrustSettingsDomainSystem,
        ^
/private/tmp/game-porting-toolkit-20240311-6601-nrgwc4/wine/dlls/crypt32/unixlib.c:631:9: error: use of undeclared identifier 'kSecTrustSettingsDomainAdmin'
        kSecTrustSettingsDomainAdmin,
        ^
/private/tmp/game-porting-toolkit-20240311-6601-nrgwc4/wine/dlls/crypt32/unixlib.c:632:9: error: use of undeclared identifier 'kSecTrustSettingsDomainUser'
        kSecTrustSettingsDomainUser
        ^
/private/tmp/game-porting-toolkit-20240311-6601-nrgwc4/wine/dlls/crypt32/unixlib.c:640:18: warning: this function declaration is not a prototype [-Wstrict-prototypes]
        status = SecTrustSettingsCopyCertificates(domains[domain], &certs);
                 ^
/private/tmp/game-porting-toolkit-20240311-6601-nrgwc4/wine/dlls/crypt32/unixlib.c:641:23: error: use of undeclared identifier 'noErr'
        if (status == noErr)
                      ^
/private/tmp/game-porting-toolkit-20240311-6601-nrgwc4/wine/dlls/crypt32/unixlib.c:647:31: warning: this function declaration is not a prototype [-Wstrict-prototypes]
                if ((status = SecItemExport(cert, kSecFormatX509Cert, 0, NULL, &certData)) == noErr)
                              ^
/private/tmp/game-porting-toolkit-20240311-6601-nrgwc4/wine/dlls/crypt32/unixlib.c:647:51: error: use of undeclared identifier 'kSecFormatX509Cert'
                if ((status = SecItemExport(cert, kSecFormatX509Cert, 0, NULL, &certData)) == noErr)
                                                  ^
/private/tmp/game-porting-toolkit-20240311-6601-nrgwc4/wine/dlls/crypt32/unixlib.c:647:95: error: use of undeclared identifier 'noErr'
                if ((status = SecItemExport(cert, kSecFormatX509Cert, 0, NULL, &certData)) == noErr)

I'm running macOS Sonoma 14.3.1 (23D60) on an Apple M2 MacBook Pro.

@marlonrichert marlonrichert changed the title Error: apple/apple/game-porting-toolkit 1.1 did not build Error: apple/apple/game-porting-toolkit 1.1 did not build Mar 11, 2024
@marlonrichert marlonrichert changed the title Error: apple/apple/game-porting-toolkit 1.1 did not build Installation fails on Error: apple/apple/game-porting-toolkit 1.1 did not build Mar 11, 2024
@domschl
Copy link
Owner

domschl commented Mar 11, 2024

Which Xcode (or Command Line utilities) are you using?

@QCastle
Copy link

QCastle commented Mar 23, 2024

Me too on macOS Sonoma 14.4 (23E214) M2. What's the way out?

brew -v install apple/apple/game-porting-toolkit

`bison -o dlls/d3dcompiler_33/asmshader.tab.c -d /private/tmp/game-porting-toolkit-20240324-68513-1jm8mg/wine/dlls/d3dcompiler_43/asmshader.y
/private/tmp/game-porting-toolkit-20240324-68513-1jm8mg/wine/dlls/crypt32/unixlib.c:629:11: error: unknown type name 'SecTrustSettingsDomain'
const SecTrustSettingsDomain domains[] = {
^
flex -odlls/d3dcompiler_33/asmshader.yy.c /private/tmp/game-porting-toolkit-20240324-68513-1jm8mg/wine/dlls/d3dcompiler_43/asmshader.l
/private/tmp/game-porting-toolkit-20240324-68513-1jm8mg/wine/dlls/crypt32/unixlib.c:630:9: error: use of undeclared identifier 'kSecTrustSettingsDomainSystem'
kSecTrustSettingsDomainSystem,
^
bison -o dlls/d3dcompiler_34/asmshader.tab.c -d /private/tmp/game-porting-toolkit-20240324-68513-1jm8mg/wine/dlls/d3dcompiler_43/asmshader.y
flex -odlls/d3dcompiler_34/asmshader.yy.c /private/tmp/game-porting-toolkit-20240324-68513-1jm8mg/wine/dlls/d3dcompiler_43/asmshader.l
/private/tmp/game-porting-toolkit-20240324-68513-1jm8mg/wine/dlls/crypt32/unixlib.c:631:9: error: use of undeclared identifier 'kSecTrustSettingsDomainAdmin'
kSecTrustSettingsDomainAdmin,
^
/private/tmp/game-porting-toolkit-20240324-68513-1jm8mg/wine/dlls/crypt32/unixlib.c:632:9: error: use of undeclared identifier 'kSecTrustSettingsDomainUser'
kSecTrustSettingsDomainUser
^
/private/tmp/game-porting-toolkit-20240324-68513-1jm8mg/wine/dlls/crypt32/unixlib.c:640:18: warning: this function declaration is not a prototype [-Wstrict-prototypes]
status = SecTrustSettingsCopyCertificates(domains[domain], &certs);
^
/private/tmp/game-porting-toolkit-20240324-68513-1jm8mg/wine/dlls/crypt32/unixlib.c:641:23: error: use of undeclared identifier 'noErr'
if (status == noErr)
^
/private/tmp/game-porting-toolkit-20240324-68513-1jm8mg/wine/dlls/crypt32/unixlib.c:647:31: warning: this function declaration is not a prototype [-Wstrict-prototypes]
if ((status = SecItemExport(cert, kSecFormatX509Cert, 0, NULL, &certData)) == noErr)
^
bison -o dlls/d3dcompiler_35/asmshader.tab.c -d /private/tmp/game-porting-toolkit-20240324-68513-1jm8mg/wine/dlls/d3dcompiler_43/asmshader.y
/private/tmp/game-porting-toolkit-20240324-68513-1jm8mg/wine/dlls/crypt32/unixlib.c:647:51: error: use of undeclared identifier 'kSecFormatX509Cert'
if ((status = SecItemExport(cert, kSecFormatX509Cert, 0, NULL, &certData)) == noErr)
^
/private/tmp/game-porting-toolkit-20240324-68513-1jm8mg/wine/dlls/crypt32/unixlib.c:647:95: error: use of undeclared identifier 'noErr'
if ((status = SecItemExport(cert, kSecFormatX509Cert, 0, NULL, &certData)) == noErr)
^
2 warnings and 7 errors generated.
make: *** [dlls/crypt32/unixlib.o] Error 1
make: *** Waiting for unfinished jobs....

==> Formula
Tap: apple/apple
Path: /usr/local/Homebrew/Library/Taps/apple/homebrew-apple/Formula/game-porting-toolkit.rb
==> Configuration
HOMEBREW_VERSION: 4.2.14
ORIGIN: https://github.com/Homebrew/brew
HEAD: f6a4f42cc346694fac94fa1643bc2809d383b6f1
Last commit: 4 days ago
Core tap JSON: 23 Mar 19:26 UTC
Core cask tap JSON: 23 Mar 19:26 UTC
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CASK_OPTS: []
HOMEBREW_DISPLAY: /private/tmp/com.apple.launchd.RPKzMABY5N/org.xquartz:0
HOMEBREW_MAKE_JOBS: 12
HOMEBREW_NO_ANALYTICS: set
Homebrew Ruby: 3.1.4 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/3.1.4/bin/ruby
CPU: dodeca-core 64-bit westmere
Clang: 15.0.0 build 1500
Git: 2.39.3 => /Library/Developer/CommandLineTools/usr/bin/git
Curl: 8.4.0 => /usr/bin/curl
macOS: 14.4-x86_64
CLT: 15.3.0.0.1.1708646388
Xcode: 15.3
Rosetta 2: true`

@domschl
Copy link
Owner

domschl commented Mar 24, 2024

There seems to be many similar report (including probably by you) on Apple's developer forums: Apple bug report. Linked here in the unlikely event somebody at Apple actually answers.

I will try to reproduce this with an installation from scratch, the only suspicion I have so far is some silent version update of a dependency that breaks the build, update will follow.

@domschl
Copy link
Owner

domschl commented Mar 24, 2024

Unfortunatelly, the build for Apple's game-porting-toolkit is currently internally broken when trying to build Wine's crypt32.dll. So far I couldn't find a workground or downgrade.

So for the time being this is broken. I will update the main page with a warning. Thank you for reporting. I'll update if anything changes.

@domschl
Copy link
Owner

domschl commented Mar 24, 2024

A workaround is to use the Whisky-App which uses built-in toolkit versions from Jan-24:

https://github.com/Whisky-App/Whisky

@QCastle
Copy link

QCastle commented Mar 24, 2024

Thanks for your help @domschl 🤝

@domschl
Copy link
Owner

domschl commented Mar 26, 2024

Ok, here's the solution:

Building of the game porting toolkit works only up to and including Command Line Tools 15.1. One can use xcode-select to switch to an older version. Get the toolkit here:

https://download.developer.apple.com/Developer_Tools/Command_Line_Tools_for_Xcode_15.1/Command_Line_Tools_for_Xcode_15.1.dmg

@QCastle
Copy link

QCastle commented Mar 26, 2024

Working solution has been posted on Apple Developer forum which is using Xcode 15.1 instead of the most recent Xcode 15.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants