{"action":"opened","issue":{"url":"https://api.github.com/repos/golang/go/issues/15296","repository_url":"https://api.github.com/repos/golang/go","labels_url":"https://api.github.com/repos/golang/go/issues/15296/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/15296/comments","events_url":"https://api.github.com/repos/golang/go/issues/15296/events","html_url":"https://github.com/golang/go/issues/15296","id":148294790,"number":15296,"title":"Error on FreeBSD 9.1/amd64 - go: cannot execute binary file","user":{"login":"nnathan","id":319907,"avatar_url":"https://avatars.githubusercontent.com/u/319907?v=3","gravatar_id":"","url":"https://api.github.com/users/nnathan","html_url":"https://github.com/nnathan","followers_url":"https://api.github.com/users/nnathan/followers","following_url":"https://api.github.com/users/nnathan/following{/other_user}","gists_url":"https://api.github.com/users/nnathan/gists{/gist_id}","starred_url":"https://api.github.com/users/nnathan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nnathan/subscriptions","organizations_url":"https://api.github.com/users/nnathan/orgs","repos_url":"https://api.github.com/users/nnathan/repos","events_url":"https://api.github.com/users/nnathan/events{/privacy}","received_events_url":"https://api.github.com/users/nnathan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-14T08:52:53Z","updated_at":"2016-04-14T08:52:53Z","closed_at":null,"body":"Please answer these questions before submitting your issue. Thanks!\r\n\r\n1. What version of Go are you using (`go version`)?\r\n\r\n`Go 1.6.1`\r\n\r\n2. What operating system and processor architecture are you using (`go env`)?\r\n\r\n```\r\n$ ~/go/go1.4.3/bin/go env\r\nGOARCH=\"amd64\"\r\nGOBIN=\"\"\r\nGOCHAR=\"6\"\r\nGOEXE=\"\"\r\nGOHOSTARCH=\"amd64\"\r\nGOHOSTOS=\"freebsd\"\r\nGOOS=\"freebsd\"\r\nGOPATH=\"\"\r\nGORACE=\"\"\r\nGOROOT=\"/home/naveen/go\"\r\nGOTOOLDIR=\"/home/naveen/go/pkg/tool/freebsd_amd64\"\r\nCC=\"clang\"\r\nGOGCCFLAGS=\"-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0\"\r\nCXX=\"g++\"\r\nCGO_ENABLED=\"1\"\r\n```\r\n\r\n```\r\n$ uname -a\r\nFreeBSD fully.qualfiied.domain.name 9.1-RELEASE-p3 FreeBSD 9.1-RELEASE-p3 #0: Mon Apr 29 18:27:25 UTC 2013     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64\r\n```\r\n\r\n3. What did you do?\r\n\r\nDownload the precompiled go binaries and try to run it.\r\n\r\n```\r\n$ cd /tmp; rm go1.6.1.freebsd-amd64.tar.gz; curl -sO  'https://storage.googleapis.com/golang/go1.6.1.freebsd-amd64.tar.gz'; sha256 go1.6.1.freebsd-amd64.tar.gz ; rm -rf ~/go; mkdir ~/go; tar -C ~/go -xf /tmp/go1.6.1.freebsd-amd64.tar.gz ; sha256 ~/go/go/bin/go ; ~/go/go/bin/go version\r\nSHA256 (go1.6.1.freebsd-amd64.tar.gz) = 938f15cc399c7af9dbb88804d3c2c1cc1c8bf78a25c4b70ffc865d1a476cf5c4\r\nSHA256 (/home/naveen/go/go/bin/go) = 198ed9763b7dfdf26bcf06a68e0db16694732c1bc755024dd2344e98daf86ef7\r\n-bash: /home/naveen/go/go/bin/go: cannot execute binary file\r\n```\r\n\r\n4. What did you expect to see?\r\n\r\nThe go version output.\r\n\r\n5. What did you see instead?\r\n\r\nAn error.\r\n\r\nI can use Go 1.4.3 without issue. I tried to recompile go 1.6.1 from source using Go 1.4.3 and I reproduce the same results.\r\n"}}