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

go1.4 does not build on macOS High Sierra #21908

Closed
zegl opened this issue Sep 16, 2017 · 4 comments
Closed

go1.4 does not build on macOS High Sierra #21908

zegl opened this issue Sep 16, 2017 · 4 comments

Comments

@zegl
Copy link
Contributor

zegl commented Sep 16, 2017

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

Trying to build go1.4 (a3310f) for bootstrapping

Does this issue reproduce with the latest release?

Yes.

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

macOS High Sierra (17A362a)

Output from prebuilt go1.9:

GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/gustav/go"
GORACE=""
GOROOT="/usr/local/Cellar/go/1.9/libexec"
GOTOOLDIR="/usr/local/Cellar/go/1.9/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/sh/rfv00gbd6mdc2xq6g06rh8m00000gn/T/go-build357383795=/tmp/go-build -gno-record-gcc-switches -fno-common"
CXX="clang++"
CGO_ENABLED="1"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"

What did you do?

git clone git@github.com:golang/go.git go1.4;
cd go1.4;
git checkout release-branch.go1.4;
cd src;
bash make.bash;

What did you expect to see?

Successfully built go1.4 binaries.

What did you see instead?

...
runtime/cgo
cmd/pprof/internal/profile
html/template
cmd/pprof/internal/tempfile
cmd/yacc
archive/tar
# runtime/cgo
clang: error: no such file or directory: '/Library/Developer/CommandLineTools/usr/lib/clang/9.0.0/lib/darwin17.0.0/libclang_rt.builtins-x86_64.a'
archive/zip
cmd/pprof/internal/plugin
cmd/pprof/internal/report
cmd/pprof/internal/symbolizer
cmd/pprof/internal/symbolz
compress/lzw
compress/zlib
database/sql/driver
encoding/csv
database/sql
encoding/gob
image/gif
image/png
cmd/pprof/internal/commands
cmd/pprof/internal/driver
runtime/debug
testing
testing/iotest
testing/quick
text/scanner
@cznic
Copy link
Contributor

cznic commented Sep 16, 2017

Go 1.4 is long EOL.

@bradfitz
Copy link
Contributor

@cznic, false. Go 1.4 is special and still maintained because it's the version required to bootstrap from source.

@cznic
Copy link
Contributor

cznic commented Sep 16, 2017

According to the Release Policy, Go 1.4 is not supported anymore, which I called EOL. Perhaps the docs need to be updated.

@davecheney
Copy link
Contributor

davecheney commented Sep 16, 2017

You have to disable cgo with CGO_ENABLED=0 to build the bootstrap compiler.

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

5 participants