Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 291949 - pycrypto-2.1.0_beta1 fails to emerge with "GMP library not found"
Summary: pycrypto-2.1.0_beta1 fails to emerge with "GMP library not found"
Status: VERIFIED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: x86 OS X
: High normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
: 294778 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-11-05 08:59 UTC by Sven Schwyn (svoop)
Modified: 2010-03-16 16:51 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Schwyn (svoop) 2009-11-05 08:59:12 UTC
(...)
copying lib/Crypto/PublicKey/RSA.py -> build-2.6/lib.macosx-10.5-i386-2.6/Crypto/PublicKey
running build_ext
error: GMP library not found.
 * ERROR: dev-python/pycrypto-2.1.0_beta1 failed:
 *   Building failed with Python 2.6 in building() function
 * 
 * Call stack:
 *     ebuild.sh, line   51:  Called call-ebuildshell 'src_compile'
 *   environment, line  486:  Called src_compile
 *   environment, line 3521:  Called distutils_src_compile
 *   environment, line  886:  Called python_execute_function 'building'
 *   environment, line 3105:  Called die
 * The specific snippet of code:
 *                       die "${failure_message}";


Reproducible: Always

Steps to Reproduce:




Portage 2.2.00.14771-prefix (prefix/darwin/macos/10.5/x86, gcc-4.2.1, unavailable, 10.0.0 i386)
=================================================================
System uname: Darwin-10.0.0-i386-32bit
Timestamp of tree: Thu, 05 Nov 2009 08:25:28 +0000
distcc 2.18.5-Apple.1 i386-apple-darwin10.0 (protocols 1 and 2) (default port 3632) [disabled]
app-shells/bash:     4.0_p35
dev-lang/python:     2.5.4-r3, 2.6.4
dev-python/pycrypto: 2.0.1-r8
sys-devel/autoconf:  2.63-r01.1
sys-devel/automake:  1.10.2-r00.1, 1.11
sys-devel/gcc-config: 1.4.1-r00.2
sys-devel/libtool:   2.2.6a-r00.2
ACCEPT_KEYWORDS="~x86-macos"
CBUILD="i686-apple-darwin9"
CFLAGS="-O2 -pipe -march=nocona"
CHOST="i686-apple-darwin9"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=nocona"
DISTDIR="/Gentoo/usr/portage/distfiles"
FEATURES="assume-digests collision-protect distlocks fixpackages news nostrip parallel-fetch preserve-libs protect-owned sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS=""
PKGDIR="/Gentoo/usr/portage/packages"
PORTAGE_CONFIGROOT="/Gentoo/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/Gentoo/var/tmp"
PORTDIR="/Gentoo/usr/portage"
PORTDIR_OVERLAY="/Gentoo/usr/local/portage/layman/ruby /Gentoo/usr/local/portage/layman/bitcetera-prefix /Gentoo/usr/local/portage/local"
SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix"
USE="aqua coreaudio cracklib mmx mmxext modules ncurses nls objc objc++ prefix readline sse sse2 ssl unicode x86-macos zlib" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="Darwin" INPUT_DEVICES="keyboard mouse" KERNEL="Darwin" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 matt 2009-11-06 23:11:00 UTC
same bug here too.

<snip>
copying lib/Crypto/PublicKey/ElGamal.py -> build-2.6/lib.macosx-10.4-ppc-2.6/Crypto/PublicKey
copying lib/Crypto/PublicKey/pubkey.py -> build-2.6/lib.macosx-10.4-ppc-2.6/Crypto/PublicKey
copying lib/Crypto/PublicKey/qNEW.py -> build-2.6/lib.macosx-10.4-ppc-2.6/Crypto/PublicKey
copying lib/Crypto/PublicKey/RSA.py -> build-2.6/lib.macosx-10.4-ppc-2.6/Crypto/PublicKey
running build_ext
error: GMP library not found.
 ^[[31;01m*^[[0m ERROR: dev-python/pycrypto-2.1.0_beta1 failed:
 ^[[31;01m*^[[0m   Building failed with Python 2.6 in building() function
 ^[[31;01m*^[[0m
 ^[[31;01m*^[[0m Call stack:
 ^[[31;01m*^[[0m     ebuild.sh, line   51:  Called call-ebuildshell 'src_compile'
 ^[[31;01m*^[[0m   environment, line  488:  Called src_compile
 ^[[31;01m*^[[0m   environment, line 3523:  Called distutils_src_compile
 ^[[31;01m*^[[0m   environment, line  888:  Called python_execute_function 'building'
 ^[[31;01m*^[[0m   environment, line 3107:  Called die
 ^[[31;01m*^[[0m The specific snippet of code:
 ^[[31;01m*^[[0m                       die "${failure_message}";


Portage 2.2.00.14771-prefix (prefix/darwin/macos/10.4/ppc, gcc-4.2.1, unavailable, 8.11.0 Power Macintosh)
=================================================================
System uname: Darwin-8.11.0-Power_Macintosh-powerpc-32bit
Timestamp of tree: Fri, 06 Nov 2009 20:55:42 +0000
distcc 2.18.4-Apple.1 powerpc-apple-darwin8.0 (protocols 1 and 2) (default port 3632) [disabled]
app-shells/bash:     4.0_p35
dev-lang/python:     2.6.4
dev-python/pycrypto: 2.0.1-r8
dev-util/cmake:      2.6.4-r3
sys-devel/autoconf:  2.63-r01.1
sys-devel/automake:  1.10.2-r00.1, 1.11
sys-devel/gcc-config: 1.4.1-r00.2
sys-devel/libtool:   2.2.6a-r00.2
ACCEPT_KEYWORDS="ppc-macos ~ppc-macos"
CBUILD="powerpc-apple-darwin8"
CFLAGS="-02 -pipe -maltivec -mcpu=G4 -mtune=G4"
CHOST="powerpc-apple-darwin8"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-02 -pipe -maltivec -mcpu=G4 -mtune=G4"
DISTDIR="/Volumes/prefix-ppc-macos-native/usr/portage/distfiles"
FEATURES="assume-digests collision-protect distlocks fixpackages news nostrip parallel-fetch preserve-libs protect-owned sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS=""
LINGUAS="en en_US"
PKGDIR="/Volumes/prefix-ppc-macos-native/usr/portage/packages"
PORTAGE_CONFIGROOT="/Volumes/prefix-ppc-macos-native/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/Volumes/prefix-ppc-macos-native/var/tmp"
PORTDIR="/Volumes/prefix-ppc-macos-native/usr/portage"
<snip>


[ebuild     U ] dev-python/pycrypto-2.1.0_beta1 [2.0.1-r8] USE="gmp* -doc% (-bindist%) (-test%)" 0 kB
Comment 2 matt 2009-11-06 23:14:33 UTC
additional info for comment #1

eix -s gmp
[I] dev-libs/gmp
     Available versions:  (~)4.2.4 (~)4.3.0 (~)4.3.1 {nocxx}
     Installed versions:  4.3.1(18:57:34 08/28/09)(-nocxx)
     Homepage:            http://gmplib.org/
     Description:         Library for arithmetic on arbitrary precision integers, rational numbers, and floating-point numbers
Comment 3 Fabian Groffen gentoo-dev 2009-11-11 14:26:21 UTC
this is pretty crappy, I'm not sure if distutils should return the prefix paths, or if this setup.py is just calling this build_ext module wrongly
Comment 4 Fabian Groffen gentoo-dev 2009-11-11 15:57:45 UTC
(16:45) <    heiko_> hmm library_dirs isn't set on darwin in distutils?
(16:49) <    heiko_> # building third party extensions
(16:49) <    heiko_>                 self.library_dirs.append(sysconfig.get_config_var('LIBDIR'))
(16:49) <    heiko_>  i'd like to have that for darwin as well ;)
(16:49) <    heiko_> and wth is Py_ENABLE_SHARED set to 0?
(16:50) <    heiko_> cool now it builds

looks like we need to patch python even more to just behave
Comment 5 Thomas Raschbacher gentoo-dev 2009-12-03 07:20:13 UTC
*** Bug 294778 has been marked as a duplicate of this bug. ***
Comment 6 Leho Kraav (:macmaN @lkraav) 2009-12-23 19:43:39 UTC
exactly the same on interix:

(...)
copying lib/Crypto/PublicKey/_slowmath.py -> build-2.6/lib.interix-6.1-x86-2.6/Crypto/PublicKey
copying lib/Crypto/PublicKey/__init__.py -> build-2.6/lib.interix-6.1-x86-2.6/Crypto/PublicKey
running build_ext
error: GMP library not found.
 * ERROR: dev-python/pycrypto-2.1.0 failed:
 *   Building failed with Python 2.6 in building() function

Portage 2.2.00.14487-prefix (prefix/windows/interix/6.0/x86, gcc-4.2.4, unavailable, 6.1 x86)
=================================================================
System uname: Interix-6.1-x86-32bit
Timestamp of tree: Sun, 20 Dec 2009 21:54:42 +0000
app-shells/bash:     4.0_p33-r00.1
dev-lang/python:     2.6.2-r2
sys-devel/autoconf:  2.63-r01.1
sys-devel/automake:  1.9.6-r2, 1.10.2-r00.1, 1.11
sys-devel/binutils:  2.18-r4
sys-devel/gcc-config: 1.4.1-r00.2
sys-devel/libtool:   2.2.6a-r00.2
ACCEPT_KEYWORDS="~x86-interix"
CBUILD="i586-pc-interix6.0"
CFLAGS=""
CHOST="i586-pc-interix6.0"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS=""
DISTDIR="/dev/fs/G/distfiles"
FEATURES="assume-digests buildpkg collision-protect distlocks fixpackages nostrip parallel-fetch preserve-libs protect-owned sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS=""
MAKEOPTS="-j2"
PKGDIR="/dev/fs/G/packages-interix"
PORTAGE_CONFIGROOT="/opt/gentoo/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/opt/gentoo/var/tmp"
PORTDIR="/dev/fs/G/prefix"
PORTDIR_OVERLAY="/dev/fs/G/overlays/layman/leho"
SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix"
USE="7zip X bash-completion bzip2 cairo cracklib cscope curl cxx esd exif fontconfig gtk i6fork iconv jpeg lzo mad mng modules mp3 ncurses netpbm nls openssl pdf png prefix python readline sqlite ssl svg threads truetype vorbis x86-interix xpm zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="Interix" INPUT_DEVICES="keyboard mouse" KERNEL="Interix" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 7 Fabian Groffen gentoo-dev 2009-12-23 21:40:39 UTC
python seems to ultimately hide where the $*@#*@* it gets library_dirs from, so after two hours of searching, I say $(@#$&#@$*@#$ pycrap and just patch each and every package that breaks because of this brilliance that pycrap devs have invented this time.
Comment 8 Fabian Groffen gentoo-dev 2009-12-23 21:56:54 UTC
right, fixed by just adding sysconfig.get_config_var('LIBDIR') to the search path.