So I am brand new to arduino and right out of the gate I am getting the 'Error compiling for board Arduino Uno' when trying to upload the blink sketch. I'm not quite sure what is wrong or if anyone has any insight. I have version 1.8.13 of the IDE on Fedora 33. Here are the troubleshooting steps I've already taken (from what little I've found on this specific situation):
Added U8GLIB
Manually opening the serial port
Reinstalled the IDE
No luck with any of these steps. Error message copied below.
Arduino: 1.8.13 (Linux), Board: "Arduino Uno"
Parameter 'tools' is mandatory
Usage of /usr/bin/arduino-builder:
-build-cache string
builds of 'core.a' are saved into this folder to be cached and reused
-build-options-file string
Instead of specifying --hardware, --tools etc every time, you can load all such options from a file
-build-path string
build path
-built-in-libraries value
Specify a built-in 'libraries' folder. These are low priority libraries. Can be added multiple times for specifying multiple built-in 'libraries' folders
-compile
compiles the given sketch
-core-api-version string
version of core APIs (used to populate ARDUINO #define) (default "10600")
-debug-level int
Turns on debugging messages. The higher, the chattier (default 5)
-dump-prefs
dumps build properties used when compiling
-fqbn string
fully qualified board name
-hardware value
Specify a 'hardware' folder. Can be added multiple times for specifying multiple 'hardware' folders
-ide-version string
[deprecated] use 'core-api-version' instead (default "10600")
-libraries value
Specify a 'libraries' folder. Can be added multiple times for specifying multiple 'libraries' folders
-logger string
Sets type of logger. Available values are 'human', 'machine' (default "human")
-prefs value
Specify a custom preference. Can be added multiple times for specifying multiple custom preferences
-preprocess
preprocess the given sketch
-quiet
if 'true' doesn't print any warnings or progress or whatever
-tools value
Specify a 'tools' folder. Can be added multiple times for specifying multiple 'tools' folders
-verbose
if 'true' prints lots of stuff
-version
prints version and exits
-vid-pid string
specify to use vid/pid specific build properties, as defined in boards.txt
-warnings string
Sets warnings level. Available values are 'none', 'default', 'more' and 'all'
Error compiling for board Arduino Uno.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Check the box next to "Show verbose output during: > compilation
Click "OK"
Sketch > Verify/Compile
After the compilation fails you'll see a button on the right side of the orange bar "Copy error messages". 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 compilation output between the code tags.
Move the cursor outside of the code tags before you add any additional text to your reply.
If the length of the output exceeds the forum's 9000 character limit, save it in a .txt file and post it here as an attachment. If you click the "Reply" button you'll see the "Attachments and other options" link that will allow you to make the attachment.
Arduino: 1.8.13 (Linux), Board: "Arduino Uno"
/usr/bin/arduino-builder -dump-prefs -logger=machine -hardware /usr/share/arduino/hardware -libraries /home/rmlonie/Arduino/libraries -fqbn=arduino:avr:uno -vid-pid=2341_0043 -ide-version=10813 -build-path /tmp/arduino_build_137344 -warnings=none -build-cache /tmp/arduino_cache_350691 -prefs=build.warn_data_percentage=75 -verbose /usr/share/arduino/examples/01.Basics/Blink/Blink.ino
Parameter 'tools' is mandatory
Usage of /usr/bin/arduino-builder:
-build-cache string
builds of 'core.a' are saved into this folder to be cached and reused
-build-options-file string
Instead of specifying --hardware, --tools etc every time, you can load all such options from a file
-build-path string
build path
-built-in-libraries value
Specify a built-in 'libraries' folder. These are low priority libraries. Can be added multiple times for specifying multiple built-in 'libraries' folders
-compile
compiles the given sketch
-core-api-version string
version of core APIs (used to populate ARDUINO #define) (default "10600")
-debug-level int
Turns on debugging messages. The higher, the chattier (default 5)
-dump-prefs
dumps build properties used when compiling
-fqbn string
fully qualified board name
-hardware value
Specify a 'hardware' folder. Can be added multiple times for specifying multiple 'hardware' folders
-ide-version string
[deprecated] use 'core-api-version' instead (default "10600")
-libraries value
Specify a 'libraries' folder. Can be added multiple times for specifying multiple 'libraries' folders
-logger string
Sets type of logger. Available values are 'human', 'machine' (default "human")
-prefs value
Specify a custom preference. Can be added multiple times for specifying multiple custom preferences
-preprocess
preprocess the given sketch
-quiet
if 'true' doesn't print any warnings or progress or whatever
-tools value
Specify a 'tools' folder. Can be added multiple times for specifying multiple 'tools' folders
-verbose
if 'true' prints lots of stuff
-version
prints version and exits
-vid-pid string
specify to use vid/pid specific build properties, as defined in boards.txt
-warnings string
Sets warnings level. Available values are 'none', 'default', 'more' and 'all'
Error compiling for board Arduino Uno.
Update, downloaded it from the arduino site as suggested, opened the serial port and got the sketch on there with no errors.
However, the version I download from the store has no menu keys and when I click on them it just gives me a blank menu which is really unhelpful. Picture attached.
In the IDE download folder there is a folder named 'java'. I renamed it to something different and launched the IDE - everything working ok. This is my solution for now.
Installing the latest java with sudo dnf install java-latest-openjdk (and setting it as default with sudo alternatives --config java), in addition to renaming the java folder inside the arduino directory solves the issue for now.