Bug 8799 - introducing avr-gcc, -binutils and -libc to Gentoo portage (was: GNU binutils for the AVR microcontroller)
Bug#: 8799 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: enhancement Priority: P2
Resolution: FIXED Assigned To: pappy@gentoo.org Reported By: jhuntnz@users.sourceforge.net
Component: Ebuilds
URL: 
Summary: introducing avr-gcc, -binutils and -libc to Gentoo portage (was: GNU binutils for the AVR microcontroller)
Keywords:  EBUILD
Status Whiteboard: 
Opened: 2002-10-05 21:15 0000
Description:   Opened: 2002-10-05 21:15 0000
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

------- Comment #1 From Jonathan Hunt 2002-10-05 21:17:25 0000 -------
Created an attachment (id=4441) [details]
ebuild to build AVR binutils

------- Comment #2 From Karl Trygve Kalleberg (RETIRED) 2003-05-03 08:41:23 0000 -------
Can't get around to fixing this anytime soon, I'm afraid.

------- Comment #3 From Scott Price 2003-05-22 17:07:59 0000 -------
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  =) 

------- Comment #4 From Seemant Kulleen (RETIRED) 2003-06-09 08:21:58 0000 -------
*** Bug 21869 has been marked as a duplicate of this bug. ***

------- Comment #5 From James Boddington 2003-06-12 18:58:19 0000 -------
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. 

------- Comment #6 From Scott Price 2003-08-07 12:37:26 0000 -------
Created an attachment (id=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.

------- Comment #7 From Scott Price 2003-08-07 12:37:37 0000 -------
Created an attachment (id=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.

------- Comment #8 From Scott Price 2003-08-07 13:25:47 0000 -------
Created an attachment (id=15706) [details]
Ebuild for version 2.14


Things are now put in the correct places.

------- Comment #9 From Martin Holzer (RETIRED) 2003-08-10 14:52:22 0000 -------
*** Bug 26146 has been marked as a duplicate of this bug. ***

------- Comment #10 From Scott Price 2004-02-06 09:56:05 0000 -------
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  =)


------- Comment #11 From Alexander Gabert (RETIRED) 2004-03-04 06:54:06 0000 -------
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

------- Comment #12 From Scott Price 2004-03-04 06:58:16 0000 -------
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  =)

------- Comment #13 From Alexander Gabert (RETIRED) 2004-03-05 02:17:31 0000 -------
yes we can :-)

------- Comment #14 From Alexander Gabert (RETIRED) 2004-03-05 02:19:52 0000 -------
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

------- Comment #15 From Alexander Gabert (RETIRED) 2004-03-08 00:55:38 0000 -------
hello

can you test the ebuilds in dev-embedded please

currently marked x86

thanks, Alex

------- Comment #16 From Scott Price 2004-03-08 07:16:29 0000 -------
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  =)

------- Comment #17 From Alexander Gabert (RETIRED) 2004-03-11 00:37:45 0000 -------
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

------- Comment #18 From Alexander Gabert (RETIRED) 2004-03-11 00:38:09 0000 -------
*** Bug 26151 has been marked as a duplicate of this bug. ***

------- Comment #19 From Alexander Gabert (RETIRED) 2004-03-15 09:24:29 0000 -------
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

------- Comment #20 From Scott Price 2004-03-15 09:29:25 0000 -------
Does this mean we are going to lose them again from the portage tree?

Scott  =)

------- Comment #21 From Scott Price 2004-04-13 09:48:29 0000 -------
Created an attachment (id=29216) [details]
binutils 2.14.90.0.7 ebuild

updated ebuild.

------- Comment #22 From Scott Price 2004-05-04 16:49:59 0000 -------
(From update of attachment 15706 [details])
The 2.14.90.0.7 ebuild builds a bad linker.

------- Comment #23 From Scott Price 2004-05-04 16:51:03 0000 -------
(From update of attachment 29216 [details])
This patch builds a broken linker.

------- Comment #24 From Scott Price 2004-05-04 16:52:02 0000 -------
(From update of attachment 15706 [details])
Woops.	This is outdated.  The one in Portage works.

------- Comment #25 From Alexander Gabert (RETIRED) 2004-07-08 12:51:58 0000 -------
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

------- Comment #26 From Alexander Gabert (RETIRED) 2004-07-08 13:08:51 0000 -------
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

------- Comment #27 From Alexander Gabert (RETIRED) 2004-09-23 18:22:28 0000 -------
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

------- Comment #28 From Alexander Gabert (RETIRED) 2004-09-23 19:50:49 0000 -------
dragonheart is taking over maintenance of the avr toolchain