From nobody Wed Dec 4 15:00:28 2024 X-Original-To: ports-bugs@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 4Y3LL614smz5fhtp for ; Wed, 04 Dec 2024 15:00:30 +0000 (UTC) (envelope-from bugzilla-noreply@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Y3LL54Mlsz4SLD for ; Wed, 4 Dec 2024 15:00:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733324429; 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=9cHhKW41c6WDl9dqK4egMMyYqUwgMsYHdB65diZESnk=; b=JLIt3dsQSJffk2ONcR/K5CDekvw8aZCon1y/ngdVaJr3hFu3pSxGTWNwbmLUd3M5adjz0p gUs5I9z84hR52l+eposiaFATJjrioP5Usi9Z2MEiAfVOjtBn68Um1kgcYV/pJAByjhjGVr 0kDRKvVnxJD7cbWPZJUgRHTWU0WxDvo8/oev4peG9R7R+f3e5zRuGd6ntn1m5XOFW8FPAg dInubST5yR75kBtiSojOB2IhUlXbSjJ+55maYY3VXPu29VRfH81xuaYqBlde+NA+FugTL2 yU2bSmhvtmjPFN89J9t49pR2WPwHzQsQAN2GSPq7VQbEQ+t2/1EzEErmMF8pgA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1733324429; a=rsa-sha256; cv=none; b=Wgq7Wq5bjykYLi2qucEIGr1oJo/MiLQimPoU1Phhu9q+FotYRJXca9+fnSC3hfbf0l16ao amdO8wYbdnWfk2YJXppVtyh+ACB9iSwXlquxoJ7qQN6LkOeznSMbk8TDlTdDnJ4lnlJcuE BzHBwZkpzOpVyplc2VsF2TZi3h/JeRjbBonefPHOGvWnZcsrNm8woqNYJGNz1chamwzTaH /GKHrJs8XzzLayDo1qyidyjogW5WqbBP+4Xf4/+fg5anE/2aD3CsAxLm4rhwS3EWahu/b3 2LZ0+0vqSveOtnpFH0P8gq094MMrNHUQtYHtSJnjYjSLlyDzaS0lbx6D3F9pmw== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 4Y3LL53QGfz1B7c for ; Wed, 4 Dec 2024 15:00:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 4B4F0T8O092033 for ; Wed, 4 Dec 2024 15:00:29 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4B4F0Tm8092032 for ports-bugs@FreeBSD.org; Wed, 4 Dec 2024 15:00:29 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 283126] emulators/mame: fix build with clang 18 and 19 Date: Wed, 04 Dec 2024 15:00:28 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: dim@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-ports-bugs@freebsd.org Sender: owner-freebsd-ports-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D283126 Bug ID: 283126 Summary: emulators/mame: fix build with clang 18 and 19 Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: dim@FreeBSD.org CC: agh@riseup.net Flags: maintainer-feedback?(agh@riseup.net) CC: agh@riseup.net During the exp-run for bug 283013 ("update LLVM_DEFAULT to 18") it turned out that emulators/mame fails to compile, with an error similar to: ../../../../../3rdparty/sol2/sol/sol.hpp:19875:31: error: address of overloaded function 'call' does not match required type 'int (lua_State *)' 19875 | lua_CFunction freefunc =3D &function_detail::upvalue_this_member_variable::template call; |=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~~~~~~~~~~~~~~~~~~~ Upstream fixed this with [1] and [2]. Similarly, compiling it with clang 19, we run into another error: ../../../../../3rdparty/sol2/sol/sol.hpp:6755:10: error: no member named 'construct' in 'optional' 2191 | this->construct(std::forward(args).= ..); | ~~~~ ^ Upstream fixed this with [3]. Apply these upstream fixes using PATCH_SITES and PATCHFILES. [1] https://github.com/mamedev/mame/commit/4da99a13f5c [2] https://github.com/mamedev/mame/commit/b7e0fa72b92 [3] https://github.com/mamedev/mame/commit/c75845b1ef0 --=20 You are receiving this mail because: You are the assignee for the bug.=