New User w/Linux - Error compiling for board Arduino Uno

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.

Please do this:

  • (In the Arduino IDE) click 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.

As requested.

How did you install the Arduino IDE?

Did you get it from a package manager like Snap or APT, or did you download the official version from this page?:

I used the package manager.

sudo yum install arduino

It is the most current version, I know reading through some posts people had issues of getting outdated ones.

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.

I think it's the bug reported here:

You can try the fix they reported:

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.

Much appreciated! That solved the problem.

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.

You're welcome. I'm glad to hear it's working now. Enjoy!
Per

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.