Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 08 Oct 2018 01:06:38 +0000
From:      bugzilla-noreply@freebsd.org
To:        powerpc@FreeBSD.org
Subject:   [Bug 232060] lang/mono: Fix for Mono build on FreeBSD PowerPC
Message-ID:  <bug-232060-25139@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D232060

            Bug ID: 232060
           Summary: lang/mono: Fix for Mono build on FreeBSD PowerPC
           Product: Ports & Packages
           Version: Latest
          Hardware: powerpc
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: mono@FreeBSD.org
          Reporter: hamiltcl@verizon.net
                CC: powerpc@FreeBSD.org
                CC: powerpc@FreeBSD.org
          Assignee: mono@FreeBSD.org
             Flags: maintainer-feedback?(mono@FreeBSD.org)
 Attachment #197897 text/plain
         mime type:

Created attachment 197897
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D197897&action=
=3Dedit
Patch to fix PowerPC build

Building Mono of FreeBSD/PowerPC (32-bit) fails due to incorrect code in
"mono/utils/mono-sigcontext.h" that prevents Mono from building.=20

The below code change patch allows Mono to build:

@@ -363,10 +363,10 @@
 #elif defined(__FreeBSD__)
     typedef ucontext_t os_ucontext;

-    #define UCONTEXT_REG_Rn(ctx, n) ((ctx)->uc_mcontext.mc_gpr [(n)])
-    #define UCONTEXT_REG_FPRn(ctx, n) ((ctx)->uc_mcontext.mc_fpreg [(n)])
-    #define UCONTEXT_REG_NIP(ctx) ((ctx)->uc_mcontext.mc_srr0)
-    #define UCONTEXT_REG_LNK(ctx) ((ctx)->uc_mcontext.mc_lr)
+    #define UCONTEXT_REG_Rn(ctx, n) (((os_ucontext*)(ctx))->uc_mcontext.mc=
_gpr
[(n)])
+    #define UCONTEXT_REG_FPRn(ctx, n)
(((os_ucontext*)(ctx))->uc_mcontext.mc_fpreg [(n)])
+    #define UCONTEXT_REG_NIP(ctx) (((os_ucontext*)(ctx))->uc_mcontext.mc_s=
rr0)
+    #define UCONTEXT_REG_LNK(ctx) (((os_ucontext*)(ctx))->uc_mcontext.mc_l=
r)
 #elif defined(_AIX)
     typedef ucontext_t os_ucontext;

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-232060-25139>