Skip to content

cmd/go: build failures in git tip in TestGoPathShlibGccgo and TestTwoGopathShlibsGccgo #25324

@siebenmann

Description

@siebenmann

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

go version devel +10529a01fd Wed May 9 22:10:32 2018 +0000 linux/amd64

Does this issue reproduce with the latest release?

This issue isn't in 1.10.2; it appeared only in recent git tip versions.

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

GOARCH="amd64" and GOOS="linux".

What did you do?

Building Go from source with ./all.bash now fails with:

##### ../misc/cgo/testshared
--- FAIL: TestGoPathShlibGccgo (0.11s)
        shared_test.go:67: executing go install -installsuffix=5577006791947779410 -compiler=gccgo -linkshared exe failed exit status 1:
                package exe
                        imports runtime/cgo: cannot find package "runtime/cgo" in any of:
                        /data/code/go-lang/go/src/runtime/cgo (from $GOROOT)
                        /tmpfs/testshared267296232/src/runtime/cgo (from $GOPATH)
--- FAIL: TestTwoGopathShlibsGccgo (0.21s)
        shared_test.go:67: executing go install -installsuffix=5577006791947779410 -compiler=gccgo -linkshared exe2 failed exit status 1:
                package exe2
                        imports runtime/cgo: cannot find package "runtime/cgo" in any of:
                        /data/code/go-lang/go/src/runtime/cgo (from $GOROOT)
                        /tmpfs/testshared267296232/src/runtime/cgo (from $GOPATH)
FAIL
exit status 1
FAIL    _/data/code/go-lang/go/misc/cgo/testshared      11.861s
2018/05/09 22:39:32 Failed: exit status 1

According to a git bisect run, the commit that this starts happening at is d540da1. It's not clear to me why this is happening, because /data/code/go-lang/go/src/runtime/cgo exists and contains what you'd expect (/data/code/go-lang/go is the location of my git Go source tree).

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.release-blocker

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions