Closed elewis787 closed 2 years ago
I can confirm that I see the same issue when trying to build a Spin component with TinyGo 0.24 and Go 1.18 on main
.
I wrote a patch for this last week. I'll open a PR tomorrow.
Yay, thanks, @adamreese!
For those interested, this issue was probably caused by a CGo refactor that made it a bit more strict: https://github.com/tinygo-org/tinygo/pull/2774
Using the latest golang and tiny go versions (go - 1.18.3 and tinygo v0.24.0 ) and running the make file in the Go SDK folder results in:
This was first reported in the gopher wasm slack channel but I was able to reproduce this error after upgrading locally. I believe this error in TinyGo with their support for go 1.18 but I have not seen any related issues. I am opening this here to see if there are any additional thoughts before opening an issue in the TinyGo repo.
A quick work around is to use v0.22.0 and golang v1.17.+