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!