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
❯ tinygo build -target=wasm-unknown main.go
wasm-ld-16: error: lto.tmp: undefined symbol: memset
wasm-ld-16: error: lto.tmp: undefined symbol: memcpy
error: failed to link /tmp/tinygo826502402/main: exit status 1
This is still an issue, so reopening. After #4176 gets merged, this should be easy to add.
Is there an easy way to enable the bulk memory feature without forking the repo?
Not at the moment (though the -llvm-features flag might help). Ideally we'd have either a GOWASM environment variable or maybe a -cpu flag that sets the supported wasm support level (MVP, wasm 2.0, etc).
Hello, I was trying out the new
wasm-unknown
target and found that it doesn't seem to be able to compile applications that requirememset
ormemcpy
.I compiled
tinygo
from source on commit 377415a using llvm 16. Withmain.go
:I get the following error:
I tried enabling the bulk memory feature in
targets/wasm-unknown.json
:to see if they'd get compiled to
mem.init
andmem.copy
respectively and that does seem to work.Is there an easy way to enable the bulk memory feature without forking the repo?
The text was updated successfully, but these errors were encountered: