Open inliquid opened 1 year ago
It appears that for some reason Log
method is conflicting with some log
function in libc. This little change solves the issues above:
So the open questions are:
log
in libc which can't be used as method names?Why this worked with no problems on tinygo v0.28.1
After some researching, I think the reason is basically this generated code when we use Log
method name to become a host function:
//go:wasm-module env
//export log
//go:linkname _log
func _log(ptr uint32, size uint32) uint64
I posted an issue in tinygo repo, as I believe it's related to compiler, at least when it comes to Windows. However I'm not sure about Linux.
So I just cross-post original issue here as you guys may know better the reason which causing it:
I have some code using
knqyf263/go-plugin
which compiles with no problemon both Windows and Linux platformsusing tinygo v0.28.1. However it stopped working after upgrade to v0.29.0:On Windows:On Linux:
Upd.: problem on Windows was due to broken installation please disregard this part.