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
build '-target=wasm-unknown' pure wasm fail #4163
Comments
You are mixing a number of different bugs in a single report.
Probably fixed in #4168. Please test with tinygo 0.31.2.
Not a bug, you need to run
Don't do this, in fact I recommend undoing this so they don't mess with your tinygo build. The correct fix is
See #4174 |
tinygo version: tinygo version 0.31.0 darwin/arm64 (using go version go1.22.0 and LLVM version 17.0.6)
os system: mac os 14.3
build cmd:
tinygo build -o ecdsa.wasm -target=wasm-unknown ./main.go
error log:
/Users/red/lworkspace/dfinity/tinygo/src/syscall/syscall_unix.go:10:7: undefined: RawSockaddrInet4 /Users/red/lworkspace/dfinity/tinygo/src/syscall/syscall_unix.go:17:9: undefined: RawSockaddrInet6 /Users/red/lworkspace/dfinity/tinygo/src/syscall/errno.go:28:14: undefined: EINTR
other log:
clang-17: error: no such file or directory: '/Users/red/lworkspace/dfinity/tinygo/lib/compiler-rt-builtins/addvsi3.c' clang-17: error: no input files clang-17: error: no such file or directory: '/Users/red/lworkspace/dfinity/tinygo/lib/compiler-rt-builtins/absvdi2.c' clang-17: error: no input files
then try download
compiler-rt-builtins
(https://github.com/ilobilo/compiler-rt-builtins) to tinygo/lib/compiler-rt-builtins dirsbuild wasm again the error is:
wasm-ld: error: lto.tmp: undefined symbol: memset
The text was updated successfully, but these errors were encountered: