{"action":"created","issue":{"url":"https://api.github.com/repos/golang/go/issues/15491","repository_url":"https://api.github.com/repos/golang/go","labels_url":"https://api.github.com/repos/golang/go/issues/15491/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/15491/comments","events_url":"https://api.github.com/repos/golang/go/issues/15491/events","html_url":"https://github.com/golang/go/issues/15491","id":151934943,"number":15491,"title":"x/{tools,net}: internal compiler error","user":{"login":"OneOfOne","id":1080443,"avatar_url":"https://avatars.githubusercontent.com/u/1080443?v=3","gravatar_id":"","url":"https://api.github.com/users/OneOfOne","html_url":"https://github.com/OneOfOne","followers_url":"https://api.github.com/users/OneOfOne/followers","following_url":"https://api.github.com/users/OneOfOne/following{/other_user}","gists_url":"https://api.github.com/users/OneOfOne/gists{/gist_id}","starred_url":"https://api.github.com/users/OneOfOne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OneOfOne/subscriptions","organizations_url":"https://api.github.com/users/OneOfOne/orgs","repos_url":"https://api.github.com/users/OneOfOne/repos","events_url":"https://api.github.com/users/OneOfOne/events{/privacy}","received_events_url":"https://api.github.com/users/OneOfOne/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"griesemer","id":8528975,"avatar_url":"https://avatars.githubusercontent.com/u/8528975?v=3","gravatar_id":"","url":"https://api.github.com/users/griesemer","html_url":"https://github.com/griesemer","followers_url":"https://api.github.com/users/griesemer/followers","following_url":"https://api.github.com/users/griesemer/following{/other_user}","gists_url":"https://api.github.com/users/griesemer/gists{/gist_id}","starred_url":"https://api.github.com/users/griesemer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/griesemer/subscriptions","organizations_url":"https://api.github.com/users/griesemer/orgs","repos_url":"https://api.github.com/users/griesemer/repos","events_url":"https://api.github.com/users/griesemer/events{/privacy}","received_events_url":"https://api.github.com/users/griesemer/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/golang/go/milestones/31","html_url":"https://github.com/golang/go/milestones/Go1.7","labels_url":"https://api.github.com/repos/golang/go/milestones/31/labels","id":1414133,"number":31,"title":"Go1.7","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":285,"closed_issues":302,"state":"open","created_at":"2015-11-16T16:57:07Z","updated_at":"2016-04-29T18:49:43Z","due_on":"2016-07-31T07:00:00Z","closed_at":null},"comments":3,"created_at":"2016-04-29T18:06:31Z","updated_at":"2016-04-29T22:01:49Z","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`go version devel +d8d3351 2016-04-29 16:20:18 +0000 linux/amd64 (compiled with GO_GCFLAGS \"-newexport=0\" to support gocode).`\r\n\r\n2. What operating system and processor architecture are you using (`go env`)?\r\n\r\n3. What did you do?\r\n`go get -u golang.org/x/tools/...`\r\n\r\n4. What did you expect to see?\r\nno error\r\n\r\n5. What did you see instead?\r\n\r\nThe apocalypse, the sky started falling, the rivers turned red, and then this destroyed my terminal:\r\nhttps://gist.github.com/OneOfOne/5cc8d8dd3230e35bf3083e9c7ceee1c5\r\n\r\nI can't bisect now but I'd almost bet it has something to do with https://github.com/golang/go/commit/fa9435cdff443d12c526b0436435925dd52e8503 "},"comment":{"url":"https://api.github.com/repos/golang/go/issues/comments/215893568","html_url":"https://github.com/golang/go/issues/15491#issuecomment-215893568","issue_url":"https://api.github.com/repos/golang/go/issues/15491","id":215893568,"user":{"login":"griesemer","id":8528975,"avatar_url":"https://avatars.githubusercontent.com/u/8528975?v=3","gravatar_id":"","url":"https://api.github.com/users/griesemer","html_url":"https://github.com/griesemer","followers_url":"https://api.github.com/users/griesemer/followers","following_url":"https://api.github.com/users/griesemer/following{/other_user}","gists_url":"https://api.github.com/users/griesemer/gists{/gist_id}","starred_url":"https://api.github.com/users/griesemer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/griesemer/subscriptions","organizations_url":"https://api.github.com/users/griesemer/orgs","repos_url":"https://api.github.com/users/griesemer/repos","events_url":"https://api.github.com/users/griesemer/events{/privacy}","received_events_url":"https://api.github.com/users/griesemer/received_events","type":"User","site_admin":false},"created_at":"2016-04-29T22:01:49Z","updated_at":"2016-04-29T22:01:49Z","body":"I can reproduce this. It appears to happen when the std lib is compiled with `-newexport=0` but `go get` is run without `-gcflags=\"-newexport=0\"` (and thus uses the new export format). It does not happen when the new (or old, for that matter) export format is used throughout.\r\n```\r\ngri-macmini:x gri$ go get -u golang.org/x/tools/...\r\n# golang.org/x/tools/blog\r\ntools/blog/blog.go:24: inconsistent definition for type reflect.rtype during import\r\n\tstruct { size uintptr; ptrdata uintptr; hash uint32; tflag reflect.tflag; align uint8; fieldAlign uint8; kind uint8; alg *reflect.typeAlg; gcdata *byte; str reflect.nameOff; _ int32 } (in \"encoding/json\")\r\n\tstruct { size uintptr; ptrdata uintptr; hash uint32; tflag reflect.tflag; align uint8; fieldAlign uint8; kind uint8; alg *reflect.typeAlg; gcdata *byte; str reflect.nameOff; _ int32 } (in \"golang.org/x/tools/present\")\r\n# golang.org/x/tools/cmd/eg\r\ntools/cmd/eg/eg.go:18: internal compiler error: importer: empty package name in import\r\n\r\ngoroutine 1 [running]:\r\nruntime/debug.Stack(0x0, 0x0, 0x0)\r\n\t/Users/gri/go/src/runtime/debug/stack.go:24 +0x6f\r\ncmd/compile/internal/gc.Fatalf(0x4c6464, 0x26, 0x0, 0x0, 0x0)\r\n\t/Users/gri/go/src/cmd/compile/internal/gc/subr.go:158 +0x236\r\ncmd/compile/internal/gc.(*importer).pkg(0xc8208998c0, 0xc820a3a17c)\r\n\t/Users/gri/go/src/cmd/compile/internal/gc/bimport.go:204 +0x68a\r\ncmd/compile/internal/gc.(*importer).param(0xc8208998c0, 0x1, 0x1)\r\n\t/Users/gri/go/src/cmd/compile/internal/gc/bimport.go:572 +0x15a\r\ncmd/compile/internal/gc.(*importer).paramList(0xc8208998c0, 0xc820a402c0, 0x3, 0x3)\r\n\t/Users/gri/go/src/cmd/compile/internal/gc/bimport.go:546 +0xa0\r\ncmd/compile/internal/gc.(*importer).typ(0xc8208998c0, 0xffffffffffffff12)\r\n\t/Users/gri/go/src/cmd/compile/internal/gc/bimport.go:363 +0x242\r\ncmd/compile/internal/gc.(*importer).typ(0xc8208998c0, 0xc8209e6150)\r\n\t/Users/gri/go/src/cmd/compile/internal/gc/bimport.go:410 +0xedb\r\ncmd/compile/internal/gc.(*importer).field(0xc8208998c0, 0xc8209e4990)\r\n\t/Users/gri/go/src/cmd/compile/internal/gc/bimport.go:469 +0x4b\r\ncmd/compile/internal/gc.(*importer).fieldList(0xc8208998c0, 0xffffffffffffff16, 0xc8209e2690, 0x0)\r\n\t/Users/gri/go/src/cmd/compile/internal/gc/bimport.go:459 +0x85\r\ncmd/compile/internal/gc.(*importer).typ(0xc8208998c0, 0xc8209e25f0)\r\n\t/Users/gri/go/src/cmd/compile/internal/gc/bimport.go:406 +0xb74\r\ncmd/compile/internal/gc.(*importer).typ(0xc8208998c0, 0xffffffffffffff12)\r\n\t/Users/gri/go/src/cmd/compile/internal/gc/bimport.go:341 +0x138\r\ncmd/compile/internal/gc.(*importer).typ(0xc8208998c0, 0x0)\r\n\t/Users/gri/go/src/cmd/compile/internal/gc/bimport.go:410 +0xedb\r\ncmd/compile/internal/gc.(*importer).param(0xc8208998c0, 0x1, 0x2)\r\n\t/Users/gri/go/src/cmd/compile/internal/gc/bimport.go:553 +0x30\r\ncmd/compile/internal/gc.(*importer).paramList(0xc8208998c0, 0xffffffffffffff13, 0xc8209e2550, 0xefa5)\r\n\t/Users/gri/go/src/cmd/compile/internal/gc/bimport.go:546 +0xa0\r\ncmd/compile/internal/gc.(*importer).typ(0xc8208998c0, 0xc820959dc0)\r\n\t/Users/gri/go/src/cmd/compile/internal/gc/bimport.go:414 +0xe09\r\ncmd/compile/internal/gc.(*importer).field(0xc8208998c0, 0xc8209dfef0)\r\n\t/Users/gri/go/src/cmd/compile/internal/gc/bimport.go:469 +0x4b\r\ncmd/compile/internal/gc.(*importer).fieldList(0xc8208998c0, 0xffffffffffffff16, 0xc8208d3ef0, 0x0)\r\n\t/Users/gri/go/src/cmd/compile/internal/gc/bimport.go:459 +0x85\r\ncmd/compile/internal/gc.(*importer).typ(0xc8208998c0, 0xc8203d41e0)\r\n\t/Users/gri/go/src/cmd/compile/internal/gc/bimport.go:406 +0xb74\r\ncmd/compile/internal/gc.(*importer).typ(0xc8208998c0, 0x0)\r\n\t/Users/gri/go/src/cmd/compile/internal/gc/bimport.go:341 +0x138\r\ncmd/compile/internal/gc.(*importer).obj(0xc8208998c0, 0xfffffffffffffffd)\r\n\t/Users/gri/go/src/cmd/compile/internal/gc/bimport.go:250 +0x903\r\ncmd/compile/internal/gc.Import(0xc82009c480)\r\n\t/Users/gri/go/src/cmd/compile/internal/gc/bimport.go:88 +0x338\r\ncmd/compile/internal/gc.importfile(0xc82043c790, 0x0, 0x0, 0x0)\r\n\t/Users/gri/go/src/cmd/compile/internal/gc/main.go:825 +0x902\r\ncmd/compile/internal/gc.(*parser).importdcl(0xc82043c770)\r\n\t/Users/gri/go/src/cmd/compile/internal/gc/parser.go:341 +0x160\r\ncmd/compile/internal/gc.(*parser).import_(0xc82043c770)\r\n\t/Users/gri/go/src/cmd/compile/internal/gc/parser.go:300 +0x67\r\ncmd/compile/internal/gc.(*parser).file(0xc82043c770)\r\n\t/Users/gri/go/src/cmd/compile/internal/gc/parser.go:268 +0x54\r\ncmd/compile/internal/gc.parse_file(0xc82009c180)\r\n\t/Users/gri/go/src/cmd/compile/internal/gc/parser.go:31 +0x4a\r\ncmd/compile/internal/gc.Main()\r\n\t/Users/gri/go/src/cmd/compile/internal/gc/main.go:331 +0x144e\r\ncmd/compile/internal/amd64.Main()\r\n\t/Users/gri/go/src/cmd/compile/internal/amd64/galign.go:96 +0x381\r\nmain.main()\r\n\t/Users/gri/go/src/cmd/compile/main.go:33 +0x286\r\n\r\n```\r\nAnalysis: The original error report (inconsistent definition...) is likely due to incorrect *Symbol setup in the compiler (wrong package). The 2nd error (empty package...) may be related."}}