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
go-ethereum
does not compile in tinygo
#2935
Comments
That Fprintln appears to be using reflection, which is not well supported under tinygo yet. go-etherium is a pretty big package with lots of dependencies, and it's not surprising it has some problems under tinygo. |
go
but not with tinygo
Hmm... |
go-ethereum
does not compile in tinygo
Right, well, the other errors are the hard ones, and they're from go-ethereum hitting holes in tinygo. The first one, Getting go-ethererum working with tinygo as it is now may be possible, but would require making a number of changes to go-ethereum, which is probably more work than you want to do yourself. |
IsZero ( #3300 ) landed in the dev branch of tinygo, so you may want to try again and see what the remaining errors are. |
The issue in Edit: looks like there is already a |
just built
on
also tried for arduino:
by any chance, are there cryptography libraries that support |
I don't have an up to date dev tinygo at the moment, but you might try fiddling with build tags as Damian suggested. The attached patch seemed to get me past the cgo problems and to needing IsZero: |
is there any appropriate way to workaround this issue? I seemingly have the same but with |
You could submit a stub for runtime/metrics to tinygo...? Tinygo is making a fair bit of progress lately, but every little bit helps. |
@dkegel-fastly I might be interested in contributing |
Could be as simple as something like #1912 |
Trying
tinygo
but can't manage to compile my small script:Here's the debug.go:35:
after commenting out the culprit I still can't compile:
Is this normal?
The text was updated successfully, but these errors were encountered: