Skip to content

cmd/link: should log searching directory #36192

Open
@qingyunha

Description

@qingyunha

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

$ go version
go version go1.13 linux/amd64

Does this issue reproduce with the latest release?

Yes

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

go env Output
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/root/.cache/go-build"
GOENV="/root/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GONOPROXY=""
GONOSUMDB="*.ctripcorp.com"
GOOS="linux"
GOPATH="/root/go"
GOPRIVATE=""
GOPROXY="https://goproxy.io,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD=""
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 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build028007412=/tmp/go-build -gno-record-gcc-switches"

What did you do?

$ go tool link -v main.o 
HEADER = -H5 -T0x401000 -R0x1000
searching for runtime.a in /usr/local/go/pkg/linux_amd64/runtime.a
 0.00 deadcode
 0.02 symsize = 0
 0.03 pclntab=251242 bytes, funcdata total 57287 bytes
 0.04 dodata
 0.04 dwarf
 0.11 asmb
 0.11 codeblk
 0.12 rodatblk
 0.12 datblk
 0.12 reloc
 0.12 sym
 0.12 symsize = 2688
 0.13 symsize = 34560
 0.13 dwarf
 0.13 headr
 0.13 cpu time
21167 symbols
34132 liveness data

What did you expect to see?

searching for runtime.a in /usr/local/go/pkg/linux_amd64/

What did you see instead?

searching for runtime.a in /usr/local/go/pkg/linux_amd64/runtime.a

Activity

gopherbot

gopherbot commented on Dec 18, 2019

@gopherbot
Contributor

Change https://golang.org/cl/211817 mentions this issue: cmd/link: log searching directory instead of full pathname

added
NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.
on Dec 20, 2019
added this to the Backlog milestone on Dec 20, 2019
dmitshur

dmitshur commented on Dec 20, 2019

@dmitshur
Member

/cc @mwhudson @thanm per owners.

Also /cc @ianlancetaylor since you already looked at the CL that fixes this issue.

moved this to Triage Backlog in Go Compiler / Runtimeon Jul 15, 2022
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

    NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.compiler/runtimeIssues related to the Go compiler and/or runtime.

    Type

    No type

    Projects

    Status

    Triage Backlog

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @dmitshur@qingyunha@gopherbot

        Issue actions

          cmd/link: should log searching directory · Issue #36192 · golang/go