python-2.3.5 compile fails with the following error on both of my systems - one already had 2.3.5 installed. if test libpython2.3.so.1.0 != libpython2.3.so; then \ i686-pc-linux-gnu-gcc -pthread -shared -Wl,-hlibpython2.3.so.1.0 /* a bunch of .o files */ -lpthread -ldl -lutil glibc -lm; \ ln -f libpython2.3.so.1.0 libpython2.3.so; \ else\ /* same basic thing, save a few .o's and the link */ \ fi i686-pc-linux-gnu-gcc: glibc: No such file or directory ln: accessing `libpython2.3.so.1.0': No such file or directory make: *** [libpython2.3.so] Error 1
Created attachment 57705 [details] emerge info for both systems
Same for me Looks like masking locally is currently the only available solution.
Same problems here, I don't see an immediate fix either.
AOL. Tried various .*-config rituals but no dice.
also experiencing the same problems... can't upgrade world till i can get past them either! Anybody got a workaround for this yet? package.mask doesn't seem to be much use - this seems to apply for me with any ebuild of python at the moment!
Same here on ppc (G4 mac mini) powerpc-unknown-linux-gnu-gcc: glibc: No such file or directory ln: accessing `libpython2.3.so.1.0': No such file or directory make: *** [libpython2.3.so] Error 1
It works for me.
broken on sparc also
Created attachment 57730 [details] emerge info from my system
*** Bug 91045 has been marked as a duplicate of this bug. ***
Created attachment 57731 [details] emerge python error messages this is the tail end of emerge python - until then it's compiling with no problems
i do have the same problem on a x86 system i'm setting up from a stage1 (2005.0 stage1, todays rsync snapshot).
commenting line 19 #LIBC="glibc" of /usr/portage/profiles/base/make.defaults gives a successful **untested** build on x86 I have no idea if this is sane!!!
Created attachment 57735 [details] emerge --info
Created attachment 57736 [details] emerge python error
I made a fresh install into a new server from stage1, and at stage2, the python fails to compile: same error here. The few last row: [...] if test libpython2.3.so.1.0 != libpython2.3.so; then \ i686-pc-linux-gnu-gcc -pthread -shared -Wl,-hlibpython2.3.so.1.0 -o libpython2.3.so.1.0 Modules/getbuildinfo.o Parser/acceler.o Parser/grammar1.o Parser/listnode.o Parser/node.o Parser/parser.o Parser/parsetok.o Parser/bitset.o Parser/metagrammar.o Parser/firstsets.o Parser/grammar.o Parser/pgen.o Parser/myreadline.o Parser/tokenizer.o Objects/abstract.o Objects/boolobject.o Objects/bufferobject.o Objects/cellobject.o Objects/classobject.o Objects/cobject.o Objects/complexobject.o Objects/descrobject.o Objects/enumobject.o Objects/fileobject.o Objects/floatobject.o Objects/frameobject.o Objects/funcobject.o Objects/intobject.o Objects/iterobject.o Objects/listobject.o Objects/longobject.o Objects/dictobject.o Objects/methodobject.o Objects/moduleobject.o Objects/object.o Objects/obmalloc.o Objects/rangeobject.o Objects/sliceobject.o Objects/stringobject.o Objects/structseq.o Objects/tupleobject.o Objects/typeobject.o Objects/weakrefobject.o Objects/unicodeobject.o Objects/unicodectype.o Python/bltinmodule.o Python/exceptions.o Python/ceval.o Python/compile.o Python/codecs.o Python/errors.o Python/frozen.o Python/frozenmain.o Python/future.o Python/getargs.o Python/getcompiler.o Python/getcopyright.o Python/getmtime.o Python/getplatform.o Python/getversion.o Python/graminit.o Python/import.o Python/importdl.o Python/marshal.o Python/modsupport.o Python/mystrtoul.o Python/mysnprintf.o Python/pyfpe.o Python/pystate.o Python/pythonrun.o Python/structmember.o Python/symtable.o Python/sysmodule.o Python/traceback.o Python/getopt.o Python/dynload_shlib.o Python/thread.o Modules/config.o Modules/getpath.o Modules/main.o Modules/gcmodule.o Modules/threadmodule.o Modules/signalmodule.o Modules/posixmodule.o Modules/errnomodule.o Modules/_sre.o Modules/_codecsmodule.o Modules/zipimport.o Modules/symtablemodule.o Modules/xxsubtype.o -lpthread -ldl -lutil glibc -lm; \ ln -f libpython2.3.so.1.0 libpython2.3.so; \ else\ i686-pc-linux-gnu-gcc -pthread -shared -o libpython2.3.so Modules/getbuildinfo.o Parser/acceler.o Parser/grammar1.o Parser/listnode.o Parser/node.o Parser/parser.o Parser/parsetok.o Parser/bitset.o Parser/metagrammar.o Parser/firstsets.o Parser/grammar.o Parser/pgen.o Parser/myreadline.o Parser/tokenizer.o Objects/abstract.o Objects/boolobject.o Objects/bufferobject.o Objects/cellobject.o Objects/classobject.o Objects/cobject.o Objects/complexobject.o Objects/descrobject.o Objects/enumobject.o Objects/fileobject.o Objects/floatobject.o Objects/frameobject.o Objects/funcobject.o Objects/intobject.o Objects/iterobject.o Objects/listobject.o Objects/longobject.o Objects/dictobject.o Objects/methodobject.o Objects/moduleobject.o Objects/object.o Objects/obmalloc.o Objects/rangeobject.o Objects/sliceobject.o Objects/stringobject.o Objects/structseq.o Objects/tupleobject.o Objects/typeobject.o Objects/weakrefobject.o Objects/unicodeobject.o Objects/unicodectype.o Python/bltinmodule.o Python/exceptions.o Python/ceval.o Python/compile.o Python/codecs.o Python/errors.o Python/frozen.o Python/frozenmain.o Python/future.o Python/getargs.o Python/getcompiler.o Python/getcopyright.o Python/getmtime.o Python/getplatform.o Python/getversion.o Python/graminit.o Python/import.o Python/importdl.o Python/marshal.o Python/modsupport.o Python/mystrtoul.o Python/mysnprintf.o Python/pyfpe.o Python/pystate.o Python/pythonrun.o Python/structmember.o Python/symtable.o Python/sysmodule.o Python/traceback.o Python/getopt.o Python/dynload_shlib.o Python/thread.o Modules/config.o Modules/getpath.o Modules/main.o Modules/gcmodule.o Modules/threadmodule.o Modules/signalmodule.o Modules/posixmodule.o Modules/errnomodule.o Modules/_sre.o Modules/_codecsmodule.o Modules/zipimport.o Modules/symtablemodule.o Modules/xxsubtype.o -lpthread -ldl -lutil glibc -lm; \ fi i686-pc-linux-gnu-gcc: glibc: No such file or directory ln: accessing `libpython2.3.so.1.0': No such file or directory make: *** [libpython2.3.so] Error 1 !!! ERROR: dev-lang/python-2.3.5 failed. !!! Function src_compile, Line 133, Exitcode 2 !!! Parallel make failed !!! If you need support, post the topmost build error, NOT this status message. my emerge info: Portage 2.0.51.20-r5 (default-linux/x86/2005.0, gcc-3.4.3-20050110, glibc-2.3.5-r0, 2.6.11-gentoo-r4 i686) ================================================================= System uname: 2.6.11-gentoo-r4 i686 Intel(R) Pentium(R) 4 CPU 3.20GHz Gentoo Base System version 1.6.11 dev-lang/python: 2.3.4-r1 sys-apps/sandbox: 1.2.3 sys-devel/autoconf: [Not Present] sys-devel/automake: [Not Present] sys-devel/binutils: 2.15.92.0.2-r8 sys-devel/libtool: [Not Present] virtual/os-headers: 2.6.11 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -mtune=pentium4 -pipe -fPIC -msse -mmmx -mfpmath=sse -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" 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 -mtune=pentium4 -pipe -fPIC -msse -mmmx -mfpmath=sse -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig buildpkg digest distlocks fixpackages sandbox sfperms strict" GENTOO_MIRRORS="http://gentoo.mirror.icd.hu/ ftp://ftp.gentoo.mesh-solutions.com/gentoo/ ftp://mirror.nutsmaas.nl/gentoo/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://212.219.56.146/sites/www.ibiblio.org/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/" LDFLAGS="-Wl,-z,now -Wl,-z,relro" LINGUAS="hu en" MAKEOPTS="-j1" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 acl alsa apache2 apm arts avi bash-completion berkdb bitmap-fonts caps cdr crypt ctype cups curl curlwrappers dbm dvdr emboss encode ethereal exif fam fastcgi foomaticdb fortran ftp gd gdbm gif gmp gpm gtk gtk2 iconv imagemagick imap imlib inifile innodb ipv6 java jpeg libg++ libwww mad mhash mikmod mime mmx mmx2 motif mp3 mpeg mpi ncurses nls nptl oggvorbis opengl oss pam pcntl pcre pdflib perl php png pnp posix postgres python qt quicktime readline recode samba sasl sdl shared snmp sockets spell sse ssl svg svga symlink sysvipc tcpd threads tiff truetype truetype-fonts type1-fonts unicode usb vhosts xml xml2 xmlrpc xmms xsl xv zlib linguas_hu linguas_en userland_GNU kernel_linux libc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL
i tried what was mentioned in Comment #13, and it worked for me!
This is caused by Python doing something funky with the LIBC variable. Adding --with-libc='' to the econf line fixes it. I'm waiting on approval from the python herd before committing that.
:) But please hurry, i don't know, what is the worst: if nobody can (re)build the python package, include fresh installers, or if everybody can build and use, but there is a possibility that we made a half work.
There's a simpler workaround: Specify LIBC="" on your command line befor emerge starts: LIBC="" emerge -u python The python make process looks for an environment-variable "LIBC" and portage sets all its variables as env-variables. But the commandline overrides portage's default variables. ;-)
OK, I added the fix ... sync when it hits the mirrors and tell me if it still fails.
It seems a portage problem. Python configure script sets "LIBC=" unless the "--with-libc=string" option is given. It inherits this variable from portage environment, or at least it seems so. "--with-libc=" is the same as "--without-libc", so you could also use the latter. grep 'LIBC=' /var/tmp/portage/python-2.3.5/temp/environment LIBC=glibc
*** Bug 91063 has been marked as a duplicate of this bug. ***
Fix has hit rsync mirrors now; resolving.
*** Bug 91123 has been marked as a duplicate of this bug. ***
sorry, i've been away for the weekend. i guess this is caused by whoever set the LIBC in the 2005.0 profile and not actually 2.3.5?
sorry, been away on the weekend. reading thru the comments, i guess this is caused by the LIBC variable being introduced into 2005.0 profile and not 2.3.5 in particular?
Alastair - yes; it's the addition of LIBC into the profile. Breaks the openoffice build (which has its own copy python 2.2) in the same way - doing LIBC="" emerge openoffice gets around it in the same way.
*** Bug 91495 has been marked as a duplicate of this bug. ***