Open parksj10 opened 3 years ago
Removing --target=wasm32-unknown-unknown-wasm \
from the compile arguments (carryover from a C compile I did separately) gives the following error:
error: undefined symbol: memmove (referenced by top-level compiled C/C++ code)
warning: Link with `-s LLD_REPORT_UNDEFINED` to get more information on undefined symbols
warning: To disable errors for undefined symbols use `-s ERROR_ON_UNDEFINED_SYMBOLS=0`
warning: _memmove may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library
Error: Aborting compilation due to previous errors
emcc: error: '/usr/local/bin/node /usr/local/Cellar/emscripten/2.0.12/libexec/src/compiler.js /var/folders/xj/yxtdtt1n42l5m_6pxn_1yspw0000gn/T/tmpamj_5evr.txt' failed (1)
And I can suppress this error with -s ERROR_ON_UNDEFINED_SYMBOLS=0
, however, not sure if this is suppressing an actual error...
This issue has been automatically marked as stale because there has been no activity in the past year. It will be closed automatically if no further activity occurs in the next 30 days. Feel free to re-open at any time if this issue is still relevant.
Trying to create simple .wasm file for use in Javascript (similar to something I've done with C based emcc project) and getting the following error when I attempt to compile.
Any thoughts much appreciated!
Trace
lltb.c
lttb.h
Compile:
Environment macOS: 10.15.5 clang++: Apple clang version 12.0.0 (clang-1200.0.32.21) Target: x86_64-apple-darwin19.5.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin emcc: emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 2.0.12 clang version 12.0.0 (https://github.com/llvm/llvm-project.git 52e240a0721e4120a7143f6f5bab4760d28d48e8) Target: wasm32-unknown-emscripten Thread model: posix InstalledDir: /usr/local/opt/emscripten/libexec/llvm/bin
Related Issues: https://github.com/emscripten-core/emscripten/issues/8566 https://github.com/emscripten-core/emscripten/issues/8569