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

runtime: Not compatible #64530

Closed
Pizzy23 opened this issue Dec 4, 2023 · 8 comments
Closed

runtime: Not compatible #64530

Pizzy23 opened this issue Dec 4, 2023 · 8 comments
Labels
compiler/runtime Issues related to the Go compiler and/or runtime. WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.

Comments

@Pizzy23
Copy link

Pizzy23 commented Dec 4, 2023

Go version

go version go1.21.4 windows/amd64

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

set GO111MODULE=
set GOARCH=arm64
set GOBIN=
set GOCACHE=C:\Users\luizc\AppData\Local\go-build
set GOENV=C:\Users\luizc\AppData\Roaming\go\env
set GOEXE=.exe
set GOEXPERIMENT=
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GOMODCACHE=C:\Users\luizc\go\pkg\mod
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=C:\Users\luizc\go
set GOPRIVATE=
set GOPROXY=https://proxy.golang.org,direct
set GOROOT=C:\Program Files\Go
set GOSUMDB=sum.golang.org
set GOTMPDIR=
set GOTOOLCHAIN=auto
set GOTOOLDIR=C:\Program Files\Go\pkg\tool\windows_amd64
set GOVCS=
set GOVERSION=go1.21.4
set GCCGO=gccgo
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=0
set GOMOD=C:\Users\luizc\ProjectWorks\Back\Go\Start\go.mod
set GOWORK=
set CGO_CFLAGS=-O2 -g
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-O2 -g
set CGO_FFLAGS=-O2 -g
set CGO_LDFLAGS=-O2 -g
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-fno-caret-diagnostics -Qunused-arguments -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=C:\Users\luizc\AppData\Local\Temp\go-build2615450429=/tmp/go-build -gno-record-gcc-switches

What did you do?

Run the project

What did you expect to see?

One calculating

What did you see instead?

fork/exec C:\Users\luizc\AppData\Local\Temp\go-build1506841787\b001\exe\start.exe: This version of %1 is not compatible with the version of Windows you're running. Check your computer's system information and then contact the software publisher.

In this case, I've already uninstalled Go, disabled the antivirus, checked the environment variables and haven't been able to find why this is happening.

@gopherbot gopherbot added the compiler/runtime Issues related to the Go compiler and/or runtime. label Dec 4, 2023
@seankhliao
Copy link
Member

so what version of Windows is this?

@seankhliao seankhliao added the WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. label Dec 4, 2023
@Pizzy23
Copy link
Author

Pizzy23 commented Dec 4, 2023

Windows 11

@seankhliao
Copy link
Member

more detail please

@Pizzy23
Copy link
Author

Pizzy23 commented Dec 4, 2023

I simply can't run my codes in Golang anymore, because of this error

fork/exec C:\Users\luizc\AppData\Local\Temp\go-build1506841787\b001\exe\start.exe: This version of %1 is not compatible with the version of Windows you're running. Check your computer's system information and then contact the software publisher.

@mauri870
Copy link
Member

mauri870 commented Dec 4, 2023

@ZeroRaven23 By any chance are you running a 32 bit binary? This sounds like an error that you get when running a 64bit binary in a 32 bit system. But I noticed you are using arm64, I wonder if the same error happens when you try to run a 32 bit arm binary in a aarch64 host 🤔

@Pizzy23
Copy link
Author

Pizzy23 commented Dec 4, 2023

So my system is 64 bits, that's why I find it strange. How could you test it running at 32?

@xhit
Copy link
Contributor

xhit commented Dec 4, 2023

Your GOARCH is arm64, but your GOHOSTARCH is amd64, you need to change GOARCH to amd64.

@seankhliao
Copy link
Member

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

@seankhliao seankhliao closed this as not planned Won't fix, can't repro, duplicate, stale Dec 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler/runtime Issues related to the Go compiler and/or runtime. 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