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

cmd/link: should log searching directory #36192

Open
qingyunha opened this issue Dec 18, 2019 · 2 comments
Open

cmd/link: should log searching directory #36192

qingyunha opened this issue Dec 18, 2019 · 2 comments
Milestone

Comments

@qingyunha
Copy link
Contributor

@qingyunha qingyunha commented Dec 18, 2019

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

@gopherbot

This comment has been minimized.

Copy link

@gopherbot gopherbot commented Dec 18, 2019

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

@dmitshur dmitshur added this to the Backlog milestone Dec 20, 2019
@dmitshur

This comment has been minimized.

Copy link
Member

@dmitshur dmitshur commented Dec 20, 2019

/cc @mwhudson @thanm per owners.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.