Skip to content

cmd/dist: toolchain3 fails in external linking mode due to stale targets #53865

Description

@erifan

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

$ go version
tip

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.WaitingForInfoIssue is not actionable because of missing required information, which needs to be provided.compiler/runtimeIssues related to the Go compiler and/or runtime.

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions