{"action":"created","issue":{"url":"https://api.github.com/repos/golang/go/issues/10334","labels_url":"https://api.github.com/repos/golang/go/issues/10334/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/10334/comments","events_url":"https://api.github.com/repos/golang/go/issues/10334/events","html_url":"https://github.com/golang/go/issues/10334","id":66182666,"number":10334,"title":"runtime/cgo: _check_for_64_bit_pointer_matching_GoInt declared as an array with a negative size","user":{"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},"labels":[{"url":"https://api.github.com/repos/golang/go/labels/repo-main","name":"repo-main","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/golang/go/milestones/1","html_url":"https://github.com/golang/go/milestones/Go1.5","labels_url":"https://api.github.com/repos/golang/go/milestones/1/labels","id":905105,"number":1,"title":"Go1.5","description":"","creator":{"login":"bradfitz","id":2621,"avatar_url":"https://avatars.githubusercontent.com/u/2621?v=3","gravatar_id":"","url":"https://api.github.com/users/bradfitz","html_url":"https://github.com/bradfitz","followers_url":"https://api.github.com/users/bradfitz/followers","following_url":"https://api.github.com/users/bradfitz/following{/other_user}","gists_url":"https://api.github.com/users/bradfitz/gists{/gist_id}","starred_url":"https://api.github.com/users/bradfitz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradfitz/subscriptions","organizations_url":"https://api.github.com/users/bradfitz/orgs","repos_url":"https://api.github.com/users/bradfitz/repos","events_url":"https://api.github.com/users/bradfitz/events{/privacy}","received_events_url":"https://api.github.com/users/bradfitz/received_events","type":"User","site_admin":false},"open_issues":290,"closed_issues":236,"state":"open","created_at":"2014-12-16T02:26:41Z","updated_at":"2015-04-03T16:42:25Z","due_on":"2015-07-31T04:00:00Z","closed_at":null},"comments":2,"created_at":"2015-04-03T16:42:25Z","updated_at":"2015-04-03T16:57:22Z","closed_at":null,"body":"`iostest.bash` fails for me right now with:\r\n\r\n```\r\n# runtime/cgo\r\nIn file included from $WORK/runtime/cgo/_obj/_cgo_export.c:2:\r\n/var/folders/jw/xrvq7wz95p5bwvjyx9yc2npm390cfb/T/go-build406231563/runtime/cgo/_obj/_cgo_export.h:23:55: error: '_check_for_64_bit_pointer_matching_GoInt' declared as an array with a negative size\r\n```\r\n\r\nGo repo at 21ed40c8cb4795433bda0cfb7754db5603a916f0. clang version `Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn), Target: x86_64-apple-darwin14.1.0`. Using a regular, locked iPhone 6.\r\n\r\nFull build log:\r\n\r\n```bash\r\n$ ./iostest.bash \r\nRestarting device.\r\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\r\n<plist version=\"1.0\">\r\n<dict>\r\n\t<key>GasGauge</key>\r\n\t<dict>\r\n\t\t<key>CycleCount</key>\r\n\t\t<integer>137</integer>\r\n\t\t<key>DesignCapacity</key>\r\n\t\t<integer>1751</integer>\r\n\t\t<key>FullChargeCapacity</key>\r\n\t\t<integer>1800</integer>\r\n\t\t<key>Status</key>\r\n\t\t<string>Success</string>\r\n\t</dict>\r\n\t<key>HDMI</key>\r\n\t<dict>\r\n\t\t<key>Connection</key>\r\n\t\t<string>Unplugged</string>\r\n\t\t<key>Status</key>\r\n\t\t<string>Success</string>\r\n\t</dict>\r\n\t<key>NAND</key>\r\n\t<dict>\r\n\t\t<key>Status</key>\r\n\t\t<string>NANDInfoFailed</string>\r\n\t</dict>\r\n\t<key>WiFi</key>\r\n\t<dict>\r\n\t\t<key>Active</key>\r\n\t\t<string>YES</string>\r\n\t\t<key>Status</key>\r\n\t\t<string>Success</string>\r\n\t</dict>\r\n</dict>\r\n</plist>\r\n\r\n##### Building Go bootstrap tool.\r\ncmd/dist\r\n\r\n##### Building Go toolchain using /Users/jbleechersnyder/src/go-1.4.\r\nbootstrap/internal/gc/big\r\nbootstrap/internal/obj\r\nbootstrap/asm/internal/flags\r\nbootstrap/internal/obj/arm\r\nbootstrap/internal/ld\r\nbootstrap/internal/obj/x86\r\nbootstrap/internal/obj/arm64\r\nbootstrap/internal/obj/ppc64\r\nbootstrap/asm/internal/lex\r\nbootstrap/internal/asm\r\nbootstrap/internal/gc\r\nbootstrap/old5a\r\nbootstrap/old9a\r\nbootstrap/asm/internal/arch\r\nbootstrap/old6a\r\nbootstrap/old8a\r\nbootstrap/asm/internal/asm\r\nbootstrap/asm\r\nbootstrap/5l\r\nbootstrap/6l\r\nbootstrap/7l\r\nbootstrap/8l\r\nbootstrap/9l\r\nbootstrap/5g\r\nbootstrap/6g\r\nbootstrap/7g\r\nbootstrap/8g\r\nbootstrap/9g\r\n\r\n##### Building compilers and go_bootstrap for host, darwin/amd64.\r\nruntime\r\nerrors\r\nsync/atomic\r\nsync\r\nio\r\nunicode\r\nunicode/utf8\r\nunicode/utf16\r\nbytes\r\nmath\r\nstrings\r\nstrconv\r\nbufio\r\nsort\r\ncontainer/heap\r\nencoding/base64\r\nsyscall\r\ntime\r\ninternal/syscall/windows\r\nos\r\nreflect\r\nfmt\r\nencoding\r\nencoding/binary\r\nencoding/json\r\nflag\r\npath/filepath\r\npath\r\nio/ioutil\r\nlog\r\nregexp/syntax\r\nregexp\r\ngo/token\r\ngo/scanner\r\ngo/ast\r\ngo/parser\r\nos/exec\r\nos/signal\r\nnet/url\r\ntext/template/parse\r\ntext/template\r\ngo/doc\r\ngo/build\r\ncmd/go\r\n\r\n##### Building packages and commands for darwin/amd64.\r\nmath/rand\r\ncmd/internal/obj\r\nhash\r\ntext/tabwriter\r\narchive/tar\r\ncompress/flate\r\ncompress/bzip2\r\ncompress/lzw\r\ncrypto\r\ncrypto/md5\r\nruntime/pprof\r\ncmd/internal/gc/big\r\nhash/crc32\r\nhash/adler32\r\ncontainer/list\r\ncontainer/ring\r\ncrypto/subtle\r\nmath/big\r\ncrypto/cipher\r\ncrypto/sha512\r\ncrypto/hmac\r\ncrypto/rc4\r\ncrypto/sha1\r\ncrypto/sha256\r\ncrypto/aes\r\narchive/zip\r\ncompress/gzip\r\ncompress/zlib\r\ncrypto/des\r\nencoding/hex\r\nencoding/pem\r\ndebug/dwarf\r\ngo/printer\r\ndatabase/sql/driver\r\ndebug/gosym\r\ndatabase/sql\r\ncmd/internal/obj/arm\r\ndebug/plan9obj\r\nencoding/ascii85\r\nencoding/base32\r\nencoding/csv\r\nencoding/gob\r\ncmd/internal/gc\r\nencoding/xml\r\nmime\r\ncrypto/dsa\r\ncrypto/elliptic\r\nencoding/asn1\r\ncrypto/rand\r\ndebug/elf\r\ncrypto/rsa\r\ndebug/macho\r\ndebug/pe\r\ncrypto/ecdsa\r\ncrypto/x509/pkix\r\nmime/quotedprintable\r\nnet/http/internal\r\ninternal/format\r\nhash/crc64\r\nhash/fnv\r\nhtml\r\nimage/color\r\nindex/suffixarray\r\ncmd/cgo\r\ngo/format\r\nimage\r\nimage/color/palette\r\ninternal/mime\r\ninternal/trace\r\nmath/cmplx\r\nhtml/template\r\nnet/internal/socktest\r\nruntime/debug\r\nruntime/race\r\ntesting\r\ntesting/iotest\r\ntesting/quick\r\nimage/internal/imageutil\r\nimage/png\r\ntext/scanner\r\nimage/draw\r\nimage/jpeg\r\ncmd/internal/ld\r\nimage/gif\r\ncmd/internal/obj/x86\r\ncmd/internal/obj/arm64\r\ncmd/internal/obj/ppc64\r\ncmd/internal/goobj\r\ncmd/internal/rsc.io/arm/armasm\r\ncmd/internal/rsc.io/x86/x86asm\r\ncmd/asm/internal/flags\r\ncmd/dist\r\ncmd/asm/internal/lex\r\ncmd/fix\r\ncmd/asm/internal/arch\r\ncmd/gofmt\r\ncmd/asm/internal/asm\r\ncmd/internal/objfile\r\ncmd/asm\r\ncmd/addr2line\r\nruntime/cgo\r\ncmd/internal/asm\r\ncmd/link\r\ncmd/nm\r\ncmd/5l\r\ncmd/6l\r\ncmd/7l\r\ncmd/8l\r\ncmd/9l\r\ncmd/objdump\r\n# runtime/cgo\r\nIn file included from $WORK/runtime/cgo/_obj/_cgo_export.c:2:\r\n/var/folders/jw/xrvq7wz95p5bwvjyx9yc2npm390cfb/T/go-build406231563/runtime/cgo/_obj/_cgo_export.h:23:55: error: '_check_for_64_bit_pointer_matching_GoInt' declared as an array with a negative size\r\ncmd/old5a\r\ncmd/old6a\r\ncmd/old8a\r\ncmd/old9a\r\ncmd/pack\r\ncmd/pprof/internal/profile\r\ncmd/pprof/internal/svg\r\ncmd/pprof/internal/tempfile\r\ncmd/yacc\r\ncmd/pprof/internal/plugin\r\ncmd/pprof/internal/symbolz\r\ncmd/pprof/internal/report\r\ncmd/pprof/internal/symbolizer\r\ncmd/pprof/internal/commands\r\ncmd/pprof/internal/driver\r\ncmd/5g\r\ncmd/6g\r\ncmd/7g\r\ncmd/8g\r\ncmd/9g\r\n```\r\n\r\n/cc @crawshaw @minux "},"comment":{"url":"https://api.github.com/repos/golang/go/issues/comments/89353616","html_url":"https://github.com/golang/go/issues/10334#issuecomment-89353616","issue_url":"https://api.github.com/repos/golang/go/issues/10334","id":89353616,"user":{"login":"crawshaw","id":161319,"avatar_url":"https://avatars.githubusercontent.com/u/161319?v=3","gravatar_id":"","url":"https://api.github.com/users/crawshaw","html_url":"https://github.com/crawshaw","followers_url":"https://api.github.com/users/crawshaw/followers","following_url":"https://api.github.com/users/crawshaw/following{/other_user}","gists_url":"https://api.github.com/users/crawshaw/gists{/gist_id}","starred_url":"https://api.github.com/users/crawshaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crawshaw/subscriptions","organizations_url":"https://api.github.com/users/crawshaw/orgs","repos_url":"https://api.github.com/users/crawshaw/repos","events_url":"https://api.github.com/users/crawshaw/events{/privacy}","received_events_url":"https://api.github.com/users/crawshaw/received_events","type":"User","site_admin":false},"created_at":"2015-04-03T16:57:22Z","updated_at":"2015-04-03T16:57:22Z","body":"As @minux said, you may be setting CC=clangwrap.sh instead of CC_FOR_TARGET=clangwrap.sh."}}