Skip to content

Failing to compile Go 1.7.4 on macOS #18188

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

Closed
mitchellh opened this issue Dec 3, 2016 · 2 comments
Closed

Failing to compile Go 1.7.4 on macOS #18188

mitchellh opened this issue Dec 3, 2016 · 2 comments

Comments

@mitchellh
Copy link

Please answer these questions before submitting your issue. Thanks!

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

Not passing tests, but attempting to compile go1.7.4

$GOBOOTSTRAP/bin/go version is:

go version go1.7.1 darwin/amd64

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

macOS 10.12.1

src → go env
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/mitchellh/code/go"
GORACE=""
GOROOT="/Users/mitchellh/code/3rdparty/go"
GOTOOLDIR="/Users/mitchellh/code/3rdparty/go/pkg/tool/darwin_amd64"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/3q/c37yygcs4vl7cvzq3k3wdnyr0000gn/T/go-build018200950=/tmp/go-build -gno-record-gcc-switches -fno-common"
CXX="clang++"
CGO_ENABLED="1"

What did you do?

  1. Clone Go Git repo
  2. git checkout go1.7.4
  3. cd src; ./all.bash

What did you expect to see?

Successful completion

What did you see instead?

When testing system packages, this fails every time:

--- FAIL: TestLoadFixed (0.00s)
	time_test.go:943: Now().In(loc).Zone() = "-01", -3600, want "GMT+1", -3600
FAIL
FAIL	time	2.422s

I've reproduced this on all 3 macOS machines I have: two MacBook Airs and one iMac

I feel like I'm probably doing something wrong but I can't figure it out...

@mitchellh
Copy link
Author

Looks like this is fixed on master (go1.8) and is just a macOS 10.12 issue on <= go1.7. I'm not sure if the fix should be backported for a clean compile. I'll leave this issue open but if its working as intended (only 1.8 should compile+test cleanly) then I accept that.

@bradfitz
Copy link
Contributor

bradfitz commented Dec 3, 2016

Dup of #17276.

@bradfitz bradfitz closed this as completed Dec 3, 2016
@golang golang locked and limited conversation to collaborators Dec 3, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants