configure: darwin: update GCC, use SDL threads
rockbox-gerrit-noreply--- via rockbox-cvs <[email protected]> Fri, 19 Jun 2026 15:50:26 -0400
| Newsgroups | gmane.comp.systems.archos.rockbox.cvs |
|---|---|
| Message-ID | <[email protected]> |
commit cd699e54488af419d680ec39988f3a4bee0fd2d0 Author: Christian Soffke <[email protected]> Date: Fri Jun 19 17:49:48 2026 +0200 configure: darwin: update GCC, use SDL threads The simulator on macOS has been broken since macOS 26.4 was introduced. On macOS 26.4, 26.5, and the 27 beta, thread setup fails in make_context (firmware/asm/thread- unix.c), because sigaltstack returns an "Operation not permitted" error. Fall back to SDL threads until this can be fixed. Also update GCC to keep it in sync with the latest Homebrew formula (https://formulae.brew.sh/formula/gcc). Change-Id: Ib08ac81ede00c577f28a85c7886f716e7504bbe9 diff --git a/tools/configure b/tools/configure index 6d37ecf64a..36a6d570f8 100755 --- a/tools/configure +++ b/tools/configure @@ -394,12 +394,14 @@ simcc () { ;; Darwin) - sigaltstack=`check_sigaltstack` + # FIXME: sigaltstack fails with "Operation not permitted" + # in make_context (firmware/asm/thread-unix.c) on latest + # versions of macOS (≥ 26.4). Fall back to SDL threads. echo "Darwin host detected" if $CC --version | grep -q "clang"; then - CC=gcc-15 - AR=gcc-ar-15 - CPP=cpp-15 + CC=gcc-16 + AR=gcc-ar-16 + CPP=cpp-16 fi LDOPTS="$LDOPTS -ldl" SHARED_LDFLAGS="-dynamiclib -Wl,-no_warn_duplicate_libraries" -- rockbox-cvs mailing list [email protected] https://lists.haxx.se/mailman/listinfo/rockbox-cvs