{"action":"created","issue":{"url":"https://api.github.com/repos/golang/go/issues/24674","repository_url":"https://api.github.com/repos/golang/go","labels_url":"https://api.github.com/repos/golang/go/issues/24674/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/24674/comments","events_url":"https://api.github.com/repos/golang/go/issues/24674/events","html_url":"https://github.com/golang/go/issues/24674","id":311040270,"number":24674,"title":"cmd/go: permission issue building CGO with Go 1.10","user":{"login":"jaricftw","id":9246439,"avatar_url":"https://avatars0.githubusercontent.com/u/9246439?v=4","gravatar_id":"","url":"https://api.github.com/users/jaricftw","html_url":"https://github.com/jaricftw","followers_url":"https://api.github.com/users/jaricftw/followers","following_url":"https://api.github.com/users/jaricftw/following{/other_user}","gists_url":"https://api.github.com/users/jaricftw/gists{/gist_id}","starred_url":"https://api.github.com/users/jaricftw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaricftw/subscriptions","organizations_url":"https://api.github.com/users/jaricftw/orgs","repos_url":"https://api.github.com/users/jaricftw/repos","events_url":"https://api.github.com/users/jaricftw/events{/privacy}","received_events_url":"https://api.github.com/users/jaricftw/received_events","type":"User","site_admin":false},"labels":[{"id":357033853,"url":"https://api.github.com/repos/golang/go/labels/WaitingForInfo","name":"WaitingForInfo","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2018-04-04T00:07:09Z","updated_at":"2018-04-09T10:48:15Z","closed_at":null,"author_association":"NONE","body":"### What version of Go are you using (`go version`)?\r\n\r\n1.10\r\n\r\n### What operating system and processor architecture are you using (`go env`)?\r\n```\r\nGOARCH=\"amd64\"\r\nGOBIN=\"\"\r\nGOCACHE=\"/home/<foo>/.cache/go-build\"\r\nGOEXE=\"\"\r\nGOHOSTARCH=\"amd64\"\r\nGOHOSTOS=\"linux\"\r\nGOOS=\"linux\"\r\nGOPATH=\"/home/<foo>/go\"\r\nGORACE=\"\"\r\nGOROOT=\"/usr/lib/go-1.10\"\r\nGOTMPDIR=\"\"\r\nGOTOOLDIR=\"/usr/lib/go-1.10/pkg/tool/linux_amd64\"\r\nGCCGO=\"gccgo\"\r\nCC=\"gcc\"\r\nCXX=\"g++\"\r\nCGO_ENABLED=\"1\"\r\nCGO_CFLAGS=\"-g -O2\"\r\nCGO_CPPFLAGS=\"\"\r\nCGO_CXXFLAGS=\"-g -O2\"\r\nCGO_FFLAGS=\"-g -O2\"\r\nCGO_LDFLAGS=\"-g -O2\"\r\nPKG_CONFIG=\"pkg-config\"\r\nGOGCCFLAGS=\"-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build884921568=/tmp/go-build -gno-record-gcc-switches\"\r\n```\r\nIntel(R) Xeon(R) CPU E5-2680\r\n\r\n### What did you do?\r\n\r\nWe have been running a go program that access rocksdb (written in c) via cgo, and it has been running fine under go 1.9. However, after upgrading to 1.10, we get the following error:\r\n\r\n`go build runtime/cgo: open /usr/lib/go-1.10/pkg/linux_amd64/runtime/cgo.a: permission denied`\r\n\r\nAnd the permissions of the cgo files:\r\n\r\n```\r\nls -l /usr/lib/go-1.10/pkg/linux_amd64/runtime/\r\ntotal 720\r\n-rw-r--r-- 1 root root  93876 Mar 29 23:49 cgo.a\r\n-rw-r--r-- 1 root root  15674 Mar 29 23:49 debug.a\r\ndrwxr-xr-x 2 root root   4096 Mar 29 23:49 internal\r\ndrwxr-xr-x 3 root root   4096 Mar 29 23:49 pprof\r\n-rw-r--r-- 1 root root 231096 Mar 29 23:49 pprof.a\r\n-rw-r--r-- 1 root root 378548 Mar 29 23:49 race.a\r\n-rw-r--r-- 1 root root   2614 Mar 29 23:49 trace.a\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/golang/go/issues/comments/379711541","html_url":"https://github.com/golang/go/issues/24674#issuecomment-379711541","issue_url":"https://api.github.com/repos/golang/go/issues/24674","id":379711541,"user":{"login":"davecheney","id":7171,"avatar_url":"https://avatars0.githubusercontent.com/u/7171?v=4","gravatar_id":"","url":"https://api.github.com/users/davecheney","html_url":"https://github.com/davecheney","followers_url":"https://api.github.com/users/davecheney/followers","following_url":"https://api.github.com/users/davecheney/following{/other_user}","gists_url":"https://api.github.com/users/davecheney/gists{/gist_id}","starred_url":"https://api.github.com/users/davecheney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davecheney/subscriptions","organizations_url":"https://api.github.com/users/davecheney/orgs","repos_url":"https://api.github.com/users/davecheney/repos","events_url":"https://api.github.com/users/davecheney/events{/privacy}","received_events_url":"https://api.github.com/users/davecheney/received_events","type":"User","site_admin":false},"created_at":"2018-04-09T10:48:15Z","updated_at":"2018-04-09T10:48:15Z","author_association":"CONTRIBUTOR","body":"@funny-falcon the issue lies with process that produced the snap, it has messed up the timestamps causing the go tool to try to rebuild the runtime. There isn't anything we can do. Sorry."}}
{"actor":{"display_login":"davecheney"}}