Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 26146 - C compiler for Atmel AVR microcontrollers
Summary: C compiler for Atmel AVR microcontrollers
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: James Boddington (RETIRED)
URL:
Whiteboard:
Keywords: EBUILD
Depends on: 26151
Blocks:
  Show dependency tree
 
Reported: 2003-08-07 12:20 UTC by Scott Price
Modified: 2004-09-23 20:00 UTC (History)
3 users (show)

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


Attachments
avr-gcc 3.3 ebuild (avr-gcc-3.3.ebuild,1.32 KB, text/plain)
2003-08-07 12:40 UTC, Scott Price
Details
avr-gcc 3.3 ebuild (avr-gcc-3.3.ebuild,1.31 KB, text/plain)
2003-08-07 13:23 UTC, Scott Price
Details
AVR GCC ebuild (avr-gcc-3.3-r1.ebuild,1.32 KB, text/plain)
2003-12-03 18:09 UTC, Scott Price
Details
r2 ebuild (avr-gcc-3.3-r2.ebuild,682 bytes, text/plain)
2004-04-01 09:12 UTC, Scott Price
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Scott Price 2003-08-07 12:20:34 UTC
There has been a lot of discussion about tool chains for other architectures. 
That is all well and good, but some archs are never going to fit into that
system.  The pure embedded comilers never will.  The AVR tool chain has its own
libc that is not a part of glibc and probably never will be.  Unix will probably
never be ported to them.  There is only a C compiler.  This C compiler is
normally referenced as avr-gcc, not just gcc.

With the cross-compile stuff I have seen the first two steps would work for AVR
(binutils and bootstrapped gcc) but the rest is useless.  Then libc has to be
added manually anyway.  This is not acceptable.  Therefore, I submit this ebuild
for avr-gcc.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Scott Price 2003-08-07 12:40:02 UTC
Created attachment 15701 [details]
avr-gcc 3.3 ebuild

See bug http://bugs.gentoo.org/show_bug.cgi?id=8799 for the avr-binutils
ebuild.  An avr-libc ebuild should follow soon.
Comment 2 Scott Price 2003-08-07 13:23:11 UTC
Created attachment 15704 [details]
avr-gcc 3.3 ebuild

This ebuild puts everything in the right place now.  ;)
Comment 3 Martin Holzer (RETIRED) gentoo-dev 2003-08-10 14:52:22 UTC

*** This bug has been marked as a duplicate of 8799 ***
Comment 4 Scott Price 2003-08-10 17:41:15 UTC
How is this a duplicate of 8799?  This is an ebuild for an entirely different program.  8799 is for an assembler/linker.  This is for a C compiler.  Should I attach my ebuild here to that bug?  If so, should we rename the bug tool-cnain for AVR MCU's instead of binutils for AVR?
Comment 5 Martin Holzer (RETIRED) gentoo-dev 2003-08-10 23:08:15 UTC
a
Comment 6 Scott Price 2003-10-20 11:29:04 UTC
What can I do to help speed up getting these ebuilds committed to CVS?

Scott  =)
Comment 7 Scott Price 2003-12-03 18:09:39 UTC
Created attachment 21667 [details]
AVR GCC ebuild

This now puts uses avr-binutils out of dev-embedded.
Comment 8 Sascha Silbe 2004-03-30 04:01:12 UTC
So what's the currently supported method for building an AVR development environment (cross-compilation and emulation)?
Neither "emerge avr-gcc" nor "CCHOST=avr emerge gcc" work. :(

Comment 9 Scott Price 2004-03-30 06:07:05 UTC
emerge avr-gcc should work.  Do you see avr-gcc, avr-binutils, and avr-libc if you look in /usr/portage/dev-embedded?

try: 

emerge -search avr

Have you rsync'd lately?

Scott  =)
Comment 10 Sascha Silbe 2004-04-01 02:09:41 UTC
"emerge avr-gcc" does not work for me (see below). I sync my portage tree nearly daily, sometimes even several times a day.

=== Begin screenshot ===
root@cube:~# emerge -v avr-gcc
Calculating dependencies ...done!
>>> emerge (1 of 1) dev-embedded/avr-gcc-3.3-r1 to /
>>> md5 src_uri ;-) gcc-3.3.tar.bz2
>>> Unpacking source...
>>> Unpacking gcc-3.3.tar.bz2 to /var/tmp/portage/avr-gcc-3.3-r1/work
>>> Source unpacked.

!!! ERROR: dev-embedded/avr-gcc-3.3-r1 failed.
!!! Function econf, Line 367, Exitcode 1
!!! no configure script found
=== End screenshot ===

Comment 11 Scott Price 2004-04-01 09:12:31 UTC
Created attachment 28512 [details]
r2 ebuild

This ebuild fixes a problem created when the ebuild was changed to put it into
portage.  I had to add:

S=${WORKDIR}/${MY_P}

Since the downloaded package is not called avr-gcc.  It would not correctly
find the source directory.

Scott  =)
Comment 12 Sascha Silbe 2004-05-04 14:05:21 UTC
Using your updated ebuild I can emerge avr-gcc fine, thanks! Any chance of getting it into the official Portage tree?  
Comment 13 Scott Price 2004-05-04 16:48:10 UTC
Alas, I don't have the power.  :(  We will have to wait for someone else to do it.

This particular bug is found at http://bugs.gentoo.org/show_bug.cgi?id=46885 where there is an ebuild for gcc-3.3.2.

Scott  =)
Comment 14 Daniel Black (RETIRED) gentoo-dev 2004-09-23 20:00:38 UTC
its there not sure why this is still open.