[issue27658] python 3.5.2 built from source fails to install completely on Mac OS X 10.11.6. Crashes subsequently.
New submission from Mario Grgic: I am on Mac OS X 10.11.6 trying to build and install Python 3.5.2 from source. I only have system Python 2.7.10 , and no other instances of Python 3.x. I configure the build as follows: ./configure --prefix=/Volumes/ramdisk/python3.5.2 The code is built without errors, but when I issue make install I get: cd /Volumes/ramdisk/python3.5.2/share/man/man1; ln -s python3.5.1 python3.1) if test "xupgrade" != "xno" ; then \ case upgrade in \ upgrade) ensurepip="--upgrade" ;; \ install|*) ensurepip="" ;; \ esac; \ ./python.exe -E -m ensurepip \ $ensurepip --root=/ ; \ fi Ignoring indexes: https://pypi.python.org/simple Collecting setuptools Collecting pip Installing collected packages: setuptools, pip /bin/sh: line 7: 15831 Segmentation fault: 11 ./python.exe -E -m ensurepip $ensurepip --root=/ Makefile:1059: recipe for target 'install' failed make: *** [install] Error 139 which crashes the system Python 2.7.10: Crashed Thread:0 Dispatch queue: com.apple.main-thread Exception Type:EXC_BAD_ACCESS (SIGSEGV) Exception Codes: EXC_I386_GPFLT Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 libcrypto.1.0.0.dylib 0x000108c82d51 EVP_PKEY_CTX_free + 17 1 libcrypto.1.0.0.dylib 0x000108c77742 EVP_MD_CTX_cleanup + 130 2 libcrypto.1.0.0.dylib 0x000108c77a9d EVP_DigestFinal + 29 3 _hashlib.cpython-35m-darwin.so 0x000108c05d6b EVP_digest + 155 (_hashopenssl.c:148) 4 python.exe 0x00010835493e PyEval_EvalFrameEx + 24110 (ceval.c:4684) 5 python.exe 0x0001083596f2 _PyEval_EvalCodeWithName + 4194 (ceval.c:4018) 6 python.exe 0x000108359f60 fast_function + 464 (ceval.c:4818) 7 python.exe 0x00010835484f PyEval_EvalFrameEx + 23871 (ceval.c:4730) 8 python.exe 0x0001083596f2 _PyEval_EvalCodeWithName + 4194 (ceval.c:4018) 9 python.exe 0x000108359f60 fast_function + 464 (ceval.c:4818) 10 python.exe 0x00010835484f PyEval_EvalFrameEx + 23871 (ceval.c:4730) 11 python.exe 0x0001083596f2 _PyEval_EvalCodeWithName + 4194 (ceval.c:4018) 12 python.exe 0x000108359f60 fast_function + 464 (ceval.c:4818) 13 python.exe 0x00010835484f PyEval_EvalFrameEx + 23871 (ceval.c:4730) 14 python.exe 0x0001083596f2 _PyEval_EvalCodeWithName + 4194 (ceval.c:4018) 15 python.exe 0x00010834eaee PyEval_EvalCodeEx + 78 (ceval.c:4039) 16 python.exe 0x0001082b743d function_call + 381 (funcobject.c:627) 17 python.exe 0x00010828ddd5 PyObject_Call + 101 (abstract.c:2162) 18 python.exe 0x0001083556a0 PyEval_EvalFrameEx + 27536 (ceval.c:5034) 19 python.exe 0x0001083596f2 _PyEval_EvalCodeWithName + 4194 (ceval.c:4018) 20 python.exe 0x000108359f60 fast_function + 464 (ceval.c:4818) 21 python.exe 0x00010835484f PyEval_EvalFrameEx + 23871 (ceval.c:4730) 22 python.exe 0x000108359ee2 fast_function + 338 (ceval.c:4803) 23 python.exe 0x00010835484f PyEval_EvalFrameEx + 23871 (ceval.c:4730) 24 python.exe 0x0001083596f2 _PyEval_EvalCodeWithName + 4194 (ceval.c:4018) 25 python.exe 0x000108359f60 fast_function + 464 (ceval.c:4818) 26 python.exe 0x00010835484f PyEval_EvalFrameEx + 23871 (ceval.c:4730) 27 python.exe 0x0001083596f2 _PyEval_EvalCodeWithName + 4194 (ceval.c:4018) 28 python.exe 0x000108359f60 fast_function + 464 (ceval.c:4818) 29 python.exe 0x00010835484f PyEval_EvalFrameEx + 23871 (ceval.c:4730) 30 python.exe 0x0001083596f2 _PyEval_EvalCodeWithName + 4194 (ceval.c:4018) 31 python.exe 0x000108359f60 fast_function + 464 (ceval.c:4818) 32 python.exe 0x00010835484f PyEval_EvalFrameEx + 23871 (ceval.c:4730) 33 python.exe 0x0001083596f2 _PyEval_EvalCodeWithName + 4194 (ceval.c:4018) 34 python.exe 0x000108359f60 fast_function + 464 (ceval.c:4818) 35 python.exe 0x00010835484f PyEval_EvalFrameEx + 23871 (ceval.c:4730) 36 python.exe 0x0001083596f2 _PyEval_EvalCodeWithName + 4194 (ceval.c:4018) 37 pyth
[issue27658] python 3.5.2 built from source fails to install completely on Mac OS X 10.11.6. Crashes subsequently.
Mario Grgic added the comment: It looks like it is picking up libcrypto.1.0.0.dylib from /usr/local/lib which I installed there as dependency for other binaries. Is there a minimal version of libcrypto that Python 3.5.2 needs? -- ___ Python tracker <http://bugs.python.org/issue27658> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue27658] python 3.5.2 built from source fails to install completely on Mac OS X 10.11.6. Crashes subsequently.
Mario Grgic added the comment: OK, after installing OpenSSL in /usr/local/ssl and even after copying libssl.pc, libcrypt.pc and openssl.pc over to /usr/local/lib/pkgconfig (which is where my pkg-config is looking or *.pc files) the configure script is still not finding the correct libcrypto. Only when I explicitly set CLFLAGS=-I/usr/local/ssl/include and LDFLAGS=-L/usr/local/ssl/lib does the configure script pick the correct libcrypto, notwithstanding the logic in top level setup.py which does have /usr/local/ssl/include on line 812 and /usr/local/ssl/lib on line 824? Not sure at what point is setup.py used, but it doesn't seem to pick up the include and lib directories for ssl correctly. -- ___ Python tracker <http://bugs.python.org/issue27658> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com