{"action":"created","issue":{"url":"https://api.github.com/repos/frostschutz/go-nbd/issues/2","labels_url":"https://api.github.com/repos/frostschutz/go-nbd/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/frostschutz/go-nbd/issues/2/comments","events_url":"https://api.github.com/repos/frostschutz/go-nbd/issues/2/events","html_url":"https://github.com/frostschutz/go-nbd/issues/2","id":76507919,"number":2,"title":"Can not use `goxc`","user":{"login":"swill","id":13644,"avatar_url":"https://avatars.githubusercontent.com/u/13644?v=3","gravatar_id":"","url":"https://api.github.com/users/swill","html_url":"https://github.com/swill","followers_url":"https://api.github.com/users/swill/followers","following_url":"https://api.github.com/users/swill/following{/other_user}","gists_url":"https://api.github.com/users/swill/gists{/gist_id}","starred_url":"https://api.github.com/users/swill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swill/subscriptions","organizations_url":"https://api.github.com/users/swill/orgs","repos_url":"https://api.github.com/users/swill/repos","events_url":"https://api.github.com/users/swill/events{/privacy}","received_events_url":"https://api.github.com/users/swill/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-14T22:18:59Z","updated_at":"2015-05-15T11:05:16Z","closed_at":null,"body":"Is this expected?\r\n\r\nI get the following issue when I try to cross compile this library...\r\n\r\n```\r\n$ goxc\r\ngo tool: no such tool \"vet\"; to install:\r\n\tgo get golang.org/x/tools/cmd/vet\r\n[goxc:go-vet] 2015/05/14 18:17:41 'go' returned error: exit status 3\r\n[goxc:go-vet] 2015/05/14 18:17:41 Go-vet failed (goxc just treats this as a warning for now)\r\n[goxc:go-vet] 2015/05/14 18:17:41 Task go-vet succeeded\r\n?   \tgithub.com/frostschutz/go-nbd\t[no test files]\r\n?   \tgithub.com/frostschutz/go-nbd/nbdsetup\t[no test files]\r\n[goxc:go-test] 2015/05/14 18:17:41 Task go-test succeeded\r\n[goxc:go-install] 2015/05/14 18:17:41 Task go-install succeeded\r\n[goxc:xc] 2015/05/14 18:17:41 Parallelizing xc for 22 platforms, using max 7 of 8 processors\r\n# github.com/frostschutz/nbd\r\n../../nbd/nbd.go:52: undefined: syscall.SYS_IOCTL\r\n../../nbd/nbd.go:52: not enough arguments in call to syscall.Syscall\r\n../../nbd/nbd.go:116: undefined: syscall.Socketpair\r\n../../nbd/nbd.go:185: cannot use nbd.socket (type int) as type syscall.Handle in argument to syscall.Read\r\n../../nbd/nbd.go:202: cannot use nbd.socket (type int) as type syscall.Handle in argument to syscall.Write\r\n../../nbd/nbd.go:204: cannot use nbd.socket (type int) as type syscall.Handle in argument to syscall.Read\r\n../../nbd/nbd.go:206: cannot use nbd.socket (type int) as type syscall.Handle in argument to syscall.Read\r\n../../nbd/nbd.go:212: cannot use nbd.socket (type int) as type syscall.Handle in argument to syscall.Write\r\n../../nbd/nbd.go:220: cannot use nbd.socket (type int) as type syscall.Handle in argument to syscall.Write\r\n[goxc:xc] 2015/05/14 18:17:42 'go' returned error: exit status 2\r\n[goxc:xc] 2015/05/14 18:17:42 Error: exit status 2\r\n[goxc:xc] 2015/05/14 18:17:42 Have you run `goxc -t` for this platform (amd64,windows)???\r\n# github.com/frostschutz/nbd\r\n../../nbd/nbd.go:52: undefined: syscall.SYS_IOCTL\r\n../../nbd/nbd.go:52: not enough arguments in call to syscall.Syscall\r\n../../nbd/nbd.go:116: undefined: syscall.Socketpair\r\n../../nbd/nbd.go:185: cannot use nbd.socket (type int) as type syscall.Handle in argument to syscall.Read\r\n../../nbd/nbd.go:202: cannot use nbd.socket (type int) as type syscall.Handle in argument to syscall.Write\r\n../../nbd/nbd.go:204: cannot use nbd.socket (type int) as type syscall.Handle in argument to syscall.Read\r\n../../nbd/nbd.go:206: cannot use nbd.socket (type int) as type syscall.Handle in argument to syscall.Read\r\n../../nbd/nbd.go:212: cannot use nbd.socket (type int) as type syscall.Handle in argument to syscall.Write\r\n../../nbd/nbd.go:220: cannot use nbd.socket (type int) as type syscall.Handle in argument to syscall.Write\r\n[goxc:xc] 2015/05/14 18:17:42 'go' returned error: exit status 2\r\n[goxc:xc] 2015/05/14 18:17:42 Error: exit status 2\r\n[goxc:xc] 2015/05/14 18:17:42 Have you run `goxc -t` for this platform (386,windows)???\r\n# github.com/frostschutz/nbd\r\n../../nbd/nbd.go:52: undefined: syscall.SYS_IOCTL\r\n# github.com/frostschutz/nbd\r\n../../nbd/nbd.go:52: undefined: syscall.SYS_IOCTL\r\n../../nbd/nbd.go:53: cannot convert 0 to type syscall.ErrorString\r\n../../nbd/nbd.go:53: invalid operation: errno != 0 (mismatched types syscall.ErrorString and int)\r\n../../nbd/nbd.go:116: undefined: syscall.Socketpair\r\n../../nbd/nbd.go:116: undefined: syscall.SOCK_STREAM\r\n../../nbd/nbd.go:116: undefined: syscall.AF_UNIX\r\n[goxc:xc] 2015/05/14 18:17:42 'go' returned error: exit status 2\r\n[goxc:xc] 2015/05/14 18:17:42 Error: exit status 2\r\n[goxc:xc] 2015/05/14 18:17:42 Have you run `goxc -t` for this platform (386,nacl)???\r\n# github.com/frostschutz/nbd\r\n../../nbd/nbd.go:52: undefined: syscall.SYS_IOCTL\r\n[goxc:xc] 2015/05/14 18:17:42 'go' returned error: exit status 2\r\n[goxc:xc] 2015/05/14 18:17:42 Error: exit status 2\r\n[goxc:xc] 2015/05/14 18:17:42 Have you run `goxc -t` for this platform (386,plan9)???\r\n[goxc:xc] 2015/05/14 18:17:42 'go' returned error: exit status 2\r\n[goxc:xc] 2015/05/14 18:17:42 Error: exit status 2\r\n[goxc:xc] 2015/05/14 18:17:42 Have you run `goxc -t` for this platform (amd64p32,nacl)???\r\n# github.com/frostschutz/nbd\r\n../../nbd/nbd.go:52: undefined: syscall.SYS_IOCTL\r\n[goxc:xc] 2015/05/14 18:17:42 'go' returned error: exit status 2\r\n[goxc:xc] 2015/05/14 18:17:42 Error: exit status 2\r\n[goxc:xc] 2015/05/14 18:17:42 Have you run `goxc -t` for this platform (amd64,solaris)???\r\n# github.com/frostschutz/nbd\r\n../../nbd/nbd.go:52: undefined: syscall.SYS_IOCTL\r\n[goxc:xc] 2015/05/14 18:17:42 'go' returned error: exit status 2\r\n[goxc:xc] 2015/05/14 18:17:42 Error: exit status 2\r\n[goxc:xc] 2015/05/14 18:17:42 Have you run `goxc -t` for this platform (arm,nacl)???\r\n[goxc:xc] 2015/05/14 18:17:42 Multiple errors (returning first one): [exit status 2 exit status 2 exit status 2 exit status 2 exit status 2 exit status 2 exit status 2]\r\n[goxc:xc] 2015/05/14 18:17:42 Stopping after 'xc' failed with error 'exit status 2'\r\n[goxc] 2015/05/14 18:17:42 RunTasks error: exit status 2\r\n```"},"comment":{"url":"https://api.github.com/repos/frostschutz/go-nbd/issues/comments/102370773","html_url":"https://github.com/frostschutz/go-nbd/issues/2#issuecomment-102370773","issue_url":"https://api.github.com/repos/frostschutz/go-nbd/issues/2","id":102370773,"user":{"login":"frostschutz","id":194658,"avatar_url":"https://avatars.githubusercontent.com/u/194658?v=3","gravatar_id":"","url":"https://api.github.com/users/frostschutz","html_url":"https://github.com/frostschutz","followers_url":"https://api.github.com/users/frostschutz/followers","following_url":"https://api.github.com/users/frostschutz/following{/other_user}","gists_url":"https://api.github.com/users/frostschutz/gists{/gist_id}","starred_url":"https://api.github.com/users/frostschutz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frostschutz/subscriptions","organizations_url":"https://api.github.com/users/frostschutz/orgs","repos_url":"https://api.github.com/users/frostschutz/repos","events_url":"https://api.github.com/users/frostschutz/events{/privacy}","received_events_url":"https://api.github.com/users/frostschutz/received_events","type":"User","site_admin":false},"created_at":"2015-05-15T11:05:16Z","updated_at":"2015-05-15T11:05:16Z","body":"I guess I should add build constraints or something..."}}