On Sat, 2011-05-07 at 12:11 -0400, Kevin McCarthy wrote:
> 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
> 

oh, and I should add that the above make.conf entries exist and are
correct - but if I copy crtm328p.o from /usr/avr/lib/avr5
to /usr/avr/lib it all works fine.  So while it now works, its ot
fixed :)

I have decided to emerge -ep world after doing the python update - and
see what that fixes/breaks!

BillK


-- 
William Kenworthy <bi...@iinet.net.au>
Home in Perth!


Reply via email to