Hi, Please find attached avr-binutils-2.13.ebuild. This ebuild is for building the GNU Binutils for the AVR Microcontroller made by Atmel (http://www.atmel.com). I'm not sure where this really belongs in the portage tree. Jonathan
Created attachment 4441 [details] ebuild to build AVR binutils
Can't get around to fixing this anytime soon, I'm afraid.
I have not tested if it actually compiles correctly or not, but aiken's (Can't remember his real name) cross-gcc ( http://cvs.gentoo.org/~aiken/gentoo-cross/ ) script builds binutils and gcc for the avr. It crashes on glibc, but that is really as far as it would needs to go. There is a library for the AVR but I don't think there is a port for it yet. If that system gets working this ebuild seems redundant. Scott =)
*** Bug 21869 has been marked as a duplicate of this bug. ***
The general purpose cross toolchain ebuilds seem to have this covered. The ebuilds at http://cvs.gentoo.org/~aiken/files/portage/ have support for this. The gcc-config, binutils, gcc ebuilds will be needed. These 3 ebuilds are what I am currently playing with, not what has been released with the cross compile effort. The eclass crosscompile.eclass will also be needed. Some more info is at http://cvs.gentoo.org/~zwelch/xcompile.html gcc-config --install-toolchain --pretend avr-3.2.3 will setup some needed sym links followed by CCHOST=avr USE=build emerge arch-avr/binutils arch-avr/gcc You should then be able to build avr-libc to give a usefull tool chain.
Created attachment 15699 [details] Updated ebuild for version 2.14 This new ebuild is also modified to be compatible with my avr-gcc ebuild. That ebuild can be found in at http://bugs.gentoo.org/show_bug.cgi?id=26146 as well as my explaination why I changed my mind about the necessity of this ebuild compared to the generic cross-compiler effort.
Created attachment 15700 [details] Updated ebuild for version 2.14 This new ebuild is also modified to be compatible with my avr-gcc ebuild. That ebuild can be found in at http://bugs.gentoo.org/show_bug.cgi?id=26146 as well as my explaination why I changed my mind about the necessity of this ebuild compared to the generic cross-compiler effort.
Created attachment 15706 [details] Ebuild for version 2.14 Things are now put in the correct places.
*** Bug 26146 has been marked as a duplicate of this bug. ***
I have been using binutils created by the latest ebuild here for 6 months in my job and at home. How do we get this into the main portage? Scott =)
this is related to the avr gcc ebuild and the embedded project i would like to put your avr-gcc and avr-binutils into dev-embedded and maintain it with the help of you, Scott thanks for your work, i will put this on my TODO list for the next few weeks, Alex
Sounds good. I am more than willing to help. Could we also add avr-libc? http://bugs.gentoo.org/show_bug.cgi?id=26151 Thanks! Scott =)
yes we can :-)
can you send me the versions of your ebuilds to pappy@gentoo.org, i will look at it tonight when i come home Your name will be reserved as the person who submitted and created the ebuilds but the copyright will be moved to Gentoo, as you may already know. thanks in advance, Alex
hello can you test the ebuilds in dev-embedded please currently marked x86 thanks, Alex
When I emerged avr-libc I got the following error right after it successfully downloaded the file: !!! Couldn't download avr-libc-1.0.2.tar.gz. Aborting. I do not think that it is a problem with this ebuild, but may be a bug in portage. When I ran emerge again it all merged fine. That was the only error I got merging them. I have checked that both avr-gcc and avr-binutils create working executables. I have not done extensive testing yet. Scott =)
when the file is truncated and the file you have on your local disk or in a digest is longer than the one you are about to download, it fails with that "odd" error message that it cannot download it removing the digest and/or removing the file in DISTFILES solves this portage problem. so, its alright now and i gonna hunt down the miscellaneous dupes in bugs.g.o., okay? thanks for your help, Alex
*** Bug 26151 has been marked as a duplicate of this bug. ***
The packages will be removed by Seemant Kulleen at a later point in time. Thanks for your help and sorry for interfering with the embedded herd. Alex
Does this mean we are going to lose them again from the portage tree? Scott =)
Created attachment 29216 [details] binutils 2.14.90.0.7 ebuild updated ebuild.
Comment on attachment 15706 [details] Ebuild for version 2.14 The 2.14.90.0.7 ebuild builds a bad linker.
Comment on attachment 29216 [details] binutils 2.14.90.0.7 ebuild This patch builds a broken linker.
Comment on attachment 15706 [details] Ebuild for version 2.14 Woops. This is outdated. The one in Portage works.
any status change or something you want me to do on this one? i still feel responsible because i added it back then... and now it seems i have more time to look for my bugs... sinc, Alex
coherent to this master bug id are: - bug 52979 - update request for the avr toolchain suite - bug 52790 - patch for crossdev support for the avr toolchain thanks to Scott, Alex
I will remove the avr toolchain from portage tonight to save myself the trouble it has introduced so far. The author keeps changing the versions and the tar files and makes the ebuild unusable. I hope this makes everybody happy: the embedded team and the disappointed users. -Alex
dragonheart is taking over maintenance of the avr toolchain