First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 86641
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: SpanKY <vapier@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Mark Burazin <mark@burazin.net>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
cross-avr-binutils.log cross-avr-binutils.log text/plain Mark Burazin 2005-03-25 04:47 0000 91 bytes Details
cross-avr-info.log cross-avr-info.log text/plain Mark Burazin 2005-03-25 04:48 0000 2.84 KB Details
crossdev-multiple-overlays.patch Patch so crossdev works with multiple overlays patch Daniel Willmann 2005-04-08 20:14 0000 446 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 86641 depends on: Show dependency tree
Show dependency graph
Bug 86641 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)







View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2005-03-25 04:43 0000
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 From Mark Burazin 2005-03-25 04:47:24 0000 -------
Created an attachment (id=54429) [edit]
cross-avr-binutils.log

------- Comment #2 From Mark Burazin 2005-03-25 04:48:02 0000 -------
Created an attachment (id=54430) [edit]
cross-avr-info.log

------- Comment #3 From SpanKY 2005-03-25 05:33:57 0000 -------
your PORTDIR_OVERLAY is not set, that's why

i added a check to crossdev for that

------- Comment #4 From Mark Burazin 2005-03-25 07:21:33 0000 -------
That solved the issue, thank You!

------- Comment #5 From Daniel Willmann 2005-04-08 20:06:42 0000 -------
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 From Daniel Willmann 2005-04-08 20:14:26 0000 -------
Created an attachment (id=55734) [edit]
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 From SpanKY 2005-04-08 20:30:08 0000 -------
how about this:
PORTDIR_OVERLAY=$(portageq envvar PORTDIR_OVERLAY)
PORTDIR_OVERLAY=${PORTDIR_OVERLAY%% *}

------- Comment #8 From Daniel Willmann 2005-04-09 16:12:43 0000 -------
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 From SpanKY 2005-04-09 18:04:15 0000 -------
added to cvs then

First Last Prev Next    No search results available      Search page      Enter new bug