I got the following errors
python-build: use [email protected] from homebrew
python-build: use readline from homebrew
Downloading Python-3.8.14.tar.xz...
-> https://www.python.org/ftp/python/3.8.14/Python-3.8.14.tar.xz
Installing Python-3.8.14...
python-build: use readline from homebrew
python-build: use zlib from homebrew
BUILD FAILED (OS X 13.2.1 using python-build 20180424)
Inspect or clean up the working tree at /var/folders/hb/qc9jtxzj1gx8_1njvngcw0rc0000gq/T/python-build.20230321143324.50335
Results logged to /var/folders/hb/qc9jtxzj1gx8_1njvngcw0rc0000gq/T/python-build.20230321143324.50335.log
Last 10 log lines:
checking for --with-universal-archs... no
checking MACHDEP... "darwin"
checking for gcc... clang
checking whether the C compiler works... no
configure: error: in `/var/folders/hb/qc9jtxzj1gx8_1njvngcw0rc0000gq/T/python-build.20230321143324.50335/Python-3.8.14':
configure: error: C compiler cannot create executables
See `config.log' for more details
make: error: Failed to determine realpath of '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk' (errno=No such file or directory)
make: error: sh -c '/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.0.sdk -find make 2> /dev/null' failed with exit code 16384: (null) (errno=No such file or directory)
I got the fix by applying the following, kudos to https://developer.apple.com/forums/thread/77935
It happens to me every time Xcode has new version. clang and bunch of other apps can't find old name SDK.
then i do something stupid:
cd /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/
sudo ln -s MacOSX.sdk <<PUT HERE ANY SDK NAME WANTS and MISSES>>
but, how can i convince the system to do it by itself?