Game porting toolkit build error

I followed the instruction from this page

https://www.applegamingwiki.com/wiki/Game_Porting_Toolkit#Game_compatibility_list

to install the toolkit. Everything worked fine until I ran the command brew -v install apple/apple/game-porting-toolkit. It threw the following error:

Error: apple/apple/game-porting-toolkit 1.0 did not build
Logs:
     /Users/user_name/Library/Logs/Homebrew/game-porting-toolkit/00.options.out
     /Users/user_name/Library/Logs/Homebrew/game-porting-toolkit/wine64-build
     /Users/user_name/Library/Logs/Homebrew/game-porting-toolkit/01.configure.cc
     /Users/user_name/Library/Logs/Homebrew/game-porting-toolkit/02.make.cc
     /Users/user_name/Library/Logs/Homebrew/game-porting-toolkit/01.configure
     /Users/user_name/Library/Logs/Homebrew/game-porting-toolkit/02.make
Do not report this issue to Homebrew/brew or Homebrew/homebrew-core!


Error: You are using macOS 14.
We do not provide support for this pre-release version.
It is expected behaviour that some formulae will fail to build in this pre-release version.
It is expected behaviour that Homebrew will be buggy and slow.
Do not create any issues about this on Homebrew's GitHub repositories.
Do not create any issues even if you think this message is unrelated.
Any opened issues will be immediately closed without response.
Do not ask for help from Homebrew or its maintainers on social media.
You may ask for help in Homebrew's discussions but are unlikely to receive a response.
Try to figure out the problem yourself and submit a fix as a pull request.
We will review it but may or may not accept it.

Did anyone have the same issue and found a fix for it?

At least in my case I think it's because of malware since Avast antivirus detects it and deletes it but it may also be that the most recent GitHub file is not being used and that the command believes that it is the most recent but I have no idea the same error happens to me and I still can't solve it but I think it may be one of those things that causes

I am having the exact same issue. I have no idea what is happening. Initially I thought it was because of the new version of game porting toolkit, but you were using the original version, so I don't think that is the issue. Let me know if you find a solution.

Same issue here. Can't get the toolkit installed. Using latest 1.0.2 version:

Error: apple/apple/game-porting-toolkit 1.0.2 did not build
Logs:
     /Users/user_name/Library/Logs/Homebrew/game-porting-toolkit/00.options.out
     /Users/user_name/Library/Logs/Homebrew/game-porting-toolkit/wine64-build
     /Users/user_name/Library/Logs/Homebrew/game-porting-toolkit/01.configure.cc
     /Users/user_name/Library/Logs/Homebrew/game-porting-toolkit/02.make.cc
     /Users/user_name/Library/Logs/Homebrew/game-porting-toolkit/01.configure
     /Users/user_name/Library/Logs/Homebrew/game-porting-toolkit/02.make
Do not report this issue to Homebrew/brew or Homebrew/homebrew-core!


Error: You are using macOS 14.
We do not provide support for this pre-release version.
It is expected behaviour that some formulae will fail to build in this pre-release version.
It is expected behaviour that Homebrew will be buggy and slow.
Do not create any issues about this on Homebrew's GitHub repositories.
Do not create any issues even if you think this message is unrelated.
Any opened issues will be immediately closed without response.
Do not ask for help from Homebrew or its maintainers on social media.
You may ask for help in Homebrew's discussions but are unlikely to receive a response.
Try to figure out the problem yourself and submit a fix as a pull request.
We will review it but may or may not accept it.

Same here. If you scroll a few screens upwards in the log outputs, you see the/one reason:

_
ld: unknown options: -segaddr 
clang-8: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [loader/wine64-preloader] Error 1
make: *** Waiting for unfinished jobs...._

and further up...

_-macosx_version_min has been renamed to -macos_version_min
ld: warning: ignoring duplicate library '-lSystem'
-macosx_version_min has been renamed to -macos_version_min
ld: warning: ignoring duplicate library '-lSystem'
-macosx_version_min has been renamed to -macos_version_min
ld: warning: ignoring duplicate library '-lSystem'_

