cmake/vmmaker.cmake downloads the stock VM 10.3.2 to generate the
C sources. On macOS 27 that VM stops at startup with "Could not allocate
codeZone in the expected place (0x320000000)", and the build stops at the
vmmaker step.v10.3.12+0.4b0622446 for macOS arm64. The
change has the URL and the SHA256 of that archive, in the form that the
file uses for all platforms.GENERATE_PHARO_VM
completes, and the VM that the build makes answers 42 factorial.Names such as scripts/vmrun.sh and scripts/cogdiff/ are scripts of the iospharo repository, which runs one VM at a time. cog is stock Cog, cogp is Cog with the change, ours is iospharo.
A change of the Cog sources (pharo-project/pharo-vm, branch pharo-12), on the local branch fix/vmmaker-bootstrap-vm-darwin-arm64. State: tested, not committed: the change is a version pin, and the owner must approve a pin. Not sent upstream.
diff --git a/cmake/vmmaker.cmake b/cmake/vmmaker.cmake
index 9c94deb03..6570d8c09 100644
--- a/cmake/vmmaker.cmake
+++ b/cmake/vmmaker.cmake
@@ -88,8 +88,8 @@ if(GENERATE_SOURCES)
elseif(CMAKE_SYSTEM_NAME STREQUAL "Darwin" AND (${CMAKE_SYSTEM_PROCESSOR} MATCHES "arm64"))
message("Defining arm64 OSX VM to download for code generation")
set(VMMAKER_VM ${VMMAKER_DIR}/vm/Contents/MacOS/Pharo)
- set(VM_URL https://files.pharo.org/vm/pharo-spur64-headless/Darwin-arm64/PharoVM-10.3.2-b8793dd2-Darwin-arm64-bin.zip)
- set(VM_URL_HASH SHA256=157837d765435597bdf05f1054aabe5287e59ca6360b7827c8750a5f7fcef7e3)
+ set(VM_URL https://files.pharo.org/vm/pharo-spur64-headless/Darwin-arm64/PharoVM-v10.3.12%2B0.4b0622446-Darwin-arm64-bin.zip)
+ set(VM_URL_HASH SHA256=76c8c25d14cbf58cf4cbec3900dfdf3ecf0f955742f4b07afa744c07cb86b79a)
elseif(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
message("Defining OSX VM to download for code generation")
set(VMMAKER_VM ${VMMAKER_DIR}/vm/Contents/MacOS/Pharo)
State of 2026-11-20. Made from the test records of the iospharo project (a second Pharo VM). The fixes are proposals for review.