Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

10.11 - python build failed #4837

Closed
1 of 3 tasks
varunkworld opened this issue Sep 15, 2016 · 2 comments
Closed
1 of 3 tasks

10.11 - python build failed #4837

varunkworld opened this issue Sep 15, 2016 · 2 comments
Labels
xcode8 Xcode 8 is specifically involved

Comments

@varunkworld
Copy link

varunkworld commented Sep 15, 2016

Please follow the general troubleshooting steps first:

  • Ran brew update and retried your prior step?
  • Ran brew doctor, fixed as many issues as possible and retried your prior step?
  • If you're seeing permission errors tried running sudo chown -R $(whoami) $(brew --prefix)?

You can erase any parts of this template not applicable to your Issue.

Bug reports: After updating my mac to El Capitan and installing Xcode 8 I tried to install python 2.7 using brew

$ brew install python
Warning: Building python from source:
  The bottle needs the Apple Command Line Tools to be installed.
  You can install them, if desired, with:
    xcode-select --install

==> Using the sandbox
==> Downloading https://www.python.org/ftp/python/2.7.12/Python-2.7.12.tar.xz
Already downloaded: /Users/varunkumar/Library/Caches/Homebrew/python-2.7.12.tar.xz
==> Downloading https://bugs.python.org/file30805/issue10910-workaround.txt
Already downloaded: /Users/varunkumar/Library/Caches/Homebrew/python--patch-c075353337f9ff3ccf8091693d278782fcdff62c113245d8de43c5c7acc57daf.txt
==> Patching
==> Applying issue10910-workaround.txt
patching file Include/pyport.h
Hunk #1 succeeded at 713 (offset 14 lines).
Hunk #2 succeeded at 736 (offset 14 lines).
==> ./configure --prefix=/usr/local/Cellar/python/2.7.12 --enable-ipv6 --datarootdir=/usr/local/Cellar/python/2.7.12/share --datadir=/usr/local/Cellar/python/2.7.12/share --enable-f
==> make
Last 15 lines from /Users/varunkumar/Library/Logs/Homebrew/python/02.make:
creating build/temp.macosx-10.11-x86_64-2.7/private/tmp/python-20160915-72322-pkt9dv/Python-2.7.12/Modules/_multiprocessing
clang -fno-strict-aliasing -fno-common -dynamic -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -IModules/_multiprocessing -I/private/tmp/python-20160915-72322-pkt9dv/Python-2.7.12/Mac/Include -I. -IInclude -I./Include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include -I/usr/local/include -I/private/tmp/python-20160915-72322-pkt9dv/Python-2.7.12/Include -I/private/tmp/python-20160915-72322-pkt9dv/Python-2.7.12 -c /private/tmp/python-20160915-72322-pkt9dv/Python-2.7.12/Modules/_multiprocessing/multiprocessing.c -o build/temp.macosx-10.11-x86_64-2.7/private/tmp/python-20160915-72322-pkt9dv/Python-2.7.12/Modules/_multiprocessing/multiprocessing.o
clang -fno-strict-aliasing -fno-common -dynamic -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -IModules/_multiprocessing -I/private/tmp/python-20160915-72322-pkt9dv/Python-2.7.12/Mac/Include -I. -IInclude -I./Include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include -I/usr/local/include -I/private/tmp/python-20160915-72322-pkt9dv/Python-2.7.12/Include -I/private/tmp/python-20160915-72322-pkt9dv/Python-2.7.12 -c /private/tmp/python-20160915-72322-pkt9dv/Python-2.7.12/Modules/_multiprocessing/socket_connection.c -o build/temp.macosx-10.11-x86_64-2.7/private/tmp/python-20160915-72322-pkt9dv/Python-2.7.12/Modules/_multiprocessing/socket_connection.o
clang -fno-strict-aliasing -fno-common -dynamic -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -IModules/_multiprocessing -I/private/tmp/python-20160915-72322-pkt9dv/Python-2.7.12/Mac/Include -I. -IInclude -I./Include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include -I/usr/local/include -I/private/tmp/python-20160915-72322-pkt9dv/Python-2.7.12/Include -I/private/tmp/python-20160915-72322-pkt9dv/Python-2.7.12 -c /private/tmp/python-20160915-72322-pkt9dv/Python-2.7.12/Modules/_multiprocessing/semaphore.c -o build/temp.macosx-10.11-x86_64-2.7/private/tmp/python-20160915-72322-pkt9dv/Python-2.7.12/Modules/_multiprocessing/semaphore.o
clang -bundle -undefined dynamic_lookup -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk build/temp.macosx-10.11-x86_64-2.7/private/tmp/python-20160915-72322-pkt9dv/Python-2.7.12/Modules/_multiprocessing/multiprocessing.o build/temp.macosx-10.11-x86_64-2.7/private/tmp/python-20160915-72322-pkt9dv/Python-2.7.12/Modules/_multiprocessing/socket_connection.o build/temp.macosx-10.11-x86_64-2.7/private/tmp/python-20160915-72322-pkt9dv/Python-2.7.12/Modules/_multiprocessing/semaphore.o -L/usr/local/lib -o build/lib.macosx-10.11-x86_64-2.7/_multiprocessing.so
dyld: lazy symbol binding failed: Symbol not found: _getentropy
  Referenced from: /private/tmp/python-20160915-72322-pkt9dv/Python-2.7.12/Python.framework/Versions/2.7/Python
  Expected in: /usr/lib/libSystem.B.dylib

dyld: Symbol not found: _getentropy
  Referenced from: /private/tmp/python-20160915-72322-pkt9dv/Python-2.7.12/Python.framework/Versions/2.7/Python
  Expected in: /usr/lib/libSystem.B.dylib

/bin/sh: line 1: 78371 Trace/BPT trap: 5       DYLD_FRAMEWORK_PATH=/private/tmp/python-20160915-72322-pkt9dv/Python-2.7.12 CC='clang' LDSHARED='clang -bundle -undefined dynamic_lookup -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk' OPT='-DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes' _TCLTK_INCLUDES='' _TCLTK_LIBS='' ./python.exe -E ./setup.py $quiet build
make: *** [sharedmods] Error 133
@tdsmith tdsmith added the xcode8 Xcode 8 is specifically involved label Sep 15, 2016
@DomT4
Copy link
Member

DomT4 commented Sep 15, 2016

Please try brew update && brew install python again. Thanks!

@DomT4 DomT4 added the needs response Needs a response from the issue/PR author label Sep 15, 2016
@varunkworld
Copy link
Author

It works now !

@ghost ghost removed the needs response Needs a response from the issue/PR author label Sep 15, 2016
@zmwangx zmwangx closed this as completed Sep 15, 2016
@Homebrew Homebrew locked and limited conversation to collaborators May 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
xcode8 Xcode 8 is specifically involved
Projects
None yet
Development

No branches or pull requests

4 participants