Skip to content
This repository was archived by the owner on Oct 25, 2024. It is now read-only.

iOS build failed, errors like "class type 'cricket::FakeDtlsTransport'" #525

Closed
andreasunterhuber opened this issue May 12, 2021 · 3 comments · Fixed by open-webrtc-toolkit/owt-deps-webrtc#146
Assignees
Labels
bug Something isn't working iOS Issues happen on iOS platform

Comments

@andreasunterhuber
Copy link

Based on #514 (comment) there are several errors that stop building for iOS.

Changes go back to commit open-webrtc-toolkit/owt-deps-webrtc@535f946 from @taste1981

@taste1981 can you have a look?
/cc @jianjunz belveder79

Build details

  • latest master
  • building on macOS BigSur
  • Xcode 12.5
  • command we did run: python3 scripts/build.py

Error

Called by the build.py script in this area:

# Run unit tests on simulator. Return True if all tests are passed.
def runtest(ssl_root):
  print('Start running unit tests.')
  # Build app targets checks link issue.
  if not ninjabuild(TEST_ARCH, TEST_SCHEME, SDK_TARGETS + APP_TARGETS + TEST_TARGETS):
    return False
  for test_target in TEST_TARGETS:
    if subprocess.call(['./iossim', '-d', TEST_SIMULATOR_DEVICE, '-s',
        getsdkversion(), '%s.app'%test_target],
        cwd=getoutputpath(TEST_ARCH, TEST_SCHEME)):
      return False
  return True

causing these errors:

FAILED: obj/third_party/webrtc/pc/rtc_pc_unittests_arch_executable_sources/dtls_transport_unittest.o
clang++ -MMD -MF obj/third_party/webrtc/pc/rtc_pc_unittests_arch_executable_sources/dtls_transport_unittest.o.d -DCR_XCODE_VERSION=1250 -DCR_CLANG_REVISION=\"llvmorg-12-init-11060-g118c3f3c-1\" -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_DEBUG -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DWEBRTC_ENABLE_PROTOBUF=1 -DWEBRTC_INCLUDE_INTERNAL_AUDIO_DEVICE -DRTC_ENABLE_VP9 -DHAVE_SCTP -DHAVE_WEBRTC_VIDEO -DLOGGING_INSIDE_WEBRTC -DWEBRTC_ENABLE_AVX2 -DWEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS=1 -DWEBRTC_POSIX -DWEBRTC_MAC -DWEBRTC_IOS -DABSL_ALLOCATOR_NOTHROW=1 -DABSL_FLAGS_STRIP_NAMES=0 -DGTEST_API_= -DGTEST_HAS_POSIX_RE=0 -DGTEST_LANG_CXX11=1 -DGTEST_HAS_TR1_TUPLE=0 -DGTEST_HAS_ABSL=1 -DHAVE_SCTP -DUNIT_TEST -DPACKAGE_STRING=\"libsrtp2\ 2.1.0-pre\" -DPACKAGE_VERSION=\"2.1.0-pre\" -DHAVE_CONFIG_H -DOPENSSL -DHAVE_STDLIB_H -DHAVE_STRING_H -DHAVE_STDINT_H -DHAVE_INTTYPES_H -DHAVE_INT16_T -DHAVE_INT32_T -DHAVE_INT8_T -DHAVE_UINT16_T -DHAVE_UINT32_T -DHAVE_UINT64_T -DHAVE_UINT8_T -DHAVE_ARPA_INET_H -DHAVE_NETINET_IN_H -DHAVE_SYS_TYPES_H -DHAVE_UNISTD_H -DOPENSSL_NO_ASM -I../../third_party/libsrtp/srtp -I../.. -Igen -I../../third_party/webrtc -Igen/third_party/webrtc -I../../third_party/abseil-cpp -I../../third_party/libyuv/include -I../../third_party/googletest/custom -I../../third_party/googletest/src/googlemock/include -I../../third_party/googletest/custom -I../../third_party/googletest/src/googletest/include -I../../third_party/abseil-cpp -I../../third_party/libsrtp -I../../third_party/libsrtp/config -I../../third_party/libsrtp/include -I../../third_party/libsrtp/crypto/include -I../../third_party/boringssl/src/include -fno-delete-null-pointer-checks -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -fcolor-diagnostics -fmerge-all-constants -target x86_64-apple-ios9.0-simulator -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -Xclang -fdebug-compilation-dir -Xclang . -no-canonical-prefixes -Wall -Werror -Wextra -Wimplicit-fallthrough -Wunreachable-code -Wthread-safety -Wextra-semi -Wunguarded-availability -Wundeclared-selector -Wno-range-loop-analysis -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-unneeded-internal-declaration -Wno-undefined-var-template -O0 -fno-omit-frame-pointer -g2 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Wno-shorten-64-to-32 -Wno-inconsistent-missing-override -Wno-undefined-bool-conversion -Wno-tautological-undefined-compare -std=c++14 -fno-trigraphs -Wno-trigraphs -fno-exceptions -fno-rtti -c ../../third_party/webrtc/pc/dtls_transport_unittest.cc -o obj/third_party/webrtc/pc/rtc_pc_unittests_arch_executable_sources/dtls_transport_unittest.o
In file included from ../../third_party/webrtc/pc/dtls_transport_unittest.cc:11:
In file included from ../../third_party/webrtc/pc/dtls_transport.h:19:
In file included from ../../third_party/webrtc/p2p/base/dtls_transport.h:19:
In file included from ../../third_party/webrtc/p2p/base/dtls_transport_internal.h:23:
In file included from ../../third_party/webrtc/p2p/base/ice_transport_internal.h:22:
In file included from ../../third_party/webrtc/p2p/base/connection.h:26:
In file included from ../../third_party/webrtc/p2p/base/transport_description.h:22:
../../third_party/webrtc/rtc_base/ssl_fingerprint.h:60:3: error: definition of implicit copy assignment operator for 'SSLFingerprint' is deprecated because it has a user-declared copy constructor [-Werror,-Wdeprecated-copy]
  SSLFingerprint(const SSLFingerprint& from);
  ^