so anyone with a clue of how to work around this - pls. post your hints...

Seeing exact same issue here as well on M1 Max using Ventura 13.4.1, trying to install update 1.0.2.

I have files a bug report using the official link they give inside the toolkit at http://feedbackssistnt.apple.com as it actually has an entry for the game porting toolkit. However, I don’t know if that will get any faster response on the issue. There doesn’t seem to be defacto standard way in uninstalling the toolkit however I game it a try by removing brew, and the searching for anything with game porting toolkit related files and directories, being careful,to avoid removing any brew stuff related to the default install with the os.

after spending 2 full days on trying to fix this, I guess I’m in a holding pattern with everyone else until teh fix or new version comes out that rememwdies this. In the meantime, zero m1 gaming.

I'm having the exact same issue on a fresh install of Sonoma Beta3 with Command Line Tools for Xcode 15Beta3 ...

Tap: apple/apple
Path: /usr/local/Homebrew/Library/Taps/apple/homebrew-apple/Formula/game-porting-toolkit.rb
==> Configuration
HOMEBREW_VERSION: 4.0.28
ORIGIN: https://github.com/Homebrew/brew
HEAD: 2b4cfb033757b63ab0b128d01c58db76480956f9
Last commit: 2 days ago
Core tap JSON: 08 Jul 01:36 UTC
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 8
Homebrew Ruby: 2.6.10 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
CPU: octa-core 64-bit westmere
Clang: 15.0.0 build 1500
Git: 2.39.2 => /Library/Developer/CommandLineTools/usr/bin/git
Curl: 8.1.2 => /usr/bin/curl
macOS: 14.0-x86_64
CLT: 15.0.0.0.1.1688363443
Xcode: 15.0 => /Applications/Xcode-beta.app/Contents/Developer
Rosetta 2: true

Any help would be welcome!

Same here. macOS 14 beta3 with GPT 1.0.2.
Running the command brew -v install apple/apple/game-porting-toolkit, and encountered the error below.

-macosx_version_min has been renamed to -macos_version_min
ld: warning: ignoring duplicate library '-lSystem'
-macosx_version_min has been renamed to -macos_version_min
ld: warning: ignoring duplicate library '-lSystem'
/usr/local/opt/game-porting-toolkit-compiler/bin/clang -m64 -o loader/wine64-preloader loader/preloader.o loader/preloader_mac.o -Wl,-no_pie -mmacosx-version-min=10.7 \
  -nostartfiles -nodefaultlibs -e _start -ldylib1.o \
  -Wl,-image_base,0x7d400000,-segalign,0x1000,-pagezero_size,0x1000,-sectcreate,__TEXT,__info_plist,loader/wine_info.plist,-segaddr,WINE_4GB_RESERVE,0x100000000 \
  -L/usr/local/opt/zlib/lib -L/usr/local/opt/freetype/lib -L/usr/local/opt/sdl2/lib -L/usr/local/opt/libgphoto2/lib -L/usr/local/opt/faudio/lib -L/usr/local/opt/jpeg/lib -L/usr/local/opt/libpng/lib -L/usr/local/opt/mpg123/lib -L/usr/local/opt/libtiff/lib -L/usr/local/opt/libgsm/lib -L/usr/local/opt/glib/lib -L/usr/local/opt/gnutls/lib -L/usr/local/opt/libusb/lib -L/usr/local/opt/gettext/lib -L/usr/local/opt/openssl@1.1/lib -L/usr/local/opt/sane-backends/lib -lSystem -L/usr/local/lib -Wl,-rpath,/usr/local/lib -Wl,-rpath,@executable_path/../lib/external
