You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NB: this originated in trying to use moovweb/gvm to install older versions of Go on an M1 mac. If earlier versions of Go are not expected to build for GOOS=darwinGOARCH=arm64, please disregard.
What version of Go are you using (go version)?
$ go version
go version go1.16.2 darwin/arm64
Does this issue reproduce with the latest release?
No.
What operating system and processor architecture are you using (go env)?
mkdir ~/src && cd ~/src && git clone https://github.com/golang/go.git
cd ~/src/go/src && git checkout go1.15.10
./all.bash
What did you expect to see?
Completed build of go1.15.10
What did you see instead?
Building Go cmd/dist using /Users/spaetzle/sdk/go1.16.2. (go1.16.2 darwin/arm64)
Building Go toolchain1 using /Users/spaetzle/sdk/go1.16.2.
Building Go bootstrap cmd/go (go_bootstrap) using Go toolchain1.
warning: unable to find runtime/cgo.a
Building Go toolchain2 using go_bootstrap and Go toolchain1.
# cmd/cgo
ld: warning: -no_pie ignored for arm64
# cmd/asm
ld: warning: -no_pie ignored for arm64
# cmd/link
ld: warning: -no_pie ignored for arm64
# cmd/compile
ld: warning: -no_pie ignored for arm64
Building Go toolchain3 using go_bootstrap and Go toolchain2.
go tool compile: signal: killed
go tool compile: signal: killed
go tool compile: signal: killed
go tool compile: signal: killed
go tool dist: FAILED: /Users/spaetzle/src/go/pkg/tool/darwin_arm64/go_bootstrap install -gcflags=all= -ldflags=all= -a -i cmd/asm cmd/cgo cmd/compile cmd/link: exit status 1
Each failure produces a similar (albeit opaque) log in Console.app: Mar 12 16:15:27 spaetzle com.apple.xpc.launchd[1] (com.apple.mdworker.shared.0E000000-0100-0000-0000-000000000000[57775]) <Notice>: Service exited due to SIGKILL | sent by mds[514]
The text was updated successfully, but these errors were encountered:
This does seem similar to some of the details published in #42684, but that seemed to go in a different direction.
rbcrwd
changed the title
building <go-1.16.1 fails with SIGKILL on M1/arm64 chipset
building <go-1.16 fails with SIGKILL on M1/arm64 chipset
Mar 12, 2021
If earlier versions of Go are not expected to build for GOOS=darwinGOARCH=arm64, please disregard.
Go 1.16 is the first version of Go that adds support for Apple silicon. Go 1.15 and older versions don’t support it. Back then, GOOS=darwinGOARCH=arm64 was a way of targeting iOS. See https://golang.org/doc/go1.16#ports.
Thanks for the response. That's going to create increasing tension for developers buying or replacing equipment and still supporting non-bleeding-edge toolchains or libraries with native library CGO dependencies.
This is enough of a compatibility break that I would have expected to see some sort of documentation. Unfortunately, while the 1.16 release notes do mention the darwin->ios shift, they do not indicate that 1.15 and below will not be supported on the chipset, nor does the MinimumRequirements doc in this project's wiki reflect anything post-1.15.
NB: this originated in trying to use moovweb/gvm to install older versions of Go on an M1 mac. If earlier versions of Go are not expected to build for
GOOS=darwin
GOARCH=arm64
, please disregard.What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
No.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
go get golang.org/dl/go1.16.2
go1.16.2 download
export PATH="$HOME/sdk/go1.16.2/bin:$PATH"
mkdir ~/src && cd ~/src && git clone https://github.com/golang/go.git
cd ~/src/go/src && git checkout go1.15.10
./all.bash
What did you expect to see?
Completed build of go1.15.10
What did you see instead?
Each failure produces a similar (albeit opaque) log in Console.app:
Mar 12 16:15:27 spaetzle com.apple.xpc.launchd[1] (com.apple.mdworker.shared.0E000000-0100-0000-0000-000000000000[57775]) <Notice>: Service exited due to SIGKILL | sent by mds[514]
The text was updated successfully, but these errors were encountered: