{"action":"opened","issue":{"url":"https://api.github.com/repos/golang/go/issues/10310","labels_url":"https://api.github.com/repos/golang/go/issues/10310/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/10310/comments","events_url":"https://api.github.com/repos/golang/go/issues/10310/events","html_url":"https://github.com/golang/go/issues/10310","id":65718475,"number":10310,"title":"Problems with cross-compiling gccgo - go tool is in target and not in source format","user":{"login":"samm-git","id":1388875,"avatar_url":"https://avatars.githubusercontent.com/u/1388875?v=3","gravatar_id":"","url":"https://api.github.com/users/samm-git","html_url":"https://github.com/samm-git","followers_url":"https://api.github.com/users/samm-git/followers","following_url":"https://api.github.com/users/samm-git/following{/other_user}","gists_url":"https://api.github.com/users/samm-git/gists{/gist_id}","starred_url":"https://api.github.com/users/samm-git/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samm-git/subscriptions","organizations_url":"https://api.github.com/users/samm-git/orgs","repos_url":"https://api.github.com/users/samm-git/repos","events_url":"https://api.github.com/users/samm-git/events{/privacy}","received_events_url":"https://api.github.com/users/samm-git/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-01T16:01:21Z","updated_at":"2015-04-01T16:01:21Z","closed_at":null,"body":"Hi. \r\nI am trying to build go cross compilation toolchain for the powerpcspe arch. I am using snapshot of GCC5  and crosstool-ng. GCCGO builds and run just fine, but \"go\" command is built for the target arch, so i cant use it on the build host. Here is an example, correct arch, g++:\r\n```\r\nbuilder@5dc5de8d9844:~$ file x-tools/powerpc-e500v2-linux-gnuspe/bin/powerpc-e500v2-linux-gnuspe-gcc\r\nx-tools/powerpc-e500v2-linux-gnuspe/bin/powerpc-e500v2-linux-gnuspe-gcc: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.26, BuildID[sha1]=0xa447f175ef636962a6445e2cd8579371abb23898, stripped\r\n```\r\nCorrect arch, gccgo:\r\n```\r\nbuilder@5dc5de8d9844:~$ file x-tools/powerpc-e500v2-linux-gnuspe/bin/powerpc-e500v2-linux-gnuspe-gccgo\r\nx-tools/powerpc-e500v2-linux-gnuspe/bin/powerpc-e500v2-linux-gnuspe-gccgo: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.26, BuildID[sha1]=0x3f95ab813c5f38204fc1938fc61a28c6e56cc4c0, stripped\r\n```\r\nWrong arch, go tool:\r\n```\r\nbuilder@5dc5de8d9844:~$ file x-tools/powerpc-e500v2-linux-gnuspe/bin/powerpc-e500v2-linux-gnuspe-go\r\nx-tools/powerpc-e500v2-linux-gnuspe/bin/powerpc-e500v2-linux-gnuspe-go: ELF 32-bit MSB executable, PowerPC or cisco 4500, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 3.9.11, with unknown capability 0x41000000 = 0x11676e75, with unknown capability 0x10000 = 0x90402, not stripped\r\n```\r\nBecause of this limitation i am unable to compile anything for the target platform if \"go\" is required. What do i need to get \"go\" tool in native format usable for crosscompilation?"}}