-
Notifications
You must be signed in to change notification settings - Fork 18k
import/path: Unable to run go program prompt invalid UTF-8 encoding #71047
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
Comments
sounds like you have a corrupted installation of go. Unlike many projects, the Go project does not use GitHub Issues for general discussion or asking questions. GitHub Issues are used for tracking bugs and proposals only. For questions please refer to https://github.com/golang/go/wiki/Questions |
I have tried many installation methods but nothing works |
@zhuzi0125 Please use a forum. See https://go.dev/wiki/Questions. |
Go version
go version go1.23.4 darwin/arm64
Output of
go env
in your module/workspace:What did you do?
zhengzhoutan@ZhengzhuiMac wechat-bot % go run main.go
internal/bytealg
go_asm.h:1:1: invalid UTF-8 encoding
go_asm.h:1: expected identifier, found "\u0a11"
asm: assembly of /usr/local/go/src/internal/bytealg/compare_arm64.s failed
internal/runtime/atomic
go_asm.h:1:1: invalid UTF-8 encoding
go_asm.h:1: expected identifier, found "\u0a11"
asm: assembly of /usr/local/go/src/internal/runtime/atomic/atomic_arm64.s failed
What did you see happen?
When running the Go program, the following error was encountered:
internal/bytealg
go_asm.h:1:1: invalid UTF-8 encoding
go_asm.h:1: expected identifier, found "\u0a11"
asm: assembly of /usr/local/go/src/internal/bytealg/compare_arm64.s failed
internal/runtime/atomic
go_asm.h:1:1: invalid UTF-8 encoding
go_asm.h:1: expected identifier, found "\u0a11"
asm: assembly of /usr/local/go/src/internal/runtime/atomic/atomic_arm64.s failed
I have verified that atomic_arm64.s is an etf-8 file, but I don't know how to solve it now
What did you expect to see?
Successfully run the go program
The text was updated successfully, but these errors were encountered: