Skip to content

misc/cgo/testcarchive: fails with "Permission denied" #17439

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

Closed
alexbrainman opened this issue Oct 14, 2016 · 1 comment
Closed

misc/cgo/testcarchive: fails with "Permission denied" #17439

alexbrainman opened this issue Oct 14, 2016 · 1 comment

Comments

@alexbrainman
Copy link
Member

Please answer these questions before submitting your issue. Thanks!

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

go version devel +abbd502 Thu Oct 13 21:55:38 2016 +0000 windows/amd64

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

set GOARCH=amd64
set GOBIN=
set GOEXE=.exe
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=c:\dev
set GORACE=
set GOROOT=C:\dev\go
set GOTOOLDIR=C:\dev\go\pkg\tool\windows_amd64
set CC=gcc
set GOGCCFLAGS=-m64 -mthreads -fmessage-length=0 -fdebug-prefix-map=C:\Users\brainman\AppData\Local\Temp\go-build481916006=/tmp/go-build -gno-record-gcc-switches
set CXX=g++
set CGO_ENABLED=1

What did you do?

go tool dist test -no-rebuild -run=testcarchive

What did you expect to see?

Test should PASS.

What did you see instead?

##### ../misc/cgo/testcarchive
--- FAIL: TestInstall (2.44s)
        carchive_test.go:136: [gcc -m64 -mthreads -fmessage-length=0 -fdebug-prefix-map=C:\Users\brainman\AppData\Local\Temp\go-build949359042=/tmp/go-build -gno-record-gcc-switches -I pkg\windows_amd64 -o testp.exe main.c main_windows.c pkg\windows_amd64\libgo.a -lntdll -lws2_32 -lwinmm]
        carchive_test.go:136: [gcc -m64 -mthreads -fmessage-length=0 -fdebug-prefix-map=C:\Users\brainman\AppData\Local\Temp\go-build949359042=/tmp/go-build -gno-record-gcc-switches -I pkg\windows_amd64 -o testp.exe main.c main_windows.c libgo.a -lntdll -lws2_32 -lwinmm]
        carchive_test.go:139: c:/dev/mingw64_4.9.1/bin/../lib/gcc/x86_64-w64-mingw32/4.9.1/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot open output file testp.exe: Permission denied
                collect2.exe: error: ld returned 1 exit status
        carchive_test.go:140: exit status 1
FAIL
2016/10/14 16:51:37 Failed: exit status 1

(this only happens sometimes).

I think it is variation of #11217.

Alex

@gopherbot
Copy link
Contributor

CL https://golang.org/cl/31112 mentions this issue.

@golang golang locked and limited conversation to collaborators Oct 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants