Skip to content

cmd/compile: Failed to compile, AMD64 OS was compiled to 16-bits #44328

Closed

Description

@ggdream

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

$ go version
1.16 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
PS C:\Users\E plus> go env
set GO111MODULE=auto
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\E plus\AppData\Local\go-build
set GOENV=C:\Users\E plus\AppData\Roaming\go\env
set GOEXE=.exe
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GOMODCACHE=F:\gopath\pkg\mod
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=F:\gopath
set GOPRIVATE=
set GOPROXY=https://goproxy.cn,direct
set GOROOT=F:\go
set GOSUMDB=off
set GOTMPDIR=
set GOTOOLDIR=F:\go\pkg\tool\windows_amd64
set GOVCS=
set GOVERSION=go1.16
set GCCGO=gccgo
set AR=ar
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 -fmessage-length=0 -fdebug-prefix-map=C:\Users\EPLUS~1\AppData\Local\Temp\go-build4057894103=/tmp/go-build -gno-record-gcc-switches

What did you do?

I had just wanted to compile my vgo project by using go run main.go, but something went wrong. A minute later, i tried it by the simple println('hello, world'), but the same mistake happened. Finally, i rebooted the computer and it returned to normal

What did you expect to see?

normally running

What did you see instead?

fork/exec C:\Users\EPLUS~1\AppData\Local\Temp\go-build657859145\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 and then contact the software publisher.

Activity

  1. ALTree commented on Feb 17, 2021

    @ALTree
    Member

    We've had reports of this error in the past, but I don't think we've ever truly understood what is causing it.

    In #41631 the OP claims it was their antivirus messing with the go process. Other occurrences: #33736, #38088.

    If it fixed itself after a restart I would close here (unless you can provide more info that may help debugging). But it doesn't seem like an actual bug in Go to me.

  2. added
    WaitingForInfoIssue is not actionable because of missing required information, which needs to be provided.
    on Feb 17, 2021
  3. ggdream commented on Feb 17, 2021

    @ggdream
    Author

    We've had reports of this error in the past, but I don't think we've ever truly understood what is causing it.

    In #41631 the OP claims it was their antivirus messing with the go process. Other occurrences: #33736, #38088.

    If it fixed itself after a restart I would close here (unless you can provide more info that may help debugging). But it doesn't seem like an actual bug in Go to me.

    It's okay, thank you for the reply!

  4. locked and limited conversation to collaborators on Feb 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeWaitingForInfoIssue is not actionable because of missing required information, which needs to be provided.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions