Opened 15 months ago

#68176 new defect

transmission-x11 @4.0.4 fails to build with Clang on Catalina and below: error: no viable constructor or deduction guide for deduction of template arguments of 'shared_ptr'

Reported by: barracuda156 Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: catalina Cc:
Port: transmission-x11

Description

[ 94%] Building CXX object gtk/CMakeFiles/transmission-gtk.dir/StatsDialog.cc.o
cd /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_transmission-x11/transmission-x11/work/build/gtk && /usr/bin/clang++ -DDISABLE_GETTEXT -DFMT_EXCEPTIONS=0 -DFMT_HEADER_ONLY=1 -DGETTEXT_PACKAGE=\"transmission-gtk\" -DTRANSMISSIONLOCALEDIR=\"/opt/local/share/locale\" -DWITH_UTP -I/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_transmission-x11/transmission-x11/work/build/gtk -I/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_transmission-x11/transmission-x11/work/transmission-4.0.4/libtransmission/.. -I/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_transmission-x11/transmission-x11/work/build/libtransmission/.. -isystem /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_transmission-x11/transmission-x11/work/transmission-4.0.4/cmake/../third-party/fmt/include -isystem /opt/local/include -isystem /opt/local/include/gtkmm-3.0 -isystem /opt/local/lib/gtkmm-3.0/include -isystem /opt/local/include/atkmm-1.6 -isystem /opt/local/include/gtk-3.0/unix-print -isystem /opt/local/include/gdkmm-3.0 -isystem /opt/local/lib/gdkmm-3.0/include -isystem /opt/local/include/gtk-3.0 -isystem /opt/local/include/at-spi2-atk/2.0 -isystem /opt/local/include/at-spi-2.0 -isystem /opt/local/include/dbus-1.0 -isystem /opt/local/lib/dbus-1.0/include -isystem /opt/local/include/gio-unix-2.0 -isystem /opt/local/include/cairo -isystem /opt/local/include/atk-1.0 -isystem /opt/local/include/pangomm-1.4 -isystem /opt/local/lib/pangomm-1.4/include -isystem /opt/local/include/cairomm-1.0 -isystem /opt/local/lib/cairomm-1.0/include -isystem /opt/local/include/pango-1.0 -isystem /opt/local/include/harfbuzz -isystem /opt/local/include/fribidi -isystem /opt/local/include/pixman-1 -isystem /opt/local/include/freetype2 -isystem /opt/local/include/gdk-pixbuf-2.0 -isystem /opt/local/include/libpng16 -isystem /opt/local/include/giomm-2.4 -isystem /opt/local/lib/giomm-2.4/include -isystem /opt/local/include/glibmm-2.4 -isystem /opt/local/lib/glibmm-2.4/include -isystem /opt/local/include/glib-2.0 -isystem /opt/local/lib/glib-2.0/include -isystem /opt/local/include/sigc++-2.0 -isystem /opt/local/lib/sigc++-2.0/include -pipe -I/opt/local/libexec/openssl3/include -Os -DNDEBUG -I/opt/local/libexec/openssl3/include -isystem/opt/local/include -stdlib=libc++ -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -arch x86_64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -mmacosx-version-min=10.15 -W -Wall -Wextra -Wcast-align -Wexit-time-destructors -Wextra-semi -Wextra-semi-stmt -Wextra-tokens -Wfloat-equal -Wgnu -Winit-self -Wmissing-format-attribute -Wnull-dereference -Wpointer-arith -Wredundant-decls -Wredundant-move -Wreturn-std-move -Wself-assign -Wself-move -Wsemicolon-before-method-body -Wsentinel -Wshadow -Wsign-compare -Wsometimes-uninitialized -Wstring-conversion -Wuninitialized -Wunreachable-code -Wunused -Wunused-const-variable -Wunused-parameter -Wunused-result -Wwrite-strings -Wformat-security -Wno-exit-time-destructors -std=gnu++17 -MD -MT gtk/CMakeFiles/transmission-gtk.dir/StatsDialog.cc.o -MF CMakeFiles/transmission-gtk.dir/StatsDialog.cc.o.d -o CMakeFiles/transmission-gtk.dir/StatsDialog.cc.o -c /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_transmission-x11/transmission-x11/work/transmission-4.0.4/gtk/StatsDialog.cc
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_transmission-x11/transmission-x11/work/transmission-4.0.4/gtk/Session.cc:1211:51: error: no viable constructor or deduction guide for deduction of template arguments of 'shared_ptr'
    Glib::signal_idle().connect([owned_response = std::shared_ptr(create_variant(*response))]() mutable
                                                  ^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/memory:3756:23: note: candidate template ignored: couldn't infer template argument '_Tp'
    _LIBCPP_CONSTEXPR shared_ptr(nullptr_t) _NOEXCEPT;
                      ^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/memory:3798:9: note: candidate template ignored: couldn't infer template argument '_Tp'
        shared_ptr(unique_ptr<_Yp, _Dp>&&,
        ^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/memory:3807:9: note: candidate template ignored: couldn't infer template argument '_Tp'
        shared_ptr(unique_ptr<_Yp, _Dp>&&,
        ^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/memory:3739:28: note: candidate template ignored: could not match 'shared_ptr' against 'unique_ptr'
class _LIBCPP_TEMPLATE_VIS shared_ptr
                           ^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/memory:3758:18: note: candidate template ignored: could not match 'type-parameter-0-1 *' against '(anonymous namespace)::TrVariantPtr' (aka 'unique_ptr<tr_variant, (anonymous namespace)::TrVariantDeleter>')
        explicit shared_ptr(_Yp* __p,
                 ^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/memory:3770:5: note: candidate template ignored: could not match 'shared_ptr' against 'unique_ptr'
    shared_ptr(const shared_ptr& __r) _NOEXCEPT;
    ^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/memory:3773:9: note: candidate template ignored: could not match 'shared_ptr' against 'unique_ptr'
        shared_ptr(const shared_ptr<_Yp>& __r,
        ^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/memory:3778:5: note: candidate template ignored: could not match 'shared_ptr' against 'unique_ptr'
    shared_ptr(shared_ptr&& __r) _NOEXCEPT;
    ^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/memory:3779:52: note: candidate template ignored: could not match 'shared_ptr' against 'unique_ptr'
    template<class _Yp> _LIBCPP_INLINE_VISIBILITY  shared_ptr(shared_ptr<_Yp>&& __r,
                                                   ^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/memory:3783:34: note: candidate template ignored: could not match 'weak_ptr' against 'unique_ptr'
    template<class _Yp> explicit shared_ptr(const weak_ptr<_Yp>& __r,
                                 ^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/memory:3754:23: note: candidate function template not viable: requires 0 arguments, but 1 was provided
    _LIBCPP_CONSTEXPR shared_ptr() _NOEXCEPT;
                      ^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/memory:3761:9: note: candidate function template not viable: requires at least 2 arguments, but 1 was provided
        shared_ptr(_Yp* __p, _Dp __d,
        ^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/memory:3764:9: note: candidate function template not viable: requires at least 3 arguments, but 1 was provided
        shared_ptr(_Yp* __p, _Dp __d, _Alloc __a,
        ^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/memory:3766:26: note: candidate function template not viable: requires 2 arguments, but 1 was provided
    template <class _Dp> shared_ptr(nullptr_t __p, _Dp __d);
                         ^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/memory:3767:40: note: candidate function template not viable: requires 3 arguments, but 1 was provided
    template <class _Dp, class _Alloc> shared_ptr(nullptr_t __p, _Dp __d, _Alloc __a);
                                       ^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/memory:3768:51: note: candidate function template not viable: requires 2 arguments, but 1 was provided
    template<class _Yp> _LIBCPP_INLINE_VISIBILITY shared_ptr(const shared_ptr<_Yp>& __r, element_type* __p) _NOEXCEPT;
                                                  ^
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_transmission-x11/transmission-x11/work/transmission-4.0.4/gtk/Session.cc:1212:71: error: use of undeclared identifier 'owned_response'
                                { return core_read_rpc_response_idle(*owned_response); });
                                                                      ^
In file included from /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_transmission-x11/transmission-x11/work/transmission-4.0.4/gtk/Session.cc:5:
In file included from /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_transmission-x11/transmission-x11/work/transmission-4.0.4/gtk/Session.h:8:
In file included from /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_transmission-x11/transmission-x11/work/transmission-4.0.4/gtk/Torrent.h:12:
In file included from /opt/local/include/giomm-2.4/giomm/icon.h:7:
In file included from /opt/local/include/sigc++-2.0/sigc++/sigc++.h:123:
In file included from /opt/local/include/sigc++-2.0/sigc++/signal.h:8:
In file included from /opt/local/include/sigc++-2.0/sigc++/signal_base.h:27:
/opt/local/include/sigc++-2.0/sigc++/functors/slot.h:136:14: error: cannot initialize return object of type 'bool' with an rvalue of type 'sigc::adaptor_functor<(lambda at /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_transmission-x11/transmission-x11/work/transmission-4.0.4/gtk/Session.cc:1211:33)>::result_type' (aka 'void')
      return (typed_rep->functor_)();
             ^~~~~~~~~~~~~~~~~~~~~~~
/opt/local/include/sigc++-2.0/sigc++/functors/slot.h:143:57: note: in instantiation of member function 'sigc::internal::slot_call0<(lambda at /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_transmission-x11/transmission-x11/work/transmission-4.0.4/gtk/Session.cc:1211:33), bool>::call_it' requested here
  { return sigc::internal::function_pointer_cast<hook>(&call_it); }
                                                        ^
/opt/local/include/sigc++-2.0/sigc++/functors/slot.h:549:75: note: in instantiation of member function 'sigc::internal::slot_call0<(lambda at /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_transmission-x11/transmission-x11/work/transmission-4.0.4/gtk/Session.cc:1211:33), bool>::address' requested here
      slot_base::rep_->call_ = internal::slot_call0<T_functor, T_return>::address();
                                                                          ^
/opt/local/include/sigc++-2.0/sigc++/functors/slot.h:1774:7: note: in instantiation of function template specialization 'sigc::slot0<bool>::slot0<(lambda at /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_transmission-x11/transmission-x11/work/transmission-4.0.4/gtk/Session.cc:1211:33)>' requested here
    : parent_type(_A_func) {}
      ^
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_transmission-x11/transmission-x11/work/transmission-4.0.4/gtk/Session.cc:1211:33: note: in instantiation of function template specialization 'sigc::slot<bool, sigc::nil, sigc::nil, sigc::nil, sigc::nil, sigc::nil, sigc::nil, sigc::nil>::slot<(lambda at /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_net_transmission-x11/transmission-x11/work/transmission-4.0.4/gtk/Session.cc:1211:33)>' requested here
    Glib::signal_idle().connect([owned_response = std::shared_ptr(create_variant(*response))]() mutable
                                ^
3 errors generated.
make[2]: *** [gtk/CMakeFiles/transmission-gtk.dir/Session.cc.o] Error 1

https://build.macports.org/builders/ports-10.15_x86_64-builder/builds/153881/steps/install-port/logs/stdio

Change History (0)

Note: See TracTickets for help on using tickets.