configure fails in the new swig-1.3.27 ebuild. When it looks for the Python prefix, configure allocates all available memory, causes the system to swap wildly, and if I do not kill the process it fails with a memory error. Reproducible: Always Steps to Reproduce: 1. emerge -auD swig 2. 3. Actual Results: #emerge -auD swig These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild U ] dev-lang/swig-1.3.27 [1.3.25] Do you want me to merge these packages? [Yes/No] [ ....... ] checking for shl_load in -ldld... no checking for swill_init in -lswill... no checking for main in -lieee... yes checking for crypt in -lcrypt... yes checking for X... libraries , headers checking for X11 header files... checking for Tcl configuration... found /usr/lib/tclConfig.sh checking for Tcl header files... -isystem /usr/include checking for Tcl library... -L/usr/lib -ltcl8.4${TCL_DBGX} checking for Python prefix... ./configure: xrealloc: cannot reallocate 1090514944 bytes (0 bytes allocated) Expected Results: swig should have been configured and installed :-) # emerge info Portage 2.0.51.22-r3 (default-linux/x86/2005.0, gcc-3.3.6, glibc-2.3.5-r2, 2.6.13-gentoo-r3 i686) ================================================================= System uname: 2.6.13-gentoo-r3 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 2.00GHz Gentoo Base System version 1.6.13 dev-lang/python: 2.3.5-r2, 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.15.92.0.2-r10 sys-devel/libtool: 1.5.20 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe" CHOST="i686-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/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/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe" DISTDIR="/var/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/ ftp://trumpetti.atm.tut.fi/gentoo/ ftp://ftp.rhnet.is/pub/gentoo/ ftp://gd.tuwien.ac.at/opsys/linux/gentoo/" LINGUAS="dk" MAKEOPTS="-j2" PKGDIR="/var/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage /usr/local/portage-marving" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 X Xaw3d acpi alsa atlas avi berkdb bitmap-fonts cdr crypt cups curl dga dvd eds emacs emboss encode fam flac font-server foomaticdb fortran gd gdbm gif gpm gstreamer gtk gtk2 imagemagick imap imlib java jpeg kde kdeenablefinal kdexdeltas libg++ libwww mad maildir mbox mikmod mime motif mozilla mp3 mpeg mule ncurses netcdf nls nptl ogg oggvorbis opengl oss pam pcmcia pdflib perl plotutils png pnp ppds python qt quicktime readline real scanner sdl smime spell sse sse2 ssl svga tcltk tcpd tetex tiff truetype truetype-fonts trusted type1-fonts usb vorbis win32codecs wxwindows xine xml2 xmms xv xvid zlib linguas_dk userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS
Hi, my name is Mr. WTF. Mr. WTF wants to know why his package was bumped without his permission, despite the fact he stated that it isn't ready to go into portage yet? Fun, Fun! >:|
that's a bit odd ... what does this show on your machine: PYTHON="" ($PYTHON -c "import sys; print sys.prefix") PYTHON=python ($PYTHON -c "import sys; print sys.prefix")
demokrit ~ # PYTHON="" ($PYTHON -c "import sys; print sys.prefix") -bash: syntax error near unexpected token `(' demokrit ~ # PYTHON=python ($PYTHON -c "import sys; print sys.prefix") -bash: syntax error near unexpected token `(' I guess this was not what you wanted to see :-) I am no expert on bash syntax (being a tcsh man), but let me try this: demokrit ~ # export PYTHON="" demokrit ~ # python -c "import sys; print sys.prefix" /usr demokrit ~ # export PYTHON=python demokrit ~ # python -c "import sys; print sys.prefix" /usr Was that what you needed to see? /Jakob
By the way: It is not the Python executable, that uses all available memory. Top shows that it is the configure script itself. /Jakob
Sorry for continuing to add comments. I just saw that the ebuild had been updated. Now it works! I close the bug as fixed. Thank you!! /Jakob