Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 211365 - emerge hits a traceback while merging cross-powerpc-603e-linux-gnu/binutils
Summary: emerge hits a traceback while merging cross-powerpc-603e-linux-gnu/binutils
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: x86 Linux
: High normal with 1 vote (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 216231
  Show dependency tree
 
Reported: 2008-02-25 12:26 UTC by Martin Samek
Modified: 2008-11-26 19:16 UTC (History)
1 user (show)

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


Attachments
Portage log (cross-powerpc-603e-linux-gnu-binutils.log,477.21 KB, text/plain)
2008-02-25 12:27 UTC, Martin Samek
Details
use catpkgsplit() instead of pkgsplit() to avoid mistaking weird category for a version (pkgsplit.patch,475 bytes, patch)
2008-02-26 00:05 UTC, Zac Medico
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Samek 2008-02-25 12:26:25 UTC
crossdev toolchain building process for target powerpc-603e-linux-gnu crashes, when compilation done, before files installation.

Reproducible: Always

Steps to Reproduce:
1. crossdev --target powerpc-603e-linux-gnu --kernel 2.6.18
OR manually: emerge cross-powerpc-603e-linux-gnu/binutils  

Actual Results:  
binutils installation crash

Expected Results:  
Properly build toolchain for given target.

 * Host Portage ARCH:     x86
 * Target Portage ARCH:   ppc
 * Target System:         powerpc-603e-linux-gnu
 * Stage:                 4 (C/C++ compiler)

 * binutils:              binutils-[latest]
 * gcc:                   gcc-[latest]
 * headers:               linux-headers-[latest]
 * libc:                  glibc-[latest]

 * PORTDIR_OVERLAY:       /usr/portage/local/layman/sunrise
 * PORT_LOGDIR:           /var/log/portage
 * PKGDIR:                /usr/portage/packages/cross/powerpc-603e-linux-gnu
 * PORTAGE_TMPDIR:        /var/tmp/cross/powerpc-603e-linux-gnu

 * Forcing the latest versions of {binutils,gcc}-config/gnuconfig ...                                                                   
 * Log: /var/log/portage/cross-powerpc-603e-linux-gnu-binutils.log
 * Emerging cross-binutils ...


from /var/log/portage/cross-powerpc-603e-linux-gnu-binutils.log
>>> Completed installing binutils-2.18-r1 into /var/tmp/cross/powerpc-603e-linux-gnu/portage/cross-powerpc-603e-linux-gnu/binutils-2.18-r1/image/

ecompressdir: bzip2 -9 /usr/share/binutils-data/powerpc-603e-linux-gnu/2.18/man
strip: i686-pc-linux-gnu-strip --strip-unneeded -R .comment
   usr/lib/binutils/powerpc-603e-linux-gnu/2.18/libopcodes-2.18.so
   usr/lib/binutils/powerpc-603e-linux-gnu/2.18/libbfd-2.18.so
   usr/i686-pc-linux-gnu/powerpc-603e-linux-gnu/binutils-bin/2.18/ar
   usr/i686-pc-linux-gnu/powerpc-603e-linux-gnu/binutils-bin/2.18/as
   usr/i686-pc-linux-gnu/powerpc-603e-linux-gnu/binutils-bin/2.18/ld
   usr/i686-pc-linux-gnu/powerpc-603e-linux-gnu/binutils-bin/2.18/nm
   usr/i686-pc-linux-gnu/powerpc-603e-linux-gnu/binutils-bin/2.18/size
   usr/i686-pc-linux-gnu/powerpc-603e-linux-gnu/binutils-bin/2.18/c++filt
   usr/i686-pc-linux-gnu/powerpc-603e-linux-gnu/binutils-bin/2.18/readelf
   usr/i686-pc-linux-gnu/powerpc-603e-linux-gnu/binutils-bin/2.18/gprof
   usr/i686-pc-linux-gnu/powerpc-603e-linux-gnu/binutils-bin/2.18/strip
   usr/i686-pc-linux-gnu/powerpc-603e-linux-gnu/binutils-bin/2.18/addr2line
   usr/i686-pc-linux-gnu/powerpc-603e-linux-gnu/binutils-bin/2.18/strings
   usr/i686-pc-linux-gnu/powerpc-603e-linux-gnu/binutils-bin/2.18/objcopy
   usr/i686-pc-linux-gnu/powerpc-603e-linux-gnu/binutils-bin/2.18/objdump
   usr/i686-pc-linux-gnu/powerpc-603e-linux-gnu/binutils-bin/2.18/ranlib
   usr/lib/binutils/powerpc-603e-linux-gnu/2.18/libopcodes.a
   usr/lib/binutils/powerpc-603e-linux-gnu/2.18/libiberty.a
   usr/lib/binutils/powerpc-603e-linux-gnu/2.18/libbfd.a
Traceback (most recent call last):
  File "/usr/bin/emerge", line 6971, in ?
    retval = emerge_main()
  File "/usr/bin/emerge", line 6965, in emerge_main
    myopts, myaction, myfiles, spinner)
  File "/usr/bin/emerge", line 6395, in action_build
    retval = mergetask.merge(pkglist, favorites, mtimedb)
  File "/usr/bin/emerge", line 3981, in merge
    return self._merge(mylist, favorites, mtimedb)
  File "/usr/bin/emerge", line 4259, in _merge
    prev_mtimes=ldpath_mtimes)
  File "/usr/lib/portage/pym/portage.py", line 4818, in doebuild
    vartree=vartree, prev_mtimes=prev_mtimes)
  File "/usr/lib/portage/pym/portage.py", line 5013, in merge
    mydbapi=mydbapi, prev_mtimes=prev_mtimes)
  File "/usr/lib/portage/pym/portage.py", line 9486, in merge
    mydbapi=mydbapi, prev_mtimes=prev_mtimes)
  File "/usr/lib/portage/pym/portage.py", line 9494, in _merge
    cleanup=cleanup, mydbapi=mydbapi, prev_mtimes=prev_mtimes)
  File "/usr/lib/portage/pym/portage.py", line 8760, in treewalk
    for v in self.vartree.dbapi.cp_list(self.mysplit[0]):
