{"action":"created","issue":{"url":"https://api.github.com/repos/golang/go/issues/15497","repository_url":"https://api.github.com/repos/golang/go","labels_url":"https://api.github.com/repos/golang/go/issues/15497/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/15497/comments","events_url":"https://api.github.com/repos/golang/go/issues/15497/events","html_url":"https://github.com/golang/go/issues/15497","id":152024070,"number":15497,"title":"cmd/link is not working on windows/amd64 with any non-default buildmode","user":{"login":"akamensky","id":985805,"avatar_url":"https://avatars.githubusercontent.com/u/985805?v=3","gravatar_id":"","url":"https://api.github.com/users/akamensky","html_url":"https://github.com/akamensky","followers_url":"https://api.github.com/users/akamensky/followers","following_url":"https://api.github.com/users/akamensky/following{/other_user}","gists_url":"https://api.github.com/users/akamensky/gists{/gist_id}","starred_url":"https://api.github.com/users/akamensky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akamensky/subscriptions","organizations_url":"https://api.github.com/users/akamensky/orgs","repos_url":"https://api.github.com/users/akamensky/repos","events_url":"https://api.github.com/users/akamensky/events{/privacy}","received_events_url":"https://api.github.com/users/akamensky/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-30T10:55:54Z","updated_at":"2016-04-30T10:58:52Z","closed_at":null,"body":"Code used for testing and reporting: https://github.com/akamensky/cgo-example\r\n\r\n1. What version of Go are you using (`go version`)?\r\n`go version go1.6.1 windows/amd64`\r\n\r\n2. What operating system and processor architecture are you using (`go env`)?\r\n```\r\nset GOARCH=amd64\r\nset GOBIN=\r\nset GOEXE=.exe\r\nset GOHOSTARCH=amd64\r\nset GOHOSTOS=windows\r\nset GOOS=windows\r\nset GOPATH=C:\\Users\\TEST\\ClionProjects\\cgo-example\r\nset GORACE=\r\nset GOROOT=C:\\Go\r\nset GOTOOLDIR=C:\\Go\\pkg\\tool\\windows_amd64\r\nset GO15VENDOREXPERIMENT=1\r\nset CC=gcc\r\nset GOGCCFLAGS=-m64 -mthreads -fmessage-length=0\r\nset CXX=g++\r\nset CGO_ENABLED=1\r\n```\r\n\r\n3. What did you do?\r\n```\r\ngo tool link -o %WORK%\\foo\\_obj\\exe\\a.out.a -L %WORK% -extld=gcc -buildmode=c-archive %WORK%\\foo.a\r\n```\r\n\r\n4. What did you expect to see?\r\ngo linker should provide usable archive\r\n\r\n5. What did you see instead?\r\n```\r\nC:\\Users\\TEST\\ClionProjects\\cgo-example>go tool link -o C:\\tmp\\1\\foo\\_obj\\exe\\a.\r\nout.a -L C:\\tmp\\1 -extld=gcc -buildmode=c-archive C:\\tmp\\1\\foo.a\r\ninvalid value \"c-archive\" for flag -buildmode: buildmode c-archive not supported\r\n on windows/amd64\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/golang/go/issues/comments/215955036","html_url":"https://github.com/golang/go/issues/15497#issuecomment-215955036","issue_url":"https://api.github.com/repos/golang/go/issues/15497","id":215955036,"user":{"login":"akamensky","id":985805,"avatar_url":"https://avatars.githubusercontent.com/u/985805?v=3","gravatar_id":"","url":"https://api.github.com/users/akamensky","html_url":"https://github.com/akamensky","followers_url":"https://api.github.com/users/akamensky/followers","following_url":"https://api.github.com/users/akamensky/following{/other_user}","gists_url":"https://api.github.com/users/akamensky/gists{/gist_id}","starred_url":"https://api.github.com/users/akamensky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akamensky/subscriptions","organizations_url":"https://api.github.com/users/akamensky/orgs","repos_url":"https://api.github.com/users/akamensky/repos","events_url":"https://api.github.com/users/akamensky/events{/privacy}","received_events_url":"https://api.github.com/users/akamensky/received_events","type":"User","site_admin":false},"created_at":"2016-04-30T10:58:52Z","updated_at":"2016-04-30T10:58:52Z","body":"I understand the patches for this part were already submitted as #13494 is closed now. Is there a way I can apply these specific patches on 1.6 branch or should I be building master branch (which gets a lot of errors on compilation time).\r\n\r\nIs there any plan on moving these changes to some release as they are still unplanned and now even in 1.7.Maybe"}}