../../third_party/webrtc/p2p/base/fake_dtls_transport.h:139:23: note: in implicit copy assignment operator for 'rtc::SSLFingerprint' first required here
    dtls_fingerprint_ =
                      ^
In file included from ../../third_party/webrtc/pc/dtls_transport_unittest.cc:11:
In file included from ../../third_party/webrtc/pc/dtls_transport.h:14:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/include/c++/v1/memory:2755:32: error: no matching constructor for initialization of 'cricket::FakeIceTransport'
    return unique_ptr<_Tp>(new _Tp(_VSTD::forward<_Args>(__args)...));
                               ^   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../third_party/webrtc/p2p/base/fake_dtls_transport.h:59:32: note: in instantiation of function template specialization 'std::__1::make_unique<cricket::FakeIceTransport, const std::__1::basic_string<char> &, int &>' requested here
      : FakeDtlsTransport(std::make_unique<FakeIceTransport>(name, component)) {
                               ^
../../third_party/webrtc/p2p/base/fake_ice_transport.h:28:7: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 2 were provided
class FakeIceTransport : public IceTransportInternal {
      ^
../../third_party/webrtc/p2p/base/fake_ice_transport.h:30:12: note: candidate constructor not viable: requires at least 3 arguments, but 2 were provided
  explicit FakeIceTransport(const std::string& name,
           ^
In file included from ../../third_party/webrtc/pc/dtls_transport_unittest.cc:11:
In file included from ../../third_party/webrtc/pc/dtls_transport.h:14:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/include/c++/v1/memory:2755:32: error: allocating an object of abstract class type 'cricket::FakeDtlsTransport'
    return unique_ptr<_Tp>(new _Tp(_VSTD::forward<_Args>(__args)...));
                               ^
../../third_party/webrtc/pc/dtls_transport_unittest.cc:59:35: note: in instantiation of function template specialization 'std::__1::make_unique<cricket::FakeDtlsTransport, char const (&)[6], const int &>' requested here
    auto cricket_transport = std::make_unique<FakeDtlsTransport>(
                                  ^
../../third_party/webrtc/p2p/base/packet_transport_internal.h:34:30: note: unimplemented pure virtual method 'media_type' in 'FakeDtlsTransport'
  virtual cricket::MediaType media_type() const = 0;
                             ^
3 errors generated.
[6/26] CXX obj/third_party/webrtc/pc/rtc_pc_unittests_arch_executable_sources/ice_transport_unittest.o
FAILED: obj/third_party/webrtc/pc/rtc_pc_unittests_arch_executable_sources/ice_transport_unittest.o
clang++ -MMD -MF obj/third_party/webrtc/pc/rtc_pc_unittests_arch_executable_sources/ice_transport_unittest.o.d -DCR_XCODE_VERSION=1250 -DCR_CLANG_REVISION=\"llvmorg-12-init-11060-g118c3f3c-1\" -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_DEBUG -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DWEBRTC_ENABLE_PROTOBUF=1 -DWEBRTC_INCLUDE_INTERNAL_AUDIO_DEVICE -DRTC_ENABLE_VP9 -DHAVE_SCTP -DHAVE_WEBRTC_VIDEO -DLOGGING_INSIDE_WEBRTC -DWEBRTC_ENABLE_AVX2 -DWEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS=1 -DWEBRTC_POSIX -DWEBRTC_MAC -DWEBRTC_IOS -DABSL_ALLOCATOR_NOTHROW=1 -DABSL_FLAGS_STRIP_NAMES=0 -DGTEST_API_= -DGTEST_HAS_POSIX_RE=0 -DGTEST_LANG_CXX11=1 -DGTEST_HAS_TR1_TUPLE=0 -DGTEST_HAS_ABSL=1 -DHAVE_SCTP -DUNIT_TEST -DPACKAGE_STRING=\"libsrtp2\ 2.1.0-pre\" -DPACKAGE_VERSION=\"2.1.0-pre\" -DHAVE_CONFIG_H -DOPENSSL -DHAVE_STDLIB_H -DHAVE_STRING_H -DHAVE_STDINT_H -DHAVE_INTTYPES_H -DHAVE_INT16_T -DHAVE_INT32_T -DHAVE_INT8_T -DHAVE_UINT16_T -DHAVE_UINT32_T -DHAVE_UINT64_T -DHAVE_UINT8_T -DHAVE_ARPA_INET_H -DHAVE_NETINET_IN_H -DHAVE_SYS_TYPES_H -DHAVE_UNISTD_H -DOPENSSL_NO_ASM -I../../third_party/libsrtp/srtp -I../.. -Igen -I../../third_party/webrtc -Igen/third_party/webrtc -I../../third_party/abseil-cpp -I../../third_party/libyuv/include -I../../third_party/googletest/custom -I../../third_party/googletest/src/googlemock/include -I../../third_party/googletest/custom -I../../third_party/googletest/src/googletest/include -I../../third_party/abseil-cpp -I../../third_party/libsrtp -I../../third_party/libsrtp/config -I../../third_party/libsrtp/include -I../../third_party/libsrtp/crypto/include -I../../third_party/boringssl/src/include -fno-delete-null-pointer-checks -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -fcolor-diagnostics -fmerge-all-constants -target x86_64-apple-ios9.0-simulator -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -Xclang -fdebug-compilation-dir -Xclang . -no-canonical-prefixes -Wall -Werror -Wextra -Wimplicit-fallthrough -Wunreachable-code -Wthread-safety -Wextra-semi -Wunguarded-availability -Wundeclared-selector -Wno-range-loop-analysis -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-unneeded-internal-declaration -Wno-undefined-var-template -O0 -fno-omit-frame-pointer -g2 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Wno-shorten-64-to-32 -Wno-inconsistent-missing-override -Wno-undefined-bool-conversion -Wno-tautological-undefined-compare -std=c++14 -fno-trigraphs -Wno-trigraphs -fno-exceptions -fno-rtti -c ../../third_party/webrtc/pc/ice_transport_unittest.cc -o obj/third_party/webrtc/pc/rtc_pc_unittests_arch_executable_sources/ice_transport_unittest.o
In file included from ../../third_party/webrtc/pc/ice_transport_unittest.cc:11:
In file included from ../../third_party/webrtc/pc/ice_transport.h:14:
In file included from ../../third_party/webrtc/api/ice_transport_interface.h:14:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/include/c++/v1/string:506:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/include/c++/v1/string_view:175:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/include/c++/v1/__string:57:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/include/c++/v1/algorithm:643:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/include/c++/v1/memory:2755:32: error: no matching constructor for initialization of 'cricket::FakeIceTransport'
    return unique_ptr<_Tp>(new _Tp(_VSTD::forward<_Args>(__args)...));
                               ^   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../third_party/webrtc/pc/ice_transport_unittest.cc:30:12: note: in instantiation of function template specialization 'std::__1::make_unique<cricket::FakeIceTransport, char const (&)[5], int, nullptr_t>' requested here
      std::make_unique<cricket::FakeIceTransport>("name", 0, nullptr);
           ^
../../third_party/webrtc/p2p/base/fake_ice_transport.h:30:12: note: candidate constructor not viable: no known conversion from 'int' to 'cricket::MediaType' for 2nd argument
  explicit FakeIceTransport(const std::string& name,
           ^
../../third_party/webrtc/p2p/base/fake_ice_transport.h:28:7: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 3 were provided
class FakeIceTransport : public IceTransportInternal {
      ^
1 error generated.
[7/26] CXX obj/third_party/webrtc/pc/rtc_pc_unittests_arch_executable_sources/rtp_transport_unittest.o
FAILED: obj/third_party/webrtc/pc/rtc_pc_unittests_arch_executable_sources/rtp_transport_unittest.o
clang++ -MMD -MF obj/third_party/webrtc/pc/rtc_pc_unittests_arch_executable_sources/rtp_transport_unittest.o.d -DCR_XCODE_VERSION=1250 -DCR_CLANG_REVISION=\"llvmorg-12-init-11060-g118c3f3c-1\" -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_DEBUG -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DWEBRTC_ENABLE_PROTOBUF=1 -DWEBRTC_INCLUDE_INTERNAL_AUDIO_DEVICE -DRTC_ENABLE_VP9 -DHAVE_SCTP -DHAVE_WEBRTC_VIDEO -DLOGGING_INSIDE_WEBRTC -DWEBRTC_ENABLE_AVX2 -DWEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS=1 -DWEBRTC_POSIX -DWEBRTC_MAC -DWEBRTC_IOS -DABSL_ALLOCATOR_NOTHROW=1 -DABSL_FLAGS_STRIP_NAMES=0 -DGTEST_API_= -DGTEST_HAS_POSIX_RE=0 -DGTEST_LANG_CXX11=1 -DGTEST_HAS_TR1_TUPLE=0 -DGTEST_HAS_ABSL=1 -DHAVE_SCTP -DUNIT_TEST -DPACKAGE_STRING=\"libsrtp2\ 2.1.0-pre\" -DPACKAGE_VERSION=\"2.1.0-pre\" -DHAVE_CONFIG_H -DOPENSSL -DHAVE_STDLIB_H -DHAVE_STRING_H -DHAVE_STDINT_H -DHAVE_INTTYPES_H -DHAVE_INT16_T -DHAVE_INT32_T -DHAVE_INT8_T -DHAVE_UINT16_T -DHAVE_UINT32_T -DHAVE_UINT64_T -DHAVE_UINT8_T -DHAVE_ARPA_INET_H -DHAVE_NETINET_IN_H -DHAVE_SYS_TYPES_H -DHAVE_UNISTD_H -DOPENSSL_NO_ASM -I../../third_party/libsrtp/srtp -I../.. -Igen -I../../third_party/webrtc -Igen/third_party/webrtc -I../../third_party/abseil-cpp -I../../third_party/libyuv/include -I../../third_party/googletest/custom -I../../third_party/googletest/src/googlemock/include -I../../third_party/googletest/custom -I../../third_party/googletest/src/googletest/include -I../../third_party/abseil-cpp -I../../third_party/libsrtp -I../../third_party/libsrtp/config -I../../third_party/libsrtp/include -I../../third_party/libsrtp/crypto/include -I../../third_party/boringssl/src/include -fno-delete-null-pointer-checks -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -fcolor-diagnostics -fmerge-all-constants -target x86_64-apple-ios9.0-simulator -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -Xclang -fdebug-compilation-dir -Xclang . -no-canonical-prefixes -Wall -Werror -Wextra -Wimplicit-fallthrough -Wunreachable-code -Wthread-safety -Wextra-semi -Wunguarded-availability -Wundeclared-selector -Wno-range-loop-analysis -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-unneeded-internal-declaration -Wno-undefined-var-template -O0 -fno-omit-frame-pointer -g2 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Wno-shorten-64-to-32 -Wno-inconsistent-missing-override -Wno-undefined-bool-conversion -Wno-tautological-undefined-compare -std=c++14 -fno-trigraphs -Wno-trigraphs -fno-exceptions -fno-rtti -c ../../third_party/webrtc/pc/rtp_transport_unittest.cc -o obj/third_party/webrtc/pc/rtc_pc_unittests_arch_executable_sources/rtp_transport_unittest.o
../../third_party/webrtc/pc/rtp_transport_unittest.cc:86:28: error: variable type 'rtc::FakePacketTransport' is an abstract class
  rtc::FakePacketTransport fake_rtcp("fake_rtcp");
                           ^
../../third_party/webrtc/p2p/base/packet_transport_internal.h:34:30: note: unimplemented pure virtual method 'media_type' in 'FakePacketTransport'
  virtual cricket::MediaType media_type() const = 0;
                             ^
../../third_party/webrtc/pc/rtp_transport_unittest.cc:88:28: error: variable type 'rtc::FakePacketTransport' is an abstract class
  rtc::FakePacketTransport fake_rtp("fake_rtp");
                           ^
../../third_party/webrtc/pc/rtp_transport_unittest.cc:100:28: error: variable type 'rtc::FakePacketTransport' is an abstract class
  rtc::FakePacketTransport fake_rtcp("fake_rtcp");
                           ^
../../third_party/webrtc/pc/rtp_transport_unittest.cc:102:28: error: variable type 'rtc::FakePacketTransport' is an abstract class
  rtc::FakePacketTransport fake_rtp("fake_rtp");
                           ^
../../third_party/webrtc/pc/rtp_transport_unittest.cc:114:28: error: variable type 'rtc::FakePacketTransport' is an abstract class
  rtc::FakePacketTransport fake_rtp("fake_rtp");
                           ^
../../third_party/webrtc/pc/rtp_transport_unittest.cc:124:28: error: variable type 'rtc::FakePacketTransport' is an abstract class
  rtc::FakePacketTransport fake_rtp("fake_rtp");
                           ^
../../third_party/webrtc/pc/rtp_transport_unittest.cc:137:28: error: variable type 'rtc::FakePacketTransport' is an abstract class
  rtc::FakePacketTransport fake_rtp("fake_rtp");
                           ^
../../third_party/webrtc/pc/rtp_transport_unittest.cc:151:28: error: variable type 'rtc::FakePacketTransport' is an abstract class
  rtc::FakePacketTransport fake_rtp("fake_rtp");
                           ^
../../third_party/webrtc/pc/rtp_transport_unittest.cc:180:28: error: variable type 'rtc::FakePacketTransport' is an abstract class
  rtc::FakePacketTransport fake_rtcp("fake_rtcp");
                           ^
../../third_party/webrtc/pc/rtp_transport_unittest.cc:212:28: error: variable type 'rtc::FakePacketTransport' is an abstract class
  rtc::FakePacketTransport fake_rtcp("fake_rtcp");
                           ^
../../third_party/webrtc/pc/rtp_transport_unittest.cc:213:28: error: variable type 'rtc::FakePacketTransport' is an abstract class
  rtc::FakePacketTransport fake_rtp("fake_rtp");
                           ^
../../third_party/webrtc/pc/rtp_transport_unittest.cc:235:28: error: variable type 'rtc::FakePacketTransport' is an abstract class
  rtc::FakePacketTransport fake_rtp("fake_rtp");
                           ^
../../third_party/webrtc/pc/rtp_transport_unittest.cc:259:28: error: variable type 'rtc::FakePacketTransport' is an abstract class
  rtc::FakePacketTransport fake_rtp("fake_rtp");
                           ^
../../third_party/webrtc/pc/rtp_transport_unittest.cc:282:28: error: variable type 'rtc::FakePacketTransport' is an abstract class
  rtc::FakePacketTransport fake_rtp("fake_rtp");
                           ^
../../third_party/webrtc/pc/rtp_transport_unittest.cc:306:28: error: variable type 'rtc::FakePacketTransport' is an abstract class
  rtc::FakePacketTransport fake_rtp("fake_rtp");
                           ^
15 errors generated.
[8/26] CXX obj/third_party/webrtc/pc/rtc_pc_unittests_arch_executable_sources/composite_rtp_transport_test.o
FAILED: obj/third_party/webrtc/pc/rtc_pc_unittests_arch_executable_sources/composite_rtp_transport_test.o
clang++ -MMD -MF obj/third_party/webrtc/pc/rtc_pc_unittests_arch_executable_sources/composite_rtp_transport_test.o.d -DCR_XCODE_VERSION=1250 -DCR_CLANG_REVISION=\"llvmorg-12-init-11060-g118c3f3c-1\" -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_DEBUG -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DWEBRTC_ENABLE_PROTOBUF=1 -DWEBRTC_INCLUDE_INTERNAL_AUDIO_DEVICE -DRTC_ENABLE_VP9 -DHAVE_SCTP -DHAVE_WEBRTC_VIDEO -DLOGGING_INSIDE_WEBRTC -DWEBRTC_ENABLE_AVX2 -DWEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS=1 -DWEBRTC_POSIX -DWEBRTC_MAC -DWEBRTC_IOS -DABSL_ALLOCATOR_NOTHROW=1 -DABSL_FLAGS_STRIP_NAMES=0 -DGTEST_API_= -DGTEST_HAS_POSIX_RE=0 -DGTEST_LANG_CXX11=1 -DGTEST_HAS_TR1_TUPLE=0 -DGTEST_HAS_ABSL=1 -DHAVE_SCTP -DUNIT_TEST -DPACKAGE_STRING=\"libsrtp2\ 2.1.0-pre\" -DPACKAGE_VERSION=\"2.1.0-pre\" -DHAVE_CONFIG_H -DOPENSSL -DHAVE_STDLIB_H -DHAVE_STRING_H -DHAVE_STDINT_H -DHAVE_INTTYPES_H -DHAVE_INT16_T -DHAVE_INT32_T -DHAVE_INT8_T -DHAVE_UINT16_T -DHAVE_UINT32_T -DHAVE_UINT64_T -DHAVE_UINT8_T -DHAVE_ARPA_INET_H -DHAVE_NETINET_IN_H -DHAVE_SYS_TYPES_H -DHAVE_UNISTD_H -DOPENSSL_NO_ASM -I../../third_party/libsrtp/srtp -I../.. -Igen -I../../third_party/webrtc -Igen/third_party/webrtc -I../../third_party/abseil-cpp -I../../third_party/libyuv/include -I../../third_party/googletest/custom -I../../third_party/googletest/src/googlemock/include -I../../third_party/googletest/custom -I../../third_party/googletest/src/googletest/include -I../../third_party/abseil-cpp -I../../third_party/libsrtp -I../../third_party/libsrtp/config -I../../third_party/libsrtp/include -I../../third_party/libsrtp/crypto/include -I../../third_party/boringssl/src/include -fno-delete-null-pointer-checks -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -fcolor-diagnostics -fmerge-all-constants -target x86_64-apple-ios9.0-simulator -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -Xclang -fdebug-compilation-dir -Xclang . -no-canonical-prefixes -Wall -Werror -Wextra -Wimplicit-fallthrough -Wunreachable-code -Wthread-safety -Wextra-semi -Wunguarded-availability -Wundeclared-selector -Wno-range-loop-analysis -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-unneeded-internal-declaration -Wno-undefined-var-template -O0 -fno-omit-frame-pointer -g2 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Wno-shorten-64-to-32 -Wno-inconsistent-missing-override -Wno-undefined-bool-conversion -Wno-tautological-undefined-compare -std=c++14 -fno-trigraphs -Wno-trigraphs -fno-exceptions -fno-rtti -c ../../third_party/webrtc/pc/composite_rtp_transport_test.cc -o obj/third_party/webrtc/pc/rtc_pc_unittests_arch_executable_sources/composite_rtp_transport_test.o
../../third_party/webrtc/pc/composite_rtp_transport_test.cc:261:28: error: variable type 'rtc::FakePacketTransport' is an abstract class
  rtc::FakePacketTransport remote("remote");
                           ^
../../third_party/webrtc/p2p/base/packet_transport_internal.h:34:30: note: unimplemented pure virtual method 'media_type' in 'FakePacketTransport'
  virtual cricket::MediaType media_type() const = 0;
                             ^
../../third_party/webrtc/pc/composite_rtp_transport_test.cc:272:28: error: variable type 'rtc::FakePacketTransport' is an abstract class
  rtc::FakePacketTransport remote("remote");
                           ^
../../third_party/webrtc/pc/composite_rtp_transport_test.cc:285:28: error: variable type 'rtc::FakePacketTransport' is an abstract class
  rtc::FakePacketTransport remote("remote");
                           ^
../../third_party/webrtc/pc/composite_rtp_transport_test.cc:298:28: error: variable type 'rtc::FakePacketTransport' is an abstract class
  rtc::FakePacketTransport remote("remote");
                           ^
../../third_party/webrtc/pc/composite_rtp_transport_test.cc:309:28: error: variable type 'rtc::FakePacketTransport' is an abstract class
  rtc::FakePacketTransport remote("remote");
                           ^
../../third_party/webrtc/pc/composite_rtp_transport_test.cc:322:28: error: variable type 'rtc::FakePacketTransport' is an abstract class
  rtc::FakePacketTransport remote("remote");
                           ^
../../third_party/webrtc/pc/composite_rtp_transport_test.cc:335:28: error: variable type 'rtc::FakePacketTransport' is an abstract class
  rtc::FakePacketTransport remote("remote");
                           ^
../../third_party/webrtc/pc/composite_rtp_transport_test.cc:349:28: error: variable type 'rtc::FakePacketTransport' is an abstract class
  rtc::FakePacketTransport remote("remote");
                           ^
../../third_party/webrtc/pc/composite_rtp_transport_test.cc:363:28: error: variable type 'rtc::FakePacketTransport' is an abstract class
  rtc::FakePacketTransport remote("remote");
                           ^
../../third_party/webrtc/pc/composite_rtp_transport_test.cc:377:28: error: variable type 'rtc::FakePacketTransport' is an abstract class
  rtc::FakePacketTransport remote("remote");
                           ^
In file included from ../../third_party/webrtc/pc/composite_rtp_transport_test.cc:11:
In file included from ../../third_party/webrtc/pc/composite_rtp_transport.h:14:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/include/c++/v1/memory:2755:32: error: allocating an object of abstract class type 'rtc::FakePacketTransport'
    return unique_ptr<_Tp>(new _Tp(_VSTD::forward<_Args>(__args)...));
                               ^
../../third_party/webrtc/pc/composite_rtp_transport_test.cc:36:18: note: in instantiation of function template specialization 'std::__1::make_unique<rtc::FakePacketTransport, char const (&)[15]>' requested here
            std::make_unique<rtc::FakePacketTransport>(kTransportName)),
                 ^
In file included from ../../third_party/webrtc/pc/composite_rtp_transport_test.cc:11:
In file included from ../../third_party/webrtc/pc/composite_rtp_transport.h:14:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/include/c++/v1/memory:2755:32: error: allocating an object of abstract class type 'rtc::FakePacketTransport'
    return unique_ptr<_Tp>(new _Tp(_VSTD::forward<_Args>(__args)...));
                               ^
../../third_party/webrtc/pc/composite_rtp_transport_test.cc:40:18: note: in instantiation of function template specialization 'std::__1::make_unique<rtc::FakePacketTransport, char const (&)[20]>' requested here
            std::make_unique<rtc::FakePacketTransport>(kRtcpTransportName)),
                 ^
12 errors generated.

(and others)

@jianjunz jianjunz added bug Something isn't working iOS Issues happen on iOS platform labels May 12, 2021
@jianjunz
Copy link
Collaborator

jianjunz commented May 13, 2021

Thanks for reporting this issue. It was introduced by open-webrtc-toolkit/owt-deps-webrtc#137. I'm working on a fix.

@andreasunterhuber
Copy link
Author

@jianjunz you have to change the commit ID of owt-deps-webrtc to

File: DEPS

line 334 FROM:
Var('deps_webrtc_git') + '/owt-deps-webrtc' + '@' + '6018952f4edb313681682b09bf78ba722e8fc118',
line 334 TO:
Var('deps_webrtc_git') + '/owt-deps-webrtc' + '@' + '0d230afe9c7a968c0f2d966ef9d4d396fee489bf',

@jianjunz
Copy link
Collaborator

Updated by #530. owt-bot automatically updates DEPS when new changes are merged to owt-deps-webrtc.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working iOS Issues happen on iOS platform
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants