Fails to build OSX 10.9.2 Apple LLVM version 5.1 (clang-503.0.38) (based on LLVM 3.4svn)

Bug #1292783 reported by Bob Tanner
36
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Python-Crypto
Fix Committed
Undecided
Unassigned

Bug Description

$ python setup.py build
running build
running build_py
creating build
creating build/lib.macosx-10.9-intel-2.7
creating build/lib.macosx-10.9-intel-2.7/Crypto
copying lib/Crypto/__init__.py -> build/lib.macosx-10.9-intel-2.7/Crypto
copying lib/Crypto/pct_warnings.py -> build/lib.macosx-10.9-intel-2.7/Crypto
creating build/lib.macosx-10.9-intel-2.7/Crypto/Hash
copying lib/Crypto/Hash/__init__.py -> build/lib.macosx-10.9-intel-2.7/Crypto/Hash
copying lib/Crypto/Hash/CMAC.py -> build/lib.macosx-10.9-intel-2.7/Crypto/Hash
copying lib/Crypto/Hash/HMAC.py -> build/lib.macosx-10.9-intel-2.7/Crypto/Hash
copying lib/Crypto/Hash/MD5.py -> build/lib.macosx-10.9-intel-2.7/Crypto/Hash
copying lib/Crypto/Hash/RIPEMD.py -> build/lib.macosx-10.9-intel-2.7/Crypto/Hash
copying lib/Crypto/Hash/SHA.py -> build/lib.macosx-10.9-intel-2.7/Crypto/Hash
copying lib/Crypto/Hash/SHA1.py -> build/lib.macosx-10.9-intel-2.7/Crypto/Hash
creating build/lib.macosx-10.9-intel-2.7/Crypto/Cipher
copying lib/Crypto/Cipher/__init__.py -> build/lib.macosx-10.9-intel-2.7/Crypto/Cipher
copying lib/Crypto/Cipher/AES.py -> build/lib.macosx-10.9-intel-2.7/Crypto/Cipher
copying lib/Crypto/Cipher/ARC2.py -> build/lib.macosx-10.9-intel-2.7/Crypto/Cipher
copying lib/Crypto/Cipher/ARC4.py -> build/lib.macosx-10.9-intel-2.7/Crypto/Cipher
copying lib/Crypto/Cipher/blockalgo.py -> build/lib.macosx-10.9-intel-2.7/Crypto/Cipher
copying lib/Crypto/Cipher/Blowfish.py -> build/lib.macosx-10.9-intel-2.7/Crypto/Cipher
copying lib/Crypto/Cipher/CAST.py -> build/lib.macosx-10.9-intel-2.7/Crypto/Cipher
copying lib/Crypto/Cipher/DES.py -> build/lib.macosx-10.9-intel-2.7/Crypto/Cipher
copying lib/Crypto/Cipher/DES3.py -> build/lib.macosx-10.9-intel-2.7/Crypto/Cipher
copying lib/Crypto/Cipher/PKCS1_OAEP.py -> build/lib.macosx-10.9-intel-2.7/Crypto/Cipher
copying lib/Crypto/Cipher/PKCS1_v1_5.py -> build/lib.macosx-10.9-intel-2.7/Crypto/Cipher
copying lib/Crypto/Cipher/XOR.py -> build/lib.macosx-10.9-intel-2.7/Crypto/Cipher
creating build/lib.macosx-10.9-intel-2.7/Crypto/Util
copying lib/Crypto/Util/__init__.py -> build/lib.macosx-10.9-intel-2.7/Crypto/Util
copying lib/Crypto/Util/_number_new.py -> build/lib.macosx-10.9-intel-2.7/Crypto/Util
copying lib/Crypto/Util/_time.py -> build/lib.macosx-10.9-intel-2.7/Crypto/Util
copying lib/Crypto/Util/asn1.py -> build/lib.macosx-10.9-intel-2.7/Crypto/Util
copying lib/Crypto/Util/Counter.py -> build/lib.macosx-10.9-intel-2.7/Crypto/Util
copying lib/Crypto/Util/number.py -> build/lib.macosx-10.9-intel-2.7/Crypto/Util
copying lib/Crypto/Util/Padding.py -> build/lib.macosx-10.9-intel-2.7/Crypto/Util
copying lib/Crypto/Util/py21compat.py -> build/lib.macosx-10.9-intel-2.7/Crypto/Util
copying lib/Crypto/Util/py3compat.py -> build/lib.macosx-10.9-intel-2.7/Crypto/Util
copying lib/Crypto/Util/randpool.py -> build/lib.macosx-10.9-intel-2.7/Crypto/Util
copying lib/Crypto/Util/RFC1751.py -> build/lib.macosx-10.9-intel-2.7/Crypto/Util
copying lib/Crypto/Util/winrandom.py -> build/lib.macosx-10.9-intel-2.7/Crypto/Util
creating build/lib.macosx-10.9-intel-2.7/Crypto/Random
copying lib/Crypto/Random/__init__.py -> build/lib.macosx-10.9-intel-2.7/Crypto/Random
copying lib/Crypto/Random/_UserFriendlyRNG.py -> build/lib.macosx-10.9-intel-2.7/Crypto/Random
copying lib/Crypto/Random/random.py -> build/lib.macosx-10.9-intel-2.7/Crypto/Random
creating build/lib.macosx-10.9-intel-2.7/Crypto/Random/Fortuna
copying lib/Crypto/Random/Fortuna/__init__.py -> build/lib.macosx-10.9-intel-2.7/Crypto/Random/Fortuna
copying lib/Crypto/Random/Fortuna/FortunaAccumulator.py -> build/lib.macosx-10.9-intel-2.7/Crypto/Random/Fortuna
copying lib/Crypto/Random/Fortuna/FortunaGenerator.py -> build/lib.macosx-10.9-intel-2.7/Crypto/Random/Fortuna
copying lib/Crypto/Random/Fortuna/SHAd256.py -> build/lib.macosx-10.9-intel-2.7/Crypto/Random/Fortuna
creating build/lib.macosx-10.9-intel-2.7/Crypto/Random/OSRNG
copying lib/Crypto/Random/OSRNG/__init__.py -> build/lib.macosx-10.9-intel-2.7/Crypto/Random/OSRNG
copying lib/Crypto/Random/OSRNG/fallback.py -> build/lib.macosx-10.9-intel-2.7/Crypto/Random/OSRNG
copying lib/Crypto/Random/OSRNG/nt.py -> build/lib.macosx-10.9-intel-2.7/Crypto/Random/OSRNG
copying lib/Crypto/Random/OSRNG/posix.py -> build/lib.macosx-10.9-intel-2.7/Crypto/Random/OSRNG
copying lib/Crypto/Random/OSRNG/rng_base.py -> build/lib.macosx-10.9-intel-2.7/Crypto/Random/OSRNG
creating build/lib.macosx-10.9-intel-2.7/Crypto/SelfTest
copying lib/Crypto/SelfTest/__init__.py -> build/lib.macosx-10.9-intel-2.7/Crypto/SelfTest
copying lib/Crypto/SelfTest/st_common.py -> build/lib.macosx-10.9-intel-2.7/Crypto/SelfTest
creating build/lib.macosx-10.9-intel-2.7/Crypto/SelfTest/Cipher
copying lib/Crypto/SelfTest/Cipher/__init__.py -> build/lib.macosx-10.9-intel-2.7/Crypto/SelfTest/Cipher
copying lib/Crypto/SelfTest/Cipher/common.py -> build/lib.macosx-10.9-intel-2.7/Crypto/SelfTest/Cipher
copying lib/Crypto/SelfTest/Cipher/test_AES.py -> build/lib.macosx-10.9-intel-2.7/Crypto/SelfTest/Cipher
copying lib/Crypto/SelfTest/Cipher/test_ARC2.py -> build/lib.macosx-10.9-intel-2.7/Crypto/SelfTest/Cipher
copying lib/Crypto/SelfTest/Cipher/test_ARC4.py -> build/lib.macosx-10.9-intel-2.7/Crypto/SelfTest/Cipher
copying lib/Crypto/SelfTest/Cipher/test_Blowfish.py -> build/lib.macosx-10.9-intel-2.7/Crypto/SelfTest/Cipher
copying lib/Crypto/SelfTest/Cipher/test_CAST.py -> build/lib.macosx-10.9-intel-2.7/Crypto/SelfTest/Cipher
copying lib/Crypto/SelfTest/Cipher/test_DES.py -> build/lib.macosx-10.9-intel-2.7/Crypto/SelfTest/Cipher
copying lib/Crypto/SelfTest/Cipher/test_DES3.py -> build/lib.macosx-10.9-intel-2.7/Crypto/SelfTest/Cipher
copying lib/Crypto/SelfTest/Cipher/test_pkcs1_15.py -> build/lib.macosx-10.9-intel-2.7/Crypto/SelfTest/Cipher
copying lib/Crypto/SelfTest/Cipher/test_pkcs1_oaep.py -> build/lib.macosx-10.9-intel-2.7/Crypto/SelfTest/Cipher
copying lib/Crypto/SelfTest/Cipher/test_XOR.py -> build/lib.macosx-10.9-intel-2.7/Crypto/SelfTest/Cipher
creating build/lib.macosx-10.9-intel-2.7/Crypto/SelfTest/Hash
copying lib/Crypto/SelfTest/Hash/__init__.py -> build/lib.macosx-10.9-intel-2.7/Crypto/SelfTest/Hash
copying lib/Crypto/SelfTest/Hash/common.py -> build/lib.macosx-10.9-intel-2.7/Crypto/SelfTest/Hash
copying lib/Crypto/SelfTest/Hash/test_CMAC.py -> build/lib.macosx-10.9-intel-2.7/Crypto/SelfTest/Hash
copying lib/Crypto/SelfTest/Hash/test_HMAC.py -> build/lib.macosx-10.9-intel-2.7/Crypto/SelfTest/Hash
copying lib/Crypto/SelfTest/Hash/test_MD2.py -> build/lib.macosx-10.9-intel-2.7/Crypto/SelfTest/Hash
copying lib/Crypto/SelfTest/Hash/test_MD4.py -> build/lib.macosx-10.9-intel-2.7/Crypto/SelfTest/Hash
copying lib/Crypto/SelfTest/Hash/test_MD5.py -> build/lib.macosx-10.9-intel-2.7/Crypto/SelfTest/Hash
copying lib/Crypto/SelfTest/Hash/test_RIPEMD160.py -> build/lib.macosx-10.9-intel-2.7/Crypto/SelfTest/Hash
copying lib/Crypto/SelfTest/Hash/test_SHA1.py -> build/lib.macosx-10.9-intel-2.7/Crypto/SelfTest/Hash
copying lib/Crypto/SelfTest/Hash/test_SHA224.py -> build/lib.macosx-10.9-intel-2.7/Crypto/SelfTest/Hash
copying lib/Crypto/SelfTest/Hash/test_SHA256.py -> build/lib.macosx-10.9-intel-2.7/Crypto/SelfTest/Hash
copying lib/Crypto/SelfTest/Hash/test_SHA384.py -> build/lib.macosx-10.9-intel-2.7/Crypto/SelfTest/Hash
copying lib/Crypto/SelfTest/Hash/test_SHA512.py -> build/lib.macosx-10.9-intel-2.7/Crypto/SelfTest/Hash
creating build/lib.macosx-10.9-intel-2.7/Crypto/SelfTest/Protocol
copying lib/Crypto/SelfTest/Protocol/__init__.py -> build/lib.macosx-10.9-intel-2.7/Crypto/SelfTest/Protocol
copying lib/Crypto/SelfTest/Protocol/test_AllOrNothing.py -> build/lib.macosx-10.9-intel-2.7/Crypto/SelfTest/Protocol
copying lib/Crypto/SelfTest/Protocol/test_chaffing.py -> build/lib.macosx-10.9-intel-2.7/Crypto/SelfTest/Protocol
copying lib/Crypto/SelfTest/Protocol/test_KDF.py -> build/lib.macosx-10.9-intel-2.7/Crypto/SelfTest/Protocol
copying lib/Crypto/SelfTest/Protocol/test_rfc1751.py -> build/lib.macosx-10.9-intel-2.7/Crypto/SelfTest/Protocol
creating build/lib.macosx-10.9-intel-2.7/Crypto/SelfTest/PublicKey
copying lib/Crypto/SelfTest/PublicKey/__init__.py -> build/lib.macosx-10.9-intel-2.7/Crypto/SelfTest/PublicKey
copying lib/Crypto/SelfTest/PublicKey/test_DSA.py -> build/lib.macosx-10.9-intel-2.7/Crypto/SelfTest/PublicKey
copying lib/Crypto/SelfTest/PublicKey/test_ElGamal.py -> build/lib.macosx-10.9-intel-2.7/Crypto/SelfTest/PublicKey
copying lib/Crypto/SelfTest/PublicKey/test_import_DSA.py -> build/lib.macosx-10.9-intel-2.7/Crypto/SelfTest/PublicKey
copying lib/Crypto/SelfTest/PublicKey/test_import_RSA.py -> build/lib.macosx-10.9-intel-2.7/Crypto/SelfTest/PublicKey
copying lib/Crypto/SelfTest/PublicKey/test_RSA.py -> build/lib.macosx-10.9-intel-2.7/Crypto/SelfTest/PublicKey
creating build/lib.macosx-10.9-intel-2.7/Crypto/SelfTest/Random
copying lib/Crypto/SelfTest/Random/__init__.py -> build/lib.macosx-10.9-intel-2.7/Crypto/SelfTest/Random
copying lib/Crypto/SelfTest/Random/test__UserFriendlyRNG.py -> build/lib.macosx-10.9-intel-2.7/Crypto/SelfTest/Random
copying lib/Crypto/SelfTest/Random/test_random.py -> build/lib.macosx-10.9-intel-2.7/Crypto/SelfTest/Random
copying lib/Crypto/SelfTest/Random/test_rpoolcompat.py -> build/lib.macosx-10.9-intel-2.7/Crypto/SelfTest/Random
creating build/lib.macosx-10.9-intel-2.7/Crypto/SelfTest/Random/Fortuna
copying lib/Crypto/SelfTest/Random/Fortuna/__init__.py -> build/lib.macosx-10.9-intel-2.7/Crypto/SelfTest/Random/Fortuna
copying lib/Crypto/SelfTest/Random/Fortuna/test_FortunaAccumulator.py -> build/lib.macosx-10.9-intel-2.7/Crypto/SelfTest/Random/Fortuna
copying lib/Crypto/SelfTest/Random/Fortuna/test_FortunaGenerator.py -> build/lib.macosx-10.9-intel-2.7/Crypto/SelfTest/Random/Fortuna
copying lib/Crypto/SelfTest/Random/Fortuna/test_SHAd256.py -> build/lib.macosx-10.9-intel-2.7/Crypto/SelfTest/Random/Fortuna
creating build/lib.macosx-10.9-intel-2.7/Crypto/SelfTest/Random/OSRNG
copying lib/Crypto/SelfTest/Random/OSRNG/__init__.py -> build/lib.macosx-10.9-intel-2.7/Crypto/SelfTest/Random/OSRNG
copying lib/Crypto/SelfTest/Random/OSRNG/test_fallback.py -> build/lib.macosx-10.9-intel-2.7/Crypto/SelfTest/Random/OSRNG
copying lib/Crypto/SelfTest/Random/OSRNG/test_generic.py -> build/lib.macosx-10.9-intel-2.7/Crypto/SelfTest/Random/OSRNG
copying lib/Crypto/SelfTest/Random/OSRNG/test_nt.py -> build/lib.macosx-10.9-intel-2.7/Crypto/SelfTest/Random/OSRNG
copying lib/Crypto/SelfTest/Random/OSRNG/test_posix.py -> build/lib.macosx-10.9-intel-2.7/Crypto/SelfTest/Random/OSRNG
copying lib/Crypto/SelfTest/Random/OSRNG/test_winrandom.py -> build/lib.macosx-10.9-intel-2.7/Crypto/SelfTest/Random/OSRNG
creating build/lib.macosx-10.9-intel-2.7/Crypto/SelfTest/Util
copying lib/Crypto/SelfTest/Util/__init__.py -> build/lib.macosx-10.9-intel-2.7/Crypto/SelfTest/Util
copying lib/Crypto/SelfTest/Util/test_asn1.py -> build/lib.macosx-10.9-intel-2.7/Crypto/SelfTest/Util
copying lib/Crypto/SelfTest/Util/test_Counter.py -> build/lib.macosx-10.9-intel-2.7/Crypto/SelfTest/Util
copying lib/Crypto/SelfTest/Util/test_number.py -> build/lib.macosx-10.9-intel-2.7/Crypto/SelfTest/Util
copying lib/Crypto/SelfTest/Util/test_Padding.py -> build/lib.macosx-10.9-intel-2.7/Crypto/SelfTest/Util
copying lib/Crypto/SelfTest/Util/test_winrandom.py -> build/lib.macosx-10.9-intel-2.7/Crypto/SelfTest/Util
creating build/lib.macosx-10.9-intel-2.7/Crypto/SelfTest/Signature
copying lib/Crypto/SelfTest/Signature/__init__.py -> build/lib.macosx-10.9-intel-2.7/Crypto/SelfTest/Signature
copying lib/Crypto/SelfTest/Signature/test_pkcs1_15.py -> build/lib.macosx-10.9-intel-2.7/Crypto/SelfTest/Signature
copying lib/Crypto/SelfTest/Signature/test_pkcs1_pss.py -> build/lib.macosx-10.9-intel-2.7/Crypto/SelfTest/Signature
creating build/lib.macosx-10.9-intel-2.7/Crypto/SelfTest/IO
copying lib/Crypto/SelfTest/IO/__init__.py -> build/lib.macosx-10.9-intel-2.7/Crypto/SelfTest/IO
copying lib/Crypto/SelfTest/IO/test_PKCS8.py -> build/lib.macosx-10.9-intel-2.7/Crypto/SelfTest/IO
creating build/lib.macosx-10.9-intel-2.7/Crypto/Protocol
copying lib/Crypto/Protocol/__init__.py -> build/lib.macosx-10.9-intel-2.7/Crypto/Protocol
copying lib/Crypto/Protocol/AllOrNothing.py -> build/lib.macosx-10.9-intel-2.7/Crypto/Protocol
copying lib/Crypto/Protocol/Chaffing.py -> build/lib.macosx-10.9-intel-2.7/Crypto/Protocol
copying lib/Crypto/Protocol/KDF.py -> build/lib.macosx-10.9-intel-2.7/Crypto/Protocol
creating build/lib.macosx-10.9-intel-2.7/Crypto/PublicKey
copying lib/Crypto/PublicKey/__init__.py -> build/lib.macosx-10.9-intel-2.7/Crypto/PublicKey
copying lib/Crypto/PublicKey/_DSA.py -> build/lib.macosx-10.9-intel-2.7/Crypto/PublicKey
copying lib/Crypto/PublicKey/_RSA.py -> build/lib.macosx-10.9-intel-2.7/Crypto/PublicKey
copying lib/Crypto/PublicKey/_slowmath.py -> build/lib.macosx-10.9-intel-2.7/Crypto/PublicKey
copying lib/Crypto/PublicKey/DSA.py -> build/lib.macosx-10.9-intel-2.7/Crypto/PublicKey
copying lib/Crypto/PublicKey/ElGamal.py -> build/lib.macosx-10.9-intel-2.7/Crypto/PublicKey
copying lib/Crypto/PublicKey/pubkey.py -> build/lib.macosx-10.9-intel-2.7/Crypto/PublicKey
copying lib/Crypto/PublicKey/RSA.py -> build/lib.macosx-10.9-intel-2.7/Crypto/PublicKey
creating build/lib.macosx-10.9-intel-2.7/Crypto/Signature
copying lib/Crypto/Signature/__init__.py -> build/lib.macosx-10.9-intel-2.7/Crypto/Signature
copying lib/Crypto/Signature/PKCS1_PSS.py -> build/lib.macosx-10.9-intel-2.7/Crypto/Signature
copying lib/Crypto/Signature/PKCS1_v1_5.py -> build/lib.macosx-10.9-intel-2.7/Crypto/Signature
creating build/lib.macosx-10.9-intel-2.7/Crypto/IO
copying lib/Crypto/IO/__init__.py -> build/lib.macosx-10.9-intel-2.7/Crypto/IO
copying lib/Crypto/IO/_PBES.py -> build/lib.macosx-10.9-intel-2.7/Crypto/IO
copying lib/Crypto/IO/PEM.py -> build/lib.macosx-10.9-intel-2.7/Crypto/IO
copying lib/Crypto/IO/PKCS8.py -> build/lib.macosx-10.9-intel-2.7/Crypto/IO
running build_ext
running build_configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
/Users/tanner/projects/clients/linvill.com/scripts/tmp/pycrypto/build-aux/missing: Unknown '--is-lightweight' option
Try '/Users/tanner/projects/clients/linvill.com/scripts/tmp/pycrypto/build-aux/missing --help' for more information
configure: WARNING: 'missing' script is too old or missing
checking for a thread-safe mkdir -p... build-aux/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... none
checking for gcc option to accept ISO C99... none needed
checking build system type... x86_64-apple-darwin13.1.0
checking host system type... x86_64-apple-darwin13.1.0
checking whether C compiler accepts -Wall... yes
checking whether C compiler accepts -Wextra... yes
checking whether C compiler accepts -Wno-missing-field-initializers... yes
checking whether C compiler accepts -Wno-unused-parameter... yes
checking whether C compiler accepts -maes... yes
checking for __gmpz_init in -lgmp... no
checking for __gmpz_init in -lmpir... no
checking whether mpz_powm is declared... no
checking whether mpz_powm_sec is declared... no
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for inttypes.h... (cached) yes
checking sys/inttypes.h usability... no
checking sys/inttypes.h presence... no
checking for sys/inttypes.h... no
checking cpuid.h usability... yes
checking cpuid.h presence... yes
checking for cpuid.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking wmmintrin.h usability... yes
checking wmmintrin.h presence... yes
checking for wmmintrin.h... yes
checking for inline... inline
checking for int16_t... yes
checking for int32_t... yes
checking for int64_t... yes
checking for int8_t... yes
checking for size_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for uint8_t... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for memmove... yes
checking for memset... yes
checking for posix_memalign... yes
checking for aligned_alloc... no
checking for _aligned_malloc... no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating buildenv
config.status: creating src/config.h
config.status: executing depfiles commands
warning: GMP or MPIR library not found; Not building Crypto.PublicKey._fastmath.
building 'Crypto.Hash.MD2' extension
creating build/temp.macosx-10.9-intel-2.7
creating build/temp.macosx-10.9-intel-2.7/src
gcc -g -fwrapv -Os -Wall -Wstrict-prototypes -g -O2 -Wall -Wextra -Wno-missing-field-initializers -Wno-unused-parameter -DHAVE_CONFIG_H -arch x86_64 -arch i386 -pipe -Isrc/ -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/MD2.c -o build/temp.macosx-10.9-intel-2.7/src/MD2.o
cc -bundle -undefined dynamic_lookup -arch x86_64 -arch i386 -Wl,-F. -g -O2 -Wall -Wextra -Wno-missing-field-initializers -Wno-unused-parameter -DHAVE_CONFIG_H build/temp.macosx-10.9-intel-2.7/src/MD2.o -o build/lib.macosx-10.9-intel-2.7/Crypto/Hash/MD2.so
building 'Crypto.Hash.MD4' extension
gcc -g -fwrapv -Os -Wall -Wstrict-prototypes -g -O2 -Wall -Wextra -Wno-missing-field-initializers -Wno-unused-parameter -DHAVE_CONFIG_H -arch x86_64 -arch i386 -pipe -Isrc/ -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/MD4.c -o build/temp.macosx-10.9-intel-2.7/src/MD4.o
cc -bundle -undefined dynamic_lookup -arch x86_64 -arch i386 -Wl,-F. -g -O2 -Wall -Wextra -Wno-missing-field-initializers -Wno-unused-parameter -DHAVE_CONFIG_H build/temp.macosx-10.9-intel-2.7/src/MD4.o -o build/lib.macosx-10.9-intel-2.7/Crypto/Hash/MD4.so
building 'Crypto.Hash.SHA256' extension
gcc -g -fwrapv -Os -Wall -Wstrict-prototypes -g -O2 -Wall -Wextra -Wno-missing-field-initializers -Wno-unused-parameter -DHAVE_CONFIG_H -arch x86_64 -arch i386 -pipe -Isrc/ -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/SHA256.c -o build/temp.macosx-10.9-intel-2.7/src/SHA256.o
cc -bundle -undefined dynamic_lookup -arch x86_64 -arch i386 -Wl,-F. -g -O2 -Wall -Wextra -Wno-missing-field-initializers -Wno-unused-parameter -DHAVE_CONFIG_H build/temp.macosx-10.9-intel-2.7/src/SHA256.o -o build/lib.macosx-10.9-intel-2.7/Crypto/Hash/SHA256.so
building 'Crypto.Hash.SHA224' extension
gcc -g -fwrapv -Os -Wall -Wstrict-prototypes -g -O2 -Wall -Wextra -Wno-missing-field-initializers -Wno-unused-parameter -DHAVE_CONFIG_H -arch x86_64 -arch i386 -pipe -Isrc/ -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/SHA224.c -o build/temp.macosx-10.9-intel-2.7/src/SHA224.o
cc -bundle -undefined dynamic_lookup -arch x86_64 -arch i386 -Wl,-F. -g -O2 -Wall -Wextra -Wno-missing-field-initializers -Wno-unused-parameter -DHAVE_CONFIG_H build/temp.macosx-10.9-intel-2.7/src/SHA224.o -o build/lib.macosx-10.9-intel-2.7/Crypto/Hash/SHA224.so
building 'Crypto.Hash.SHA384' extension
gcc -g -fwrapv -Os -Wall -Wstrict-prototypes -g -O2 -Wall -Wextra -Wno-missing-field-initializers -Wno-unused-parameter -DHAVE_CONFIG_H -arch x86_64 -arch i386 -pipe -Isrc/ -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/SHA384.c -o build/temp.macosx-10.9-intel-2.7/src/SHA384.o
cc -bundle -undefined dynamic_lookup -arch x86_64 -arch i386 -Wl,-F. -g -O2 -Wall -Wextra -Wno-missing-field-initializers -Wno-unused-parameter -DHAVE_CONFIG_H build/temp.macosx-10.9-intel-2.7/src/SHA384.o -o build/lib.macosx-10.9-intel-2.7/Crypto/Hash/SHA384.so
building 'Crypto.Hash.SHA512' extension
gcc -g -fwrapv -Os -Wall -Wstrict-prototypes -g -O2 -Wall -Wextra -Wno-missing-field-initializers -Wno-unused-parameter -DHAVE_CONFIG_H -arch x86_64 -arch i386 -pipe -Isrc/ -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/SHA512.c -o build/temp.macosx-10.9-intel-2.7/src/SHA512.o
cc -bundle -undefined dynamic_lookup -arch x86_64 -arch i386 -Wl,-F. -g -O2 -Wall -Wextra -Wno-missing-field-initializers -Wno-unused-parameter -DHAVE_CONFIG_H build/temp.macosx-10.9-intel-2.7/src/SHA512.o -o build/lib.macosx-10.9-intel-2.7/Crypto/Hash/SHA512.so
building 'Crypto.Hash.RIPEMD160' extension
gcc -g -fwrapv -Os -Wall -Wstrict-prototypes -g -O2 -Wall -Wextra -Wno-missing-field-initializers -Wno-unused-parameter -DHAVE_CONFIG_H -arch x86_64 -arch i386 -pipe -DPCT_LITTLE_ENDIAN=1 -Isrc/ -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/RIPEMD160.c -o build/temp.macosx-10.9-intel-2.7/src/RIPEMD160.o
src/RIPEMD160.c:213:20: warning: unused function 'byteswap_digest'
      [-Wunused-function]
