Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 179824 - crossdev avr toolchain: cannot open linker script file
Summary: crossdev avr toolchain: cannot open linker script file
Status: RESOLVED DUPLICATE of bug 147155
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-26 00:56 UTC by whereami
Modified: 2007-05-26 07:10 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description whereami 2007-05-26 00:56:08 UTC
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.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-05-26 07:10:12 UTC

*** This bug has been marked as a duplicate of bug 147155 ***