Description
Moved from arduino/Arduino#6474
Arduino IDE 1.8.3, Windows 7 64 bit
Steps to reproduce (only set up for Windows):
- File > Preferences > Additional Boards Manager URLs > https://raw.githubusercontent.com/per1234/misc/issue_6473/package_issue_6473_index.json > OK
- Tools > Board > Boards Manager
- Wait for downloads to complete
- Click on "Arduino SAMD Boards" and click "Install" (if you don't already have it installed)
- Wait for installation to complete
- Scroll down to "issue_6473", click on it.
- Click "Install"
- Wait for installation to complete
- Click "Close"
- Tools > Board > Arduino/Genuino Zero
- Sketch > Compile/verify - Compilation fails with
fatal error: sam.h: No such file or directory
- Tools > Board > issue_6473
- Sketch > Compile/verify - Compilation is successful
- Delete Arduino15/packages/issue_6473/tools/avr-gcc-elektor/4.9.2-elektor/avr/builtin_tools_versions.txt
- Tools > Board > Arduino/Genuino Zero
- Sketch > Compile/verify - Compilation is successful
The same breakage occurs for Intel Galileo:
exec: "/pokysdk/usr/bin/i586-poky-linux-uclibc/i586-poky-linux-uclibc-g++": file does not exist
and Intel Edison:
exec: "/pokysdk/usr/bin/i586-poky-linux/i586-poky-linux-g++": file does not exist
Since the hardware package that causes the issue works fine and the problem manifests itself in a different hardware package than the actual source of the bug this will lead to support requests to the wrong place, most likely Arduino.
This bug was originally discovered in arduino/Arduino#4593 (comment). I'm creating a new issue because that issue is not very concise due to the cause only being discovered after the issue was submitted. Also it is no longer possible to easily reproduce the issue following the information in that issue since the hardware package was fixed. Interestingly, the issue manifests itself in a different manner in Arduino IDE 1.6.7, the latest release at that time, breaking Arduino 101 (which is not affected in Arduino IDE 1.8.3) as well as some other boards.