{"action":"created","issue":{"url":"https://api.github.com/repos/crystal-lang/crystal/issues/655","repository_url":"https://api.github.com/repos/crystal-lang/crystal","labels_url":"https://api.github.com/repos/crystal-lang/crystal/issues/655/labels{/name}","comments_url":"https://api.github.com/repos/crystal-lang/crystal/issues/655/comments","events_url":"https://api.github.com/repos/crystal-lang/crystal/issues/655/events","html_url":"https://github.com/crystal-lang/crystal/pull/655","id":75703516,"number":655,"title":"Autodetect triple if the default triple is not compatible with the rootfs","user":{"login":"ssvb","id":78642,"avatar_url":"https://avatars.githubusercontent.com/u/78642?v=3","gravatar_id":"","url":"https://api.github.com/users/ssvb","html_url":"https://github.com/ssvb","followers_url":"https://api.github.com/users/ssvb/followers","following_url":"https://api.github.com/users/ssvb/following{/other_user}","gists_url":"https://api.github.com/users/ssvb/gists{/gist_id}","starred_url":"https://api.github.com/users/ssvb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ssvb/subscriptions","organizations_url":"https://api.github.com/users/ssvb/orgs","repos_url":"https://api.github.com/users/ssvb/repos","events_url":"https://api.github.com/users/ssvb/events{/privacy}","received_events_url":"https://api.github.com/users/ssvb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-05-12T18:58:28Z","updated_at":"2016-03-18T16:10:06Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/crystal-lang/crystal/pulls/655","html_url":"https://github.com/crystal-lang/crystal/pull/655","diff_url":"https://github.com/crystal-lang/crystal/pull/655.diff","patch_url":"https://github.com/crystal-lang/crystal/pull/655.patch"},"body":"This allows to inject a statically built x86_64 Crystal compiler into\r\na 32-bit x86 Linux rootfs and successfully use it there. The compiler\r\nwill see that the x86_64 dynamic loader is not present in the system.\r\nAnd automatically override the triple configuration with the tuple\r\nstring obtained by probing the (hopefully) installed GCC or Clang.\r\n\r\nIt also makes porting Crystal to ARM, MIPS or other non-x86 systems\r\nmuch easier. Because the statically built x86_64 Crystal compiler\r\nbinary can work nicely in the QEMU user chroot and also pick the\r\nright target triple automatically.\r\n\r\nMore info:\r\n  https://wiki.debian.org/Multiarch/Tuples\r\n  https://wiki.debian.org/Multiarch/LibraryPathOverview"},"comment":{"url":"https://api.github.com/repos/crystal-lang/crystal/issues/comments/198429872","html_url":"https://github.com/crystal-lang/crystal/pull/655#issuecomment-198429872","issue_url":"https://api.github.com/repos/crystal-lang/crystal/issues/655","id":198429872,"user":{"login":"asterite","id":209371,"avatar_url":"https://avatars.githubusercontent.com/u/209371?v=3","gravatar_id":"","url":"https://api.github.com/users/asterite","html_url":"https://github.com/asterite","followers_url":"https://api.github.com/users/asterite/followers","following_url":"https://api.github.com/users/asterite/following{/other_user}","gists_url":"https://api.github.com/users/asterite/gists{/gist_id}","starred_url":"https://api.github.com/users/asterite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asterite/subscriptions","organizations_url":"https://api.github.com/users/asterite/orgs","repos_url":"https://api.github.com/users/asterite/repos","events_url":"https://api.github.com/users/asterite/events{/privacy}","received_events_url":"https://api.github.com/users/asterite/received_events","type":"User","site_admin":false},"created_at":"2016-03-18T16:10:06Z","updated_at":"2016-03-18T16:10:06Z","body":"@ssvb Not sure about this, but maybe #2124 fixed this? If not, either please open another PR or rebase this one. I'm reviewing old pull requests and in a few days I'll close ones without activity."}}