Attempting to emerge python-2.3.4 with the maketest FEATURE throws an error during the "make tesremerge output: ================================================================= ... test test_import crashed -- exceptions.ValueError: import from .pyc/.pyo failed: No module named @test ... ... 224 tests OK. 1 test failed: test_import 30 tests skipped: test_aepack test_al test_bsddb185 test_bsddb3 test_cd test_cl test_curses test_email_codecs test_gdbm test_gl test_imgfile test_largefile test_linuxaudiodev test_macfs test_macostools test_mpz test_nis test_normalization test_ossaudiodev test_pep277 test_plistlib test_scriptpackages test_socket_ssl test_socketserver test_sunaudiodev test_timeout test_unicode_file test_urllibnet test_winreg test_winsound 2 skips unexpected on linux2: test_gdbm test_mpz make: *** [test] Error 1 !!! ERROR: dev-lang/python-2.3.4 failed. !!! Function src_test, Line 526, Exitcode 0 !!! Make test failed. See above for details. !!! If you need support, post the topmost build error, NOT this status message. ... # emerge info Portage 2.0.51_rc9 (default-linux/x86/2004.3, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.8-gentoo-r8 i686) ================================================================= System uname: 2.6.8-gentoo-r8 i686 Pentium III (Coppermine) Gentoo Base System version 1.4.16 ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.14.90.0.8-r1 Headers: sys-kernel/linux26-headers-2.6.8.1 Libtools: sys-devel/libtool-1.5.2-r5 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=pentium3 -pipe -fomit-frame-pointer -fstack-protector" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=pentium3 -pipe -fomit-frame-pointer -fstack-protector" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache collision-protect digest distlocks fixpackages maketest sandbox sfperms strict userpriv usersandbox" GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://mirrors.tds.net/gentoo ftp://linux.thai.net/pub/mirrors/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.nerone.org/portage" USE="apache2 apm crypt encode f77 flash gd gif imap ithreads jpeg libwww mcal memlimit mmap mmx mmx2 ncurses nls nntp pam pdflib perl png python readline samba sasl spell sse ssl threads tiff truetype unicode vhosts x86 xml xml2 zlib" =================================================================
Same problem here, although I have a different amount of skipped tests. I noticed, that both of us use -fstack-protector, you in your C{XX}FLAGS and in my case as gcc default (gcc specfile, USE=hardened). I wonder if it is just a coincidence... My emerge info: Portage 2.0.51-r2 (default-x86-2004.2, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.4.27-hardened-r2 i686) ================================================================= System uname: 2.4.27-hardened-r2 i686 Pentium III (Coppermine) Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.14.90.0.8-r1 Headers: sys-kernel/linux-headers-2.4.19-r1,sys-kernel/linux-headers-2.4.21-r1 Libtools: sys-devel/libtool-1.5.2-r5 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=i686 -O2 -mcpu=pentium3 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.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/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=i686 -O2 -mcpu=pentium3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache distlocks maketest moo sandbox srict" GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://linux.rz.ruhr-uni-bochum.de/gentoo-portage" USE="X X509 aalib acpi acpi4linux alsa apm arts avi berkdb bitmap-fonts crypt cups dga directfb dvd f77 foomaticdb gdbm gif gtk gtk2 hardened imap imlib innodb ipv6 java jpeg kde libwww mbox md5sum mikmod mozcalendar mozilla mozinterfaceinfo mpeg mysql ncurses nls oggvorbis opengl oss pam pcmcia pdflib perl plotutils png pnp ppds python qt quicktime readline samba sasl sdl sftplogging slang spell sse ssl tcpd tiff truetype type1 usb x86 xine xml2 xmms xprint xv zlib"
I reattempted with -fstack-protector removed from CFLAGS. Same error results.
confirming here as well. ... test_import test test_import crashed -- exceptions.ValueError: import from .pyc/.pyo failed: No module named @test ... test_sax test test_sax crashed -- exceptions.TypeError: int argument required ... 224 tests OK. 2 tests failed: test_import test_sax 29 tests skipped: test_aepack test_al test_bsddb185 test_bsddb3 test_cd test_cl test_curses test_email_codecs test_gl test_imgfile test_largefile test_linuxaudiodev test_macfs test_macostools test_mpz test_nis test_normalization test_ossaudiodev test_pep277 test_plistlib test_scriptpackages test_socket_ssl test_socketserver test_sunaudiodev test_timeout test_unicode_file test_urllibnet test_winreg test_winsound 1 skip unexpected on linux2: test_mpz make: *** [test] Error 1 !!! ERROR: dev-lang/python-2.3.4 failed. ***** -=[ /etc ]=- # emerge info Portage 2.0.51-r3 (default-linux/x86/2004.2, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.9-ck3 i686) ================================================================= System uname: 2.6.9-ck3 i686 Pentium III (Katmai) Gentoo Base System version 1.4.16 ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.14.90.0.8-r1 Headers: sys-kernel/linux26-headers-2.6.8.1 Libtools: sys-devel/libtool-1.5.2-r5 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=pentium3 -fomit-frame-pointer -pipe -fprefetch-loop-arrays -ftracer" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=pentium3 -fomit-frame-pointer -pipe -fprefetch-loop-arrays -ftracer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache distlocks maketest noinfo sandbox sfperms" GENTOO_MIRRORS="ftp://sunsite.ualberta.ca/pub/unix/Linux/gentoo/ ftp://gentoo.agsn.ca/ http://gentoo.mirrored.ca/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X aalib alsa ba-completion berkdb cdr crypt divx4linux eds gdbm gif gnome gnutls gpm gstreamer gtk gtk2 gtkhtml hal imlib java jpeg libcaca mad matroska mmx mozilla mpeg ncurses no_wxgtk1 nptl odbc oggvorbis opengl oss pam perl pic png pwdb python quicktime readline real rtc ruby sdl sse ssl tcpd truetype unicode userlocales xml xml2 xv xvid zlib"
*** Bug 65716 has been marked as a duplicate of this bug. ***
Same problem with Pentium 4 and Athlon XP. Can anyone tell how this affects actual usage?
Re: comment #5 As far as the import test failing, its due to a sandbox problem I beleive. The test passes when I compile it without portage. I can't make the sax test fail though.
Same problem on my system. Failing tests: test_import test_sax Gentoo Base System version 1.4.16 Portage 2.0.51-r3 (default-linux/x86/2004.0, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.7-cube-3 i686) ================================================================= System uname: 2.6.7-cube-3 i686 AMD Athlon(tm) XP 1700+ distcc 2.16 i586-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.90.0.1.1-r3 Headers: sys-kernel/linux-headers-2.4.21-r1 Libtools: sys-devel/libtool-1.5.2-r5 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=pentium -mcpu=athlon-tbird -O3 -pipe" CHOST="i586-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /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/mozilla/defaults/pref /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/ /usr/vice/etc /var/qmail/alias /var/qmail/control" CONFIG_PROTECT_MASK="/etc/afs/C /etc/afs/afsws /etc/afs/modload /etc/gconf /etc/make.globals /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium -mcpu=athlon-tbird -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks maketest sandbox sfperms strict userpriv usersandbox" GENTOO_MIRRORS="ftp://ftp.easynet.nl/mirror/gentoo/ http://gentoo.inode.at/ ftp://gentoo.inode.at/source/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp/portage" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://hybrid.sascha.silbe.org/gentoo-portage" USE="3dnow X acl afs alsa apm avi berkdb bitmap-fonts blas bzlib cdr crypt doc dvd dvdr encode f77 fam flac foomaticdb fortran gdbm gif gimpprint gtk gtk2 gtkhtml guile hbci imagemagick imap imlib ipv6 j-noaim j-nomsn j-noyahoo jabber jpeg krb4 lapack lcms libg++ libwww lvm1 mad maildir makecheck mbox mikmod mmx monitor mpeg mysql nas ncurses nls oggvorbis opengl oss pam pdflib plotutils png postgres python qt qtmt quicktime readline samba scanner sdl skey spell sqlite sse ssl tetex tiff truetype unicode x86 xml xml2 xv xvid zlib linguas_en,de"
Could one of you who have the sax failure try the test without portage, i.e ebuild python-2.3.4-r1.ebuild clean unpack cd /var/tmp/portage/python-2.3.4-r1/work/Python-2.3.4/ make && make test If it doesn't fail there I suggest we just skip that test unless/until someone figures out why it only fails when run from emerge.
Emerging With "maketest" enabled still fails, but with different output as in the initial bugreport: test_xmllib test_xmlrpc test_xpickle test_xreadline test_zipfile test_zipimport test_zlib 228 tests OK. 1 test failed: test_import 26 tests skipped: test_aepack test_al test_bsddb185 test_bsddb3 test_cd test_cl test_curses test_email_codecs test_gl test_imgfile test_linuxaudiodev test_macfs test_macostools test_nis test_normalization test_ossaudiodev test_pep277 test_plistlib test_scriptpackages test_socket_ssl test_socketserver test_sunaudiodev test_timeout test_urllibnet test_winreg test_winsound Those skips are all expected on linux2. make: *** [test] Error 1 !!! ERROR: dev-lang/python-2.3.4-r1 failed. !!! Function src_test, Line 572, Exitcode 0 !!! Make test failed. See above for details. I then ran the following ebuild python-2.3.4-r1.ebuild clean unpack compile cd /var/tmp/portage/python-2.3.4-r1/work/Python-2.3.4/ make test This seems to work: ... test_xmlrpc test_xpickle test_xreadline test_zipfile test_zipimport test_zlib 229 tests OK. 26 tests skipped: test_aepack test_al test_bsddb185 test_bsddb3 test_cd test_cl test_curses test_email_codecs test_gl test_imgfile test_linuxaudiodev test_macfs test_macostools test_nis test_normalization test_ossaudiodev test_pep277 test_plistlib test_scriptpackages test_socket_ssl test_socketserver test_sunaudiodev test_timeout test_urllibnet test_winreg test_winsound Those skips are all expected on linux2. I also looked at the return-code of make: # echo $? 0
"FEATURES=maketest emerge python " still fails on both tests for me, but compiling manually gives no errors. I've not used exactly the same procedure as the ebuild, though.
'FEATURES="-sandbox -usersandbox -ccache -autoconfig -userpriv" emerge python' fails, too. So it's not a sandbox or userpriv issue.
here you go: # emerge -pv python [ebuild U ] dev-lang/python-2.3.4-r1 [2.3.4] +X +berkdb -bootstrap -build -debug -doc -gdbm -ipv6 +ncurses +readline +ssl -tcltk -ucs2 0 kB # ebuild python-2.3.4-r1.ebuild clean # ebuild python-2.3.4-r1.ebuild unpack # cd /var/tmp/portage/python-2.3.4-r1/work/Python-2.3.4/ # ./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --with-fpectl --enable-shared --disable-ipv6 --infodir=${prefix}/share/info --mandir=${prefix}/share/man --with-threads --with-cxx=no --enable-unicode=ucs4 # make # make test 226 tests OK. 29 tests skipped: test_aepack test_al test_bsddb185 test_bsddb3 test_cd test_cl test_curses test_email_codecs test_gdbm test_gl test_imgfile test_linuxaudiodev test_macfs test_macostools test_mpz test_nis test_normalization test_ossaudiodev test_pep277 test_plistlib test_scriptpackages test_socket_ssl test_socketserver test_sunaudiodev test_timeout test_unicode_file test_urllibnet test_winreg test_winsound 2 skips unexpected on linux2: test_gdbm test_mpz
*** Bug 81346 has been marked as a duplicate of this bug. ***
Created attachment 50858 [details] src_test-2.3
Created attachment 50859 [details] src_test-2.4
Ryan, re: comment #12, you might want to try having it compile with ebuild instead of running configure itself: ebuild python-2.3.4-r1.ebuild clean unpack compile then cd and make test. For the mpz test, make sure you're not using any crazy math related CFLAGS. If they still skip but don't fail, I'm not sure what we can do about it, except check upstream. Attached are two proposed src_unpack's for the 2.3 and 2.4 versions
If I use "ebuild [...] compile" and run the tests manually, test_sax still fails (but test_import works).
Sascha can you post the exact error message it shows when sax fails and also the output of "emerge info" please? I can never get the sax test to fail and can't find anything in python.org's bug reports about it.
From "make test": test test_sax crashed -- exceptions.TypeError: int argument required Manual invocation: root@cube:/var/tmp/portage/portage/python-2.3.4-r1/work/Python-2.3.4# python ./Lib/test/test_sax.py Failed test_attrs_empty Failed test_attrs_wattr Failed test_double_quoteattr Failed test_escape_all Failed test_escape_basic Failed test_escape_extra Failed test_expat_attrs_empty Failed test_expat_attrs_wattr Failed test_expat_dtdhandler Failed test_expat_entityresolver Failed test_expat_file Failed test_expat_incomplete Failed test_expat_incremental Failed test_expat_incremental_reset Failed test_expat_inpsource_filename Failed test_expat_inpsource_location Failed test_expat_inpsource_stream Failed test_expat_inpsource_sysid Failed test_expat_locator_noinfo Failed test_expat_locator_withinfo Failed test_expat_nsattrs_empty Failed test_expat_nsattrs_wattr Failed test_filter_basic Failed test_make_parser Failed test_make_parser2 Failed test_nsattrs_empty Failed test_nsattrs_wattr Failed test_quoteattr_basic Traceback (most recent call last): File "./Lib/test/test_sax.py", line 689, in ? confirm(value(), name) File "./Lib/test/test_sax.py", line 502, in test_sax_parse_exception_str DummyLocator(None, 1))) File "/usr/lib/python2.3/site-packages/_xmlplus/sax/_exceptions.py", line 94, in __str__ return "%s:%d:%d: %s" % (sysid, self.getLineNumber(), TypeError: int argument required root@cube:/var/tmp/portage/portage/python-2.3.4-r1/work/Python-2.3.4# equery belongs /usr/lib/python2.3/site-packages/_xmlplus/sax/_exceptions.py [ Searching for file(s) /usr/lib/python2.3/site-packages/_xmlplus/sax/_exceptions.py in *... ] dev-python/pyxml-0.8.3-r1 (/usr/lib/python2.3/site-packages/_xmlplus/sax/_exceptions.py) root@cube:/var/tmp/portage/portage/python-2.3.4-r1/work/Python-2.3.4# Gentoo Base System version 1.4.16 Portage 2.0.51-r15 (default-linux/x86/2004.0, gcc-3.3.5, glibc-2.3.4.20040808-r1, 2.6.10-infra-r1-cube-1 i686) ================================================================= System uname: 2.6.10-infra-r1-cube-1 i686 AMD Athlon(tm) XP 1700+ Python: dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 8 2005, 02:37:46)] distcc 2.16 i586-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] dev-lang/python: 2.3.4-r1 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.5, 1.7.9-r1, 1.4_p6, 1.9.4, 1.6.3, 1.8.5-r3 sys-devel/binutils: 2.15.92.0.2-r1 sys-devel/libtool: 1.5.10-r4 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=pentium -mcpu=athlon-tbird -O3 -pipe" CHOST="i586-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/lib/mozilla/defaults/pref /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/ /usr/vice/etc /var/qmail/alias /var/qmail/control" CONFIG_PROTECT_MASK="/etc/afs/C /etc/afs/afsws /etc/afs/modload /etc/gconf /etc/make.globals /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium -mcpu=athlon-tbird -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache collision-protect distlocks fixpackages sandbox sfperms strict test userpriv usersandbox" GENTOO_MIRRORS="ftp://ftp.easynet.nl/mirror/gentoo/ http://gentoo.inode.at/ ftp://gentoo.inode.at/source/" LANG="en_US" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp/portage" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage-local--main--1.0" SYNC="rsync://hybrid.sascha.silbe.org/gentoo-portage" USE="x86 3dnow S3TC X acl afs alsa apm avi bash-completion berkdb bitmap-fonts blas bzlib cdr crypt doc dvd dvdr encode f77 fam flac font-server foomaticdb fortran gdbm gif gimpprint gtk gtk2 gtkhtml guile hbci imagemagick imap imlib ipv6 j-noaim j-nomsn j-noyahoo jabber jpeg kerberos lapack lcms libg++ libwww lvm1 mad maildir makecheck mbox mikmod mmx monitor mozsvg mpeg mysql nas ncurses nls nodrm offensive oggvorbis opengl oss pam pdflib plotutils png postgres python qt qtmt quicktime readline samba scanner sdl serial skey spell sqlite sse ssl tetex tiff truetype truetype-fonts type1-fonts unicode xml xml2 xv xvid zlib linguas_en,de" Unset: ASFLAGS, CBUILD, CTARGET, LC_ALL, LDFLAGS
oops, forget me. i just merged python-2.3 using emerge and test_sax now passes. i don't know how long it's been that way, i haven't run emerge with maketest in a while. =/ the src_test-2.3 attachment did get me past test_import and merged properly for what it's worth. here's my current info for comparison: Portage 2.0.51-r15 (default-linux/x86/2005.0, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.10-ck5 i686) ================================================================= System uname: 2.6.10-ck5 i686 Pentium III (Katmai) Gentoo Base System version 1.6.9 Python: dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 9 2005, 19:11:20)] ccache version 2.4 [enabled] dev-lang/python: 2.3.4-r1 sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4 sys-devel/binutils: 2.15.92.0.2-r2 sys-devel/libtool: 1.5.10-r4 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=pentium3 -fomit-frame-pointer -pipe -fweb -frename-registers" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /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=pentium3 -fomit-frame-pointer -pipe -fweb -frename-registers" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks maketest sandbox sfperms test" GENTOO_MIRRORS="ftp://cs.ubishops.ca/pub/gentoo ftp://sunsite.ualberta.ca/pub/unix/Linux/gentoo/" LDFLAGS="-Wl,-O1 -Wl,--enable-new-dtags" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X alsa berkdb crypt esd gif gtk gtk2 jpeg mmx mozilla mp3 mpeg ncurses nptl oggvorbis opengl oss perl pic png python readline sse ssl tcpd threads tiff truetype xml2 xmms xv zlib" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL
After the portage fails due to this bug try to go into the working directory and issue `make test'. At least I get no failed tests in such case. Portage 2.0.51-r15 (default-linux/x86/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.4.21-0.13mdk i686) ================================================================= System uname: 2.4.21-0.13mdk i686 AMD Athlon(tm) Processor Gentoo Base System version 1.6.9 Python: dev-lang/python-2.3.4 [2.3.4 (#1, Jan 29 2005, 02:41:59)] dev-lang/python: 2.3.4 sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.5, 1.9.4, 1.8.5-r2, 1.4_p6, 1.6.3, 1.7.9 sys-devel/binutils: 2.15.92.0.2-r2 sys-devel/libtool: 1.5.10-r4 virtual/os-headers: 2.4.22 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=i686 -fomit-frame-pointer -pipe" 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=i686 -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks maketest sandbox sfperms test" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X apm arts avi berkdb bitmap-fonts crypt cups emacs encode esd f77 flac font-server foomaticdb fortran gdbm gif gpm gtk gtk2 imagemagick imlib ipv6 java jpeg libg++ libwww mad makecheck mikmod motif mpeg ncurses nls oggvorbis opengl oss pam pdflib perl pic png postgres python qt quicktime readline samba sdl shared slang spell ssl tcpd tiff truetype truetype-fonts type1-fonts xml xml2 xmms xv zlib" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
affirmed: running "make test" manually produces _no_ failed tests However this issue should be fixed (means no manual run of "make test" required to check if anything was wrong).
This problem happens for me with FEATURES="". So it's not a features issue. However, doing a strace -f -F -v -s 65536 emerge python showed me that emerge is setting an environment variable of PYTHON_DONTCOMPILE=1, and this is what is causing the problem - test_import is apparently testing the functionality that this environment variable turns off. So it fails.
Strange...the tests shouldn't even run unless FEATURES includes "test" ("maketest" is still a synonym, but the official name of the feature has changed to "test" since I opened this bug). Last time I compiled python was Feb 21, but at least at that time, this was the case. Turning off "test" made portage skip the tests altogether, thereby avoiding the test_import failure, thereby allowing me to merge python. I did no other magic. If the tests run regardless of FEATURES, then you wouldn't be able to successfully merge python via portage at all, correct?
Note: I just changed the bug summary to reflect the new feature name, "test", rather than "maketest".
*** Bug 84202 has been marked as a duplicate of this bug. ***
FEATURES=test should be fixed in 2.3.5 and 2.4.1 now (using a slightly modified version of src_test-2.4, thanks Rob). I haven't disabled sax as reporter mentioned that's no longer a problem and nobody else have been able to reproduce sax test failing. Instead I've added urllib and urllib2 as they break with some proxy configurations. Please test and report back if FEATURES="test" stills fails.
2.3.5 and 2.4.1 both pass here.
Same here, ebuilds for 2.3.5 and 2.4.1 do not break with the "test" feature enabled.
Ack: dev-lang/python-2.3.5 merges fine with FEATURES=test. Thanks!
Created attachment 75699 [details] test_hotshot failed (plus stack shashing attack error)
Comment on attachment 75699 [details] test_hotshot failed (plus stack shashing attack error) sorry ^^ only _one_ test fails
test_hotshot fails for dev-lang/python-2.4.2 please reopen this bug ------------------------------------------------- test_hotshot test test_hotshot failed -- Traceback (most recent call last): File "/var/tmp/portage/python-2.4.2/work/Python-2.4.2/Lib/test/test_hotshot.py", line 98, in test_line_numbers self.run_test(g, events, self.new_profiler(lineevents=1)) File "/var/tmp/portage/python-2.4.2/work/Python-2.4.2/Lib/test/test_hotshot.py", line 69, in run_test self.check_events(events) File "/var/tmp/portage/python-2.4.2/work/Python-2.4.2/Lib/test/test_hotshot.py", line 57, in check_events self.fail( AssertionError: events did not match expectation; got: [(0, ('test_hotshot', 86, 'g')), (2, ('test_hotshot', 68, 'g')), (0, ('test_hotshot', 83, 'f')), (2, ('test_hotshot', 68, 'f')), (2, ('test_hotshot', 68, 'f')), (1, ('test_hotshot', 83, 'f')), (1, ('test_hotshot', 86, 'g'))] expected: [(0, ('test_hotshot', 86, 'g')), (2, ('test_hotshot', 87, 'g')), (0, ('test_hotshot', 83, 'f')), (2, ('test_hotshot', 84, 'f')), (2, ('test_hotshot', 85, 'f')), (1, ('test_hotshot', 83, 'f')), (1, ('test_hotshot', 86, 'g'))]
works for me both inside and outside of sandbox. emerge info please?
ups, sorry! Portage 2.0.53 (default-linux/amd64/2005.1, gcc-3.4.4, glibc-2.3.5-r2, 2.6.13-gentoo-r5 x86_64) ================================================================= System uname: 2.6.13-gentoo-r5 x86_64 AMD Athlon(tm) 64 Processor 3000+ Gentoo Base System version 1.6.13 dev-lang/python: 2.3.5, 2.4.2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.20 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=athlon64 -O3 -ffast-math -funroll-all-loops -fpeel-loops -ftracer -funswitch-loops -funit-at-a-time -pipe -fomit-frame-pointer" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /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/terminfo /usr/X11R6/bin/startx /etc/env.d" CXXFLAGS="-march=athlon64 -O3 -ffast-math -funroll-all-loops -fpeel-loops -ftracer -funswitch-loops -funit-at-a-time -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig candy distlocks sandbox severe sfperms strict" GENTOO_MIRRORS="http://pandemonium.tiscali.de/pub/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://ftp.gentoo.mesh-solutions.com/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/" LANG="de_DE.utf8" LC_ALL="de_DE@euro.utf8" LINGUAS="de" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.de.gentoo.org/gentoo-portage" USE="7zip X a52 aac acpi alsa amd64 asf audiofile avi berkdb bitmap-fonts bzip2 bzlib cdda cdio cdr crypt css cups curl dbus dga directfb dlloader dmalloc dnd dpms dts dvd dvdr dvdread eds emacs emboss encode esd exif expat fam fame fat fbcon ffmpeg firefox foomaticdb freetype gcj gdbm ggi gif gimpprint glut gmp gnome gpm gs gstreamer gtk gtk2 hal hardened howl idn imagemagick imlib ipv6 ithreads javascript jpeg jpeg2k kde lcms libsamplerate libwww linuxthreads-tls lzo lzw lzw-tiff mad matroska memlimit mjpeg mmap mng mozcalendar mozdevelop mozsvg mp3 mpeg mpi ncurses nls nptl nptlonly ntfs nvidia ogg oggvorbis on-the-fly-crypt openal openexr opengl pam pcre pda pdflib perl png ppds python qt quicktime readline real reiserfs rle sdl slang sndfile spell ssl stream svg symlink tcltk tcpd test tetex tga theora threads tidy tiff toolbar truetype truetype-fonts type1-fonts udev unicode usb userlocales vcd videos vorbis wmf xine xml xml2 xmms xosd xpm xprint xtermtoolbar xv xvid xvmc yv12 zlib linguas_de userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LDFLAGS, PORTDIR_OVERLAY
please reopen! Emerge info submitted as requested in comment #34. Please alter summary since bug is existent with 2.4.2 too. -------------- Additionally I get a stack smsahing attack when "test_syntax" is executed: test_syntax python: stack smashing attack in function symtable_node() make: *** [test] Abgebrochen (Speicherauszug erstellt) LD_LIBRARY_PATH=/var/tmp/portage/python-2.4.2/work/Python-2.4.2: ./python -E -tt ./Lib/test/regrtest.py -l -------------- magic etc # emerge --info Portage 2.0.54 (default-linux/amd64/2005.1, gcc-3.4.4, glibc-2.3.5-r2, 2.6.13-gentoo-r5 x86_64) ================================================================= System uname: 2.6.13-gentoo-r5 x86_64 AMD Athlon(tm) 64 Processor 3000+ Gentoo Base System version 1.6.14 dev-lang/python: 2.3.5, 2.4.2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=athlon64 -O3 -ffast-math -funroll-all-loops -fpeel-loops -ftracer -funswitch-loops -funit-at-a-time -pipe -fomit-frame-pointer" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /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/terminfo /usr/X11R6/bin/startx /etc/env.d" CXXFLAGS="-march=athlon64 -O3 -ffast-math -funroll-all-loops -fpeel-loops -ftracer -funswitch-loops -funit-at-a-time -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig candy distlocks sandbox severe sfperms strict test" GENTOO_MIRRORS="http://pandemonium.tiscali.de/pub/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://ftp.gentoo.mesh-solutions.com/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/" LANG="de_DE@euro" LC_ALL="de_DE@euro" LINGUAS="de" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.de.gentoo.org/gentoo-portage" USE="7zip X a52 aac acpi alsa amd64 artworkextra asf audiofile avi berkdb bitmap-fonts bzip2 bzlib cairo cdda cdio cdr crypt css cups curl dbus dga directfb dlloader dmalloc dnd dpms dri dts dvd dvdr dvdread dvi eds emacs emboss encode esd exif expat fam fame fat fbcon ffmpeg firefox foomaticdb freetype gcj gdbm ggi gif gimpprint glut gmp gnome gpm gs gstreamer gtk gtk2 gtkhtml hal hardened howl hpn idn imagemagick imlib ipv6 ithreads javascript jpeg jpeg2k kde lcms libsamplerate libwww linuxthreads-tls lzo lzw lzw-tiff matroska mbox memlimit milter mjpeg mmap mng mozcalendar mozdevelop mozsvg mp3 mpeg mpi nautilus ncurses nls nptl nptlonly ntfs nvidia offensive ogg oggvorbis on-the-fly-crypt openal openexr opengl pam pcre pdflib perl png ppds python qt quicktime readline real reiserfs rle sasl sdl slang sndfile spell ssl stream svg symlink tcltk tcpd test tetex tga theora threads tidy tiff toolbar truetype truetype-fonts type1-fonts udev unicode usb userlocales vcd videos vorbis wmf xine xml xml2 xmms xosd xpm xprint xtermtoolbar xv xvid xvmc yv12 zlib linguas_de userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LDFLAGS, MAKEOPTS, PORTDIR_OVERLAY