{"action":"created","issue":{"url":"https://api.github.com/repos/arduino/Arduino/issues/4457","labels_url":"https://api.github.com/repos/arduino/Arduino/issues/4457/labels{/name}","comments_url":"https://api.github.com/repos/arduino/Arduino/issues/4457/comments","events_url":"https://api.github.com/repos/arduino/Arduino/issues/4457/events","html_url":"https://github.com/arduino/Arduino/pull/4457","id":127780010,"number":4457,"title":"Adding ARM builds (2nd round)","user":{"login":"NicoHood","id":6888294,"avatar_url":"https://avatars.githubusercontent.com/u/6888294?v=3","gravatar_id":"","url":"https://api.github.com/users/NicoHood","html_url":"https://github.com/NicoHood","followers_url":"https://api.github.com/users/NicoHood/followers","following_url":"https://api.github.com/users/NicoHood/following{/other_user}","gists_url":"https://api.github.com/users/NicoHood/gists{/gist_id}","starred_url":"https://api.github.com/users/NicoHood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NicoHood/subscriptions","organizations_url":"https://api.github.com/users/NicoHood/orgs","repos_url":"https://api.github.com/users/NicoHood/repos","events_url":"https://api.github.com/users/NicoHood/events{/privacy}","received_events_url":"https://api.github.com/users/NicoHood/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-20T20:45:37Z","updated_at":"2016-01-24T01:24:15Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/arduino/Arduino/pulls/4457","html_url":"https://github.com/arduino/Arduino/pull/4457","diff_url":"https://github.com/arduino/Arduino/pull/4457.diff","patch_url":"https://github.com/arduino/Arduino/pull/4457.patch"},"body":"Originally based on https://github.com/arduino/Arduino/pull/3549\r\n\r\nSee the link above for additional recompile instructions of the different components and also the work of @ShorTie8 https://github.com/ShorTie8/Arduino_IDE\r\n\r\n#### Attention\r\nThis PR does include precompiled binaries! You should remove those before you merge this PR. I could do this on a different branch, if you are willing to merge this PR. But for now we keep this PR as visual reference of the changes I made to far to build.xml.\r\n\r\nAdding precompiled binaries can be avoided if the arduino company uploads those files on their folders and also recompile new arm builds, such as the arduino-builder arm build (which needs a fix for now).\r\n\r\n##### Build instructions\r\nThis PR can be build with an arm device or any x64 linux:\r\n\r\n```\r\n#x64\r\nant clean build dist -Dplatform=arm\r\n\r\n#arm\r\nant clean build\r\n```\r\n\r\nCompiling on arm with the binaries in place takes about 5~10min on a raspi2 which is acceptable since you do this once a day as dev.\r\n\r\nPlease note that crosscompiling the IDE is possible, since the binaries are precompiled on arm. The arm binaries are not yet all crosscompile able. Also it is not worth to add this option, since we only need to do that once (except for arduino-builder).\r\n\r\n### Bugs\r\n**The current build will not start!** This happens with crosscompile and normal compilation.\r\n\r\n```\r\narduino-1.6.8 $ ./arduino\r\nPicked up JAVA_TOOL_OPTIONS: \r\nTool name : avrdude 6.0.1-arduino5\r\n     sys : i386-apple-darwin11 \r\n     sys : x86_64-linux-gnu \r\n     sys : i686-linux-gnu \r\n     sys : i686-mingw32 \r\n seems to have no downloadable contributions for your operating system, but it is installed in\r\n/home/pi/hackallthethings/arduino-1.6.8/hardware/tools/avr\r\nTool name : avr-gcc 4.8.1-arduino5\r\n     sys : i386-apple-darwin11 \r\n     sys : x86_64-linux-gnu \r\n     sys : i686-linux-gnu \r\n     sys : i686-mingw32 \r\n seems to have no downloadable contributions for your operating system, but it is installed in\r\n/home/pi/hackallthethings/arduino-1.6.8/hardware/tools/avr\r\njava.lang.NullPointerException\r\n\tat processing.app.BaseNoGui.createToolPreferences(BaseNoGui.java:851)\r\n\tat processing.app.BaseNoGui.initPackages(BaseNoGui.java:609)\r\n\tat processing.app.Base.<init>(Base.java:295)\r\n\tat processing.app.Base.guardedMain(Base.java:222)\r\n\tat processing.app.Base.main(Base.java:136)\r\n```\r\n\r\nThis bug happens here:\r\nhttps://github.com/NicoHood/Arduino/blob/master/arduino-core/src/cc/arduino/contributions/packages/ContributionsIndexer.java#L273\r\n\r\nAnd might or might not be related to this:\r\nhttps://github.com/arduino/Arduino/commit/6398cde1c820e04294e1aa379293d440abb2863a\r\n\r\nWhich looks to me like it is a bug from the commit above:\r\nhttps://github.com/arduino/Arduino/blob/6398cde1c820e04294e1aa379293d440abb2863a/arduino-core/src/cc/arduino/contributions/packages/ContributedTool.java#L45\r\n\r\ncc @cmaglie @facchinm @crimier @Imihalkovic @TXCodeDancer @testato"},"comment":{"url":"https://api.github.com/repos/arduino/Arduino/issues/comments/174240525","html_url":"https://github.com/arduino/Arduino/pull/4457#issuecomment-174240525","issue_url":"https://api.github.com/repos/arduino/Arduino/issues/4457","id":174240525,"user":{"login":"ShorTie8","id":10363826,"avatar_url":"https://avatars.githubusercontent.com/u/10363826?v=3","gravatar_id":"","url":"https://api.github.com/users/ShorTie8","html_url":"https://github.com/ShorTie8","followers_url":"https://api.github.com/users/ShorTie8/followers","following_url":"https://api.github.com/users/ShorTie8/following{/other_user}","gists_url":"https://api.github.com/users/ShorTie8/gists{/gist_id}","starred_url":"https://api.github.com/users/ShorTie8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ShorTie8/subscriptions","organizations_url":"https://api.github.com/users/ShorTie8/orgs","repos_url":"https://api.github.com/users/ShorTie8/repos","events_url":"https://api.github.com/users/ShorTie8/events{/privacy}","received_events_url":"https://api.github.com/users/ShorTie8/received_events","type":"User","site_admin":false},"created_at":"2016-01-24T01:24:15Z","updated_at":"2016-01-24T01:24:15Z","body":"Ya, you broke it when you updated to 1.6.8, lol.\r\nMaybe try syncing your git ??"}}