求助:PyEnv无法在Apple Silicon M1的MacOSX Monterey12.4上构建Python3.9.4
Python构建失败排查求助
环境信息
- Homebrew(已更新)
- Homebrew GCC 12.2.0
- Pyenv 2.3.5
- MacOSX Monterey 12.4,Apple Silicon M1
- 已尝试网上能找到的所有建议,比如安装zlib、bzip等,目前看起来一切正常(当然可能我判断有误)。
构建失败具体情况
cc1: some warnings being treated as errors make: *** [Objects/floatobject.o] Error 1 make: *** Waiting for unfinished jobs.... In file included from ./Include/pythread.h:128, from ./Include/Python.h:136, from Objects/methodobject.c:4: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/pthread.h:328:6: warning: this use of "defined" may not be portable [-Wexpansion-to-defined] 328 | #if !_PTHREAD_SWIFT_IMPORTER_NULLABILITY_COMPAT | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/pthread.h:328:6: warning: this use of "defined" may not be portable [-Wexpansion-to-defined] /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/pthread.h:537:6: warning: this use of "defined" may not be portable [-Wexpansion-to-defined] 537 | #if !_PTHREAD_SWIFT_IMPORTER_NULLABILITY_COMPAT | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/pthread.h:537:6: warning: this use of "defined" may not be portable [-Wexpansion-to-defined] BUILD FAILED (OS X 12.4 using python-build 20180424)
疑问
有人知道我的系统可能哪里出问题了吗?我该如何进一步调试?应该从哪些方面排查?
内容的提问来源于stack exchange,提问作者Stefano Masini
相关产品推荐
相关产品推荐

