Skip to contentSkip to conversation

package/mono: fix build with powerpc

PATCH New Fabrice Fontaine 3 participants 4 messages Feb 14, 2020 – Feb 15, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/mono: fix build with powerpc

Fixes:
- http://autobuild.buildroot.org/results/fff0dd08f71facbe367d982d19158ee084ae8047

---
 ...-leftover-code-from-pre-monoctx-area.patch | 33 +++++++++++++++++++
 1 file changed, 33 insertions(+)
 create mode 100644 package/mono/0004-ppc32-delete-leftover-code-from-pre-monoctx-area.patch
package/mono/0004-ppc32-delete-leftover-code-from-pre-monoctx-area.patch new file +33 -0
new file mode 100644
index 0000000000..cfda7fdfaa
@@ -0,0 +1,33 @@
+From 121928d29ac1e0aebb80531b3ebcca1a9ffcd618 Mon Sep 17 00:00:00 2001
+From: Bernhard Urban-Forster <[email protected]>
+Date: Fri, 6 Dec 2019 11:35:11 +0100
+Subject: [PATCH] [ppc32] delete leftover code from pre-monoctx area (#18072)
+
+Also update assert which doesn't make sense since we have moved over to MonoContext
+
+Some context: e7011c780f676914f559f14f25e76c192bb2b0b2
+
+Fixes: https://github.com/mono/mono/issues/18064
+[Retrieved from:
+https://github.com/mono/mono/commit/121928d29ac1e0aebb80531b3ebcca1a9ffcd618]
+Signed-off-by: Fabrice Fontaine <[email protected]>
+---
+ mono/mini/exceptions-ppc.c | 5 +----
+ 1 file changed, 1 insertion(+), 4 deletions(-)
+
+diff --git a/mono/mini/exceptions-ppc.c b/mono/mini/exceptions-ppc.c
+index 44d09bcaba1d..d14f8383eba9 100644
+--- a/mono/mini/exceptions-ppc.c
++++ b/mono/mini/exceptions-ppc.c
+@@ -692,10 +692,7 @@ mono_arch_handle_altstack_exception (void *sigctx, MONO_SIG_HANDLER_INFO_TYPE *s
+ 	/* may need to adjust pointers in the new struct copy, depending on the OS */
+ 	uc_copy = (MonoContext*)(sp + 16);
+ 	mono_sigctx_to_monoctx (uc, uc_copy);
+-#if defined(__linux__) && !defined(__mono_ppc64__)
+-	uc_copy->uc_mcontext.uc_regs = (gpointer)((char*)uc_copy + ((char*)uc->uc_mcontext.uc_regs - (char*)uc));
+-#endif
+-	g_assert (mono_arch_ip_from_context (uc) == mono_arch_ip_from_context (uc_copy));
++	g_assert (mono_arch_ip_from_context (uc) == MONO_CONTEXT_GET_IP (uc_copy));
+ 	/* at the return form the signal handler execution starts in altstack_handle_and_restore() */
+ 	UCONTEXT_REG_LNK(uc) = UCONTEXT_REG_NIP(uc);
+ #ifdef PPC_USES_FUNCTION_DESCRIPTOR
Signature · 1 line
2.24.1
#1 lore raw

PATCH 1/1 package/mono: fix build with powerpc

Il giorno ven 14 feb 2020 alle ore 17:38 Fabrice Fontaine < [email protected]> ha scritto:

Quoted 56 lines

Fixes:
-
http://autobuild.buildroot.org/results/fff0dd08f71facbe367d982d19158ee084ae8047

---
 ...-leftover-code-from-pre-monoctx-area.patch | 33 +++++++++++++++++++
 1 file changed, 33 insertions(+)
 create mode 100644

package/mono/0004-ppc32-delete-leftover-code-from-pre-monoctx-area.patch

diff --git a/package/mono/0004-ppc32-delete-leftover-code-from-pre-monoctx-area.patch b/package/mono/0004-ppc32-delete-leftover-code-from-pre-monoctx-area.patch new file mode 100644
index 0000000000..cfda7fdfaa
--- /dev/null
+++
b/package/mono/0004-ppc32-delete-leftover-code-from-pre-monoctx-area.patch

package/mono/0004-ppc32-delete-leftover-code-from-pre-monoctx-area.patch new file +4 -0
@@ -0,0 +1,33 @@
+From 121928d29ac1e0aebb80531b3ebcca1a9ffcd618 Mon Sep 17 00:00:00 2001
+From: Bernhard Urban-Forster <[email protected]>
+Date: Fri, 6 Dec 2019 11:35:11 +0100
+Subject: [PATCH] [ppc32] delete leftover code from pre-monoctx area

(#18072)

(quoted diff) +2 -0
+
+Also update assert which doesn't make sense since we have moved over to

MonoContext

package/mono/0004-ppc32-delete-leftover-code-from-pre-monoctx-area.patch new file +6 -0
+
+Some context: e7011c780f676914f559f14f25e76c192bb2b0b2
+
+Fixes: https://github.com/mono/mono/issues/18064
+[Retrieved from:
+

https://github.com/mono/mono/commit/121928d29ac1e0aebb80531b3ebcca1a9ffcd618
]

package/mono/0004-ppc32-delete-leftover-code-from-pre-monoctx-area.patch new file +10 -0
+Signed-off-by: Fabrice Fontaine <[email protected]>
+---
+ mono/mini/exceptions-ppc.c | 5 +----
+ 1 file changed, 1 insertion(+), 4 deletions(-)
+
+diff --git a/mono/mini/exceptions-ppc.c b/mono/mini/exceptions-ppc.c
+index 44d09bcaba1d..d14f8383eba9 100644
+--- a/mono/mini/exceptions-ppc.c
++++ b/mono/mini/exceptions-ppc.c
+@@ -692,10 +692,7 @@ mono_arch_handle_altstack_exception (void *sigctx,

MONO_SIG_HANDLER_INFO_TYPE *s
+ /* may need to adjust pointers in the new struct copy, depending
on the OS */

package/mono/0004-ppc32-delete-leftover-code-from-pre-monoctx-area.patch new file +4 -0
+       uc_copy = (MonoContext*)(sp + 16);
+       mono_sigctx_to_monoctx (uc, uc_copy);
+-#if defined(__linux__) && !defined(__mono_ppc64__)
+-      uc_copy->uc_mcontext.uc_regs = (gpointer)((char*)uc_copy +

((char*)uc->uc_mcontext.uc_regs - (char*)uc));

+-#endif
+-      g_assert (mono_arch_ip_from_context (uc) ==
Quoted 8 lines

mono_arch_ip_from_context (uc_copy));
++ g_assert (mono_arch_ip_from_context (uc) == MONO_CONTEXT_GET_IP
(uc_copy));
+ /* at the return form the signal handler execution starts in
altstack_handle_and_restore() */
+ UCONTEXT_REG_LNK(uc) = UCONTEXT_REG_NIP(uc);
+ #ifdef PPC_USES_FUNCTION_DESCRIPTOR

It's really worth to backport an upstream patch when we can wait for the next release?

Quoted 4 lines

--
2.24.1

Signature · 4 lines
Profile: http://it.linkedin.com/in/compagnucciangelo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20200214/230c4ced/attachment.html>
#2 lore raw

PATCH 1/1 package/mono: fix build with powerpc

Le ven. 14 f?vr. 2020 ? 17:44, Angelo Compagnucci
<[email protected]> a ?crit :

Quoted 48 lines

Il giorno ven 14 feb 2020 alle ore 17:38 Fabrice Fontaine <[email protected]> ha scritto:

Quoted 44 lines

Fixes:
- http://autobuild.buildroot.org/results/fff0dd08f71facbe367d982d19158ee084ae8047

---
 ...-leftover-code-from-pre-monoctx-area.patch | 33 +++++++++++++++++++
 1 file changed, 33 insertions(+)
 create mode 100644 package/mono/0004-ppc32-delete-leftover-code-from-pre-monoctx-area.patch
package/mono/0004-ppc32-delete-leftover-code-from-pre-monoctx-area.patch new file +28 -0
new file mode 100644
index 0000000000..cfda7fdfaa
@@ -0,0 +1,33 @@
+From 121928d29ac1e0aebb80531b3ebcca1a9ffcd618 Mon Sep 17 00:00:00 2001
+From: Bernhard Urban-Forster <[email protected]>
+Date: Fri, 6 Dec 2019 11:35:11 +0100
+Subject: [PATCH] [ppc32] delete leftover code from pre-monoctx area (#18072)
+
+Also update assert which doesn't make sense since we have moved over to MonoContext
+
+Some context: e7011c780f676914f559f14f25e76c192bb2b0b2
+
+Fixes: https://github.com/mono/mono/issues/18064
+[Retrieved from:
+https://github.com/mono/mono/commit/121928d29ac1e0aebb80531b3ebcca1a9ffcd618]
+Signed-off-by: Fabrice Fontaine <[email protected]>
+---
+ mono/mini/exceptions-ppc.c | 5 +----
+ 1 file changed, 1 insertion(+), 4 deletions(-)
+
+diff --git a/mono/mini/exceptions-ppc.c b/mono/mini/exceptions-ppc.c
+index 44d09bcaba1d..d14f8383eba9 100644
+--- a/mono/mini/exceptions-ppc.c
++++ b/mono/mini/exceptions-ppc.c
+@@ -692,10 +692,7 @@ mono_arch_handle_altstack_exception (void *sigctx, MONO_SIG_HANDLER_INFO_TYPE *s
+       /* may need to adjust pointers in the new struct copy, depending on the OS */
+       uc_copy = (MonoContext*)(sp + 16);
+       mono_sigctx_to_monoctx (uc, uc_copy);
+-#if defined(__linux__) && !defined(__mono_ppc64__)
+-      uc_copy->uc_mcontext.uc_regs = (gpointer)((char*)uc_copy + ((char*)uc->uc_mcontext.uc_regs - (char*)uc));
+-#endif
Quoted 8 lines

package/mono/0004-ppc32-delete-leftover-code-from-pre-monoctx-area.patch line 33

Quoted 5 lines
package/mono/0004-ppc32-delete-leftover-code-from-pre-monoctx-area.patch new file +5 -0
+-      g_assert (mono_arch_ip_from_context (uc) == mono_arch_ip_from_context (uc_copy));
++      g_assert (mono_arch_ip_from_context (uc) == MONO_CONTEXT_GET_IP (uc_copy));
+       /* at the return form the signal handler execution starts in altstack_handle_and_restore() */
+       UCONTEXT_REG_LNK(uc) = UCONTEXT_REG_NIP(uc);
+ #ifdef PPC_USES_FUNCTION_DESCRIPTOR

It's really worth to backport an upstream patch when we can wait for the next release?

It depends on when the release will happen. Is it planned before the end of February?

Quoted 9 lines
Quoted 5 lines

--
2.24.1

--
Profile: http://it.linkedin.com/in/compagnucciangelo

#3 lore raw

PATCH 1/1 package/mono: fix build with powerpc

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Fabrice" == Fabrice Fontaine <[email protected]> writes:

Hi,

Quoted 3 lines
Quoted 1 line

It's really worth to backport an upstream patch when we can wait for the next release?

It depends on when the release will happen. Is it planned before the end of February?

If it is anyway an upstream patch and fixes build issues I don't see any problem with adding it now - So committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard