[issue42880] ctypes: variadic function call still doesn't work on Apple Silicon

2021-01-12 Thread Ziqiao Kong
Ziqiao Kong added the comment: I retry my cases with types specified and it works indeed. Maybe the documents should be updated for this case. Thanks a lot! -- ___ Python tracker <https://bugs.python.org/issue42

[issue42880] ctypes: variadic function call still doesn't work on Apple Silicon

2021-01-12 Thread Ziqiao Kong
Ziqiao Kong added the comment: Hello, we do a clean reinstallation of Big Sur 11.1. The problem still exists: with brew-installed python3.9 ``` qiling@kamino /tmp % DYLD_PRINT_LIBRARIES=1 python3.9 test_main.py [...] dyld: loaded: <52918C9B-7E0B-3852-AB19-F74846BCAAF8> /Users/qilin

[issue42880] ctypes: variadic function call still doesn't work on Apple Silicon

2021-01-11 Thread Ziqiao Kong
Ziqiao Kong added the comment: Sorry that our test machine failed to boot due to some firmware problem when upgrading to 11.1 yesterday. I will re-run my tests after the upgrade gets done. Also, I'm sure the last output is "3" in m

[issue42880] ctypes: variadic function call still doesn't work on Apple Silicon

2021-01-10 Thread Ziqiao Kong
Ziqiao Kong added the comment: BTW, uname for the M1 MBP. ``` kabeor@kamino cpython-3.10.0a4 % uname -a Darwin kamino.lan 20.1.0 Darwin Kernel Version 20.1.0: Sat Oct 31 00:07:10 PDT 2020; root:xnu-7195.50.7~2/RELEASE_ARM64_T8101 arm6464

[issue42880] ctypes: variadic function call still doesn't work on Apple Silicon

2021-01-10 Thread Ziqiao Kong
Ziqiao Kong added the comment: Seems that we are getting the same libffi.dylib. kabeor@kamino cpython-3.10.0a4 % otool -L $(./python.exe -c 'import _ctypes;print(_ctypes.__file__)') /Users/kabeor/cpython-3.10.0a4/build/lib.macosx-11.0-arm64-3.10/_ctypes.cpython-310-darwin.so:

[issue42880] ctypes: variadic function call still doesn't work on Apple Silicon

2021-01-10 Thread Ziqiao Kong
Ziqiao Kong added the comment: Thanks for your reply. What shall I do to confirm the version of libffi? By otool? From: report=bugs.python@roundup.psfhosted.org on behalf of Ned Deily Sent: Monday, January 11, 2021 2:17:53 AM To: ziqiaok...@gmail.com

[issue42880] ctypes: variadic function call still doesn't work on Apple Silicon

2021-01-09 Thread Ziqiao Kong
New submission from Ziqiao Kong : Hello! Thanks for your contribution on porting python to native Apple Silicon. I have noticed that there is an issue https://bugs.python.org/issue41100 and corresponding Github PR https://github.com/python/cpython/pull/22855 stating that variadic functions