Skip to content

Commit 5436dd3

Browse files
committed
Temporarily disable macOS x86_64 builds due to Clang 17 musttail bug
The Apple Clang 17 compiler on macOS x86_64 fails with: "fatal error: error in backend: failed to perform tail call elimination on a call site marked musttail" This is a known issue with __attribute__((musttail)) on Darwin/x86_64. ARM64 builds are unaffected and continue to work correctly. Disabled configurations: - MACOS_X64_DEBUG_ZTS - MACOS_X64_DEBUG_NTS - MACOS_X64_RELEASE_ZTS - MACOS_X64_RELEASE_NTS Future solutions: - Use GCC from Homebrew instead of Apple Clang - Conditionally disable musttail for macOS x86_64 in zend_portability.h - Wait for Apple Clang fix
1 parent c78acce commit 5436dd3

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/build-macos.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ jobs:
1111
matrix:
1212
debug: [true, false]
1313
zts: [true, false]
14-
os: ['15-intel', '14'] # macOS 15 Intel (x86_64) and 14 (ARM64)
14+
# Temporarily disabled macOS x86_64 due to Clang 17 musttail compilation bug
15+
# os: ['15-intel', '14'] # macOS 15 Intel (x86_64) and 14 (ARM64)
16+
os: ['14'] # macOS 14 (ARM64) only
1517

1618
name: "MACOS_${{ matrix.os == '15-intel' && 'X64' || 'ARM64' }}_${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }}"
1719
runs-on: macos-${{ matrix.os }}
@@ -75,11 +77,8 @@ jobs:
7577
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$BREW_OPT/icu4c/lib/pkgconfig"
7678
sed -i -e 's/Requires.private:.*//g' "$BREW_OPT/curl/lib/pkgconfig/libcurl.pc"
7779
78-
# Disable JIT for macOS 15 Intel (x86_64) RELEASE builds due to Clang 17 tail call optimization bug
80+
# No special JIT handling needed for ARM64-only builds
7981
JIT_FLAG=""
80-
if [[ "${{ matrix.os }}" == "15-intel" && "${{ matrix.debug }}" == "false" ]]; then
81-
JIT_FLAG="--disable-opcache-jit"
82-
fi
8382
8483
./buildconf --force
8584
./configure \

0 commit comments

Comments
 (0)