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

iWdGo opened this issue Jul 26, 2018 · 1 comment

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

iWdGo opened this issue Jul 26, 2018 · 1 comment


Copy link

@iWdGo 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?


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 GOROOT=C:\Go
set GOTOOLDIR=C:\Go\pkg\tool\windows_amd64
set GCCGO=gccgo
set CC=gcc
set CXX=g++
set GOMOD=
set CGO_CFLAGS=-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?


If possible, provide a recipe for reproducing the error.
A complete runable program is good.
A link on 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    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 this to the Go1.11 milestone Jul 26, 2018
Copy link

@gopherbot gopherbot commented Jul 27, 2018

Change mentions this issue: cmd/link: added test of availability of gcc

@gopherbot gopherbot closed this in 9dab384 Jul 27, 2018
@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.
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.