-
Notifications
You must be signed in to change notification settings - Fork 1.3k
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
command export '_ZSt7nothrow' is not a function #2878
Comments
@sunfishcode the repro Perhaps we should warn on or ignore non-function exports for commands (that we don't otherwise have a deprecation message for)? |
Is this the same issue as in #2587? |
It appears to be and I think your proposed solution there is a good one. |
Duplicate of #2587. Sorry didn't notice it! |
No worries at all—thank you for the report!
I don't think there is, I'm afraid :( I think the solution in the other bug shouldn't be too hard to implement, but I unfortunately don't have the bandwidth to do so right now :( |
I have a fix ready that I'll put up a PR shortly for. |
@vshymanskyy Can you describe how you produced the wasm file? Workarounds are one thing, but I'm also curious if there's an underlying bug in clang or wasm-ld here. Are you using any special flags, like |
@sunfishcode it was found in the wild: https://wapm.io/package/clang 😀 |
Steps to Reproduce
git clone https://github.com/wasm3/wasm3-self-compiling.git cd wasm3-self-compiling wasmtime run --mapdir=/::. --mapdir=./::. ./wasm/clang.wasm -- -cc1 -triple wasm32-unknown-wasi -isysroot /sys -internal-isystem /sys/include -emit-obj -o source/hello/hello.o source/hello/hello.c -O3
Expected Results
Compilation succeeds
Actual Results
Versions and Environment
Wasmtime version or commit: 0.26.0
Operating system: Ubuntu 21.04
Architecture: x86-64
Extra Info
A similar command works with
Wasm3
,Wasmer
, Node.js (wasm-run
)The text was updated successfully, but these errors were encountered: