Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Mar 2023 14:09:58 GMT
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 8d2f58feb60d - main - lang/mono: fix build on powerpc* with LLVM 15
Message-ID:  <202303181409.32IE9wTf095170@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8d2f58feb60d5cedc3ebec12cb9e4571dd9ecc2b

commit 8d2f58feb60d5cedc3ebec12cb9e4571dd9ecc2b
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2023-03-18 13:42:19 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2023-03-18 14:09:58 +0000

    lang/mono: fix build on powerpc* with LLVM 15
    
    exceptions-ppc.c:812:23: error: incompatible pointer to integer conversion assigning to 'unsigned long' from 'gpointer' (aka 'void *') [-Wint-conversion]
---
 lang/mono/Makefile                               |  2 +-
 lang/mono/files/patch-mono_mini_exceptions-ppc.c | 11 +++++++++++
 2 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/lang/mono/Makefile b/lang/mono/Makefile
index a9aba0f6fb7f..4bf1de8ceb26 100644
--- a/lang/mono/Makefile
+++ b/lang/mono/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	mono
 PORTVERSION=	5.10.1.57
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	lang
 MASTER_SITES=	https://download.mono-project.com/sources/mono/
 DISTFILES=	${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}
diff --git a/lang/mono/files/patch-mono_mini_exceptions-ppc.c b/lang/mono/files/patch-mono_mini_exceptions-ppc.c
new file mode 100644
index 000000000000..477ff908793e
--- /dev/null
+++ b/lang/mono/files/patch-mono_mini_exceptions-ppc.c
@@ -0,0 +1,11 @@
+--- mono/mini/exceptions-ppc.c.orig	2023-03-18 12:46:51 UTC
++++ mono/mini/exceptions-ppc.c
+@@ -809,7 +809,7 @@ mono_arch_setup_async_callback (MonoContext *ctx, void
+ {
+ 	uintptr_t sp = (uintptr_t) MONO_CONTEXT_GET_SP(ctx);
+ 	sp -= PPC_MINIMAL_STACK_SIZE;
+-	*(unsigned long *)sp = MONO_CONTEXT_GET_SP(ctx);
++	*(unsigned long *)sp = (unsigned long)MONO_CONTEXT_GET_SP(ctx);
+ 	MONO_CONTEXT_SET_BP(ctx, sp);
+ 	MONO_CONTEXT_SET_IP(ctx, (unsigned long) async_cb);
+ }



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