{"action":"created","issue":{"url":"https://api.github.com/repos/golang/go/issues/13375","labels_url":"https://api.github.com/repos/golang/go/issues/13375/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/13375/comments","events_url":"https://api.github.com/repos/golang/go/issues/13375/events","html_url":"https://github.com/golang/go/issues/13375","id":118462324,"number":13375,"title":"cmd/link:  cgo test errors when building golang master on RHEL 7.2 and SLES 12 SP1","user":{"login":"laboger","id":9433228,"avatar_url":"https://avatars.githubusercontent.com/u/9433228?v=3","gravatar_id":"","url":"https://api.github.com/users/laboger","html_url":"https://github.com/laboger","followers_url":"https://api.github.com/users/laboger/followers","following_url":"https://api.github.com/users/laboger/following{/other_user}","gists_url":"https://api.github.com/users/laboger/gists{/gist_id}","starred_url":"https://api.github.com/users/laboger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laboger/subscriptions","organizations_url":"https://api.github.com/users/laboger/orgs","repos_url":"https://api.github.com/users/laboger/repos","events_url":"https://api.github.com/users/laboger/events{/privacy}","received_events_url":"https://api.github.com/users/laboger/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/golang/go/milestones/24","html_url":"https://github.com/golang/go/milestones/Go1.6","labels_url":"https://api.github.com/repos/golang/go/milestones/24/labels","id":1096159,"number":24,"title":"Go1.6","description":"","creator":{"login":"josharian","id":67496,"avatar_url":"https://avatars.githubusercontent.com/u/67496?v=3","gravatar_id":"","url":"https://api.github.com/users/josharian","html_url":"https://github.com/josharian","followers_url":"https://api.github.com/users/josharian/followers","following_url":"https://api.github.com/users/josharian/following{/other_user}","gists_url":"https://api.github.com/users/josharian/gists{/gist_id}","starred_url":"https://api.github.com/users/josharian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josharian/subscriptions","organizations_url":"https://api.github.com/users/josharian/orgs","repos_url":"https://api.github.com/users/josharian/repos","events_url":"https://api.github.com/users/josharian/events{/privacy}","received_events_url":"https://api.github.com/users/josharian/received_events","type":"User","site_admin":false},"open_issues":281,"closed_issues":325,"state":"open","created_at":"2015-05-05T02:39:06Z","updated_at":"2015-11-23T21:11:55Z","due_on":"2016-01-31T08:00:00Z","closed_at":null},"comments":4,"created_at":"2015-11-23T20:11:22Z","updated_at":"2015-11-23T21:15:05Z","closed_at":null,"body":"When building golang from master on a RHEL 7.2 or SLES12 SP1 distro, the cgo/test testcase fails with errors like this:\r\n\r\nok  \t_/home/boger/golang/gitsrc/latest/go/misc/cgo/test\t1.783s\r\n# testmain\r\n/usr/lib/gcc/ppc64le-redhat-linux/4.8.5/libgcc.a(_muldc3.o/): unknown relocation type 26; compiled without -fpic?\r\n/usr/lib/gcc/ppc64le-redhat-linux/4.8.5/libgcc.a(_absvsi2.o/): unknown relocation type 26; compiled without -fpic?\r\n/usr/lib/gcc/ppc64le-redhat-linux/4.8.5/libgcc.a(_absvsi2.o/): unknown relocation type 26; compiled without -fpic?\r\n/usr/lib/gcc/ppc64le-redhat-linux/4.8.5/libgcc.a(_mulsc3.o/): unknown relocation type 26; compiled without -fpic?\r\nFAIL\t_/home/boger/golang/gitsrc/latest/go/misc/cgo/test [build failed]\r\n2015/11/23 12:33:59 Failed: exit status 2\r\n\r\nNote that I have to remove the test exec_linux_test.go on RHEL 7.2 due to errors reported in #13312, or it will fail before it gets to this point.\r\n\r\nIt appears that the failures are dependent on the gcc version that is used with the build.  When it fails the gcc version is 4.8.x.  I've tried some newer gcc versions and for some the errors don't occur.  I am still experimenting with newer variations and will post that information to determine if some gcc versions other than 4.8.x also cause this failure"},"comment":{"url":"https://api.github.com/repos/golang/go/issues/comments/159066075","html_url":"https://github.com/golang/go/issues/13375#issuecomment-159066075","issue_url":"https://api.github.com/repos/golang/go/issues/13375","id":159066075,"user":{"login":"laboger","id":9433228,"avatar_url":"https://avatars.githubusercontent.com/u/9433228?v=3","gravatar_id":"","url":"https://api.github.com/users/laboger","html_url":"https://github.com/laboger","followers_url":"https://api.github.com/users/laboger/followers","following_url":"https://api.github.com/users/laboger/following{/other_user}","gists_url":"https://api.github.com/users/laboger/gists{/gist_id}","starred_url":"https://api.github.com/users/laboger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laboger/subscriptions","organizations_url":"https://api.github.com/users/laboger/orgs","repos_url":"https://api.github.com/users/laboger/repos","events_url":"https://api.github.com/users/laboger/events{/privacy}","received_events_url":"https://api.github.com/users/laboger/received_events","type":"User","site_admin":false},"created_at":"2015-11-23T21:15:04Z","updated_at":"2015-11-23T21:15:04Z","body":"Yes I will try the CL on both systems."}}