-macosx_version_min has been renamed to -macos_version_min
ld: unknown options: -segaddr 
clang-8: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [loader/wine64-preloader] Error 1
make: *** Waiting for unfinished jobs....
...
Error: apple/apple/game-porting-toolkit 1.0.2 did not build
Logs:
     /Users/kevin/Library/Logs/Homebrew/game-porting-toolkit/00.options.out
     /Users/kevin/Library/Logs/Homebrew/game-porting-toolkit/wine64-build
     /Users/kevin/Library/Logs/Homebrew/game-porting-toolkit/01.configure.cc
     /Users/kevin/Library/Logs/Homebrew/game-porting-toolkit/02.make.cc
     /Users/kevin/Library/Logs/Homebrew/game-porting-toolkit/01.configure
     /Users/kevin/Library/Logs/Homebrew/game-porting-toolkit/02.make
Do not report this issue to Homebrew/brew or Homebrew/homebrew-core!

I'm having the same issue...

Try downgrading to Xcode Beta 2, install it, reboot, and start installation process again under proper shell.

I encountered the same error "apple/apple/game-porting-toolkit 1.0.2 did not build" while attempting to build it using the guide provided by applegamingwiki for the apple porting toolkit. However, I managed to resolve the issue by following these steps:

  1. Delete the appstore Xcode and beta 3 Xcode.
  2. Uninstall the beta 3 Xcode command line tools.
  3. Install beta 2 Xcode along with the corresponding command line tools.
  4. Remember to restart your system after completing the installation.

By following these steps, I was able to successfully overcome the error and proceed with the build process.

10

Anyone tested the newer Xcode Beta 4 for compiling/installing the game porting kit? Still as buggy as Beta 3 in that regard or does that work now?

Still seems to be broken on Xcode/tools beta 4.

'Command Line Tools for Xcode 15 beta 4' has the same issue. Downgrading to Beta 2 circumvents the errors installing version 1.0.2. I'm on Sonoma 14.0 beta 3 update/build 23A5286i July 11th public beta release.

I found the problem. we need serious update in brew with arm64_86.zsh.

Downgrading to Beta 2 did not help for me. Running Sonoma 14.0 on a M1 Max w/ 64GB RAM. Here is the error message :

Error: apple/apple/game-porting-toolkit-compiler 0.1 did not build
Logs:
     /Users/user-name/Library/Logs/Homebrew/game-porting-toolkit-compiler/02.cmake.cc
     /Users/user-name/Library/Logs/Homebrew/game-porting-toolkit-compiler/00.options.out
     /Users/user-name/Library/Logs/Homebrew/game-porting-toolkit-compiler/clang-build
     /Users/user-name/Library/Logs/Homebrew/game-porting-toolkit-compiler/02.cmake
     /Users/user-name/Library/Logs/Homebrew/game-porting-toolkit-compiler/01.tar
Do not report this issue to Homebrew/brew or Homebrew/homebrew-core!


Error: You are using macOS 14.
We do not provide support for this pre-release version.
It is expected behaviour that some formulae will fail to build in this pre-release version.
It is expected behaviour that Homebrew will be buggy and slow.
Do not create any issues about this on Homebrew's GitHub repositories.
Do not create any issues even if you think this message is unrelated.
Any opened issues will be immediately closed without response.
Do not ask for help from Homebrew or its maintainers on social media.
You may ask for help in Homebrew's discussions but are unlikely to receive a response.
Try to figure out the problem yourself and submit a fix as a pull request.
We will review it but may or may not accept it.

Same issue here I guess we need to still waiting for a solution or update

Same here. Trying to downgrade Xcode to Beta 2

Downgrading to Beta 2 does work for me

I faced this problem when trying to set up Game Porting Toolkit based on instructions here: https://www.applegamingwiki.com/wiki/Game_Porting_Toolkit earlier today. I am on macOS 14 (Sonoma) Beta 3.

I got pretty much the same error as everyone else on this thread. Following @Rukosenpa 's instructions worked for me. I installed only the command line tools for XCode 15 beta 3, not full XCode IDE. Here are the steps I took:

sudo su -
cd /Library/Developer
rm -rf CommandLineTools

After this, I did a reboot of my mac, and downloaded/installed XCode command line tools Beta 2 from here: https://developer.apple.com/download/all/

Finally I did: brew -v install apple/apple/game-porting-toolkit and it worked.

same!!!!!!!!!!!!!!!!! how to fix?????????????

So, for me installing 1.0.2 was successful once I downgraded Xcode down to beta 2 and reinstall command line tools with the same version. Then reboot and brew upgrade went ok. Once done I downloaded actual blob with game porting toolkit from dev site and copied the libs into wine. Worked like a charm.

Yesterday I noticed that 1.0.3 appeared in brew. I initiated the upgrade and faced the same issue during make. I tested different Xcode versions and make && make install succeeded under Xcode and command line tools beta 5. But... there is no 1.0.3 blob in dev site yet :) So now wine can't find GPU because libs are from different versions. Need to wait until devs shared the latest game porting toolkit blob. It's a bit strange that resource exposure is out of sync.

Xcode 15 beta 3 and newer (including the current beta 5) fails to link certain x86_64 objects. It also fails to link libbass and friends from un4seen.com, unless they are built to target macOS 10.6 or newer. The current public distributions of those are built with Xcode 8 and target 10.5 or newer. The same problem may apply to code built with non-Xcode versions of GCC or Clang. This appears to be a regression in Xcode, which I have reported as FB 12698037. Though they may just close it as intentional behavior, in which case, say goodbye to compatibility for who knows how long.

In case anyone is still having this problem:

I don't know what causes this, but it in fact relates to the version of the beta. Although my build is not done, the error with segaddr certainly didn't persist. In Xcode 15 Beta 6's Release Notes there is a bug fix in the linker mentioned: https://developer.apple.com/documentation/xcode-release-notes/xcode-15-release-notes#Build-System

Since Xcode 15 includes changes to the linker, this is probably linked (pun intended), to these changes.

Are you all using x86 shell to do this and installing rosetta2 using brew? you can't use ARM anything with GPTK builds and can't use arm arch. Incase it wasn't mentioned.

I am having some issues finding out why my game wont load, I don't see any debug commands for GPTK, do wine debug terms apply here? I try to use this in terminal and get no reports.

% export WINEDEBUG=+all % gameportingtoolkit ~/my-game-prefix /Users/imac/my-game-prefix/drive_c/(my game)

Nothing happens and the game returns with a generation error. I think this has to do with a dll trying to find CPU id. But I have no idea where to bypass this or how to even start debugging it. Any ideas?

I have this error:

Error: No available formula with the name "game-porting-toolkit". zsh: no such file or directory: /bin/wine64

I can't find a way to solve

This is still broken on: Mac OS 14.3.1 (23D60) Mac Book Pro (16-inch, Nov 2023) M3 Max Following the Read Me.rtf steps for Game Proting Toolkit-1.1.

At this step • Install the game-porting-toolkit formula. This formula downloads and compiles several large software projects. How long this takes will depend on the speed of your computer. brew -v install apple/apple/game-porting-toolkit

Error: apple/apple/game-porting-toolkit 1.1 did not build Logs: /Users/jonathan/Library/Logs/Homebrew/game-porting-toolkit/00.options.out /Users/jonathan/Library/Logs/Homebrew/game-porting-toolkit/01.configure /Users/jonathan/Library/Logs/Homebrew/game-porting-toolkit/01.configure.cc /Users/jonathan/Library/Logs/Homebrew/game-porting-toolkit/02.make /Users/jonathan/Library/Logs/Homebrew/game-porting-toolkit/wine64-build If reporting this issue please do so to (not Homebrew/brew or Homebrew/homebrew-core): apple/apple

It seems most unfortunate the default Read Me steps fail. I did try the next step if there was an error but the same error issue occured.

•	If during installation you see an error such as “Error: game-porting-toolkit: unknown or unsupported macOS version: :dunno”, your version of Homebrew doesn’t have macOS Sonoma support. Update to the latest version of Homebrew and try again.

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

Someone from Apple responsible for Game Toolkit should probably take a look at this.

Game porting toolkit build error
 
 
Q