Skip to content
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-generate: invalid UTF-8 encoding #121

Open
Pro7ech opened this issue Jun 3, 2022 · 0 comments
Open

go-generate: invalid UTF-8 encoding #121

Pro7ech opened this issue Jun 3, 2022 · 0 comments

Comments

@Pro7ech
Copy link

Pro7ech commented Jun 3, 2022

After running go generate and trying to build the example using the main branch of PeachPy, I get the following error:

.\dot_product_amd64.s:11:6: invalid UTF-8 encoding
.\dot_product_amd64.s:11:6: invalid UTF-8 encoding
.\dot_product_amd64.s:11: expected '(', found DotProduct
asm: assembly of .\dot_product_amd64.s failed

After some investigation, using asm code from other examples, and a hex editor, it turns out that editing
TEXT ·DotProduct(SB),4,$0-28
to
TEXT ·DotProduct(SB),4,$0-28
solves the issue.

i.e.: the byte c2 seems to be missing before the function name declaration? But it doesn't show by default in an editor.

I'm new to go ASM and I have no idea of what is going on here.

I'm using go1.18.2 windows/amd64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant