From nobody Tue May 30 10:43:37 2023 X-Original-To: dev-commits-ports-all@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 4QVpsP3dXJz4XH4g; Tue, 30 May 2023 10:43:37 +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 4QVpsP2nfLz41Wq; Tue, 30 May 2023 10:43:37 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1685443417; 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=gyuz5tZdSlMfrKzkTLT5BX8A0gBB2zJDL6Nwf1NB6Vc=; b=VmyV6k5XAF17B/FM5UFvxqsc/ziE6J9P3YFheNNdYvVzafK0QNzr4iEc6zMNrCoyGbs0ov 6zaaG/8twQJNPcrMqzv9z8o3H6ed+8HBtDlr6yQJ/A8akZfrv4wZcKH+wuXh4urZ0tsZar xIRVOMtlzbg3ngwNfmg2XIWtY9TFUT7wP6ZjwWKUYRg42bnBgdO/KTjye0TGdI1FQXwgBW dej/XFuMJuBefw4B+4OWa0ntkSGe1RG2Ns3lgTLF8Eh4CY7xRMWNg8/lsUIYZYphy0WPbT wmVv4egqnsAbx8BXlOo35q//eHTVm5dZDN3xlYmvH1wTUWnknwkVLtbMnsvpng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1685443417; 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=gyuz5tZdSlMfrKzkTLT5BX8A0gBB2zJDL6Nwf1NB6Vc=; b=Bm6uacXXPYsL2nA99/4J5KrHhWkDw7WwhLlyo0pvx2yYtsQqqnpshEM7IHOYRRAbwVQyaD P6k7SDwc7b339N8f+we3CcEhbSVuogS1O49PbVlsPnDUMrrh+mkbRZgYYghQKD9Ad8GxkH JMhRPoq86ph5dCzcbwpdHBRgKZIFiFSrTrCBfGnR4PkiRU2GNkKeUGbmG2Wz355oNouwKE 8YWNXFJVlQAUdpB1zV4fRrxg7340d+CrMuqWbxOIw5EgCcxtt24F/fLUmrbRyk+dve4zpq pH5b0kX6eMllN2dprTZG5SQvExtE/f8PNdvBEwhEEYN1qkVYaWe4XT5y5YKKIg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1685443417; a=rsa-sha256; cv=none; b=hKiomx2zKaiU1TBHt+bng4mddYcnWlcIu3N8LU6IhL+SKDPfEFsb3H/osGDTTh7WwhK+NF B4CO3Vkf55sT4XVhXuL5y30GcNPOst9hn0J3/Yo2RVE5lSrE/es9Oe0cdU4UUl1+B5uXg6 epCkwL8hT+XtabYodbLP5eA+6FlgjjmghmIeXwbxj0y4r/xqOcDLqydEPsq7sKc9ePvg/x lW+ZOvaHoAuEUsKMvH5CQYMMqItYhLxtYuJIj106CTixByucgLW9nVNC0j/puNGx1UyhEu ZMWuAv5Vuglo8HqtD5lbdr1iWkl6z+Bc8/llRTT/gL6gO0nXv7qmzH4gsBlxgg== 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 4QVpsP1Y8Fzqyl; Tue, 30 May 2023 10:43:37 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 34UAhblW085497; Tue, 30 May 2023 10:43:37 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 34UAhbse085496; Tue, 30 May 2023 10:43:37 GMT (envelope-from git) Date: Tue, 30 May 2023 10:43:37 GMT Message-Id: <202305301043.34UAhbse085496@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Kirill Ponomarev Subject: git: 73f4bcea2120 - main - lang/sbcl: Fix build with clang 16 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: krion X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 73f4bcea212048376185a1a6e2a37a1cad6d46da Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by krion: URL: https://cgit.FreeBSD.org/ports/commit/?id=73f4bcea212048376185a1a6e2a37a1cad6d46da commit 73f4bcea212048376185a1a6e2a37a1cad6d46da Author: Kirill Ponomarev AuthorDate: 2023-05-30 10:42:50 +0000 Commit: Kirill Ponomarev CommitDate: 2023-05-30 10:42:50 +0000 lang/sbcl: Fix build with clang 16 PR: 271711 Reported by: dim --- lang/sbcl/files/patch-src_runtime_bsd-os.c | 42 ++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/lang/sbcl/files/patch-src_runtime_bsd-os.c b/lang/sbcl/files/patch-src_runtime_bsd-os.c new file mode 100644 index 000000000000..a602974be9e2 --- /dev/null +++ b/lang/sbcl/files/patch-src_runtime_bsd-os.c @@ -0,0 +1,42 @@ +commit c76381656baeee9bdeddd899cb595c2b45294597 +Author: Dimitry Andric +Date: 2023-05-29 19:50:57 +0200 + + lang/sbcl: fix build with clang 16 + + Clang 16 has a new error about incompatible function types, which shows + up when building lang/sbcl: + + bsd-os.c:285:50: error: incompatible function pointer types passing '__siginfohandler_t *' (aka 'void (*)(int, struct __siginfo *, void *)') to parameter of type 'interrupt_handler_t' (aka 'void (*)(int, struct __siginfo *, struct __ucontext *)') [-Wincompatible-function-pointer-types] + (__siginfohandler_t *) + ^~~~~~~~~~~~~~~~~~~~~~ + ./interrupt.h:123:64: note: passing argument to parameter 'handler' here + extern void ll_install_handler(int signal, interrupt_handler_t handler); + ^ + + Indeed the __siginfohandler_t type is incompatible, but that is caused + by the cast itself, which does not seem to be good for anything. Remove + it, so the mismatch is gone. + +diff --git a/lang/sbcl/files/patch-src_runtime_bsd-os.c b/lang/sbcl/files/patch-src_runtime_bsd-os.c +new file mode 100644 +index 000000000000..3faf2f345709 +--- /dev/null ++++ b/lang/sbcl/files/patch-src_runtime_bsd-os.c +@@ -0,0 +1,15 @@ ++--- src/runtime/bsd-os.c.orig 2023-04-30 08:33:10 UTC +++++ src/runtime/bsd-os.c ++@@ -280,11 +280,7 @@ os_install_interrupt_handlers(void) ++ os_install_interrupt_handlers(void) ++ { ++ if (INSTALL_SIG_MEMORY_FAULT_HANDLER) { ++- ll_install_handler(SIG_MEMORY_FAULT, ++-#if defined(LISP_FEATURE_FREEBSD) && !defined(__GLIBC__) ++- (__siginfohandler_t *) ++-#endif ++- memory_fault_handler); +++ ll_install_handler(SIG_MEMORY_FAULT, memory_fault_handler); ++ ++ #ifdef LISP_FEATURE_DARWIN ++ /* Unmapped pages get this and not SIGBUS. */ +