golang/go

cmd/vendor/github.com/google/pprof/internal/binutils: TestObjFile failure

Open

#26,584 opened on Jul 25, 2018

View on GitHub
 (7 comments) (0 reactions) (0 assignees)Go (19,008 forks)batch import
NeedsInvestigationhelp wanted

Repository metrics

Stars
 (133,883 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

Please answer these questions before submitting your issue. Thanks!

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

go version go1.10.3 linux/amd64

Does this issue reproduce with the latest release?

yes

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

bash-3.2$ ld --version GNU ld (GNU Binutils) 2.22

GOARCH="amd64" GOBIN="" GOCACHE="/home/jhart/.cache/go-build" GOEXE="" GOHOSTARCH="amd64" GOHOSTOS="linux" GOOS="linux" GOPATH="/home/jhart/go" GORACE="" GOROOT="/home/jhart/temp/temp/go" GOTMPDIR="" GOTOOLDIR="/home/jhart/temp/temp/go/pkg/tool/linux_amd64" GCCGO="gccgo" CC="gcc" CXX="g++" CGO_ENABLED="1" 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-build636359804=/tmp/go-build -gno-record-gcc-switches"

What did you do?

cd temp
tar xf go1.4-bootstrap-20171003.tar.gz
cd go/src
export CGO_ENABLED=0
su
cd /var
mkdir tmp
chmod go+w tmp
exit
./make.bash
### Installed Go for linux/amd64 in /home/jhart/temp/go
### Installed commands in /home/jhart/temp/go/bin
unset CGO_ENABLED
export GOROOT_BOOTSTRAP=/home/jhart/temp/go
cd ../../
mkdir temp
cd temp
git clone https://go.googlesource.com/go
cd go
git describe --tags # go1.11beta1-226-ge161b1e
git checkout go1.10.3
cd src
./all.bash

What did you expect to see?

All tests should have been passed successfully

What did you see instead?

ok      cmd/trace       0.028s                                                                                                                                                                                     
--- FAIL: TestObjFile (0.17s)                                                                                                                                                                                      
        binutils_test.go:237: SourceLine for main: expect [{main /tmp/hello.c 3}]; got [{main  0}]                                                                                                                 
FAIL                                                                                                                                                                                                               
FAIL    cmd/vendor/github.com/google/pprof/internal/binutils    0.371s                                                                                                                                             

Contributor guide