Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 91024 - python-2.3.5 compile fails
Summary: python-2.3.5 compile fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords: InVCS
: 91063 91123 91495 (view as bug list)
Depends on:
Blocks: 91179
  Show dependency tree
 
Reported: 2005-05-01 01:22 UTC by Matthew Smith
Modified: 2005-05-04 16:24 UTC (History)
10 users (show)

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


Attachments
emerge info for both systems (emerge-info,4.33 KB, text/plain)
2005-05-01 01:24 UTC, Matthew Smith
Details
emerge info from my system (python_emerge_info.txt,1.82 KB, text/plain)
2005-05-01 06:02 UTC, Tom Groves
Details
emerge python error messages (python_emerge.txt,2.48 KB, text/plain)
2005-05-01 06:03 UTC, Tom Groves
Details
emerge --info (emerge.txt,1.98 KB, text/plain)
2005-05-01 06:34 UTC, BlinkEye
Details
emerge python error (python.txt,6.59 KB, text/plain)
2005-05-01 06:35 UTC, BlinkEye
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Smith 2005-05-01 01:22:32 UTC
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
Comment 1 Matthew Smith 2005-05-01 01:24:53 UTC
Created attachment 57705 [details]
emerge info for both systems
Comment 2 @4u 2005-05-01 02:27:55 UTC
Same for me

Looks like masking locally is currently the only available solution.
Comment 3 Aquila 2005-05-01 02:31:19 UTC
Same problems here, I don't see an immediate fix either.
Comment 4 Greg Turner 2005-05-01 03:46:59 UTC
AOL.

Tried various .*-config rituals but no dice.
Comment 5 Tom Groves 2005-05-01 04:52:22 UTC
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!
Comment 6 nixnut (RETIRED) gentoo-dev 2005-05-01 05:31:46 UTC
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
Comment 7 Michael Hanselmann (hansmi) (RETIRED) gentoo-dev 2005-05-01 05:54:02 UTC
It works for me.
Comment 8 Josh Grebe (RETIRED) gentoo-dev 2005-05-01 05:54:52 UTC
broken on sparc also
Comment 9 Tom Groves 2005-05-01 06:02:52 UTC
Created attachment 57730 [details]
emerge info from my system
Comment 10 Jakub Moc (RETIRED) gentoo-dev 2005-05-01 06:03:22 UTC
*** Bug 91045 has been marked as a duplicate of this bug. ***
Comment 11 Tom Groves 2005-05-01 06:03:40 UTC
Created attachment 57731 [details]
emerge python error messages

this is the tail end of emerge python - until then it's compiling with no
problems
Comment 12 BlinkEye 2005-05-01 06:30:34 UTC
i do have the same problem on a x86 system i'm setting up from a stage1 (2005.0 stage1, todays rsync snapshot). 
Comment 13 richard juckes 2005-05-01 06:34:04 UTC
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!!!
Comment 14 BlinkEye 2005-05-01 06:34:17 UTC
Created attachment 57735 [details]
emerge --info
Comment 15 BlinkEye 2005-05-01 06:35:12 UTC
Created attachment 57736 [details]
emerge python error
Comment 16 Csaba Tóth 2005-05-01 06:35:28 UTC
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

Comment 17 Csaba Tóth 2005-05-01 06:44:43 UTC
i tried what was mentioned in Comment #13, and it worked for me!
Comment 18 Stephen Bennett (RETIRED) gentoo-dev 2005-05-01 07:45:33 UTC
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.
Comment 19 Csaba Tóth 2005-05-01 07:57:38 UTC
:)

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.
Comment 20 Bernd Wurst 2005-05-01 08:18:58 UTC
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. ;-)
Comment 21 Stephen Bennett (RETIRED) gentoo-dev 2005-05-01 08:33:10 UTC
OK, I added the fix ... sync when it hits the mirrors and tell me if it still fails.
Comment 22 Emanuele Giaquinta (RETIRED) gentoo-dev 2005-05-01 08:46:27 UTC
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
Comment 23 Sven Wegener gentoo-dev 2005-05-01 09:42:39 UTC
*** Bug 91063 has been marked as a duplicate of this bug. ***
Comment 24 Stephen Bennett (RETIRED) gentoo-dev 2005-05-01 10:10:23 UTC
Fix has hit rsync mirrors now; resolving.
Comment 25 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-05-02 01:00:04 UTC
*** Bug 91123 has been marked as a duplicate of this bug. ***
Comment 26 Alastair Tse (RETIRED) gentoo-dev 2005-05-02 04:12:54 UTC
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?
Comment 27 Alastair Tse (RETIRED) gentoo-dev 2005-05-02 04:14:23 UTC
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?
Comment 28 Kevin F. Quinn (RETIRED) gentoo-dev 2005-05-02 15:47:46 UTC
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.
Comment 29 Jakub Moc (RETIRED) gentoo-dev 2005-05-04 16:24:46 UTC
*** Bug 91495 has been marked as a duplicate of this bug. ***