Hi,
I initially thought a CMake error I encountered was caused by wasi-sdk, so I opened an issue there "Compatibility with CMake < 3.5 has been removed from CMake.".
After some digging, I realised the real source was that the StarlingMonkey/cmake/wasi-sdk.cmake file, which is currently pulling in wasi-sdk version 20, which includes an outdated toolchain file that uses cmake_minimum_required(VERSION 3.4.0).
Screenshot 2025-05-09 at 23.14.42.png
This causes a hard failure with CMake 4.x, since support for versions <3.5 has been dropped.
The issue seems to be resolved in wasi-sdk v24 and later, where that cmake_minimum_required directive has been removed from the toolchain file. If StarlingMonkey can be updated to pull wasi-sdk v24 or newer, this would resolve the issue.
I was going to open an issue in the StarlingMonkey repo to suggest this, but then saw that a newly created issue already exists "Configuring fails with CMake >=4.0 due to policy changes".
Would it be possible for StarlingMonkey to update to a newer wasi-sdk version, like 24 or 25?
Hello! Thank you for all the details. Yes, I believe updating wasi-sdk is the way to move forward. Unfortunately, it's not as simple as just bumping the SDK version in CMake.
@Till Schneidereit gave some reasons for why that's the case in a different thread:
It's a bit unfortunate, as we currently can't update the version of wasi-sdk used by StarlingMonkey, because for that we'd have to rebuild the SpiderMonkey object files—which doesn't work with newer wasi-sdks at the current revision.
Maybe we can patch wasi-sdk as a temporary solution as mentioned here if the failure becomes too annoying.
Hi @Tomasz Andrzejak
Thanks for the response, the reference to Till's conversation is very useful in providing context to the larger issues and work required. I will take a peek at deps: bump to WASI-SDK 25 #189 because that seems to be the path to getting StarlingMonkey to fetch and use the latest wasi-sdk (which would resolve the CMake version issue).
thank you for looking into this, @Timothy McCallum! I'll caution though that I tried doing the SDK bump a bit ago, and ran into very mysterious test failures that I'm completely stumped on how to debug
Last updated: Dec 06 2025 at 06:05 UTC