Repository navigation
is it possible to build in wasm? #405
Description
I can build by cmake ..
But if I want to build with wasm , After I run emcmake cmake ..
I got a error:
did anyone try to build with wasm?
- Schema scanner built. Running it...
CMake Error at cmake/schema_scanner/schemaScanner.cmake:99 (message):
Schema scan for '/home/microartisan/repos/stepcode/data/ap203/ap203.exp'
exited with error code 'Permission denied'
the following is the log:
microartisan@thinkpad:~/repos/stepcode/build$ emcmake cmake ..
configure: cmake .. -DCMAKE_TOOLCHAIN_FILE=/home/microartisan/repos/emsdk/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake -DCMAKE_CROSSCOMPILING_EMULATOR="/home/microartisan/repos/emsdk/node/14.15.5_64bit/bin/node"
CMake Deprecation Warning at CMakeLists.txt:58 (CMAKE_POLICY):
The OLD behavior for policy CMP0026 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
CMake Warning (dev) at cmake/SC_Build_opts.cmake:30 (option):
Policy CMP0077 is not set: option() honors normal variables. Run "cmake
--help-policy CMP0077" for policy details. Use the cmake_policy command to
set the policy and suppress this warning.
For compatibility with older versions of CMake, option is clearing the
normal variable 'SC_BUILD_SHARED_LIBS'.
Call Stack (most recent call first):
cmake/SC_Build_opts.cmake:34 (OPTION_WITH_DEFAULT)
CMakeLists.txt:77 (include)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at cmake/SC_Build_opts.cmake:30 (option):
Policy CMP0077 is not set: option() honors normal variables. Run "cmake
--help-policy CMP0077" for policy details. Use the cmake_policy command to
set the policy and suppress this warning.
For compatibility with older versions of CMake, option is clearing the
normal variable 'SC_BUILD_STATIC_LIBS'.
Call Stack (most recent call first):
cmake/SC_Build_opts.cmake:37 (OPTION_WITH_DEFAULT)
CMakeLists.txt:77 (include)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at cmake/SC_Build_opts.cmake:30 (option):
Policy CMP0077 is not set: option() honors normal variables. Run "cmake
--help-policy CMP0077" for policy details. Use the cmake_policy command to
set the policy and suppress this warning.
For compatibility with older versions of CMake, option is clearing the
normal variable 'SC_PYTHON_GENERATOR'.
Call Stack (most recent call first):
cmake/SC_Build_opts.cmake:39 (OPTION_WITH_DEFAULT)
CMakeLists.txt:77 (include)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at cmake/SC_Build_opts.cmake:30 (option):
Policy CMP0077 is not set: option() honors normal variables. Run "cmake
--help-policy CMP0077" for policy details. Use the cmake_policy command to
set the policy and suppress this warning.
For compatibility with older versions of CMake, option is clearing the
normal variable 'SC_CPP_GENERATOR'.
Call Stack (most recent call first):
cmake/SC_Build_opts.cmake:40 (OPTION_WITH_DEFAULT)
CMakeLists.txt:77 (include)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at cmake/SC_Build_opts.cmake:30 (option):
Policy CMP0077 is not set: option() honors normal variables. Run "cmake
--help-policy CMP0077" for policy details. Use the cmake_policy command to
set the policy and suppress this warning.
For compatibility with older versions of CMake, option is clearing the
normal variable 'SC_MEMMGR_ENABLE_CHECKS'.
Call Stack (most recent call first):
cmake/SC_Build_opts.cmake:42 (OPTION_WITH_DEFAULT)
CMakeLists.txt:77 (include)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at cmake/SC_Build_opts.cmake:30 (option):
Policy CMP0077 is not set: option() honors normal variables. Run "cmake
--help-policy CMP0077" for policy details. Use the cmake_policy command to
set the policy and suppress this warning.
For compatibility with older versions of CMake, option is clearing the
normal variable 'SC_TRACE_FPRINTF'.
Call Stack (most recent call first):
cmake/SC_Build_opts.cmake:43 (OPTION_WITH_DEFAULT)
CMakeLists.txt:77 (include)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at cmake/SC_Build_opts.cmake:30 (option):
Policy CMP0077 is not set: option() honors normal variables. Run "cmake
--help-policy CMP0077" for policy details. Use the cmake_policy command to
set the policy and suppress this warning.
For compatibility with older versions of CMake, option is clearing the
normal variable 'SC_ENABLE_COVERAGE'.
Call Stack (most recent call first):
cmake/SC_Build_opts.cmake:50 (OPTION_WITH_DEFAULT)
CMakeLists.txt:77 (include)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at cmake/SC_Build_opts.cmake:30 (option):
Policy CMP0077 is not set: option() honors normal variables. Run "cmake
--help-policy CMP0077" for policy details. Use the cmake_policy command to
set the policy and suppress this warning.
For compatibility with older versions of CMake, option is clearing the
normal variable 'SC_ENABLE_TESTING'.
Call Stack (most recent call first):
cmake/SC_Build_opts.cmake:65 (OPTION_WITH_DEFAULT)
CMakeLists.txt:77 (include)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Looking for ndir.h
-- Looking for ndir.h - not found
-- Looking for stdarg.h
-- Looking for stdarg.h - found
-- Looking for sys/stat.h
-- Looking for sys/stat.h - found
-- Looking for sys/param.h
-- Looking for sys/param.h - found
-- Looking for sysent.h
-- Looking for sysent.h - not found
-- Looking for unistd.h
-- Looking for unistd.h - found
-- Looking for dirent.h
-- Looking for dirent.h - found
-- Looking for stdbool.h
-- Looking for stdbool.h - found
-- Looking for process.h
-- Looking for process.h - not found
-- Looking for io.h
-- Looking for io.h - not found
-- Looking for abs
-- Looking for abs - found
-- Looking for memcpy
-- Looking for memcpy - found
-- Looking for memmove
-- Looking for memmove - found
-- Looking for getopt
-- Looking for getopt - found
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of ssize_t
-- Check size of ssize_t - done
-- Performing Test HAVE_STD_THREAD
-- Performing Test HAVE_STD_THREAD - Failed
.. Assuming compiler is capable of unity build.
.. Override by setting SC_UNITY_BUILD; TRUE will result in huge translation units, higher memory use in compilation, and faster build times.
-- Compiling schema scanner...
-- Schema scanner built. Running it...
CMake Error at cmake/schema_scanner/schemaScanner.cmake:99 (message):
Schema scan for '/home/microartisan/repos/stepcode/data/ap203/ap203.exp'
exited with error code 'Permission denied'
stdout:
stderr:
Call Stack (most recent call first):
data/CMakeLists.txt:26 (SCHEMA_CMLIST)
-- Configuring incomplete, errors occurred!
See also "/home/microartisan/repos/stepcode/build/CMakeFiles/CMakeOutput.log".
See also "/home/microartisan/repos/stepcode/build/CMakeFiles/CMakeError.log".
emcmake: error: 'cmake .. -DCMAKE_TOOLCHAIN_FILE=/home/microartisan/repos/emsdk/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake -DCMAKE_CROSSCOMPILING_EMULATOR="/home/microartisan/repos/emsdk/node/14.15.5_64bit/bin/node"' failed (1)
Activity
starseeker commentedon Aug 17, 2021
I'm not familiar with wasm - it looks like it's not succeeding in running the schema_scanner, does wasm define some sort of constraining environment that might make it problematic for an executable to launch another executable?