Open combacsa opened 2 weeks ago
It may seems to be a duplicate of #2983 but just re-installing CLT for XCode 16 didn't help.
The error ld: library 'System' not found
unambiguously means that your toolchain is broken.
Check if you have any compiler-affecting envvars (I don't see any in config.log but just in case).
Look though other posts in #2983. In particular, see if you have selected the right one with xcode-select
and if there are any other bits on the system that shadow Apple's tools (see "common build problems" on the wiki for known offenders). Try removing everything compiler-related and doing a clean install of the Command-Line Tools.
It may seems to be a duplicate of https://github.com/pyenv/pyenv/issues/2983 but just re-installing CLT for XCode 16 didn't help.
The error ld: library 'System' not found unambiguously means that your toolchain is broken. Try removing everything compiler-related and doing a clean install of the Command-Line Tools.
Doing a clean install of the Command-Line Tools for XCode 15.3
perfectly work, while a clean install of the Command-Line Tools for XCode 16
do not work. (It's newly purchased M3 Mac Pro and hadn't installed any Command-Line Tools for XCode before.)
Yet I hadn't try with other versions of Python, because I specifically need 3.10.12
. Maybe I should try installing different versions?
Others have also reported problems with XCode 16.
We add it to compiler flags to use ZLib from there. Maybe that breaks XCode 16 due to structural changes.
Try applying this change:
--- a/plugins/python-build/bin/python-build
+++ b/plugins/python-build/bin/python-build
@@ -818,7 +818,7 @@ build_package_standard_build() {
use_homebrew_readline || use_freebsd_pkg || true
use_homebrew_ncurses || true
if is_mac -ge 1014; then
- use_xcode_sdk_zlib || use_homebrew_zlib || true
+ use_homebrew_zlib || true
else
use_homebrew_zlib || true
fi
Prerequisite
pyenv
and the defaultpython-build
plugin only. Please refrain from reporting issues of other plugins here.Description
config.log
from the build directoryWith
Command Line Tools for XCode 15.3
I have no problem with installing python using pyenv, but withCommand Line Tools for XCode 16
I'm facing strange problem. That XCode 16 release was just 3 days ago.I installed older Command Line Tools for XCode 15.3 then it just went very well.
It may seems to be a duplicate of #2983 but just re-installing CLT for XCode 16 didn't help.