-
Notifications
You must be signed in to change notification settings - Fork 6
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
Comments
Error: apple/apple/game-porting-toolkit 1.1 did not build
Error: apple/apple/game-porting-toolkit 1.1 did not build
Error: apple/apple/game-porting-toolkit 1.1 did not build
Which Xcode (or Command Line utilities) are you using? |
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 ==> Formula |
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. |
Unfortunatelly, the build for Apple's game-porting-toolkit is currently internally broken when trying to build Wine's 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. |
A workaround is to use the Whisky-App which uses built-in toolkit versions from Jan-24: |
Thanks for your help @domschl 🤝 |
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 |
Working solution has been posted on Apple Developer forum which is using Xcode 15.1 instead of the most recent Xcode 15.3. |
@QCastle Do you mean using the CLI Tools 15.1 OR the Xcode itself as 15.1? ==> Configuration
HOMEBREW_VERSION: 4.3.1
ORIGIN: https://github.com/Homebrew/brew
HEAD: e0bc557e7b991cb23583679e1cf1c8a92b793aeb
Last commit: 7 days ago
Core tap JSON: 26 May 22:29 UTC
Core cask tap JSON: 26 May 22:29 UTC
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 12
Homebrew Ruby: 3.3.1 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/3.3.1/bin/ruby
CPU: dodeca-core 64-bit westmere
Clang: 15.0.0 build 1500
Git: 2.39.3 => /Applications/Xcode.app/Contents/Developer/usr/bin/git
Curl: 8.4.0 => /usr/bin/curl
macOS: 14.3-x86_64
CLT: 15.1.0.0.1.1700200546
Xcode: 15.4
Rosetta 2: true |
You can use either Xcode 15.1 or command line tools (CLT) 15.1. The important part is: They (Xcode or CLT) must be selected. Verify with: xcode-select -p You can switch to the Command line tools with (sudo maybe required): xcode-select -s /Library/Developer/CommandLineTools and go back to Xcode with: xcode-select -s /Applications/Xcode.app/Contents/Developer |
Thank you @domschl I am still seeing a error after switching to /private/tmp/game-porting-toolkit-20240527-85124-lxys2a/wine/dlls/wow64cpu/cpu.c:356:18: error: assignment to 'DWORD64' {aka 'long long unsigned int'} from 'PVOID' {aka 'void *'} makes integer from pointer without a cast [-Wint-conversion]
356 | context->Rsp = NtCurrentTeb()->TlsSlots[2]; /* WOW64_TLS_WINEHYBRID_RESERVED_R14 */
| ^
make: *** [dlls/wow64cpu/cpu.cross.o] Error 1
make: *** Waiting for unfinished jobs.... My configs now are ==> Formula
Tap: apple/apple
Path: /usr/local/Homebrew/Library/Taps/apple/homebrew-apple/Formula/game-porting-toolkit.rb
==> Configuration
HOMEBREW_VERSION: 4.3.2
ORIGIN: https://github.com/Homebrew/brew
HEAD: 9fdb0d53990d3e62e25325a6f89dbb769e84a530
Last commit: 12 hours ago
Core tap JSON: 27 May 13:00 UTC
Core cask tap JSON: 27 May 13:00 UTC
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 12
Homebrew Ruby: 3.3.1 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/3.3.1/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.3-x86_64
CLT: 15.1.0.0.1.1700200546
Xcode: 15.1
Rosetta 2: true Any ideas into why this would be happening? MacBook M3 Max Pro 36GB |
Did you do a complete uninstall of that previous trial before starting with the 15.1 version? (See paragraph at the end of the Readme). This error could be caused by a mixture of different compilation versions. |
To add to the conversation in case anyone else comes across this thread. I've tried with both CLI tools and Xcode at their latest versions (15.4 as of writing), I've also tried both at versions 15.1 and a reboot of the machine with a clean install of x86 Homebrew. No luck. Same error every time. ==> Formula
Tap: apple/apple
Path: /usr/local/Homebrew/Library/Taps/apple/homebrew-apple/Formula/game-porting-toolkit.rb
==> Configuration
HOMEBREW_VERSION: 4.3.2
ORIGIN: https://github.com/Homebrew/brew
HEAD: 9fdb0d53990d3e62e25325a6f89dbb769e84a530
Last commit: 6 days ago
Core tap JSON: 01 Jun 18:45 UTC
Core cask tap JSON: 01 Jun 18:45 UTC
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 12
Homebrew Ruby: 3.3.1 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/3.3.1/bin/ruby
CPU: dodeca-core 64-bit westmere
Clang: 15.0.0 build 1500
Git: 2.39.3 => /Applications/Xcode.app/Contents/Developer/usr/bin/git
Curl: 8.6.0 => /usr/bin/curl
macOS: 14.5-x86_64
CLT: 15.1.0.0.1.1700200546
Xcode: 15.1
Rosetta 2: true My last few lines in the log is /private/tmp/game-porting-toolkit-20240601-58603-psg9yp/wine/dlls/msvcrt20/msvcrt20.c: In function 'MSVCRT20__getmainargs':
/private/tmp/game-porting-toolkit-20240601-58603-psg9yp/wine/dlls/msvcrt20/msvcrt20.c:35:5: error: implicit declaration of function '__getmainargs' [-Wimplicit-function-declaration]
35 | __getmainargs( argc, argv, envp, expand_wildcards, &new_mode );
| ^~~~~~~~~~~~~
/private/tmp/game-porting-toolkit-20240601-58603-psg9yp/wine/dlls/msvcrt20/msvcrt20.c: In function 'MSVCRT20__wgetmainargs':
/private/tmp/game-porting-toolkit-20240601-58603-psg9yp/wine/dlls/msvcrt20/msvcrt20.c:46:5: error: implicit declaration of function '__wgetmainargs'; did you mean 'MSVCRT20__wgetmainargs'? [-Wimplicit-function-declaration]
46 | __wgetmainargs( argc, wargv, wenvp, expand_wildcards, &new_mode );
| ^~~~~~~~~~~~~~
| MSVCRT20__wgetmainargs
make: *** [dlls/msvcrt20/msvcrt20.cross.o] Error 1
make: *** Waiting for unfinished jobs.... From what I've spent some time reading, people have mixed results with downgrading which makes me think something else is at play here. |
I just found that
output:
Then GPTK was successfully installed:
15.0 beta2 doesn't work. I've also tried 15.1 and 15.3 :(
|
Thanks for confirming. I will retest... |
Log of reproduction attempt on Mac mini M1:
Error reproduced.
So as of now, |
Apple has now released a new version 2.0 beta of the toolkit. While the build problems currently have not been fixed, the guide has now been updated to simply use a 3rd party pre-built binary of the toolkit that then gets updated to use the latest graphics drivers from the 2.0 beta. Using the pre-built binary instructions, it's again possible to install steam using the new graphics drivers. See the main page for instructions. |
The new breakages with As for the prebuilt package I provide it was upgraded and includes D3DMetal-2.0b1 along with newly built dylibs on the same date & include some additional enhancements., this wasn’t built against You might not be aware but wine actually uses gnutls for secure connections with macOS native certs. |
I've updated the instructions to rely on the packaged toolkit components provided by your project. Thank you for this work! |
-fno-builtin -Wformat -g -O2 @domschl I met the same problem, so how can I fix it and build the toolkit successfully? |
As mentioned above and in the guide: Apple's game-porting-toolkit homebrew script currently is broken. It is not possible to build the toolkit yourself (dependencies have changed and Apple did not fix or update the script). Please follow the README and use Gcenx's prebuilt wine kit that includes Apple's metal libraries and can be used just similar to Apple's old kit. |
I ran into the above mentioned error when going to install the game porting toolkit 2.0 beta 1. Follow the readme instructions as normal but right before the brew install apple/apple/*
replace the and then |
You could use my version of the formula that provides a prebuilt bottle.
Alternatively use the cask, that avoids needing an Intel brew install
The cask has a couple of additional fixes and already includes D3DMetal-2.0b1 |
Error: apple/apple/game-porting-toolkit 1.1 did not build,Please tell me.What should I do next? |
|
Please send it to me. Thank you. |
@marvinHC54654g again read #9 (comment) this was right above your prior comment of build issues |
|
I get the above error after running
The following part of the output appears to be where the problem occurs:
I'm running macOS Sonoma 14.3.1 (23D60) on an Apple M2 MacBook Pro.
The text was updated successfully, but these errors were encountered: