Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 37965 - emerge -S fails on sparc64 and x86 with portage 2.0.50_pre12
Summary: emerge -S fails on sparc64 and x86 with portage 2.0.50_pre12
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-12 06:18 UTC by Jason Wever (RETIRED)
Modified: 2004-01-12 12:26 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jason Wever (RETIRED) gentoo-dev 2004-01-12 06:18:45 UTC
emerge -S fails on sparc64 and x86 using portage 2.0.50_pre12.

The failure is;

emerge -S bitlbee
Traceback (most recent call last):
  File "/usr/bin/emerge", line 404, in ?
    myelogstr+=" "+string.join(myfiles, " ")
  File "/usr/lib/python2.3/string.py", line 135, in join
    return sep.join(words)
TypeError: sequence item 1: expected string, NoneType found


emerge info from x86;
Portage 2.0.50_pre12 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20031222-r0, 2.4.24)
=================================================================
System uname: 2.4.24 i686 AMD Athlon(tm) XP 2100+
Gentoo Base System version 1.4.3.12
distcc 2.12.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
Autoconf: sys-devel/autoconf-2.59
Automake: sys-devel/automake-1.7.8
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O2 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=athlon-xp -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs buildpkg ccache cvs sandbox"
GENTOO_MIRRORS="ftp://gentoo.mirrors.pair.com/ http://www.ibiblio.org/gentoo ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://stargazer.weeve.org/gentoo-portage"
USE="3dnow X adns apache2 apm avi berkdb cdr crypt cups dga distribution dvd emacs encode esd ethereal evo fbcon foomaticdb gdbm gif gphoto2 gpm gtk gtk2 gtkhtml guile hbci imap imlib jack java jpeg libgda libwww mad mikmod mmx motif moznocompose moznoirc moznomail mozp3p mozsvg mozxmlterm mpeg ncurses no-experimental ofx oggvorbis opengl oscar oss pam pda pdflib perl png python quicktime radeon readline samba scanner sdl slp spell sse ssl svga tcltk tcpd truetype usb x86 xface xml xml2 xmms xv xvid zlib video_cards_radeon"

emerge info from sparc64;
Portage 2.0.50_pre12 (default-sparc64-1.4, gcc-3.2.3, glibc-2.3.3_pre20031222-r0, 2.4.25-pre4)
=================================================================
System uname: 2.4.25-pre4 sparc64 sun4u
Gentoo Base System version 1.4.3.12
distcc 2.12.1 sparc-unknown-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59
Automake: sys-devel/automake-1.7.8
ACCEPT_KEYWORDS="sparc ~sparc"
AUTOCLEAN="yes"
CFLAGS="-mcpu=ultrasparc -O2 -pipe"
CHOST="sparc-unknown-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-mcpu=ultrasparc -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="buildpkg ccache cvs distcc sandbox"
GENTOO_MIRRORS="ftp://gentoo.mirrors.pair.com/ http://gentoo.mirrors.pair.com/ ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://stargazer.weeve.org/gentoo-portage"
USE="sparc X Xaw3d berkdb cdr crypt crypto cups dillo doc emacs esd fbcon foomaticdb gdbm gnutls gtk gtk2 gtkhtml imlib java jpeg ldap libwww mad maildir mbox mozilla ncurses pam pdflib perl png python readline ruby samba scanner spell ssl tcpd tiff truetype ultra1 xface xinerama xml zlib"
Comment 1 Nicholas Jones (RETIRED) gentoo-dev 2004-01-12 11:12:41 UTC
if myfiles:
  myelogstr+=" "+string.join(myfiles, " ")

Which means that that error is impossible.
I'd say it was a python/compiler issue.
Comment 2 Nicholas Jones (RETIRED) gentoo-dev 2004-01-12 11:57:20 UTC
I'm seeing this a very much a python problem. It checks the
value before it uses it... And this problem only occurs on sparc...

Liquidx: Can you take a look at it for a second opinion?

Perhaps we should throw this upstream... after we test with
minimal CFLAGS.
Comment 3 Nicholas Jones (RETIRED) gentoo-dev 2004-01-12 11:59:37 UTC
Ok... This isn't limited to sparc... But I can't reproduce it.
Comment 4 Jason Wever (RETIRED) gentoo-dev 2004-01-12 12:00:38 UTC
From talking with carpaski on IRC, here is some additional information on the test systems.  All machines are running ~arch and I'm not masking or unmasking anything other than >=sys-apps/portage-2.0.49-r21

system               python -V      python2.2 -V
ultra 2 sparc64      2.2.3          2.2.3
blade 100 sparc64    2.2.3          2.2.3
athlon xp            2.3.3          2.2.3
pentium 3 laptop     2.3.3          2.2.3

~x86 machines fail with the error;
Traceback (most recent call last):
  File "/usr/bin/emerge", line 404, in ?
    myelogstr+=" "+string.join(myfiles, " ")
  File "/usr/lib/python2.3/string.py", line 135, in join
    return sep.join(words)
TypeError: sequence item 1: expected string, NoneType found

~sparc machines fail with the error;
Traceback (most recent call last):
  File "/usr/bin/emerge", line 404, in ?
    myelogstr+=" "+string.join(myfiles, " ")
  File "/usr/lib/python2.2/string.py", line 136, in join
    return sep.join(words)
TypeError: sequence item 1: expected string, NoneType found



I've tried searching for portage and bitlbee as my sample searches, and both died, seemingly at the same point.
Comment 5 Nicholas Jones (RETIRED) gentoo-dev 2004-01-12 12:20:34 UTC
>>> import string
>>> string.join([None])
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/lib/python2.3/string.py", line 135, in join
    return sep.join(words)
TypeError: sequence item 0: expected string, NoneType found


So it seems that the second element is a None... Now to figure out why.
Comment 6 Nicholas Jones (RETIRED) gentoo-dev 2004-01-12 12:26:40 UTC
Ok. It's fixed. Ignore all the other comments I made about python.
_pre14