Akira Abe
akiraabe.bsky.social
Akira Abe
@akiraabe.bsky.social
c++: fatal error: Killed signal terminated program cc1plus
compilation terminated.

This might be because of lack of enough memory.
The amount of memory available to WSL can be adjusted through the use of a .wslconfig file.

[wsl2]
memory=4GB
swap=8GB

learn.microsoft.com/en-us/window...
Advanced settings configuration in WSL
A guide to the wsl.conf and .wslconfig files used for configuring settings when running multiple Linux distributions on Windows Subsystem for Linux.
learn.microsoft.com
March 9, 2025 at 7:20 AM
After using Ninja as a generator with WSL on Windows 10, the build get stuck at Building CXX object src/tools/CMakeFiles/wasm-as.dir/wasm-as.cpp.o.

git clone github.com/WebAssembly/...
git submodule init
git submodule update

cmake -G Ninja . && ninja
github.com
March 8, 2025 at 12:03 PM
On WSL on Windows 10, When CMake checks the necessary library and generating Makefiles, building is successful.

git clone github.com/WebAssembly/...

git submodule init
git submodule update
cmake . && make
GitHub - WebAssembly/binaryen: Optimizer and compiler/toolchain library for WebAssembly
Optimizer and compiler/toolchain library for WebAssembly - WebAssembly/binaryen
github.com
March 8, 2025 at 10:19 AM