openfst icon indicating copy to clipboard operation
openfst copied to clipboard

Build is broken with clang-19: no viable overloaded '='

Open yurivict opened this issue 1 year ago • 1 comments

In file included from /wrkdirs/usr/ports/math/openfst/work/openfst-8058417/src/lib/fst.cc:6:
/wrkdirs/usr/ports/math/openfst/work/openfst-8058417/src/./include/fst/fst.h:655:15: error: no viable overloaded '='
  655 |     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<SymbolTable>' 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:250:37: note: candidate template ignored: could not match 'auto_ptr<_Up>' against 'SymbolTable *'
  250 |   _LIBCPP_HIDE_FROM_ABI unique_ptr& operator=(auto_ptr<_Up> __p) {
      |                                     ^

FreeBSD 14.1

yurivict avatar Nov 03 '24 05:11 yurivict

Hi, this is very old version of openfst that was patched for compilation on windows -- I suggest using original source from https://www.openfst.org/twiki/bin/view/FST/FstDownload If there will be any issues, I can try to help y.

On Sun, Nov 3, 2024 at 6:35 AM @.*** @.***> wrote:

In file included from /wrkdirs/usr/ports/math/openfst/work/openfst-8058417/src/lib/fst.cc:6: /wrkdirs/usr/ports/math/openfst/work/openfst-8058417/src/./include/fst/fst.h:655:15: error: no viable overloaded '=' 655 | 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<SymbolTable>' 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:250:37: note: candidate template ignored: could not match 'auto_ptr<_Up>' against 'SymbolTable *' 250 | _LIBCPP_HIDE_FROM_ABI unique_ptr& operator=(auto_ptr<_Up> __p) { | ^

FreeBSD 14.1

— Reply to this email directly, view it on GitHub https://github.com/kkm000/openfst/issues/58, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACUKYX6KVIGSWIIEBLO2PY3Z6WYZFAVCNFSM6AAAAABRCM3K5CVHI2DSMVQWIX3LMV43ASLTON2WKOZSGYZTAOJYGYZTGNA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

jtrmal avatar Nov 04 '24 07:11 jtrmal