TypeError: unsubscriptable object
Comment 1 Martin Samek 2008-02-25 12:27:31 UTC
Created attachment 144573 [details]
Portage log
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2008-02-25 17:24:23 UTC
emerge --info please.
Comment 3 Martin Samek 2008-02-25 21:21:03 UTC
Portage 2.1.4.4 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-tuxonice-r2 i686)
=================================================================
System uname: 2.6.24-tuxonice-r2 i686 Intel(R) Pentium(R) M processor 1.60GHz
Timestamp of tree: Mon, 25 Feb 2008 10:00:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=pentium-m -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/ "
LANG="cs_CZ"
LC_ALL="cs_CZ.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="cs"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 accessibility acpi alsa bash-completion berkdb bitmap-fonts bluetooth bzip2 cairo cdr cli cracklib crypt cups dbus dia dri dvd dvdread exif fam firefox fortran gdbm gif hal iconv ieee1394 ipod isdnlog java jpeg jpeg2k kde live logitech-mouse midi mmx mmxext mp3 mpeg mudflap ncurses network nls nptl nptlonly nsplugin ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3 qt3support qt4 quicktime readline real reflection rtc rtsp samba sdl session slang spell spl sse sse2 ssl stream svg tcpd tetex threads tiff truetype truetype-fonts type1-fonts unicode vorbis win32codecs wxwindows x264 x86 xinerama xml xorg xosd xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="cs" USERLAND="GNU" VIDEO_CARDS="i810"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 4 SpanKY gentoo-dev 2008-02-25 22:24:55 UTC
your target probably isnt what you want ... 'powerpc-603e-linux-gnu' is exactly the same as 'powerpc-linux-gnu'.  the 603e is ignored if it isnt in the first tuple.

either way, not a crossdev bug.  portage hitting a trace back is a portage bug.
Comment 5 Zac Medico gentoo-dev 2008-02-26 00:05:31 UTC
Created attachment 144650 [details, diff]
use catpkgsplit() instead of pkgsplit() to avoid mistaking weird category for a version
Comment 6 Marius Mauch (RETIRED) gentoo-dev 2008-03-20 18:15:04 UTC
This is supposed to be fixed in portage-2.2_pre5 or earlier.
Comment 7 Marius Mauch (RETIRED) gentoo-dev 2008-03-20 18:15:49 UTC
This is supposed to be fixed in portage-2.2_pre5 or earlier.
Comment 8 Bernhard Kaindl 2008-11-26 18:24:01 UTC
Isn't it possible to fix this within the current portage snapshot available on the mirrors?

I installed stage3-2008.0 and retrieved portage-20081125.tar.bz2, did an emerge portage (emerge --infor says "Portage 2.1.4.5") and still got this error.

It's a simple two-line fix after all.
Comment 9 Zac Medico gentoo-dev 2008-11-26 19:16:35 UTC
(In reply to comment #8)
> Isn't it possible to fix this within the current portage snapshot available on
> the mirrors?

It's fixed in portage-2.1.6_rc1 and this branch will be stable soon enough.