I installed a crossdev toolchain for avr, but I get this error whenever linking my projct: avr-gcc -mmcu=atmega644 control.o delays.o adc.o servo.o motor.o lcd.o utility.o batt_voltmeter/voltmeter.o uart_interface/uart.o motorcontrol/motorcontrol.o -lm -lc -o control.elf /usr/libexec/gcc/avr/ld: cannot open linker script file ldscripts/avr5.x: No such file or directory I finally worked around the issue by adding -L/usr/x86_64-pc-linux-gnu/avr/lib to the link command in my Makefile. I don't think this is an appropriate solution: avr-gcc or binutils should be able to find the linker scripts it needs without having to hold its hand. On a hunch, I tried adding that path as the value for LDPATH in env.d/05gcc-avr (so it would be added to ld.so.conf) but this had no effect. I'm at a loss for how to correctly fix this.
*** This bug has been marked as a duplicate of bug 147155 ***