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

mime/quotedprintable: Go 2: Why takes so long to compile? (At least 8min+) #39912

Closed
Dentrax opened this issue Jun 29, 2020 · 2 comments
Closed

Comments

@Dentrax
Copy link

Dentrax commented Jun 29, 2020

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

$ go version
go version go1.13.8 darwin/amd64

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

go env Output
$ go env

GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/ft/Library/Caches/go-build"
GOENV="/Users/ft/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/ft/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/Cellar/go/1.13.8/libexec"
GOSUMDB="off"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go/1.13.8/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="0"
GOMOD="/Users/ft/go/src/goroot/src/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/nq/vxjjn3311fg4q263qsxrghpcpzgp66/T/go-build598399094=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?

Trying to compile Go 2 from dev.go2go branch as described in the installation guide.

time CGO_ENABLED=0 ./all.bash

Output: 852.37s user 738.07s system 244% cpu 10:51.15 total

Until the mime/quotedprintable package, the overall compiling speed is really fast. It takes almost a few minutes to get to this stage. But when compile step gets here, laptop's fans start working hard at least for 5 minutes. Then the fans stop immediately and start waiting for another 5 minutes, in order to compile next package.

P.S: With ./run.bash --no-rebuild, it still acts same way.

What did you expect to see?

I'm not so sure whether it was this way before. I'm trying to compile on MacBook Pro. (2.6GHz 6-core 9th i7, 16GB)

What did you see instead?

Is it normal for the compiler to behave this way?

@davecheney
Copy link
Contributor

davecheney commented Jun 29, 2020

Is it normal for the compiler to behave this way?

yes. you are running all the tests. If you want to just build the compiler use ./make.bash

@davecheney
Copy link
Contributor

Unlike many projects, the Go project does not use GitHub Issues for general discussion or asking questions. GitHub Issues are used for tracking bugs and proposals only.

For asking questions, see:

@golang golang locked and limited conversation to collaborators Jun 29, 2021
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