static inline void byteswap_digest(uint32_t *p)
                   ^
1 warning generated.
src/RIPEMD160.c:213:20: warning: unused function 'byteswap_digest'
      [-Wunused-function]
static inline void byteswap_digest(uint32_t *p)
                   ^
1 warning generated.
cc -bundle -undefined dynamic_lookup -arch x86_64 -arch i386 -Wl,-F. -g -O2 -Wall -Wextra -Wno-missing-field-initializers -Wno-unused-parameter -DHAVE_CONFIG_H build/temp.macosx-10.9-intel-2.7/src/RIPEMD160.o -o build/lib.macosx-10.9-intel-2.7/Crypto/Hash/RIPEMD160.so
building 'Crypto.Cipher._AES' extension
gcc -g -fwrapv -Os -Wall -Wstrict-prototypes -g -O2 -Wall -Wextra -Wno-missing-field-initializers -Wno-unused-parameter -DHAVE_CONFIG_H -arch x86_64 -arch i386 -pipe -Isrc/ -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/AES.c -o build/temp.macosx-10.9-intel-2.7/src/AES.o
cc -bundle -undefined dynamic_lookup -arch x86_64 -arch i386 -Wl,-F. -g -O2 -Wall -Wextra -Wno-missing-field-initializers -Wno-unused-parameter -DHAVE_CONFIG_H build/temp.macosx-10.9-intel-2.7/src/AES.o -o build/lib.macosx-10.9-intel-2.7/Crypto/Cipher/_AES.so
building 'Crypto.Cipher._AESNI' extension
gcc -g -fwrapv -Os -Wall -Wstrict-prototypes -g -O2 -Wall -Wextra -Wno-missing-field-initializers -Wno-unused-parameter -DHAVE_CONFIG_H -arch x86_64 -arch i386 -pipe -Isrc/ -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/AESNI.c -o build/temp.macosx-10.9-intel-2.7/src/AESNI.o -maes
src/AESNI.c:83:16: error: index for __builtin_shufflevector must be a constant
      integer
    keygened = _mm_shuffle_epi32(keygened, shuf);
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/5.1/include/emmintrin.h:1290:12: note:
      expanded from macro '_mm_shuffle_epi32'
  (__m128i)__builtin_shufflevector((__v4si)__a, (__v4si) _mm_set1_epi32(0), \
           ^
src/AESNI.c:83:14: error: assigning to '__m128i' from incompatible type 'void'
    keygened = _mm_shuffle_epi32(keygened, shuf);
             ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 errors generated.
error: command 'gcc' failed with exit status 1

Revision history for this message
Sebastian Ramacher (s-ramacher) wrote :
Changed in pycrypto:
status: New → In Progress
Revision history for this message
Bob Tanner (tanner) wrote :

I'm a git newbie. Can you tell me how to merge the above change into my clone?

$ git clone https://github.com/dlitz/pycrypto
Cloning into 'pycrypto'...
remote: Reusing existing pack: 6426, done.
remote: Total 6426 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (6426/6426), 3.80 MiB | 1.68 MiB/s, done.
Resolving deltas: 100% (3284/3284), done.
Checking connectivity... done.

(scripts)tanner@Jiu-Jitsu:tmp$ cd pycrypto/
(scripts)tanner@Jiu-Jitsu:pycrypto$ git status
On branch master
Your branch is up-to-date with 'origin/master'.

nothing to commit, working directory clean

$ git merge https://github.com/dlitz/pycrypto/pull/63
merge: https://github.com/dlitz/pycrypto/pull/63 - not something we can merge

The fix is from November 2013, just wondering why it's not in the master branch?

Revision history for this message
Bob Tanner (tanner) wrote :

$ python setup.py build
<snip>

src/AESNI.c:83:16: error: index for __builtin_shufflevector must be a constant
      integer
    keygened = _mm_shuffle_epi32(keygened, shuf);
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/5.1/include/emmintrin.h:1290:12: note:
      expanded from macro '_mm_shuffle_epi32'
  (__m128i)__builtin_shufflevector((__v4si)__a, (__v4si) _mm_set1_epi32(0), \
           ^
src/AESNI.c:83:14: error: assigning to '__m128i' from incompatible type 'void'
    keygened = _mm_shuffle_epi32(keygened, shuf);
             ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 errors generated.
error: command 'gcc' failed with exit status 1

So I'm either not cloning or merge the code correctly or there's another problem with compiling with clang-5.1 or the proposed pull doesn't fix the problem.

osx 10.9.2

% clang --version
Apple LLVM version 5.1 (clang-503.0.38) (based on LLVM 3.4svn)
Target: x86_64-apple-darwin13.1.0
Thread model: posix

Revision history for this message
Bob Tanner (tanner) wrote :

I did merge Fix for this is at https://github.com/dlitz/pycrypto/pull/63 and pycrypto builds.

The whole reason I needed pycrypto is for paramiko so I can use bzr and sftp remote repositories.

Got all of this setup and when I attempt to push a repository via sftp bzr throws an error:

bzr: ERROR: exceptions.TypeError: Expected unicode or bytes, got <read-only buffer for 0x10fb7e120, size 5242880, offset 0 at 0x10fb79eb0>

Might be a bug in bzr, might be a bug in paramiko, but the only changes to the software stack are to pycrypto and PR #63.

lib/python2.7/site-packages/paramiko/py3compat.py", line 43, in b
    raise TypeError("Expected unicode or bytes, got %r" % s)
TypeError: Expected unicode or bytes, got <read-only buffer for 0x10fb7e120, size 5242880, offset 0 at 0x10fb79eb0>

The bug report I filled for bzr is here:

https://bugs.launchpad.net/bzr/+bug/1293257

Don't know enough to click "Also affects project" so just linking to the above.

Happy to do the leg work of opening an issue in paramiko if the problem is how paramiko is calling pycrypto. Let me know.

Revision history for this message
Bob Tanner (tanner) wrote :
Revision history for this message
Darsey Litzenberger (dlitz) wrote :
Changed in pycrypto:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.