-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/dist: toolchain3 fails in external linking mode due to stale targets #53865
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
Comments
Please fill out the complete issue template — what is the output of In addition, what toolchain and version are you using for the external linker? (Does this reproduce with both |
$ go env
$ gcc -v
$ clang -v
I tried linux/amd64, linux/arm64, macos/arm64, gcc, clang, all of them will report this error. |
@erifan, I suspect that this may have been fixed by the work for reproducible toolchain builds in Go 1.21. Does it still reproduce for you? |
@bcmills The error has changed to another one:
|
Aha! That one seems like a reasonable failure mode to me. You have explicitly set If you really want to build a cgo-enabled toolchain, you can run the default |
Timed out in state WaitingForInfo. Closing. (I am just a bot, though. Please speak up if this is a mistake or you have the requested information.) |
What version of Go are you using (
go version
)?What did you do?
$ GO_LDFLAGS="-linkmode=external" ./make.bash
What did you expect to see?
Successfully build go
What did you see instead?
$ GO_LDFLAGS="-linkmode=external" ./make.bash
Building Go cmd/dist using /usr/lib/go-1.13. (go1.13.8 linux/amd64)
Building Go toolchain1 using /usr/lib/go-1.13.
Building Go bootstrap cmd/go (go_bootstrap) using Go toolchain1.
Building Go toolchain2 using go_bootstrap and Go toolchain1.
Building Go toolchain3 using go_bootstrap and Go toolchain2.
HASH[moduleIndex]
HASH[moduleIndex]: "devel go1.19-160414ca6a Tue Jun 28 21:01:39 2022 +0000"
HASH[moduleIndex]: "package devel go1.19-160414ca6a Tue Jun 28 21:01:39 2022 +0000 go index v0 /home/erifan02/go-master/src/runtime/internal/sys\n"
......
runtime/internal/sys true
go tool dist: unexpected stale targets reported by /home/erifan02/go-master/pkg/tool/linux_amd64/go_bootstrap list -gcflags="" -ldflags="-linkmode=external" for [cmd/asm cmd/cgo cmd/compile cmd/link runtime/internal/sys] (consider rerunning with GOMAXPROCS=1 GODEBUG=gocachehash=1):
STALE cmd/asm: stale dependency: internal/goarch
STALE cmd/cgo: stale dependency: internal/goarch
STALE cmd/compile: stale dependency: internal/goarch
STALE cmd/link: stale dependency: internal/goarch
STALE runtime/internal/sys: stale dependency: internal/goarch
The text was updated successfully, but these errors were encountered: