emscriptenのツールエラーメモ (emscripten’s error tips)

Error: Cannot find module ‘acorn’

emscriptenのバージョンを変えた(リポジトリのタグでチェックアウトした)時に起きた
cd $EMSCRIPTEN
npm install

emcc: error: wasm2js does not support source maps yet (debug in wasm for now)

このエラーはたぶんWASM=0 -g4にしてると出るはず。

-g3: When compiling to object files, keep debug info, including JS whitespace, function names, and LLVM debug info if any (this is the same as -g).
-g4: When linking, generate a source map using LLVM debug information (which must be present in object files, i.e., they should have been compiled with -g).

cannot use the stack before compiled code is ready to run, and has provided stack access
emccをv1.39.18に上げる (update emcc at least v1.39.18.)
emscripten issue – cannot use the stack before compiled code is ready to run, and has provided stack access #11428

バージョンの確認方法 (How to check the version)
llvm-project/build/bin/wasm-ld –version

llvm-project/build/bin/llc -version

binaryen/bin/wasm-opt –version

nodejs –version

emccとbinaryenのそれぞれのバージョンの組み合わせの実行可否(Combination Result between emcc and binaryen)

emcc v1.39.11 & binaryen-version_82
~/binaryen/binaryen-version_82/bin/wasm-opt –version
Unknown option ‘–version’

emcc v1.39.11 & binaryen-1.39.1
~/document/source/binaryen/bin/wasm-opt –version
wasm-opt 1.39.1
shared:ERROR: error parsing binaryen version (wasm-opt 1.39.1). Please check your binaryen installation (/home/takahiro/document/source/binaryen/bin/wasm-opt)
FAIL: Compilation failed!

emcc v1.39.11 & binaryen-version_90
~/document/source/binaryen/bin/wasm-opt –version
wasm-opt version_90
shared:ERROR: error parsing binaryen version (wasm-opt version_90). Please check your binaryen installation (/home/takahiro/document/source/binaryen/bin/wasm-opt)

emcc v1.39.11 & binaryen-version_91
~/document/source/binaryen/bin/wasm-opt –version
wasm-opt version 91 (version_91)

emcc v1.39.11 & binaryen-version_93
未定 (not yet)

コメントをどうぞ

メールアドレスが公開されることはありません。 が付いている欄は必須項目です