From nobody Sun Oct 01 09:39:31 2023 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RyzZD2SKbz4wY4Y; Sun, 1 Oct 2023 09:39:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RyzZC5rdVz3Y9w; Sun, 1 Oct 2023 09:39:31 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1696153171; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=kYhUeVfnlowA1830ZHsWo0w6P/1GZdM5UZZ5iDgNaeM=; b=Oq9m7r+9G4jFwXH8TXuZ5dTaWcfbcZaMaW4Y7bWWWj7qQHb6+QDhEexxD9pn1lXGn2oR5t HAQdaselngMS11u3UIyJ9h1sSqAmmtSECsoCN1NkJXFBU0UvrxUAuWLPV/0OgdYmmxvdgc ap5gK58TmZmQjXcYUi9C9fzJPp3FFTk7Zr8AuwwFuPTRgqfM5D5XYnZHhCCPyBlmzIbhqx WjwYG7JIcfAipxJCSJaGC65yqVvsC58MW/IzFWrikJ2MdLPxYiCBkl65X85FCz2qoAe2VE Hkp/jaK0AH0KFQBQVWxny5hJw1hEoXf6uXIl83i3hdlybXPTBUexgCjsye68bQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1696153171; a=rsa-sha256; cv=none; b=xNcka2rd7go24ME1M7EXw/QKO3cf6PYQ1HdSTsU7pniP07cH5YRBhERlEtnjiZYA/c5O8/ +nL4JmLDwZxtWmHvfqllwDjHzkY+pF6O9YnXHx9v4Lo8dpRkWcdNPqdX+3db/SPV9EIvqt AsHcR/EYO/Njy4yEQftvkP4H6LKwAxsk8VMA+sb4QE/BDiT8nHceqvng+Z4M5AJlp1yWC7 B0j0VS2ah7Fh6MItMLDlMkLcOnsVt8+P4NC5ejufAJC4NZIZXL5fl/YI6nIlEUDLAq2ciZ ayjEhL0npmlnGcnfNnEMKlzKX/0b2KYk+p0jKHI437A6eZSIzYQyZi295MwQxw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1696153171; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=kYhUeVfnlowA1830ZHsWo0w6P/1GZdM5UZZ5iDgNaeM=; b=TRBKu41o/O9ONoH6Uj3ExcQbEKazNJwOx0DZFs89VGzb97XoZ/LV/Bog+1hYDEG2tA6WYP vZibYeknutQw0tetbxKWdghcG2Ib7UdsjAH1WFQTD7gbEdcAluUroj46UPJYKNBg7J+KcC omX19GC3tR30UI6bdhY3cJbuXoO3+eIU2yOB3OXe896jQLrbendNxNnPWuwYO/n9P6jNTn veJl02CfoBF79Vj8KENYmi4blrBMGy8se5I0YcoVmm6f2GT5bJ7Q5BeAHFmcgLCfz1U7I6 lPabUzZCmAlKY0OPpzS6jJXdhUdavHHuCyvWTTyAvGRlUnUK+4f+wqZJ1tWBAA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4RyzZC4Xc3z8qC; Sun, 1 Oct 2023 09:39:31 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 3919dVSV009281; Sun, 1 Oct 2023 09:39:31 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3919dVsD009278; Sun, 1 Oct 2023 09:39:31 GMT (envelope-from git) Date: Sun, 1 Oct 2023 09:39:31 GMT Message-Id: <202310010939.3919dVsD009278@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Piotr Kubaj Subject: git: 104d69cec3f6 - main - lang/mono6.8: fix build with llvm 16 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: pkubaj X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 104d69cec3f69491cbc1053edf8dbae9f13e1acf Auto-Submitted: auto-generated The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=104d69cec3f69491cbc1053edf8dbae9f13e1acf commit 104d69cec3f69491cbc1053edf8dbae9f13e1acf Author: Piotr Kubaj AuthorDate: 2023-10-01 08:59:50 +0000 Commit: Piotr Kubaj CommitDate: 2023-10-01 09:39:21 +0000 lang/mono6.8: fix build with llvm 16 exceptions-ppc.c:817:32: error: incompatible pointer to integer conversion assigning to 'host_mgreg_t' (aka 'long') from 'gpointer' (aka 'void *') [-Wint-conversion] ctx->regs [PPC_FIRST_ARG_REG] = user_data; ^ ~~~~~~~~~ exceptions-ppc.c:819:23: error: incompatible pointer to integer conversion assigning to 'unsigned long' from 'gpointer' (aka 'void *') [-Wint-conversion] *(unsigned long *)sp = MONO_CONTEXT_GET_SP(ctx); ^ ~~~~~~~~~~~~~~~~~~~~~~~~ exceptions-ppc.c:821:45: error: incompatible integer to pointer conversion passing 'unsigned long' to parameter of type 'gpointer' (aka 'void *') [-Wint-conversion] mono_arch_setup_resume_sighandler_ctx(ctx, (unsigned long) async_cb); ^~~~~~~~~~~~~~~~~~~~~~~~ ./mini.h:2384:77: note: passing argument to parameter 'func' here void mono_arch_setup_resume_sighandler_ctx (MonoContext *ctx, gpointer func); ^ 3 errors generated. --- lang/mono6.8/files/patch-mono_mini_exceptions-ppc.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/lang/mono6.8/files/patch-mono_mini_exceptions-ppc.c b/lang/mono6.8/files/patch-mono_mini_exceptions-ppc.c new file mode 100644 index 000000000000..14c32e91e6ef --- /dev/null +++ b/lang/mono6.8/files/patch-mono_mini_exceptions-ppc.c @@ -0,0 +1,17 @@ +--- mono/mini/exceptions-ppc.c.orig 2023-09-30 21:55:09 UTC ++++ mono/mini/exceptions-ppc.c +@@ -795,11 +795,11 @@ mono_arch_setup_async_callback (MonoContext *ctx, void + mono_arch_setup_async_callback (MonoContext *ctx, void (*async_cb)(void *fun), gpointer user_data) + { + uintptr_t sp = (uintptr_t) MONO_CONTEXT_GET_SP(ctx); +- ctx->regs [PPC_FIRST_ARG_REG] = user_data; ++ ctx->regs [PPC_FIRST_ARG_REG] = (host_mgreg_t)user_data; + sp -= PPC_MINIMAL_STACK_SIZE; +- *(unsigned long *)sp = MONO_CONTEXT_GET_SP(ctx); ++ *(unsigned long *)sp = (uintptr_t)MONO_CONTEXT_GET_SP(ctx); + MONO_CONTEXT_SET_BP(ctx, sp); +- mono_arch_setup_resume_sighandler_ctx(ctx, (unsigned long) async_cb); ++ mono_arch_setup_resume_sighandler_ctx(ctx, (gpointer) async_cb); + } + + void