xcrun -sdk macosx clang -arch x86_64 -arch arm64 -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/Headers -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/ffi -I/Applications/Xcode-beta.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8 -c c/_cffi_backend.c -o build/temp.macosx-10.14.6-arm64-3.8/c/_cffi_backend.o
c/_cffi_backend.c:6304:9: warning: 'ffi_prep_closure' is deprecated [-Wdeprecated-declarations]
if (ffi_prep_closure(closure, &cif_descr->cif,
^
/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/ffi/ffi.h:350:18: note:
'ffi_prep_closure' has been explicitly marked deprecated here
__attribute__((deprecated))
^
1 warning generated.
c/_cffi_backend.c:5854:2: error: Apple Arm64 ABI requires ffi_prep_cif_var
#error Apple Arm64 ABI requires ffi_prep_cif_var
^
c/_cffi_backend.c:6304:9: error: implicit declaration of function 'ffi_prep_closure' is invalid in C99
[-Werror,-Wimplicit-function-declaration]
if (ffi_prep_closure(closure, &cif_descr->cif,
^
2 errors generated.
error: command 'xcrun' failed with exit status 1
robb@AppleDTK cffi-branch-default % python3
Python 3.8.2 (default, Jun 8 2020, 15:20:04)
[Clang 12.0.0 (clang-1200.0.22.19)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> import platform
>>> from distutils.sysconfig import get_config_var
>>> get_config_var("MACOSX_DEPLOYMENT_TARGET")
'10.14.6'
>>> platform.uname()
uname_result(system='Darwin', node='AppleDTK.local', release='20.0.0', version='Darwin Kernel Version 20.0.0: Sun Jun 14 21:36:36 PDT 2020; root:Bridge_xnu-7090.111.5.2~1/RELEASE_ARM64_T8020', machine='arm64', processor='arm')
>>> ^D
That is probably the source of the problem. How would I change the value for MACOSX_DEPLOYMENT_TARGET ?