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

unsupported GOOS/GOARCH pair darwin/x86_64 #66883

Closed
serge-hulne opened this issue Apr 18, 2024 · 3 comments
Closed

unsupported GOOS/GOARCH pair darwin/x86_64 #66883

serge-hulne opened this issue Apr 18, 2024 · 3 comments

Comments

@serge-hulne
Copy link

Go version

go version go1.22.2 darwin/amd64

Output of go env in your module/workspace:

go env 
GO111MODULE=''
GOARCH='amd64'
GOBIN=''
GOCACHE='/Users/sergehulne/Library/Caches/go-build'
GOENV='/Users/sergehulne/Library/Application Support/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='amd64'
GOHOSTOS='darwin'
GOINSECURE=''
GOMODCACHE='/Users/sergehulne/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='darwin'
GOPATH='/Users/sergehulne/go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/usr/local/go'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/usr/local/go/pkg/tool/darwin_amd64'
GOVCS=''
GOVERSION='go1.22.2'
GCCGO='gccgo'
GOAMD64='v1'
AR='ar'
CC='clang'
CXX='clang++'
CGO_ENABLED='1'
GOMOD='/Users/sergehulne/Documents/code/Fyne_tests/Clock/go.mod'
GOWORK=''
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -arch x86_64 -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -ffile-prefix-map=/var/folders/jm/z8f4hclj0fz3qjtwwrm731h40000gn/T/go-build1460477808=/tmp/go-build -gno-record-gcc-switches -fno-common'

What did you do?

GOOS=darwin GOARCH=x86_64 go build -o myapp-x86_64

What did you see happen?

go: unsupported GOOS/GOARCH pair darwin/x86_64

What did you expect to see?

I expected the code to be compiled for another Mac with an Intel processor (x86_64)

@serge-hulne
Copy link
Author

serge-hulne commented Apr 18, 2024

PS: My architecture is:


  Model Name:	Mac mini
  Model Identifier:	Macmini9,1
  Chip:	Apple M1
  Total Number of Cores:	8 (4 performance and 4 efficiency)
  Memory:	16 GB
  System Firmware Version:	10151.101.3

@randall77
Copy link
Contributor

x86_64 is called amd64 in our architecture language.
and the M1 is not x86 at all, it is arm64.

@serge-hulne
Copy link
Author

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants