Because the quantum routines require a standard library, they cannot be compiled as pure no-std WASM. Instead, you must use wasi and its standard library.
To enable this, download the wasm32-wasi sysroot build from the wasi-sdk releases and set the WASI_SDK_DIR environment variable to point to it.
Below is an example of installing the sysroot globally to /opt/wasi and configuring the environment variable system-wide via /etc/profile.d/wasi.sh.
sudo mkdir -p /opt/wasi
cd /opt/wasi
wget https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-12/wasi-sysroot-12.0.tar.gz -O /tmp/wasi-sysroot-12.0.tar.gz
sudo tar -xvzf /tmp/wasi-sysroot-12.0.tar.gz
rm /tmp/wasi-sysroot-12.0.tar.gz
sudo tee /etc/profile.d/wasi.sh <<EOF
export WASI_SDK_DIR="/opt/wasi/wasi-sysroot"
EOF
source /etc/profile.d/wasi.sh