Failed to compile code targetting wasm32-wasip2
with +atomics,+bulk-memory,+mutable-globals
enabled
#140971
Labels
C-bug
Category: This is a bug.
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
I created a new minimal rust library with
crate-type
set tocdylib
.Compiling this against the
wasm32-unknown-unknown
target works okay:Compiling this against the
wasm32-wasip2
target fails:the error message is complaining about
dlmalloc.o
not being compiled with theatomics
andbulk-memory
features for some reason.interestingly, we see that for the
wasm32-unknown-unknown
target, the compiler pullsdlmalloc
. but for thewasm32-wasip2
target,dlmalloc
is not being pulled and yet the compiler complains aboutdlmalloc
.Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: