diff --git a/compiler/GHC.hs b/compiler/GHC.hs
--- a/compiler/GHC.hs
+++ b/compiler/GHC.hs
@@ -1992,6 +1992,6 @@
 
 
 #if !defined(javascript_HOST_ARCH)
-foreign import ccall unsafe "keepCAFsForGHCi"
+foreign import ccall unsafe "ghc_lib_parser_keepCAFsForGHCi"
     c_keepCAFsForGHCi   :: IO Bool
 #endif
diff --git a/ghc-lib.cabal b/ghc-lib.cabal
--- a/ghc-lib.cabal
+++ b/ghc-lib.cabal
@@ -1,7 +1,7 @@
 cabal-version: 3.0
 build-type: Simple
 name: ghc-lib
-version: 9.10.1.20240511
+version: 9.10.1.20241103
 license: BSD-3-Clause
 license-file: LICENSE
 category: Development
@@ -62,7 +62,7 @@
     manual: True
     description: Pass -DTHREADED_RTS to the C toolchain
 library
-    default-language:   GHC2021
+    default-language: GHC2021
     exposed: False
     include-dirs:
         rts/include
@@ -71,7 +71,8 @@
         ghc-lib/stage0/compiler/build
         compiler
         libraries/containers/containers/include
-    ghc-options: -fno-safe-haskell
+    if impl(ghc >= 8.8.1)
+        ghc-options: -fno-safe-haskell
     if flag(threaded-rts)
         ghc-options: -fobject-code -package=ghc-boot-th -optc-DTHREADED_RTS
         cc-options: -DTHREADED_RTS
@@ -103,8 +104,8 @@
         semaphore-compat,
         rts,
         hpc >= 0.6 && < 0.8,
-        ghc-lib-parser == 9.10.1.20240511
-    build-tool-depends: alex:alex >= 3.1, happy:happy > 1.20
+        ghc-lib-parser == 9.10.1.20241103
+    build-tool-depends: alex:alex >= 3.1, happy:happy == 1.20.* || >= 2.0.2 && < 2.1
     other-extensions:
         BangPatterns
         CPP
diff --git a/ghc-lib/stage0/lib/settings b/ghc-lib/stage0/lib/settings
--- a/ghc-lib/stage0/lib/settings
+++ b/ghc-lib/stage0/lib/settings
@@ -1,12 +1,12 @@
-[("C compiler command", "/usr/bin/gcc")
+[("C compiler command", "/usr/local/opt/ccache/libexec/gcc")
 ,("C compiler flags", "--target=x86_64-apple-darwin -Qunused-arguments")
-,("C++ compiler command", "/usr/bin/g++")
+,("C++ compiler command", "/usr/local/opt/ccache/libexec/g++")
 ,("C++ compiler flags", "--target=x86_64-apple-darwin")
 ,("C compiler link flags", "--target=x86_64-apple-darwin -Wl,-no_fixup_chains -Wl,-no_warn_duplicate_libraries")
 ,("C compiler supports -no-pie", "NO")
-,("CPP command", "/usr/bin/gcc")
+,("CPP command", "/usr/local/opt/ccache/libexec/gcc")
 ,("CPP flags", "-E")
-,("Haskell CPP command", "/usr/bin/gcc")
+,("Haskell CPP command", "/usr/local/opt/ccache/libexec/gcc")
 ,("Haskell CPP flags", "-E -undef -traditional -Wno-invalid-pp-token -Wno-unicode -Wno-trigraphs")
 ,("ld supports compact unwind", "YES")
 ,("ld supports filelist", "YES")
