You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm trying to statically link a .bc library (compiled with emcc) using packager.exe, but ninja last step is failing with wasm-ld: error: unknown file type: libFoo.bc. This used to work in previous versions of mono.
If I use the extension ".a", the error slightly change to emcc: error: libFoo.a: Unknown format, not a static library!
Hi, I'm trying to statically link a .bc library (compiled with emcc) using packager.exe, but ninja last step is failing with
wasm-ld: error: unknown file type: libFoo.bc
. This used to work in previous versions of mono.If I use the extension ".a", the error slightly change to
emcc: error: libFoo.a: Unknown format, not a static library!
Steps to Reproduce
emcc foo.c -std=c++17 -s LEGALIZE_JS_FFI=0 -r -o $CDIR/libFoo.bc -s WASM=1 -s DISABLE_EXCEPTION_CATCHING=0
mono $HOME/mono/sdks/wasm/packager.exe --emscripten-sdkdir=$HOME/mono/sdks/builds/toolchains/emsdk --enable-fs --mono-sdkdir=$HOME/mono/sdks/out --appdir=$HOME/.build/bin --builddir=$HOME/.build/obj --template=$HOME/.build/publish/runtime.js --debug --debugrt --linker --link-descriptor=$HOME/.build/link-descriptor.xml --pinvoke-libs=libFoo --native-lib=libFoo.bc HelloFoo.dll
Current Behavior
Ninja build fails on last step
Expected Behavior
ninja build ends sucessfully
On which platforms did you notice this
[ ] macOS
[x] Linux (WSL1)
[ ] Windows
Version Used:
commit 163f458 (HEAD -> master, origin/master, origin/HEAD)
Author: monojenkins jo.shields+jenkins@xamarin.com
Date: Wed Sep 16 11:24:16 2020 -0400
The text was updated successfully, but these errors were encountered: