Re: [gentoo-user] crossdev avr compile failing on crtm328p.o
On Sun, 08 May 2011 11:40:58 +0800 William Kenworthy wrote: .. > 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 Hello Bill, I encountered the same toolchain problem for an Open-USB-IO board, which also uses an ATmega32 microcontroller. In my case it was avr5/crtm32.o that wasn't being found. Experimentation found that crtm32.o is found if either of the following symlinks is created ln -s /usr/avr/lib/avr5/crtm32.o /usr/avr/lib/crtm32.o ln -s /usr/avr/lib/avr5 /usr/avr/lib/avr/4.5.3 The 4.5.3 is the avr-gcc version I have. HTH, David
Re: [gentoo-user] crossdev avr compile failing on crtm328p.o
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 Home in Perth!
Re: [gentoo-user] crossdev avr compile failing on crtm328p.o
I thought the gentoo arduino was too out of date so I built the stable gentoo avr tool-chain, but arduino direct from subversion. But its the tool-chain thats now broke - is there something like ldconfig and /etc/ld.so.conf for avr-ld ? BillK 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 > -- William Kenworthy Home in Perth!
Re: [gentoo-user] crossdev avr compile failing on crtm328p.o
On Sat, 2011-05-07 at 16:11 +0100, Mick wrote: > On Saturday 07 May 2011 13:34:04 William Kenworthy wrote: > > I have been using crossdev for the avr toolchain (arduino) successfully > > for a month - but after an upgrade (large number of packages) I am > > getting this: > > > > /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 am compiling from within the arduino java gui (from svn). > > There was a recent update on python (so you'll need to eselect 2.7 and also > run python-updater) and I seem to recall a perl update too (in which case > you'll need to run perl-cleaner). Don't forget revdep-rebuild of course. > I have the python update masked as I want to fix this first. I did the perl/perl-cleaner dance before this problem became apparent. I did upgrade the linux-headers to 2.6.38 but that broke so much of the system I downgraded and recompiled everything that I found. I am also now unsure about dbus as firefox segfaults with no messages (or anything obvious in strace while evolution complained about dbus until I recompiled it. Its at the stage I may just do the python update, fix, depclean and then emerge -ep world - its been a few years for this system :) BillK -- William Kenworthy Home in Perth!
Re: [gentoo-user] crossdev avr compile failing on crtm328p.o
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
Re: [gentoo-user] crossdev avr compile failing on crtm328p.o
On Saturday 07 May 2011 13:34:04 William Kenworthy wrote: > I have been using crossdev for the avr toolchain (arduino) successfully > for a month - but after an upgrade (large number of packages) I am > getting this: > > /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 am compiling from within the arduino java gui (from svn). There was a recent update on python (so you'll need to eselect 2.7 and also run python-updater) and I seem to recall a perl update too (in which case you'll need to run perl-cleaner). Don't forget revdep-rebuild of course. -- Regards, Mick signature.asc Description: This is a digitally signed message part.