Date: Sun, 11 Feb 2024 14:07:59 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 276983] devel/android-tools: build error error: no template named 'function' in namespace 'std' Message-ID: <bug-276983-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D276983 Bug ID: 276983 Summary: devel/android-tools: build error error: no template named 'function' in namespace 'std' Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: nc@FreeBSD.org Reporter: discipline@tiscali.it Flags: maintainer-feedback?(nc@FreeBSD.org) Assignee: nc@FreeBSD.org After the PORTREVISION bump due to pr276530 (https://cgit.freebsd.org/ports/commit/devel/android-tools/Makefile?id=3D7e= 5aa2085f48d71be003c8ff0377bde837467291), I'm receiving the following error while building devel/android-tools: [ 6% 39/629] /usr/bin/c++ -I/usr/ports/devel/android-tools/work/.build/ve= ndor -I/usr/ports/devel/android-tools/work/freebsd-android-tools-271d7a26c8daf4b= 9fe412d360a2edfaca327efdd/vendor/adb -I/usr/ports/devel/android-tools/work/freebsd-android-tools-271d7a26c8daf4b= 9fe412d360a2edfaca327efdd/vendor/adb/tls/include -I/usr/ports/devel/android-tools/work/freebsd-android-tools-271d7a26c8daf4b= 9fe412d360a2edfaca327efdd/vendor/boringssl/include -I/usr/ports/devel/android-tools/work/freebsd-android-tools-271d7a26c8daf4b= 9fe412d360a2edfaca327efdd/vendor/libbase/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=3Dgnu++2a -Wno-attri= butes -D_FILE_OFFSET_BITS=3D64 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -DNDE= BUG -MD -MT vendor/CMakeFiles/libadb_tls_connection_defaults.dir/adb/tls/tls_connection= .cpp.o -MF vendor/CMakeFiles/libadb_tls_connection_defaults.dir/adb/tls/tls_connection= .cpp.o.d -o vendor/CMakeFiles/libadb_tls_connection_defaults.dir/adb/tls/tls_connection= .cpp.o -c /usr/ports/devel/android-tools/work/freebsd-android-tools-271d7a26c8daf4b9f= e412d360a2edfaca327efdd/vendor/adb/tls/tls_connection.cpp FAILED: vendor/CMakeFiles/libadb_tls_connection_defaults.dir/adb/tls/tls_connection= .cpp.o=20 /usr/bin/c++ -I/usr/ports/devel/android-tools/work/.build/vendor -I/usr/ports/devel/android-tools/work/freebsd-android-tools-271d7a26c8daf4b= 9fe412d360a2edfaca327efdd/vendor/adb -I/usr/ports/devel/android-tools/work/freebsd-android-tools-271d7a26c8daf4b= 9fe412d360a2edfaca327efdd/vendor/adb/tls/include -I/usr/ports/devel/android-tools/work/freebsd-android-tools-271d7a26c8daf4b= 9fe412d360a2edfaca327efdd/vendor/boringssl/include -I/usr/ports/devel/android-tools/work/freebsd-android-tools-271d7a26c8daf4b= 9fe412d360a2edfaca327efdd/vendor/libbase/include -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=3Dgnu++2a -Wno-attri= butes -D_FILE_OFFSET_BITS=3D64 -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -DNDE= BUG -MD -MT vendor/CMakeFiles/libadb_tls_connection_defaults.dir/adb/tls/tls_connection= .cpp.o -MF vendor/CMakeFiles/libadb_tls_connection_defaults.dir/adb/tls/tls_connection= .cpp.o.d -o vendor/CMakeFiles/libadb_tls_connection_defaults.dir/adb/tls/tls_connection= .cpp.o -c /usr/ports/devel/android-tools/work/freebsd-android-tools-271d7a26c8daf4b9f= e412d360a2edfaca327efdd/vendor/adb/tls/tls_connection.cpp In file included from /usr/ports/devel/android-tools/work/freebsd-android-tools-271d7a26c8daf4b9f= e412d360a2edfaca327efdd/vendor/adb/tls/tls_connection.cpp:17: /usr/ports/devel/android-tools/work/freebsd-android-tools-271d7a26c8daf4b9f= e412d360a2edfaca327efdd/vendor/adb/tls/include/adb/tls/tls_connection.h:51:= 31: error: no template named 'function' in namespace 'std' 51 | using CertVerifyCb =3D std::function<int(X509_STORE_CTX*)>; | ~~~~~^ /usr/ports/devel/android-tools/work/freebsd-android-tools-271d7a26c8daf4b9f= e412d360a2edfaca327efdd/vendor/adb/tls/include/adb/tls/tls_connection.h:52:= 28: error: no template named 'function' in namespace 'std' 52 | using SetCertCb =3D std::function<int(SSL*)>; | ~~~~~^ /usr/ports/devel/android-tools/work/freebsd-android-tools-271d7a26c8daf4b9f= e412d360a2edfaca327efdd/vendor/adb/tls/include/adb/tls/tls_connection.h:67:= 40: error: unknown type name 'CertVerifyCb' 67 | virtual void SetCertVerifyCallback(CertVerifyCb cb) =3D 0; | ^ /usr/ports/devel/android-tools/work/freebsd-android-tools-271d7a26c8daf4b9f= e412d360a2edfaca327efdd/vendor/adb/tls/include/adb/tls/tls_connection.h:76:= 41: error: unknown type name 'SetCertCb' 76 | virtual void SetCertificateCallback(SetCertCb cb) =3D 0; | ^ /usr/ports/devel/android-tools/work/freebsd-android-tools-271d7a26c8daf4b9f= e412d360a2edfaca327efdd/vendor/adb/tls/tls_connection.cpp:45:32: error: unknown type name 'CertVerifyCb' 45 | void SetCertVerifyCallback(CertVerifyCb cb) override; | ^ /usr/ports/devel/android-tools/work/freebsd-android-tools-271d7a26c8daf4b9f= e412d360a2edfaca327efdd/vendor/adb/tls/tls_connection.cpp:46:33: error: unknown type name 'SetCertCb' 46 | void SetCertificateCallback(SetCertCb cb) override; | ^ /usr/ports/devel/android-tools/work/freebsd-android-tools-271d7a26c8daf4b9f= e412d360a2edfaca327efdd/vendor/adb/tls/tls_connection.cpp:78:5: error: unknown type name 'CertVerifyCb' 78 | CertVerifyCb cert_verify_cb_; | ^ /usr/ports/devel/android-tools/work/freebsd-android-tools-271d7a26c8daf4b9f= e412d360a2edfaca327efdd/vendor/adb/tls/tls_connection.cpp:79:5: error: unknown type name 'SetCertCb' 79 | SetCertCb set_cert_cb_; | ^ /usr/ports/devel/android-tools/work/freebsd-android-tools-271d7a26c8daf4b9f= e412d360a2edfaca327efdd/vendor/adb/tls/tls_connection.cpp:166:47: error: unknown type name 'CertVerifyCb' 166 | void TlsConnectionImpl::SetCertVerifyCallback(CertVerifyCb cb) { | ^ /usr/ports/devel/android-tools/work/freebsd-android-tools-271d7a26c8daf4b9f= e412d360a2edfaca327efdd/vendor/adb/tls/tls_connection.cpp:170:48: error: unknown type name 'SetCertCb' 170 | void TlsConnectionImpl::SetCertificateCallback(SetCertCb cb) { | ^ /usr/ports/devel/android-tools/work/freebsd-android-tools-271d7a26c8daf4b9f= e412d360a2edfaca327efdd/vendor/adb/tls/tls_connection.cpp:369:12: error: no viable conversion from returned value of type 'unique_ptr<adb::tls::(anonymous namespace)::TlsConnectionImpl>' to function return type 'unique_ptr<TlsConnection>' 369 | return std::make_unique<TlsConnectionImpl>(role, cert, priv_key, fd); |=20=20=20=20=20=20=20=20=20=20=20 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/v1/__memory/unique_ptr.h:127:59: note: candidate construct= or (the implicit copy constructor) not viable: no known conversion from 'typen= ame __unique_if<TlsConnectionImpl>::__unique_single' (aka 'unique_ptr<adb::tls::(anonymous namespace)::TlsConnectionImpl>') to 'const unique_ptr<TlsConnection> &' for 1st argument 127 | class _LIBCPP_UNIQUE_PTR_TRIVIAL_ABI _LIBCPP_TEMPLATE_VIS unique_pt= r { | ^~~~~~~~~~ /usr/include/c++/v1/__memory/unique_ptr.h:191:21: note: candidate construct= or template not viable: no known conversion from 'typename __unique_if<TlsConnectionImpl>::__unique_single' (aka 'unique_ptr<adb::tls::(anonymous namespace)::TlsConnectionImpl>') to 'nullptr_t' (aka 'std::nullptr_t') for 1st argument 191 | _LIBCPP_CONSTEXPR unique_ptr(nullptr_t) _NOEXCEPT : __ptr_(__value_init_tag(), __value_init_tag()) {} | ^ ~~~~~~~~~ /usr/include/c++/v1/__memory/unique_ptr.h:213:59: note: candidate construct= or not viable: no known conversion from 'typename __unique_if<TlsConnectionImpl>::__unique_single' (aka 'unique_ptr<adb::tls::(anonymous namespace)::TlsConnectionImpl>') to 'unique_ptr<TlsConnection> &&' for 1st argument 213 | _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_SINCE_CXX23 unique_ptr(unique_ptr&& __u) _NOEXCEPT | ^=20=20= =20=20=20=20=20=20=20 ~~~~~~~~~~~~~~~~ /usr/include/c++/v1/__memory/unique_ptr.h:220:59: note: candidate template ignored: requirement 'is_convertible<adb::tls::(anonymous namespace)::TlsConnectionImpl *, adb::tls::TlsConnection *>::value' was not satisfied [with _Up =3D adb::tls::(anonymous namespace)::TlsConnectionImpl,= _Ep =3D std::default_delete<adb::tls::(anonymous namespace)::TlsConnectionImpl>] 220 | _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_SINCE_CXX23 unique_ptr(unique_ptr<_Up, _Ep>&& __u) _NOEXCEPT | ^ /usr/include/c++/v1/__memory/unique_ptr.h:194:68: note: explicit constructo= r is not a candidate 194 | _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_SINCE_CXX23 explicit unique_ptr(pointer __p) _NOEXCEPT | ^ 11 errors generated. ninja: build stopped: subcommand failed. *** Error code 1 The installed go version is from lang/go120. The ports has been previously built (from updated ports) on 14th Dec. 2023 = with success. I don't know if the problem is related to that but in the meanwhile I updat= ed my box tracking stable/13 on 10th Feb. 2024, so llvm project in base has be= en upgraded from version 16 to 17: $ /usr/bin/c++ --version FreeBSD clang version 17.0.6 (https://github.com/llvm/llvm-project.git llvmorg-17.0.6-0-g6009708b4367) Target: x86_64-unknown-freebsd13.3 Thread model: posix InstalledDir: /usr/bin --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-276983-7788>