-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[macOS] psutil compilation fails with the final version of Xcode 12 #1832
Comments
It is not a problem of import sysconfig
print(sysconfig.get_config_vars()) and |
Oh I wasn't aware that changing the active Xcode version was also changing the Python 3 being used (unless using Python 3 from Homebrew I guess), I thought only clang & xcodebuild related tools were affected. And I'm not familiar with Python module dev so wasn't aware that build flags were taken from Python's config. Then I suppose final Xcode 12 is just not usable if we need psutil, and we need Xcode 12 beta or Xcode 12.2 beta or any Xcode 11 for now. |
Reverting back to 11.7 is fixing the issue, although it is still annoying. |
BTW, python3 from brew is not affected by |
While I was hitting this when installing a different package (cffi) I was able to work around this by exporting an environment variable |
See giampaolo/psutil#1832 Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
…1168) See giampaolo/psutil#1832 Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
@japaniel Thanks, Daniel. Your solution worked for me on Catalina and the Xcode 12 command line tools:
|
…ensorflow#1168) See giampaolo/psutil#1832 Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
The interpreter has a bad `-arch arm64` flag on intel that leads to compile errors for psutil. See: giampaolo/psutil#1832 [ci skip-rust] [ci skip-build-wheels]
Previously we left them off for internal only PEXes. Leaving them in does no harm since PEX uses the current interpreter if it matches constraints and it aids in the debugability of process chroots. Also work around Xcode 12.x Python interpreter issues hit in CI. These interpreters have a bad `-arch arm64` flag on intel that leads to compile errors for psutil. See: giampaolo/psutil#1832
…#1168) See giampaolo/psutil#1832 Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
Platform
Bug description
psutil setup in venv fails with
Steps
Comments
In clang call I see the options
-arch arm64 -arch x86_64
but macOS 10.15 SDK is still used (which doesn't support ARM). So either-arch arm64
should be removed or macOS 11 SDK should be used.After a quick look inside Xcode to view the available SDK, it looks like macOS 11 SDK is missing, so the only option looks to remove
-arch arm64
for now.The text was updated successfully, but these errors were encountered: