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: TestRuntimeTypeAttr fails when gcc is unavailable #26621

Closed
iwdgo opened this issue Jul 26, 2018 · 1 comment
Closed

cmd/link: TestRuntimeTypeAttr fails when gcc is unavailable #26621

iwdgo opened this issue Jul 26, 2018 · 1 comment
Labels
FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done. Testing An issue that has been verified to require only test changes, not just a test failure.
Milestone

Comments

@iwdgo
Copy link
Contributor

iwdgo commented Jul 26, 2018

Please answer these questions before submitting your issue. Thanks!

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

Go 1.11beta2 as bootstrap and 
go version devel +e5b13401c6 Wed Jul 25 23:53:54 2018 +0000 windows/amd64

Does this issue reproduce with the latest release?

Yes

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

set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\()\AppData\Local\go-build
set GOEXE=.exe
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=C:\Users\()\Documents\Google\
set GOPROXY=
set GORACE=
set GOROOT=C:\Go
set GOTMPDIR=
set GOTOOLDIR=C:\Go\pkg\tool\windows_amd64
set GCCGO=gccgo
set CC=gcc
set CXX=g++
set CGO_ENABLED=0
set GOMOD=
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=C:\Users\C()osta\AppData\Local\Temp\go-build629604138=/tmp/go-build -gno-record-gcc-switches

What did you do?

>all.bat

If possible, provide a recipe for reproducing the error.
A complete runable program is good.
A link on play.golang.org is best.

What did you expect to see?

ok cmd/link/internal/ld 114.969s

What did you see instead?

--- FAIL: TestRuntimeTypeAttr (23.85s)
    --- FAIL: TestRuntimeTypeAttr/flags=-ldflags=-linkmode=external (14.24s)
        dwarf_test.go:104: build: # command-line-arguments
            loadinternal: cannot find runtime/cgo
            C:\Users\Costa\Documents\Google\golang\go\pkg\tool\windows_amd64\link.exe: running gcc failed: exec: "gcc": executable file not found in %PATH%


        dwarf_test.go:105: build error: exit status 2
FAIL
FAIL    cmd/link/internal/ld    138.075s

I'll submit a small fix as the failing test is timing out on gcc instead of checking its availability as elsewhere using testenv.MustHaveCGO(t).

@ianlancetaylor ianlancetaylor added Testing An issue that has been verified to require only test changes, not just a test failure. NeedsFix The path to resolution is known, but the work has not been done. labels Jul 26, 2018
@ianlancetaylor ianlancetaylor added this to the Go1.11 milestone Jul 26, 2018
@gopherbot
Copy link

Change https://golang.org/cl/126075 mentions this issue: cmd/link: added test of availability of gcc

@golang golang locked and limited conversation to collaborators Jul 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done. Testing An issue that has been verified to require only test changes, not just a test failure.
Projects
None yet
Development

No branches or pull requests

3 participants