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

cmd/go: this version is not compatible with the version of Windows you're running error when building #33736

Closed
mrjesen opened this issue Aug 20, 2019 · 6 comments
Labels
FrozenDueToAge WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Milestone

Comments

@mrjesen
Copy link

mrjesen commented Aug 20, 2019

What version of Go are you using (go version)?

$ go version
go version go1.12.7 windows/amd64

Does this issue reproduce with the latest release?

yes

What operating system and processor architecture are you using (go env)?

go env Output
$ go env
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\Administrator\AppData\Local\go-build
set GOEXE=.exe
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=D:\Golang\gopath
set GOPROXY=https://mirrors.aliyun.com/goproxy/
set GORACE=
set GOROOT=D:\Golang\Go
set GOTMPDIR=
set GOTOOLDIR=D:\Golang\Go\pkg\tool\windows_amd64
set GCCGO=gccgo
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=C:\Users\ADMINI~1\AppData\Local\Temp\go-build513384590=/tmp/go-build -gno-record-gcc-switches

What did you do?

sometimes I run the "go build" command,and then failed to run the new program. .

What did you expect to see?

new program created!

What did you see instead?

it is created but when i run it ,the command line gives me a tip: The program is not a 64bit program.
test.zip

@ianlancetaylor
Copy link
Contributor

Please tell us exactly what you did and show us exactly what happened. Cut and paste from the terminal window. Thanks.

@bcmills bcmills added the WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. label Aug 20, 2019
@mrjesen
Copy link
Author

mrjesen commented Aug 22, 2019

2019-8-22 16:20:33 Build success! And it runs success.
2019-8-22 16:30:43 Build failed return : C:\Users\ADMINI~1\AppData\Local\Temp\go-build805579086\b001\exe\main.exe: This version of %1 is not compatible with the version of Windows you're running. Check your computer's system information to see whether you need a x86 (32-bit) or x64 (64-bit) version of the program, and then contact the software publisher.

2019-8-22 16:37:46 I have found that : When i restart my pc ,the problem will be solved. and after some time,the problem start again.

@mrjesen
Copy link
Author

mrjesen commented Aug 22, 2019

@ianlancetaylor

@ianlancetaylor
Copy link
Contributor

You didn't tell us exactly what you did. What exact command are you running that produces the output

2019-8-22 16:30:43 Build failed return : C:\Users\ADMINI~1\AppData\Local\Temp\go-build805579086\b001\exe\main.exe: This version of %1 is not compatible with the version of Windows you're running. Check your computer's system information to see whether you need a x86 (32-bit) or x64 (64-bit) version of the program, and then contact the software publisher.

That said, see https://golang.org/doc/faq#virus .

@ianlancetaylor
Copy link
Contributor

It's also quite likely that you will get a better and faster answer in a forum. See https://golang.org/wiki/Questions .

@ALTree ALTree added WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. and removed WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. labels Oct 23, 2019
@ALTree ALTree changed the title failed to "go build" cmd/go: this version is not compatible with the version of Windows you're running error when building Oct 23, 2019
@ALTree ALTree added this to the Unplanned milestone Oct 23, 2019
@gopherbot
Copy link

Timed out in state WaitingForInfo. Closing.

(I am just a bot, though. Please speak up if this is a mistake or you have the requested information.)

@golang golang locked and limited conversation to collaborators Nov 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Projects
None yet
Development

No branches or pull requests

5 participants