{"action":"created","issue":{"url":"https://api.github.com/repos/arduino/Arduino/issues/6676","repository_url":"https://api.github.com/repos/arduino/Arduino","labels_url":"https://api.github.com/repos/arduino/Arduino/issues/6676/labels{/name}","comments_url":"https://api.github.com/repos/arduino/Arduino/issues/6676/comments","events_url":"https://api.github.com/repos/arduino/Arduino/issues/6676/events","html_url":"https://github.com/arduino/Arduino/issues/6676","id":254298617,"number":6676,"title":"Clarification request for https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.6.x-package_index.json-format-specification","user":{"login":"jantje","id":1175841,"avatar_url":"https://avatars1.githubusercontent.com/u/1175841?v=4","gravatar_id":"","url":"https://api.github.com/users/jantje","html_url":"https://github.com/jantje","followers_url":"https://api.github.com/users/jantje/followers","following_url":"https://api.github.com/users/jantje/following{/other_user}","gists_url":"https://api.github.com/users/jantje/gists{/gist_id}","starred_url":"https://api.github.com/users/jantje/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jantje/subscriptions","organizations_url":"https://api.github.com/users/jantje/orgs","repos_url":"https://api.github.com/users/jantje/repos","events_url":"https://api.github.com/users/jantje/events{/privacy}","received_events_url":"https://api.github.com/users/jantje/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-31T11:10:19Z","updated_at":"2017-08-31T11:42:06Z","closed_at":null,"author_association":"NONE","body":"Hi\r\nI'm jantje the builder of the Arduino eclipse plugin named Sloeber and I bumped into a issue where I do not understand the behaviour of the Arduino IDE in regards to selecting the toolchain.\r\nI have this problem with several boards but lets take Open XLR8 from alorium https://raw.githubusercontent.com/AloriumTechnology/Arduino_Boards/master/package_aloriumtech_index.json as an example.\r\nIn the package_aloriumtech_index.json it states\r\n```\r\n          \"toolsDependencies\": [\r\n            {\r\n              \"packager\": \"arduino\",\r\n              \"name\": \"avr-gcc\",\r\n              \"version\": \"4.8.1-arduino5\"\r\n            },\r\n```\r\nBecause of this I would assume Arduino IDE to select  avr-gcc version\" \"4.8.1-arduino5\". At least this is what sloeber does and  fails with: `cc1.exe: error: -fno-fat-lto-objects are supported only with linker plugin.`.\r\n\r\nHowever -in my install- Arduino  IDE 1.8.2 selects the toolchain that comes with the IDE.\r\nI think it is strange that a platform provider explicitly states a version for a tool and that this is ignored.\r\nTherefore I think the specification needs a update on how the platform provider can specify a version `{runtime.tools.TOOLNAME-VERSION.path}` for a tool or select the \"default\" `{runtime.tools.TOOLNAME.path}`. \r\n\r\nThanks\r\nJantje"},"comment":{"url":"https://api.github.com/repos/arduino/Arduino/issues/comments/326270424","html_url":"https://github.com/arduino/Arduino/issues/6676#issuecomment-326270424","issue_url":"https://api.github.com/repos/arduino/Arduino/issues/6676","id":326270424,"user":{"login":"cmaglie","id":423515,"avatar_url":"https://avatars2.githubusercontent.com/u/423515?v=4","gravatar_id":"","url":"https://api.github.com/users/cmaglie","html_url":"https://github.com/cmaglie","followers_url":"https://api.github.com/users/cmaglie/followers","following_url":"https://api.github.com/users/cmaglie/following{/other_user}","gists_url":"https://api.github.com/users/cmaglie/gists{/gist_id}","starred_url":"https://api.github.com/users/cmaglie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmaglie/subscriptions","organizations_url":"https://api.github.com/users/cmaglie/orgs","repos_url":"https://api.github.com/users/cmaglie/repos","events_url":"https://api.github.com/users/cmaglie/events{/privacy}","received_events_url":"https://api.github.com/users/cmaglie/received_events","type":"User","site_admin":false},"created_at":"2017-08-31T11:42:06Z","updated_at":"2017-08-31T11:42:06Z","author_association":"OWNER","body":"> Therefore I think the specification needs a update on how the platform provider can specify a version {runtime.tools.TOOLNAME-VERSION.path} for a tool or select the \"default\" {runtime.tools.TOOLNAME.path}.\r\n\r\nthe IDE already has a feature like that, for example here is what I get if I try to dump the avrdude runtime variables:\r\n\r\n```\r\n$ ./arduino --get-pref | grep tools | grep avrdude | sort\r\nruntime.tools.arduino-avrdude-6.3.0-arduino8.path=/home/megabug/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino8\r\nruntime.tools.arduino-avrdude-6.3.0-arduino9.path=/home/megabug/Code/arduino/build/linux/work/hardware/tools/avr\r\nruntime.tools.avrdude-6.3.0-arduino8.path=/home/megabug/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino8\r\nruntime.tools.avrdude-6.3.0-arduino9.path=/home/megabug/Code/arduino/build/linux/work/hardware/tools/avr\r\nruntime.tools.avrdude.path=/home/megabug/Code/arduino/build/linux/work/hardware/tools/avr\r\n$\r\n```\r\n\r\nas you can see there are `runtime.tools.avrdude-6.3.0-arduino8.path` and `runtime.tools.avrdude-6.3.0-arduino9.path` each pointing to the corresponding version (the arduino9 version is bundled in the IDE).\r\nThere is also a variant in the format `{runtime.tools.PACKAGER-TOOLNAME-VERSION.path}`, in particular `runtime.tools.arduino-avrdude-6.3.0-arduino8.path` and `arduino-avrdude-6.3.0-arduino9.path`.\r\nFinally the `runtime.tools.avrdude.path` just selects the latest version available in this case the version bundled in the IDE.\r\n\r\nI didn't looked at the json you posted, it may be that the original json is wrong and it should point to a newer version of gcc?\r\n"}}
{"actor":{"display_login":"cmaglie"}}