eos-vm is described in its documentation as a general purpose WASM VM, the source code has a no contract declaration, IMHO it is wrong to return this error messages because in this case it doesn't describe the problem.
test_wasm.cpp.gz
cdt-cpp test_wasm.cpp
Warning, empty ricardian clause file
Warning, empty ricardian clause file
wasm-ld: error: fatal failure: contract with no actions and trying to create dispatcher
Exit due to wasm-ld failure