Let me summarise how it crashed on Xcode 15 with macOS 14.
To test it I've used two gcl via MacPorts:
- gcl which is 2.6.14
- gcl-devel which is the last available commit at master 01ed2e0b2f540031171d2258ddccb951735827e7
gcl is build with patches:
- dont-override-CC-or-MACOSX_DEPLOYMENT_TARGET.patch
- fix-memory-corruption-on-macOS.patch
- compatibility-with-xcode15.diff
- Respect-provided-CFLAGS-to-compile-bin-dpp.diff
- old-macOS.patch
gcl-devel is using:
- draft-posix-spawn.diff
- compatibility-with-xcode15.diff
- Respect-provided-CFLAGS-to-compile-bin-dpp.diff
Crashes attached as gcl.txt and gcl-devel.txt
It crashes the same way on arm64 when I use rosetta to emulate x86_64 and on native x86_64.
To make things easy I've attached all used patches / stacktrace to this email.
<compatibility-with-xcode15.diff><dont-override-CC-or-MACOSX_DEPLOYMENT_TARGET.patch><draft-posix-spawn.diff><fix-memory-corruption-on-macOS.patch><old-macOS.patch><Respect-provided-CFLAGS-to-compile-bin-dpp.diff><gcl.txt><gcl-devel.txt>
well... seems that Xcode 15 with macOS 13+ requires additional patches.
attached patch allows to pass configure but build failed at:
COMPILER>/bin/sh: line 1: 15229 Illegal instruction: 4
at the attempt to run raw_pre_gcl. I'll try to investigate this (get the stacktrace) in next few days.
Here I've attached two patches:
1. add missed sizeof(char) which is used inside code, but never checked
2. add missed unistd.h which is nessesary to pass checking on xcode 15 on macOS 13
<xcode15.diff><sizeof-char.diff>