This repository was archived by the owner on Jan 27, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 633
This repository was archived by the owner on Jan 27, 2022. It is now read-only.
pycrypto fails to install with pip on macos 11.0.1 #311
Copy link
Copy link
Open
Description
I tried to do pip3 install pycrypto but clang failed with the below trace. I also tried to clone latest master and do a pip3 install -e /path/to/pycrypto/ and that failed with similar bunch of errors.
rahulchowdhury@Rahuls-MacBook-Air code % pip3 install -e ./pycrypto
Obtaining file:///Users/rahulchowdhury/code/pycrypto
Installing collected packages: pycrypto
Running setup.py develop for pycrypto
ERROR: Command errored out with exit status 1:
command: /usr/local/opt/[email protected]/bin/python3.9 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/Users/rahulchowdhury/code/pycrypto/setup.py'"'"'; __file__='"'"'/Users/rahulchowdhury/code/pycrypto/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps
cwd: /Users/rahulchowdhury/code/pycrypto/
Complete output (113 lines):
running develop
running egg_info
creating pycrypto.egg-info
writing pycrypto.egg-info/PKG-INFO
writing dependency_links to pycrypto.egg-info/dependency_links.txt
writing top-level names to pycrypto.egg-info/top_level.txt
writing manifest file 'pycrypto.egg-info/SOURCES.txt'
reading manifest file 'pycrypto.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'pycrypto.egg-info/SOURCES.txt'
running build_ext
running build_configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
/Users/rahulchowdhury/code/pycrypto/build-aux/missing: Unknown '--is-lightweight' option
Try '/Users/rahulchowdhury/code/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-darwin20.1.0
checking host system type... x86_64-apple-darwin20.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... yes
checking for __gmpz_init in -lmpir... no
checking whether mpz_powm is declared... yes
checking whether mpz_powm_sec is declared... yes
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 uintptr_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... yes
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
building 'Crypto.PublicKey._fastmath' extension
creating build
creating build/temp.macosx-11.0-x86_64-3.9
creating build/temp.macosx-11.0-x86_64-3.9/src
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -g -fwrapv -O3 -Wall -I/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk/usr/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -g -O2 -Wall -Wextra -Wno-missing-field-initializers -Wno-unused-parameter -DHAVE_CONFIG_H -I/usr/local/opt/openjdk/include -Isrc/ -I/usr/local/Cellar/[email protected]/3.9.0_2/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c src/_fastmath.c -o build/temp.macosx-11.0-x86_64-3.9/src/_fastmath.o
clang: error: invalid version number in 'MACOSX_DEPLOYMENT_TARGET=11.0'
error: command '/usr/bin/gcc' failed with exit code 1
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/local/opt/[email protected]/bin/python3.9 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/Users/rahulchowdhury/code/pycrypto/setup.py'"'"'; __file__='"'"'/Users/rahulchowdhury/code/pycrypto/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps Check the logs for full command output.My clang version is -
rahulchowdhury@Rahuls-MacBook-Air code % clang --version
Apple clang version 11.0.3 (clang-1103.0.32.62)
Target: x86_64-apple-darwin20.1.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/binMetadata
Metadata
Assignees
Labels
No labels