Build currently fails on aarch64-linux
wasi-sdk doesn't provide aarch64 releases, so the magic dependency fetching doesn't work.
I'm not sure if there's an easy way to override sources on a per-dependency basis, but if there is, we should document it - my cmake-foo is... very stale 😅
my god i've been at this for hours. did you have any luck?
Ah, hence my building it on particle.io board fails for a reason?
cmake 3.28.4: ubuntu 20.04: particle@tachyon-1b92b5b5:~/work/StarlingMonkey$ cmake -S . -B cmake-build-release -DCMAKE_BUILD_TYPE=Release -- Using host API: /home/particle/work/StarlingMonkey/host-apis/wasi-0.2.3 -- CPM: Adding package [email protected] (20.0 to /home/particle/work/StarlingMonkey/deps/cpm_cache/wasi-sdk/eb15b745329e65e3454079782694377bbd7768bb/wasi-sdk) CMake Deprecation Warning at deps/cpm_cache/wasi-sdk/eb15b745329e65e3454079782694377bbd7768bb/wasi-sdk/share/cmake/wasi-sdk.cmake:4 (cmake_minimum_required): Compatibility with CMake < 3.5 will be removed from a future version of CMake.
Update the VERSION argument
CMake Deprecation Warning at deps/cpm_cache/wasi-sdk/eb15b745329e65e3454079782694377bbd7768bb/wasi-sdk/share/cmake/wasi-sdk.cmake:4 (cmake_minimum_required): Compatibility with CMake < 3.5 will be removed from a future version of CMake.
Update the VERSION argument
-- The C compiler identification is unknown -- The CXX compiler identification is unknown System is unknown to cmake, create: Platform/WASI to use this system, please post your config file on discourse.cmake.org so it can be added to cmake -- Detecting C compiler ABI info CMake Deprecation Warning at /home/particle/work/StarlingMonkey/deps/cpm_cache/wasi-sdk/eb15b745329e65e3454079782694377bbd7768bb/wasi-sdk/share/cmake/wasi-sdk.cmake:4 (cmake_minimum_required): Compatibility with CMake < 3.5 will be removed from a future version of CMake.
Update the VERSION argument
System is unknown to cmake, create: Platform/WASI to use this system, please post your config file on discourse.cmake.org so it can be added to cmake -- Detecting C compiler ABI info - failed -- Check for working C compiler: /home/particle/work/StarlingMonkey/deps/cpm_cache/wasi-sdk/eb15b745329e65e3454079782694377bbd7768bb/wasi-sdk/bin/clang CMake Deprecation Warning at /home/particle/work/StarlingMonkey/deps/cpm_cache/wasi-sdk/eb15b745329e65e3454079782694377bbd7768bb/wasi-sdk/share/cmake/wasi-sdk.cmake:4 (cmake_minimum_required): Compatibility with CMake < 3.5 will be removed from a future version of CMake.
Update the VERSION argument
System is unknown to cmake, create: Platform/WASI to use this system, please post your config file on discourse.cmake.org so it can be added to cmake -- Check for working C compiler: /home/particle/work/StarlingMonkey/deps/cpm_cache/wasi-sdk/eb15b745329e65e3454079782694377bbd7768bb/wasi-sdk/bin/clang - broken CMake Error at /usr/share/cmake-3.28/Modules/CMakeTestCCompiler.cmake:67 (message): The C compiler
"/home/particle/work/StarlingMonkey/deps/cpm_cache/wasi-sdk/eb15b745329e65e3454079782694377bbd7768bb/wasi-sdk/bin/clang"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: '/home/particle/work/StarlingMonkey/cmake-build-release/CMakeFiles/CMakeScratch/TryCompile-wOsY2U'
Run Build Command(s): /usr/bin/cmake -E env VERBOSE=1 /usr/bin/make -f Makefile cmTC_943bf/fast
/usr/bin/make -f CMakeFiles/cmTC_943bf.dir/build.make CMakeFiles/cmTC_943bf.dir/build
make[1]: Entering directory '/home/particle/work/StarlingMonkey/cmake-build-release/CMakeFiles/CMakeScratch/TryCompile-wOsY2U'
Building C object CMakeFiles/cmTC_943bf.dir/testCCompiler.c.obj
/home/particle/work/StarlingMonkey/deps/cpm_cache/wasi-sdk/eb15b745329e65e3454079782694377bbd7768bb/wasi-sdk/bin/clang -Wall -Werror -Wno-unknown-attributes -Wno-pointer-to-int-cast -Wno-int-to-pointer-cast -m32 -o CMakeFiles/cmTC_943bf.dir/testCCompiler.c.obj -c /home/particle/work/StarlingMonkey/cmake-build-release/CMakeFiles/CMakeScratch/TryCompile-wOsY2U/testCCompiler.c
/home/particle/work/StarlingMonkey/deps/cpm_cache/wasi-sdk/eb15b745329e65e3454079782694377bbd7768bb/wasi-sdk/bin/clang: /home/particle/work/StarlingMonkey/deps/cpm_cache/wasi-sdk/eb15b745329e65e3454079782694377bbd7768bb/wasi-sdk/bin/clang: cannot execute binary file
make[1]: *** [CMakeFiles/cmTC_943bf.dir/build.make:78: CMakeFiles/cmTC_943bf.dir/testCCompiler.c.obj] Error 126
make[1]: Leaving directory '/home/particle/work/StarlingMonkey/cmake-build-release/CMakeFiles/CMakeScratch/TryCompile-wOsY2U'
make: *** [Makefile:127: cmTC_943bf/fast] Error 2
CMake will not be able to correctly generate this project. Call Stack (most recent call first): CMakeLists.txt:26 (project)
-- Configuring incomplete, errors occurred!