I just upgraded to IDE 2.0 on my Macbook Pro. loaded a very brief sketch to load a library: #include <DHT.h> and when I verify the sketch I get the following error "
fork/exec /Users/michaeldalfonzo/Library/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-g++: no such file or directory
Compilation error: fork/exec /Users/michaeldalfonzo/Library/Arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-g++: no such file or directory
All of my Arduino files are in the folder /users/michaeldalfonzo/documents I don't see where I can point the IDE to that directory.
That is the compiler. It sounds like a corrupt installation; maybe an antivirus that removed it. Maybe your Mac blocks access? Or it's just corrupt (see below).
That is the directory where the IDE looks for board packages; it's either hard-coded or it's configurable if you know how. So don't worry about that part.
You're using an ARM based board by the looks of it (Due, MKR, ...). I suggest that you downgrade the board package and try to compile. If it works, upgrade the board package.
Alternatively uninstall the board package and install it again.
@mdalfonzo reinstalling Arduino IDE is not expected to fix this problem. That would only help if there was a problem with the Arduino IDE application, but there is no problem with Arduino IDE.
The problem is with the toolchain that is used to compile the sketch. That toolchain and the associated files are installed separately from the Arduino IDE installation so uninstalling the IDE doesn't have any effect on the toolchain.
I'm going to ask you to post the full verbose output from a compilation.
This procedure is not intended to solve the problem. The purpose is to gather more information.
Please do this:
Select File > Preferences... from the Arduino IDE menus.
The "Preferences" dialog will open.
Check the box next to "Show verbose output during: ☐ compilation" in the "Preferences" dialog.
Click the OK button.
Select Sketch > Verify/Compile from the Arduino IDE menus.
Wait for the compilation to fail.
You will see a "Compilation error: ..." notification at the bottom right corner of the Arduino IDE window. Click the COPY ERROR MESSAGES button on that notification.
Open a forum reply here by clicking the Reply button.
Click the <CODE/> icon on the post composer toolbar.
This will add the forum's code block markup (```) to your reply to make sure the error messages are correctly formatted.
Press Ctrl+V.
This will paste the compilation output into the code block.
Move the cursor outside of the code tags before you add any additional text to your reply.
Click the Reply button to post the output.
In case the output is longer than the forum software will allow to be added to a post, you can instead save it to a .txt file and then attach that file to a reply here:
Open a forum reply here by clicking the Reply button.
Click the "Upload" icon () on the post composer toolbar:
A dialog will open.
In the dialog, select the .txt file you saved.
Click the Open button.
Click the Reply button to publish the post.
Alternatively, instead of using the "Upload" icon on the post composer toolbar as described in steps (5) - (7) above, you can simply drag and drop the .txt file onto the post composer field to attach it.
Select Tools > Board > Boards Manager from the Arduino IDE menus to open the "Boards Manager" view in the left side panel.
Scroll down through the list of boards platforms until you see the "Arduino SAMD Boards (32-bits ARM Cortex-M0+)" entry.
Hover the mouse pointer over the "Arduino SAMD Boards (32-bits ARM Cortex-M0+)" entry.
You will see a ●●● icon appear at the top right corner of the entry.
Click the ●●● icon.
A menu will open.
Select "Remove" from the menu.
An "Uninstall" dialog will open.
Click the "YES" button in the "Uninstall" dialog.
Wait for the uninstallation to finish. ⓘ The progress will be shown by a notification at the bottom right corner of the Arduino IDE window.
Click the "INSTALL" button at the bottom of the "Arduino SAMD Boards (32-bits ARM Cortex-M0+)" entry.
Wait for the installation to finish.
Now try verifying your sketch again. Hopefully this time the compilation will work as expected without that "no such file or directory" error.