Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 8799 - introducing avr-gcc, -binutils and -libc to Gentoo portage (was: GNU binutils for the AVR microcontroller)
Summary: introducing avr-gcc, -binutils and -libc to Gentoo portage (was: GNU binutils...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Alexander Gabert (RETIRED)
URL:
Whiteboard:
Keywords: EBUILD
: 21869 26151 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-10-05 21:15 UTC by Jonathan Hunt
Modified: 2004-09-23 19:50 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ebuild to build AVR binutils (avr-binutils-2.13.ebuild,1.22 KB, text/plain)
2002-10-05 21:17 UTC, Jonathan Hunt
Details
Updated ebuild for version 2.14 (avr-binutils-2.14.ebuild,1.43 KB, text/plain)
2003-08-07 12:37 UTC, Scott Price
Details
Updated ebuild for version 2.14 (avr-binutils-2.14.ebuild,1.43 KB, text/plain)
2003-08-07 12:37 UTC, Scott Price
Details
Ebuild for version 2.14 (avr-binutils-2.14.ebuild,1.27 KB, text/plain)
2003-08-07 13:25 UTC, Scott Price
Details
binutils 2.14.90.0.7 ebuild (avr-binutils-2.14.90.0.7.ebuild,654 bytes, text/plain)
2004-04-13 09:48 UTC, Scott Price
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Hunt 2002-10-05 21:15:53 UTC
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 Jonathan Hunt 2002-10-05 21:17:25 UTC
Created attachment 4441 [details]
ebuild to build AVR binutils
Comment 2 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2003-05-03 08:41:23 UTC
Can't get around to fixing this anytime soon, I'm afraid.
Comment 3 Scott Price 2003-05-22 17:07:59 UTC
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 Seemant Kulleen (RETIRED) gentoo-dev 2003-06-09 08:21:58 UTC
*** Bug 21869 has been marked as a duplicate of this bug. ***
Comment 5 James Boddington (RETIRED) gentoo-dev 2003-06-12 18:58:19 UTC
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 Scott Price 2003-08-07 12:37:26 UTC
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.
Comment 7 Scott Price 2003-08-07 12:37:37 UTC
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.
Comment 8 Scott Price 2003-08-07 13:25:47 UTC
Created attachment 15706 [details]
Ebuild for version 2.14


Things are now put in the correct places.
Comment 9 Martin Holzer (RETIRED) gentoo-dev 2003-08-10 14:52:22 UTC
*** Bug 26146 has been marked as a duplicate of this bug. ***
Comment 10 Scott Price 2004-02-06 09:56:05 UTC
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 Alexander Gabert (RETIRED) gentoo-dev 2004-03-04 06:54:06 UTC
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 Scott Price 2004-03-04 06:58:16 UTC
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 Alexander Gabert (RETIRED) gentoo-dev 2004-03-05 02:17:31 UTC
yes we can :-)
Comment 14 Alexander Gabert (RETIRED) gentoo-dev 2004-03-05 02:19:52 UTC
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 Alexander Gabert (RETIRED) gentoo-dev 2004-03-08 00:55:38 UTC
hello

can you test the ebuilds in dev-embedded please

currently marked x86

thanks, Alex
Comment 16 Scott Price 2004-03-08 07:16:29 UTC
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 Alexander Gabert (RETIRED) gentoo-dev 2004-03-11 00:37:45 UTC
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 Alexander Gabert (RETIRED) gentoo-dev 2004-03-11 00:38:09 UTC
*** Bug 26151 has been marked as a duplicate of this bug. ***
Comment 19 Alexander Gabert (RETIRED) gentoo-dev 2004-03-15 09:24:29 UTC
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 Scott Price 2004-03-15 09:29:25 UTC
Does this mean we are going to lose them again from the portage tree?

Scott  =)
Comment 21 Scott Price 2004-04-13 09:48:29 UTC
Created attachment 29216 [details]
binutils 2.14.90.0.7 ebuild

updated ebuild.
Comment 22 Scott Price 2004-05-04 16:49:59 UTC
Comment on attachment 15706 [details]
Ebuild for version 2.14

The 2.14.90.0.7 ebuild builds a bad linker.
Comment 23 Scott Price 2004-05-04 16:51:03 UTC
Comment on attachment 29216 [details]
binutils 2.14.90.0.7 ebuild

This patch builds a broken linker.
Comment 24 Scott Price 2004-05-04 16:52:02 UTC
Comment on attachment 15706 [details]
Ebuild for version 2.14

Woops.	This is outdated.  The one in Portage works.
Comment 25 Alexander Gabert (RETIRED) gentoo-dev 2004-07-08 12:51:58 UTC
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 Alexander Gabert (RETIRED) gentoo-dev 2004-07-08 13:08:51 UTC
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 Alexander Gabert (RETIRED) gentoo-dev 2004-09-23 18:22:28 UTC
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 Alexander Gabert (RETIRED) gentoo-dev 2004-09-23 19:50:49 UTC
dragonheart is taking over maintenance of the avr toolchain