emerge \=dev-lang/python-2.2.1-r2 fails giving the attached output.
Created attachment 3012 [details] output from emerge python
What compiler, what version of GNU mp (qpkg -i dev-libs/gmp)? emerge gentoolkit if you don't have qpkg.
# 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 ]
Try re-merging gmp and then try again.
That helped. Maybe Python should do this automatically?
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.
*** Bug 6971 has been marked as a duplicate of this bug. ***
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.
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.
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
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.
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.
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
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!
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