I have just installed the arduino IDE on my gentoo laptop. I then installed the toolchain with the following command:
crossdev -s4 avr
This does a stage 4 install of the toolchain, with all its dependecies etc.
I am following a tutorial, with my arduino uno, which I am assuming is using the Amtel ATmega328 chipset. This tutorial is simply going to turn an led on and off.
I click the verify button and I get the following errors:
/usr/libexec/gcc/avr/ld: cannot find crtatmega328p.o: No such file or directory /usr/libexec/gcc/avr/ld: cannot find -latmega328p collect2: error: ld returned 1 exit status
I downloaded the source files "avr-libc" compiled them and noticed inside the directory
That the compiled module is named crtm328p.o which is available on my pc under the directory:
I dont understand what is wrong and why this is not working. The only posts relating to missing files are over 5 years old and those solutions are not working.