Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 236963 - crossdev fails to build avr32 toolchain (binutils)
Summary: crossdev fails to build avr32 toolchain (binutils)
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-07 13:33 UTC by Andre Swanepoel
Modified: 2009-02-08 21:22 UTC (History)
1 user (show)

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


Attachments
binutils log (cross-avr32-unknown-linux-uclib-binutils.log,5.78 KB, text/plain)
2008-09-07 13:35 UTC, Andre Swanepoel
Details
info log (cross-avr32-unknown-linux-uclib-info.log,12.26 KB, text/plain)
2008-09-07 13:36 UTC, Andre Swanepoel
Details
binutils log (cross-avr32-unknown-linux-uclibc-binutils.log,50.55 KB, text/plain)
2008-09-09 07:53 UTC, Andre Swanepoel
Details
info log (cross-avr32-unknown-linux-uclibc-info.log,12.12 KB, text/plain)
2008-09-09 07:54 UTC, Andre Swanepoel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andre Swanepoel 2008-09-07 13:33:00 UTC
The process fails while emerging cross-binutils. It looks like crossdev does not yet support the AVR32 target since it it not listed in "crossdev -t help".

#crossdev -t avr32-unknown-linux-uclib
--------------------------------------------------------------------------------------------------------------------------------------------------------------
 * Host Portage ARCH:     amd64
 * Target Portage ARCH:   *
 * Target System:         avr32-unknown-linux-uclib
 * Stage:                 3 (C compiler & libc)

 * binutils:              binutils-[latest]
 * gcc:                   gcc-[latest]
 * libc:                  avr-libc-[latest]

 * PORTDIR_OVERLAY:       /usr/local/portage
 * PORT_LOGDIR:           /var/log/portage
 * PKGDIR:                /usr/portage/packages/cross/avr32-unknown-linux-uclib
 * PORTAGE_TMPDIR:        /var/tmp/cross/avr32-unknown-linux-uclib
  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -  _  -  ~  -
 * Forcing the latest versions of {binutils,gcc}-config/gnuconfig ...                                                                                   [ ok ]
 * Log: /var/log/portage/cross-avr32-unknown-linux-uclib-binutils.log
 * Emerging cross-binutils ...

 * binutils failed :(
 * If you file a bug, please attach the following logfiles:
 * /var/log/portage/cross-avr32-unknown-linux-uclib-info.log
 * /var/log/portage/cross-avr32-unknown-linux-uclib-binutils.log


Reproducible: Always

Steps to Reproduce:
crossdev -t avr32-unknown-linux-uclib

Actual Results:  
crossdev creates the link to the ebuild in my PORTAGE_OVERLAY (/usr/local/portage), but the emerge process fails.

# ls -l /usr/local/portage/cross-avr32-unknown-linux-uclib/
total 0
lrwxrwxrwx 1 root root 34 Sep  7 15:18 avr-libc -> /usr/portage/dev-embedded/avr-libc
lrwxrwxrwx 1 root root 31 Sep  7 15:18 binutils -> /usr/portage/sys-devel/binutils
lrwxrwxrwx 1 root root 26 Sep  7 15:18 gcc -> /usr/portage/sys-devel/gcc
lrwxrwxrwx 1 root root 26 Sep  7 15:18 gdb -> /usr/portage/sys-devel/gdb
lrwxrwxrwx 1 root root 29 Sep  7 15:18 insight -> /usr/portage/dev-util/insight


Expected Results:  
I expected crossdev to build the avr32 cross compiler.
Comment 1 Andre Swanepoel 2008-09-07 13:35:19 UTC
Created attachment 164812 [details]
binutils log
Comment 2 Andre Swanepoel 2008-09-07 13:36:15 UTC
Created attachment 164813 [details]
info log
Comment 3 Andre Swanepoel 2008-09-07 13:42:19 UTC
I do not see portage patching binutils for the avr32, which is why I believe it is failing.
Comment 4 Andre Swanepoel 2008-09-09 07:53:36 UTC
Created attachment 164988 [details]
binutils log
Comment 5 Andre Swanepoel 2008-09-09 07:54:02 UTC
Created attachment 164990 [details]
info log
Comment 6 SpanKY gentoo-dev 2008-09-18 01:21:22 UTC
binutils doesnt support avr32, so you cant expect it to work

bug upstream to get support merged into mainline
Comment 7 Andre Swanepoel 2008-10-30 15:11:54 UTC
I was hoping the ebuild could be modified to download the patches (http://avr32linux.org/twiki/bin/view/Main/BinutilsPatches).

Reported upstream: http://sourceware.org/bugzilla/show_bug.cgi?id=6997
Comment 8 SpanKY gentoo-dev 2008-11-29 20:18:00 UTC
just put the patches yourself into /etc/portage/patches/cross-avr32/binutils/ and they'll get auto applied