-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
cmd/cgo: cannot parse _cgo_.o as ELF, Mach-O, PE or XCOFF
on Windows
#62236
Comments
Sounds like a problem with your C compiler or linker. Please post the complete output of |
cannot parse _cgo_.o as ELF, Mach-O, PE or XCOFF
on Windows
hello dear worker in IT, maybe the problem when by the setup because
so i am on the system windows 64 byte and use only msys for compile thus i paste below the variable use by go and the c compiler : thanks you in advance for your help, Regards. Azaretdodo. |
Yeah, that's not going to work. I suggest unsetting both of those variables and reading through https://go.dev/doc/code to familiarize yourself with the Go development workflow. |
you are just bad because goroot is always in windows => system32 for windows and gopath is always in the directory user for both system after for the documentation go it is always bugged because sometimes it is helping finaly i think you answer aside the meaning of the problem, thanks you in advance to really help myself, Regards. Azaretdodo. |
I'm sorry, I can't really parse that reply. 😅 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 asking questions, see: Stack Overflow with questions tagged "go" or "golang" The Go Forum, a web-based forum Gophers Discord "Get live support and talk with other gophers on the Go Discord" Gophers Slack, use the invite app for access. The #general channel is a good starting point. Go Community on Hashnode with questions and posts tagged with "go" IRC channel #go-nuts on Libera |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I was try to install go from the src folder from go paste on windows system32 with the script all.bat but i happen these two lines of errors below
What did you expect to see?
The success of the installing of go with all.bat script
What did you see instead?
The text was updated successfully, but these errors were encountered: