Game toolkit build error

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

apple/apple/game-porting-toolkit 1.0.4 did not build

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

I use MacBook air m2 and i have no idea how to fix it