From nobody Sun Nov 03 20:53:36 2024 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 4XhRdr4fXsz5cnbB; Sun, 03 Nov 2024 20:53:36 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XhRdr3jQ7z57dN; Sun, 3 Nov 2024 20:53:36 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730667216; 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=6VLAf2EeBsQvCexoCqx3OJLGPgKH00d4VE+Z/v6hchc=; b=kHSNNM/giMStD+ypAsHxV5ZzeVVzyQjwNCY6IZmT8WrRgAhcodqM5gDxp9ibamFrEj6yK6 qHQuLc1t0K4m76JcmlF9XlGv5tc9886Js8jmswCBX9/8HA0viNMzL0Gg7YNtAzTQLXVlHF AYCIvrj0MRIt/rl2wjCLChps/HQZh+6H6BT9iAXaN2IGRwL3cq6XYXKWXc6HnvbgtfC83a 1mUJSMALtH6yN8gX+CnaP/HKBL6mWt02luNgbEqEt4yvMcgdtQUlhY+vYprB18rvIXdFYO xipZApXYk+OKKrRW7hXC2kqRYCiEHaTdtibTi8eC4geV7QJr2Y3z4RM6cTsSQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730667216; 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=6VLAf2EeBsQvCexoCqx3OJLGPgKH00d4VE+Z/v6hchc=; b=yxMr7xZDP+StO3nps+PvaTNBVszf4cuq8Af561Hfpwhc1bEvWQgyDGmTV8KhWGcAocg6ej NufFnVnLdBIUYNIU8dZQHkYSVlSOCRw0ALTkIXHz6g1tkBF6/RsH6oUPHpD+lkQKt405Kp 98f3TIATV4HuntRzSdguuDV0GhySEbKjWflxyJ7fVztu685OG9R0xHgA2a0S6J8yhEkx1v 5xSP9+Xc09Y9zG6KdiaeziR+N36pbMDueHJpGhlPp1ix6n5120CAAiq7fGehvz+vVKuGLE yfkLoFe8wYuAvFC9cNoA4cLqJsKf5qBxwWSOW+iDVhX3rDeaOiB3Oi+bpB1JeQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730667216; a=rsa-sha256; cv=none; b=cNo5Dh/52OVo90QmHF/EX1CHl+XqOpdZRZCP2/4Tew8UkMETyXxmNy4VCSATGtpNhrJ3k9 9j4//xKZlONo4yvoLbdTIW0xsPbgQXVfsG7jjqHwHQZKydr2FhOo+su3LWRoe4wV6cd6jK vhKEsxSTAGsm8GYWcshsK/bqEZXOQiQy6wTI3TMAhz+1eNmZHlv2XJwOb2OjUOeYVhB0/X F3+RYO0apgiq/hEvQ66NECc9JlmM22GDngCdt2hbsG4MyRCFqhtKJChWGTbhPrT8LdqFcS KrQVKkcoRfr08KFdlpxjPw6VeNF9IpIttQE/oimQKsRixjFDlBNruu0ilQ6RIw== 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 4XhRdr30jTz14kn; Sun, 3 Nov 2024 20:53:36 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A3KraQL057892; Sun, 3 Nov 2024 20:53:36 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A3Kra4H057889; Sun, 3 Nov 2024 20:53:36 GMT (envelope-from git) Date: Sun, 3 Nov 2024 20:53:36 GMT Message-Id: <202411032053.4A3Kra4H057889@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Dimitry Andric Subject: git: e8b22e75d759 - main - math/openfst-vosk: fix build with clang and libc++ 19 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: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e8b22e75d75924f1f6567044252abe2a3d60078e Auto-Submitted: auto-generated The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/ports/commit/?id=e8b22e75d75924f1f6567044252abe2a3d60078e commit e8b22e75d75924f1f6567044252abe2a3d60078e Author: Dimitry Andric AuthorDate: 2024-11-03 11:47:38 +0000 Commit: Dimitry Andric CommitDate: 2024-11-03 20:53:19 +0000 math/openfst-vosk: fix build with clang and libc++ 19 With clang and libc++ 19 math/openfst-vosk fails to compile, with errors similar to: ./../include/fst/fst.h:704:15: error: no viable overloaded '=' 704 | isymbols_ = impl.isymbols_ ? impl.isymbols_->Copy() : nullptr; | ~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/v1/__memory/unique_ptr.h:231:67: note: candidate function not viable: no known conversion from 'SymbolTable *' to 'unique_ptr' for 1st argument 231 | _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX23 unique_ptr& operator=(unique_ptr&& __u) _NOEXCEPT { | ^ ~~~~~~~~~~~~~~~~ /usr/include/c++/v1/__memory/unique_ptr.h:241:67: note: candidate template ignored: could not match 'unique_ptr<_Up, _Ep>' against 'SymbolTable *' 241 | _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX23 unique_ptr& operator=(unique_ptr<_Up, _Ep>&& __u) _NOEXCEPT { | ^ /usr/include/c++/v1/__memory/unique_ptr.h:263:67: note: candidate function not viable: no known conversion from 'SymbolTable *' to 'nullptr_t' (aka 'std::nullptr_t') for 1st argument 263 | _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX23 unique_ptr& operator=(nullptr_t) _NOEXCEPT { | ^ ~~~~~~~~~ /usr/include/c++/v1/__memory/unique_ptr.h:138:59: note: candidate function (the implicit copy assignment operator) not viable: no known conversion from 'SymbolTable *' to 'const unique_ptr' for 1st argument 138 | class _LIBCPP_UNIQUE_PTR_TRIVIAL_ABI _LIBCPP_TEMPLATE_VIS unique_ptr { | ^~~~~~~~~~ and: ./../include/fst/bi-table.h:330:25: error: no member named 's_' in 'VectorHashBiTable' 330 | : selector_(table.s_), | ~~~~~ ^ The first error can be fixed by using `std::unique_ptr<>::reset` instead of the assignment operator. The second error can be fixed by using the correct class member, `selector_`. PR: 282513 Approved by: yuri (maintainer) MFH: 2024Q3 --- math/openfst-vosk/files/patch-src_include_fst_bi-table.h | 11 +++++++++++ math/openfst-vosk/files/patch-src_include_fst_fst.h | 13 +++++++++++++ 2 files changed, 24 insertions(+) diff --git a/math/openfst-vosk/files/patch-src_include_fst_bi-table.h b/math/openfst-vosk/files/patch-src_include_fst_bi-table.h new file mode 100644 index 000000000000..b6b8a0a22c26 --- /dev/null +++ b/math/openfst-vosk/files/patch-src_include_fst_bi-table.h @@ -0,0 +1,11 @@ +--- src/include/fst/bi-table.h.orig 2021-02-07 08:38:45 UTC ++++ src/include/fst/bi-table.h +@@ -327,7 +327,7 @@ class VectorHashBiTable { + } + + VectorHashBiTable(const VectorHashBiTable &table) +- : selector_(table.s_), ++ : selector_(table.selector_), + fp_(table.fp_), + h_(table.h_), + id2entry_(table.id2entry_), diff --git a/math/openfst-vosk/files/patch-src_include_fst_fst.h b/math/openfst-vosk/files/patch-src_include_fst_fst.h new file mode 100644 index 000000000000..ee516a070325 --- /dev/null +++ b/math/openfst-vosk/files/patch-src_include_fst_fst.h @@ -0,0 +1,13 @@ +--- src/include/fst/fst.h.orig 2021-02-07 08:38:45 UTC ++++ src/include/fst/fst.h +@@ -701,8 +701,8 @@ class FstImpl { + properties_.store(impl.properties_.load(std::memory_order_relaxed), + std::memory_order_relaxed); + type_ = impl.type_; +- isymbols_ = impl.isymbols_ ? impl.isymbols_->Copy() : nullptr; +- osymbols_ = impl.osymbols_ ? impl.osymbols_->Copy() : nullptr; ++ isymbols_.reset(impl.isymbols_ ? impl.isymbols_->Copy() : nullptr); ++ osymbols_.reset(impl.osymbols_ ? impl.osymbols_->Copy() : nullptr); + return *this; + } +