{"action":"closed","issue":{"url":"https://api.github.com/repos/golang/go/issues/13860","labels_url":"https://api.github.com/repos/golang/go/issues/13860/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/13860/comments","events_url":"https://api.github.com/repos/golang/go/issues/13860/events","html_url":"https://github.com/golang/go/issues/13860","id":125479921,"number":13860,"title":"cmd/go: linux/386 buildmode=c-shared with gccgo fails: undefined reference to '__stack_chk_fail_local'","user":{"login":"jtsylve","id":594165,"avatar_url":"https://avatars.githubusercontent.com/u/594165?v=3","gravatar_id":"","url":"https://api.github.com/users/jtsylve","html_url":"https://github.com/jtsylve","followers_url":"https://api.github.com/users/jtsylve/followers","following_url":"https://api.github.com/users/jtsylve/following{/other_user}","gists_url":"https://api.github.com/users/jtsylve/gists{/gist_id}","starred_url":"https://api.github.com/users/jtsylve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtsylve/subscriptions","organizations_url":"https://api.github.com/users/jtsylve/orgs","repos_url":"https://api.github.com/users/jtsylve/repos","events_url":"https://api.github.com/users/jtsylve/events{/privacy}","received_events_url":"https://api.github.com/users/jtsylve/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"ianlancetaylor","id":3194333,"avatar_url":"https://avatars.githubusercontent.com/u/3194333?v=3","gravatar_id":"","url":"https://api.github.com/users/ianlancetaylor","html_url":"https://github.com/ianlancetaylor","followers_url":"https://api.github.com/users/ianlancetaylor/followers","following_url":"https://api.github.com/users/ianlancetaylor/following{/other_user}","gists_url":"https://api.github.com/users/ianlancetaylor/gists{/gist_id}","starred_url":"https://api.github.com/users/ianlancetaylor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ianlancetaylor/subscriptions","organizations_url":"https://api.github.com/users/ianlancetaylor/orgs","repos_url":"https://api.github.com/users/ianlancetaylor/repos","events_url":"https://api.github.com/users/ianlancetaylor/events{/privacy}","received_events_url":"https://api.github.com/users/ianlancetaylor/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/golang/go/milestones/34","html_url":"https://github.com/golang/go/milestones/Go1.6Maybe","labels_url":"https://api.github.com/repos/golang/go/milestones/34/labels","id":1425772,"number":34,"title":"Go1.6Maybe","description":"Maybe this will happen for Go 1.6.\r\n","creator":{"login":"rsc","id":104030,"avatar_url":"https://avatars.githubusercontent.com/u/104030?v=3","gravatar_id":"","url":"https://api.github.com/users/rsc","html_url":"https://github.com/rsc","followers_url":"https://api.github.com/users/rsc/followers","following_url":"https://api.github.com/users/rsc/following{/other_user}","gists_url":"https://api.github.com/users/rsc/gists{/gist_id}","starred_url":"https://api.github.com/users/rsc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsc/subscriptions","organizations_url":"https://api.github.com/users/rsc/orgs","repos_url":"https://api.github.com/users/rsc/repos","events_url":"https://api.github.com/users/rsc/events{/privacy}","received_events_url":"https://api.github.com/users/rsc/received_events","type":"User","site_admin":false},"open_issues":14,"closed_issues":21,"state":"open","created_at":"2015-11-23T18:39:45Z","updated_at":"2016-01-13T15:14:28Z","due_on":"2016-01-31T05:00:00Z","closed_at":null},"comments":5,"created_at":"2016-01-07T20:38:58Z","updated_at":"2016-01-13T15:14:28Z","closed_at":"2016-01-13T15:14:28Z","body":"**What version of Go are you using (go version)?**\r\n`go version go1.5.1 linux/386` as well as `go version go1.6beta1 linux/386`\r\n`gccgo (Ubuntu 5.2.1-22ubuntu2) 5.2.1 20151010`\r\n\r\n**What operating system and processor architecture are you using?**\r\n`Linux ubuntu32 4.2.0-23-generic #28-Ubuntu SMP Sun Dec 27 17:48:35 UTC 2015 i686 i686 i686 GNU/Linux`\r\n\r\n**What did you do?**\r\nI'm trying to compile using `-buildmode=c-shared` and `-compiler=gccgo` since `gc` doesn't support `c-shared` on `linux/386` yet.\r\n\r\n```go\r\n// test.go\r\npackage main\r\n\r\nimport \"C\"\r\n\r\n//export test_export\r\nfunc test_export() {}\r\nfunc main()        {}\r\n```\r\n\r\n`go build -compiler=gccgo  -buildmode=c-shared -o test.so test.go`\r\n\r\n**What did you expect to see?**\r\nA compiled, working shared library\r\n\r\n**What did you see instead?**\r\n```\r\n# command-line-arguments\r\nar: `u' modifier ignored since `D' is the default (see `U')\r\n# command-line-arguments\r\n/tmp/go-build634452352/command-line-arguments/_obj/_cgo_defun.c:33: error: undefined reference to '__stack_chk_fail_local'\r\n/tmp/go-build634452352/command-line-arguments/_obj/_cgo_defun.c:37: error: undefined reference to '__stack_chk_fail_local'\r\n/tmp/go-build634452352/command-line-arguments/_obj/_cgo_defun.c:42: error: undefined reference to '__stack_chk_fail_local'\r\ncollect2: error: ld returned 1 exit status\r\n```"}}