Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 86641 - crossdev refuses to build the avr toolchain, breaks when trying to emerge cross-avr/binutils
Summary: crossdev refuses to build the avr toolchain, breaks when trying to emerge cro...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-25 04:43 UTC by Mark Burazin
Modified: 2005-04-09 18:04 UTC (History)
2 users (show)

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


Attachments
cross-avr-binutils.log (cross-avr-binutils.log,91 bytes, text/plain)
2005-03-25 04:47 UTC, Mark Burazin
Details
cross-avr-info.log (cross-avr-info.log,2.84 KB, text/plain)
2005-03-25 04:48 UTC, Mark Burazin
Details
Patch so crossdev works with multiple overlays (crossdev-multiple-overlays.patch,446 bytes, patch)
2005-04-08 20:14 UTC, Daniel Willmann
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Burazin 2005-03-25 04:43:35 UTC
I emerged crossdev-0.9.5 and binutils-2.15.92.0.2-r7 (unmasked it with ~x86)
I have tried emerging binutils with and without +multitarget flag, the final error is the same.
The error happens when I run:

crossdev --target avr-unknown-linux-gnu


Reproducible: Always
Steps to Reproduce:
1.emerge binutils (with ~x86)
2.emerge crossdev
3.crossdev --target avr-unknown-linux-gnu

Actual Results:  
 * Emerging cross-binutils...

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


Expected Results:  
I should have avr-gcc and other avr-* tools on my system.

Portage 2.0.51.19 (default-linux/x86/2004.3, gcc-3.3.5, glibc-2.3.4.20040808-r1,
2.6.10-gentoo-r6 i686)
=================================================================
System uname: 2.6.10-gentoo-r6 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Mar  2 2005, 13:28:12)]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.5, 1.8.5-r3, 1.6.3, 1.7.9-r1, 1.4_p6, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r7
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.4.21-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="ftp://mirror.etf.bg.ac.yu/gentoo/"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X acpi alsa apache2 apm arts audiofile avi berkdb bitmap-fonts bzlib
cdb cdparanoia cdr crypt ctypecups curl dvd dvdr emboss encode esd fam flac
font-server foomaticdb fortran ftp gdbm gif gnome gpm gtk gtk2imagemagick imlib
innodb java jpeg kde kdeenablefinal libg++ libwww mad matrox mikmod mmx motif
mp3 mpeg multitarget mysql ncurses nls offensive oggvorbis openal opengl oss pam
pcre pdflib perl php plotutils png posixpython qt quicktime readline sdl shared
slang sndfile sockets spell sqlite sse ssl svga tcltk tcpd theora tiff truetype
truetype-fonts type1-fonts unicode usb videos wmf wxwindows xface xine xinerama
xml xml2 xmms xpmxv xvid zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
Comment 1 Mark Burazin 2005-03-25 04:47:24 UTC
Created attachment 54429 [details]
cross-avr-binutils.log
Comment 2 Mark Burazin 2005-03-25 04:48:02 UTC
Created attachment 54430 [details]
cross-avr-info.log
Comment 3 SpanKY gentoo-dev 2005-03-25 05:33:57 UTC
your PORTDIR_OVERLAY is not set, that's why

i added a check to crossdev for that
Comment 4 Mark Burazin 2005-03-25 07:21:33 UTC
That solved the issue, thank You!
Comment 5 Daniel Willmann 2005-04-08 20:06:42 UTC
Hi,

this also happens if you have more than one location set in PORTDIR_OVERLAY.
This is my output:
[...]
 * PORTDIR_OVERLAY:       /usr/local/portage /usr/local/overlays/gentoo-de
[...]

You can trigger the bug with:
mkdir /usr/local/portage2
PORTDIR_OVERLAY="/usr/local/portage /usr/local/portage2" crossdev -t avr-unknown-linux-gnu

It will try to use the whole string as directory

I patched crossdev, so it takes the PORTDIR_OVERLAY environment as an array and only uses the first part.
I'll upload it in a minute.

Could someone please reopen this bug?
Comment 6 Daniel Willmann 2005-04-08 20:14:26 UTC
Created attachment 55734 [details, diff]
Patch so crossdev works with multiple overlays

Maybe there's a better way to add a new function in portageq, but this works
for me :-)
Comment 7 SpanKY gentoo-dev 2005-04-08 20:30:08 UTC
how about this:
PORTDIR_OVERLAY=$(portageq envvar PORTDIR_OVERLAY)
PORTDIR_OVERLAY=${PORTDIR_OVERLAY%% *}
Comment 8 Daniel Willmann 2005-04-09 16:12:43 UTC
Looks good and it is shorter.
I'm not so into bash, I just remembered bash had arrays and after reading the manualpage I came up with that patch.
Comment 9 SpanKY gentoo-dev 2005-04-09 18:04:15 UTC
added to cvs then