New ticket: mono will not compile on macOS Monterey on M1 hardware

Gerben Wierda gerben.wierda at rna.nl
Fri Nov 26 01:04:42 UTC 2021


Ticket #64059 <https://trac.macports.org/ticket/64059>

Mono fails to compile:

:info:build   CC       libmonoutils_la-lock-free-alloc.lo
:info:build mono-context.c:422:24: error: no member named '__r' in 'struct __darwin_arm_thread_state64'
:info:build         memcpy (&mctx->regs, &UCONTEXT_REG_R0 (my_uc), sizeof (host_mgreg_t) * 16);
:info:build         ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:info:build ./mono-sigcontext.h:384:72: note: expanded from macro 'UCONTEXT_REG_R0'
:info:build         #define UCONTEXT_REG_R0(ctx) (((ucontext_t*)(ctx))->uc_mcontext->__ss.__r[0])
:info:build                                                                               ^
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/secure/_string.h:63:33: note: expanded from macro 'memcpy'
:info:build                 __builtin___memcpy_chk (dest, __VA_ARGS__, __darwin_obsz0 (dest))
:info:build                                               ^~~~~~~~~~~
:info:build mono-context.c:424:24: error: no member named '__fs' in 'struct __darwin_mcontext64'
:info:build         memcpy (&mctx->fregs, UCONTEXT_REG_VFPREGS (my_uc), sizeof (double) * 16);
:info:build         ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:info:build ./mono-sigcontext.h:398:81: note: expanded from macro 'UCONTEXT_REG_VFPREGS'
:info:build         #define UCONTEXT_REG_VFPREGS(ctx) (double*)(((ucontext_t*)(ctx))->uc_mcontext->__fs.__r)
:info:build                                                                                        ^
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/secure/_string.h:63:33: note: expanded from macro 'memcpy'
:info:build                 __builtin___memcpy_chk (dest, __VA_ARGS__, __darwin_obsz0 (dest))
:info:build                                               ^~~~~~~~~~~
:info:build mono-context.c:450:11: error: no member named '__r' in 'struct __darwin_arm_thread_state64'
:info:build         memcpy (&UCONTEXT_REG_R0 (my_uc), &mctx->regs, sizeof (host_mgreg_t) * 12);
:info:build         ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:info:build ./mono-sigcontext.h:384:72: note: expanded from macro 'UCONTEXT_REG_R0'
:info:build         #define UCONTEXT_REG_R0(ctx) (((ucontext_t*)(ctx))->uc_mcontext->__ss.__r[0])
:info:build                                                                               ^
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/secure/_string.h:63:27: note: expanded from macro 'memcpy'
:info:build                 __builtin___memcpy_chk (dest, __VA_ARGS__, __darwin_obsz0 (dest))
:info:build                                         ^~~~
:info:build mono-context.c:450:11: error: no member named '__r' in 'struct __darwin_arm_thread_state64'
:info:build         memcpy (&UCONTEXT_REG_R0 (my_uc), &mctx->regs, sizeof (host_mgreg_t) * 12);
:info:build         ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:info:build ./mono-sigcontext.h:384:72: note: expanded from macro 'UCONTEXT_REG_R0'
:info:build         #define UCONTEXT_REG_R0(ctx) (((ucontext_t*)(ctx))->uc_mcontext->__ss.__r[0])
:info:build                                                                               ^
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/secure/_string.h:63:62: note: expanded from macro 'memcpy'
:info:build                 __builtin___memcpy_chk (dest, __VA_ARGS__, __darwin_obsz0 (dest))
:info:build                                                            ~~~~~~~~~~~~~~~~^~~~~
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/secure/_common.h:38:55: note: expanded from macro '__darwin_obsz0'
:info:build #define __darwin_obsz0(object) __builtin_object_size (object, 0)
:info:build                                                       ^~~~~~
:info:build mono-context.c:452:10: error: no member named '__fs' in 'struct __darwin_mcontext64'
:info:build         memcpy (UCONTEXT_REG_VFPREGS (my_uc), &mctx->fregs, sizeof (double) * 16);
:info:build         ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:info:build ./mono-sigcontext.h:398:81: note: expanded from macro 'UCONTEXT_REG_VFPREGS'
:info:build         #define UCONTEXT_REG_VFPREGS(ctx) (double*)(((ucontext_t*)(ctx))->uc_mcontext->__fs.__r)
:info:build                                                                                        ^
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/secure/_string.h:63:27: note: expanded from macro 'memcpy'
:info:build                 __builtin___memcpy_chk (dest, __VA_ARGS__, __darwin_obsz0 (dest))
:info:build                                         ^~~~
:info:build mono-context.c:452:10: error: no member named '__fs' in 'struct __darwin_mcontext64'
:info:build         memcpy (UCONTEXT_REG_VFPREGS (my_uc), &mctx->fregs, sizeof (double) * 16);
:info:build         ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:info:build ./mono-sigcontext.h:398:81: note: expanded from macro 'UCONTEXT_REG_VFPREGS'
:info:build         #define UCONTEXT_REG_VFPREGS(ctx) (double*)(((ucontext_t*)(ctx))->uc_mcontext->__fs.__r)
:info:build                                                                                        ^
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/secure/_string.h:63:62: note: expanded from macro 'memcpy'
:info:build                 __builtin___memcpy_chk (dest, __VA_ARGS__, __darwin_obsz0 (dest))
:info:build                                                            ~~~~~~~~~~~~~~~~^~~~~
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/secure/_common.h:38:55: note: expanded from macro '__darwin_obsz0'
:info:build #define __darwin_obsz0(object) __builtin_object_size (object, 0)
:info:build                                                       ^~~~~~
:info:build 6 errors generated.


Gerben Wierda (LinkedIn <https://www.linkedin.com/in/gerbenwierda>)
R&A Enterprise Architecture <https://ea.rna.nl/> (main site)
Book: Chess and the Art of Enterprise Architecture <https://ea.rna.nl/the-book/>
Book: Mastering ArchiMate <https://ea.rna.nl/the-book-edition-iii/>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-users/attachments/20211126/e160d807/attachment.htm>


More information about the macports-users mailing list