Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 6355 - emerge python fails
Summary: emerge python fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High critical (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
: 6971 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-08-12 05:11 UTC by Ole Tange
Modified: 2003-01-28 00:30 UTC (History)
2 users (show)

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


Attachments
output from emerge python (python,39.80 KB, text/plain)
2002-08-12 05:11 UTC, Ole Tange
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ole Tange 2002-08-12 05:11:02 UTC
emerge \=dev-lang/python-2.2.1-r2 fails giving the attached output.
Comment 1 Ole Tange 2002-08-12 05:11:36 UTC
Created attachment 3012 [details]
output from emerge python
Comment 2 Jon Nelson (RETIRED) 2002-08-13 15:25:48 UTC
What compiler, what version of GNU mp (qpkg -i dev-libs/gmp)?

emerge gentoolkit if you don't have qpkg.
Comment 3 Ole Tange 2002-08-13 17:42:17 UTC
# gcc --version
2.95.3

# qpkg -i dev-libs/gmp
dev-libs/gmp-4.1-r1 *
        Library for arithmetic on arbitrary precision integers, rational
numbers, and floating-point numbers [ http://www.gnu.org/software/gmp/gmp.html ]
dev-libs/gmp-3.1.1-r1
        Library for arithmetic on arbitrary precision integers, rational
numbers, and floating-point numbers [ http://www.gnu.org/software/gmp/gmp.html ]
dev-libs/gmp-4.1
        Library for arithmetic on arbitrary precision integers, rational
numbers, and floating-point numbers [ http://www.gnu.org/software/gmp/gmp.html ]
dev-libs/gmp-4.1-r1
        Library for arithmetic on arbitrary precision integers, rational
numbers, and floating-point numbers [ http://www.gnu.org/software/gmp/gmp.html ]
Comment 4 Jon Nelson (RETIRED) 2002-08-13 21:30:25 UTC
Try re-merging gmp and then try again.
Comment 5 Ole Tange 2002-08-14 10:02:52 UTC
That helped. 
 
Maybe Python should do this automatically? 
Comment 6 Jon Nelson (RETIRED) 2002-08-14 10:27:43 UTC
When python builds, it checks its own environment and builds what it can. For
example, if looks for the GMP libraries and, if it finds them, builds the mpz
module.  However, I'm guessing there was a problem with the GMP install that was
on your machine, and so Python (correctly) identified and tried to build support
for GMP, but failed.  This doesn't appear to be a python issue.

I'm glad things are resolved for you now, however.

Comment 7 Jon Nelson (RETIRED) 2002-08-27 09:13:45 UTC
*** Bug 6971 has been marked as a duplicate of this bug. ***
Comment 8 Jon Nelson (RETIRED) 2002-08-27 09:14:33 UTC
Doh!  Didn't mean to resolve.  Just re-merge gmp.  Not sure what is going on
here with gmp not working the first time around.
Comment 9 Edwin van Ouwerkerk Moria 2002-08-28 05:33:38 UTC
I had exactly the same problem as the bug reporter. Same version GCC:   Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/specs  gcc version 2.95.3 20010315 (release)  Same version of gmp.  Remerging gmp didn't help in my case. I had to unmerge gmp before emerging python would work.  After emerging python, I emerged gmp again. I then tried to re-emerge python, with the same errors.  In short, I cannot emerge python when gmp is installed.  
Comment 10 Jon Nelson (RETIRED) 2002-09-03 15:16:15 UTC
This may be a problem with your CFLAGS
Run emerge with --debug and send me the output of the CFLAGS, CXXFLAGS, etc...
and also please try the new python 2.2.1-r3 ebuild (it's masked), which should
solve any CFLAGS problems.

Thanks
Comment 11 Haroon Rafique 2002-09-23 08:52:25 UTC
Erm.... Another data point. I get exactly similar failure when building
python-2.2.1-r2. However, I have gcc3.2 (I used to be on gcc2.95 and used the
update-step[1-4].sh scripts to upgrade to gcc3.2). gmp version is 4.1-r1.

Here's the portion of the python emerge build log:

[..snip..]
gcc -DNDEBUG -march=i686 -O3 -pipe -fPIC -DHAVE_DB_185_H=1 -I/usr/include/db3
-I. -I/var/tmp/portage/python-2.2.1-r2/work/Python-2.2.1/./Include
-I/usr/local/include -IInclude/ -c
/var/tmp/portage/python-2.2.1-r2/work/Python-2.2.1/Modules/bsddbmodule.c -o
build/temp.linux-i686-2.2/bsddbmodule.o -DNDEBUG -march=i686 -O3 -pipe
gcc -shared build/temp.linux-i686-2.2/bsddbmodule.o -L/usr/local/lib -ldb-3.2 -o
build/lib.linux-i686-2.2/bsddb.so
building 'mpz' extension
make: *** [sharedmods] Error 139

I went ahead and re-emerged gmp and then re-emerged python and everything was fine.
Comment 12 Alexander Isacson 2002-09-28 09:34:42 UTC
I got the same error bur re-emerging gmp didn't work. I had to compile python
without gmp support by removing gmp and then installing python and then putting
gmp back.

I'm using gentoo 1.2 with gcc 2.95. 
Comment 13 a+gentoobugs 2002-09-30 20:33:28 UTC
had the same error

gcc-2.95.3-r7
CFLAGS="-march=i686 -O3 -pipe"

emerging gmp prior to python did not fix it for me
unmerging gmp, upgradign python and re-emerging gmp did the trick
Comment 14 Nicholas Henke (RETIRED) gentoo-dev 2002-11-03 08:51:23 UTC
I emerged gmp-4.1-r1 and then emerged python-2.2.1-r5. No problems, so
WorksForMe (tm). BTW, this was also on 3.2 gcc on a PPC machine. Might there be
some wonkiness in the x86 compilers? I am without x86, so if someone can test
the same libs as above and let me know -- great!
Comment 15 Turambar 2002-12-10 02:39:45 UTC
For my gcc-3.2.1 system,

emerge unmerge gmp
emerge python
emerge gmp

works to build python-2.2.2 and gmp-4.1-r1. Before doing this, I got this error
while emerging python:

[...snip...]
gcc -shared build/temp.linux-i686-2.2/mpzmodule.o -L/usr/local/lib -lgmp -o
build/lib.linux-i686-2.2/mpz.so
make: *** [sharedmods] Error 139

!!! ERROR: dev-lang/python-2.2.2 failed.
!!! Function src_compile, Line 65, Exitcode 2
!!! Parallel make failed