--- wikisrc/users/leot/aarch64_problems.mdwn 2018/07/23 21:25:42 1.5 +++ wikisrc/users/leot/aarch64_problems.mdwn 2018/07/23 22:51:09 1.7 @@ -121,3 +121,29 @@ Doing a (please note that also `python36 fpsr 0x3000000 50331648 fpcr 0x10 16 (gdb) quit + +...and `_cffi_restore_errno` and `_cffi_save_errno` are defined in +`cffi/_cffi_include.h` as follows: + + #define _cffi_restore_errno \ + ((void(*)(void))_cffi_exports[13]) + #define _cffi_save_errno \ + ((void(*)(void))_cffi_exports[14]) + +The following patch workaround the issue: + + $NetBSD$ + + Kludge for NetBSD/aarch64 SIGILL. + + --- setup.py.orig 2018-02-27 18:15:41.000000000 +0000 + +++ setup.py + @@ -70,7 +70,7 @@ def ask_supports_thread(): + ok = (sys.platform != 'win32' and + config.try_compile('__thread int some_threadlocal_variable_42;')) + if ok: + - define_macros.append(('USE__THREAD', None)) + + pass + else: + ok1 = config.try_compile('int some_regular_variable_42;') + if not ok1: