On Sat, May 07, 2011 at 08:34:04PM +0800, William Kenworthy wrote: > /usr/libexec/gcc/avr/ld: crtm328p.o: No such file: No such file or > directory > > Ive rebuilt/uninstalled/reinstalled the avr toolchain with no success. > Can someone suggest where to look next? > > The file crtm328p.o does exist in /usr/avr/lib/avr5 along with the other > arch specific libs.
I would look in /usr/avr/etc/portage/make.conf and make sure everything there looks OK. I'd make sure you have something like this in there: CHOST=avr ROOT=/usr/${CHOST}/ LDFLAGS="-L${ROOT}lib -L${ROOT}usr/lib" Mind if I ask which arduino package you are using? The one in Portage is somewhat old, and the one from overlay described on the Arduino site[1] seems to have a problem with avrdude on my system. I eventually just ended up downloading the binary version and running it from my home dir. Maybe I should ping the Gentoo maintainers and see if I can help get Arduino up-to-date in Portage... [1] http://www.arduino.cc/playground/Linux/Gentoo -- Kevin McCarthy <sign...@gentoo.org>