Error compiling for board Arduino Uno

Guys I get this error what ever code I verify or try to upload..

"Error compiling for board Arduino Uno."

can you help me out?
Thanks

Is this the actual error message?

Please do this:

  • When you encounter an error, you'll see a button on the right side of the orange bar "Copy error messages" in the Arduino IDE (or the icon that looks like two pieces of paper at the top right corner of the black console window in the Arduino Web Editor). Click that button..
  • In a forum reply here, click on the reply field.
  • Click the </> button on the forum toolbar. This will add the forum's code tags markup to your reply.
  • Press "Ctrl + V". This will paste the error between the code tags.
  • Move the cursor outside of the code tags before you add any additional text to your reply.

If the text exceeds the forum's 9000 character limit, save it to a .txt file and post it as an attachment. If you click the "Reply" button here, you will see an "Attachments and other settings" link that will allow you to make the attachment.

Hello to everyone,

I get an error every time I try to verify or upload a code, what ever board I try to use.

--

Arduino: 1.8.12 (Mac OS X), Board: "Arduino Uno"

loading libs from /Users/lucasabot/Documents/Arduino/libraries: reading dir /Users/lucasabot/Documents/Arduino/libraries: open /Users/lucasabot/Documents/Arduino/libraries: operation not permitted

Error compiling for board Arduino Uno.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

--

Can you help me with this?

Thank you so much

Duplicate topics merged

Cross-posting is against the rules of the forum. The reason is that duplicate posts can waste the time of the people trying to help. Someone might spend 15 minutes (or more) writing a detailed answer on this topic, without knowing that someone else already did the same in the other topic.

Repeated cross-posting will result in a suspension from the forum.

In the future, please take some time to pick the forum board that best suits the topic of your question and then only post once to that forum board. This is basic forum etiquette, as explained in the sticky "How to use this forum - please read." post you will find at the top of every forum board. It contains a lot of other useful information. Please read it.

Thanks in advance for your cooperation.

Thanks, I looked for half an hour for my last post, and I couldn't find it. That's why, sorry.

lucasabot:
Thanks, I looked for half an hour for my last post, and I couldn't find it. That's why, sorry.

[s]Bookmark https://forum.arduino.cc/index.php?action=profile;area=showposts;u=1054632[/s]
As people still seem to find this looking for an answer and the link no longer seems to work after forum upgrade in April 2021

  1. Click your avatar at the right top of the forum
  2. Click the 'person' icon
  3. Click Activity

image

Thank you sterretje, this helps keeping order ;). Do you also have an idea on why I get that error?
Thanks, Luca

lucasabot:
loading libs from /Users/lucasabot/Documents/Arduino/libraries: reading dir /Users/lucasabot/Documents/Arduino/libraries: open /Users/lucasabot/Documents/Arduino/libraries: operation not permitted

I think this is a permissions problem, like the permissions the Arduino IDE is running under don't give it access to /Users/lucasabot/Documents/Arduino/libraries.

There is a report from someone, with the solution they found here:
https://forum.arduino.cc/index.php?topic=665533.0
I'm not sure why deleting everything and re-installing would fix the issue. I don't have any experience with macOS. I would start by just backing up, then deleting /Users/lucasabot/Documents/Arduino. The next time you start the Arduino IDE, it will create that folder (the sketchbook), or else fail to start if it's unable to create the folder. If it is able to create the folder then it will certainly have the right permissions to read it. After that, you can replace any essential files you had in the sketchbook folder before you deleted it. Then try again and hope you didn't change the permissions again when you did that.

Thank pert for your message, I tried deleting all the existence files and the Arduino application from my Mac and then I reinstalled it and unfortunately nothing changed..
Now I am doing a software update to the latest Catalina 10.15.4.
Let's see if that will change something.