Hi everyone,
I'm running Fedora 23, and I'd like to get started with Arduino. I installed IDE, but whenever I try to upload a project, I get the following error:
Arduino: 1.0.6 (Linux), Board: "Arduino Uno"
/usr/lib/gcc/avr/5.1.0/../../../../avr/bin/ld: cannot find dev/atmega328p/crt1.o: No such file or directory
/usr/lib/gcc/avr/5.1.0/../../../../avr/bin/ld: cannot find dev/atmega328p/libdev.a: No such file or directory
collect2: error: ld returned 1 exit status
What do I do to fix this? I've installed all the relevant packages fromt he Fedora repositories.
Just upgraded to Fedora 23. I am having the same issue.
I have avr-libc 1.8.0 and avr-gcc 5.1. It seems that libdev.a is not apart of either of those packages anymore.
the same happened to me after the upgrade to Fedora 23. Some of my projects for Atmel microcontrollers (the same ones as on the affected Arduinos) that were fine before suddenly failed to build. However, I've found a solution.
Short Version
Downgrading the packages should fix the problem. Try running
The problem appears with newer versions of the AVR-GCC compiler, which was upgraded to 5.1 with Fedora 23 as opposed to version 4.9 previously on Fedora 22. I haven't read up on the details and therefore can't say for sure what causes this issue. From what I understand, there are some incompatibilities between the gcc and libc versions they shipped.
A newer version of the package with the older compiler has been put up on Fedora's testing repositories to see if that fixes the issues. It did so for me, and apparently some other people as well: https://bodhi.fedoraproject.org/updates/FEDORA-2015-f98595bbc8. So, hopefully, this will make its way into the regular repositories sooner or later. Until then, installing the packages manually from the testing repositories should help.