Cast_shell installer fails on release 102.0.5005.61

6 views
Skip to first unread message

Pandey

unread,
May 31, 2022, 2:07:49 PM5/31/22
to chromium-packagers
Hi,

I am able to build the cast_shell on release 102.0.5005.61, however when trying to create an installer i see the compilation error. What is the correct way to create tarball for "cast_shell" target?

gn args:-

target_cpu = "arm"
target_os = "linux"
arm_float_abi = "hard"
arm_use_neon = true
is_chromecast = true
cc_wrapper = "ccache"
is_clang = true
v8_symbol_level = 0
blink_symbol_level = 0
dcheck_always_on = false
is_debug = false
symbol_level = 0
is_official_build = true
enable_linux_installer = true

Building cast_shell itself is successful:-

autoninja -C out/cast_shell/Release cast_shell

But when built the installer, there is compilation error:-

 autoninja -C out/cast_shell/Release 'chrome/installer/linux:unstable_deb'

Compilation error:

FAILED: obj/components/safe_browsing/content/browser/client_side_detection/client_side_detection_host.o
ccache ../../../third_party/llvm-build/Release+Asserts/bin/clang++ -MMD -MF obj/components/safe_browsing/content/browser/client_side_detection/client_side_detection_host.o.d -DUSE_AURA=1 -DUSE_OZONE=1 -DOFFICIAL_BUILD -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DNO_UNWIND_TABLES -D_GNU_SOURCE -DCR_CLANG_REVISION=\"llvmorg-15-init-7570-gba4537b2-1\" -D_LIBCPP_ABI_UNSTABLE -D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS -D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS -D_LIBCPP_ENABLE_NODISCARD -DCR_LIBCXX_REVISION=79a2e924d96e2fc1e4b937c42efd08898fa472d7 -DCR_SYSROOT_HASH=50af7ab2b7ce90d531b9690f7ca36144e41db946 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DWEBP_EXTERN=extern -DUSE_EGL -DUSE_CAST_BLUETOOTH_ADAPTER -D_WTL_NO_AUTOMATIC_NAMESPACE -DON_FOCUS_PING_ENABLED -DTOOLKIT_VIEWS=1 -DGOOGLE_PROTOBUF_NO_RTTI -DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -DHAVE_PTHREAD -DU_USING_ICU_NAMESPACE=0 -DU_ENABLE_DYLOAD=0 -DUSE_CHROMIUM_ICU=1 -DU_ENABLE_TRACING=1 -DU_ENABLE_RESOURCE_TRACING=0 -DU_STATIC_IMPLEMENTATION -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE -DWEBRTC_ENABLE_AVX2 -DWEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS=0 -DWEBRTC_CHROMIUM_BUILD -DWEBRTC_POSIX -DWEBRTC_LINUX -DABSL_ALLOCATOR_NOTHROW=1 -DWEBRTC_USE_BUILTIN_ISAC_FIX=1 -DWEBRTC_USE_BUILTIN_ISAC_FLOAT=0 -DWEBRTC_USE_PIPEWIRE -DWEBRTC_DLOPEN_PIPEWIRE -DLOGGING_INSIDE_WEBRTC -DFLATBUFFERS_LOCALE_INDEPENDENT=0 -DSK_CODEC_DECODES_PNG -DSK_CODEC_DECODES_WEBP -DSK_ENCODE_PNG -DSK_ENCODE_WEBP -DSK_ENABLE_SKSL -DSK_UNTIL_CRBUG_1187654_IS_FIXED -DSK_USER_CONFIG_HEADER=\"../../skia/config/SkUserConfig.h\" -DSK_WIN_FONTMGR_NO_SIMULATIONS -DSK_GL -DSK_CODEC_DECODES_JPEG -DSK_ENCODE_JPEG -DSK_HAS_WUFFS_LIBRARY -DSK_VULKAN=1 -DSK_SUPPORT_GPU=1 -DSK_GPU_WORKAROUNDS_HEADER=\"gpu/config/gpu_driver_bug_workaround_autogen.h\" -DLEVELDB_PLATFORM_CHROMIUM=1 -DCRASHPAD_ZLIB_SOURCE_EXTERNAL -DV8_USE_EXTERNAL_STARTUP_DATA -DV8_DEPRECATION_WARNINGS -I../../.. -Igen -I../../../buildtools/third_party/libc++ -I../../../third_party/perfetto/include -Igen/third_party/perfetto/build_config -Igen/third_party/perfetto -I../../../third_party/libyuv/include -I../../../third_party/jsoncpp/source/include -I../../../third_party/libwebp/src -I../../../third_party/vulkan-deps/vulkan-headers/src/include -I../../../third_party/khronos -I../../../gpu -Igen/third_party/dawn/include -I../../../third_party/dawn/include -I../../../third_party/dawn/src/include -I../../../third_party/wtl/include -I../../../third_party/abseil-cpp -I../../../third_party/boringssl/src/include -I../../../third_party/protobuf/src -Igen/protoc_out -I../../../third_party/ced/src -I../../../third_party/icu/source/common -I../../../third_party/icu/source/i18n -Igen/net/third_party/quiche/src -I../../../net/third_party/quiche/overrides -I../../../net/third_party/quiche/src/quiche/common/platform/default -I../../../net/third_party/quiche/src -I../../../third_party/webrtc_overrides -I../../../third_party/webrtc -Igen/third_party/webrtc -I../../../third_party/flatbuffers/src/include -I../../../third_party/skia -I../../../third_party/wuffs/src/release/c -I../../../third_party/vulkan/include -I../../../third_party/libwebm/source -I../../../third_party/mesa_headers -I../../../third_party/leveldatabase -I../../../third_party/leveldatabase/src -I../../../third_party/leveldatabase/src/include -I../../../third_party/crashpad/crashpad -I../../../third_party/crashpad/crashpad/compat/linux -I../../../third_party/crashpad/crashpad/compat/non_win -I../../../third_party/zlib -I../../../chromecast/public -I../../../v8/include -Igen/v8/include -Wall -Werror -Wextra -Wimplicit-fallthrough -Wunreachable-code-aggressive -Wthread-safety -Wno-missing-field-initializers -Wno-unused-parameter -Wloop-analysis -Wno-unneeded-internal-declaration -Wenum-compare-conditional -Wno-psabi -Wno-ignored-pragma-optimize -Wno-unqualified-std-cast-call -Wno-deprecated-non-prototype -Xclang -no-opaque-pointers -Wshadow -fno-delete-null-pointer-checks -fno-ident -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fPIC -pthread -fcolor-diagnostics -fmerge-all-constants -fcrash-diagnostics-dir=../../../tools/clang/crashreports -mllvm -instcombine-lower-dbg-declare=0 -ffp-contract=off -flto=thin -fsplit-lto-unit -fwhole-program-vtables -fcomplete-member-pointers --target=arm-linux-gnueabihf -march=armv7-a -mfloat-abi=hard -mtune=generic-armv7-a -ffile-compilation-dir=. -no-canonical-prefixes -mfpu=neon -mthumb -ftrivial-auto-var-init=pattern -Oz -fdata-sections -ffunction-sections -fno-unique-section-names -fno-omit-frame-pointer -g0 -fvisibility=hidden -Xclang -add-plugin -Xclang find-bad-constructs -Xclang -plugin-arg-find-bad-constructs -Xclang raw-ptr-template-as-trivial-member -Xclang -plugin-arg-find-bad-constructs -Xclang use-classify-type -Xclang -plugin-arg-find-bad-constructs -Xclang check-ipc -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -DPROTOBUF_ALLOW_DEPRECATED=1 -isystem../../../build/linux/debian_bullseye_arm-sysroot/usr/include/nss -isystem../../../build/linux/debian_bullseye_arm-sysroot/usr/include/nspr -Wno-shadow -std=c++17 -Wno-trigraphs -fno-aligned-new -fno-exceptions -fno-rtti -nostdinc++ -isystem../../../buildtools/third_party/libc++/trunk/include -isystem../../../buildtools/third_party/libc++abi/trunk/include --sysroot=../../../build/linux/debian_bullseye_arm-sysroot -fvisibility-inlines-hidden -Wno-deprecated-declarations -c ../../../components/safe_browsing/content/browser/client_side_detection_host.cc -o obj/components/safe_browsing/content/browser/client_side_detection/client_side_detection_host.o
In file included from ../../../components/safe_browsing/content/browser/client_side_detection_host.cc:5:
../../../components/safe_browsing/content/browser/client_side_detection_host.h:177:33: error: no member named 'PhishingDetector' in namespace 'safe_browsing::mojom'
      const mojo::Remote<mojom::PhishingDetector>& phishing_detector);
                         ~~~~~~~^
../../../components/safe_browsing/content/browser/client_side_detection_host.h:211:38: error: no member named 'PhishingDetector' in namespace 'safe_browsing::mojom'
                 mojo::Remote<mojom::PhishingDetector>>
                              ~~~~~~~^
../../../components/safe_browsing/content/browser/client_side_detection_host.cc:390:3: error: cannot initialize object parameter of type 'const content::WebContentsObserver' with an expression of type 'safe_browsing::ClientSideDetectionHost'
  web_contents()->ForEachRenderFrameHost(base::BindRepeating(
  ^~~~~~~~~~~~
../../../components/safe_browsing/content/browser/client_side_detection_host.cc:402:31: error: cannot initialize object parameter of type 'const content::WebContentsObserver' with an expression of type 'safe_browsing::ClientSideDetectionHost'
      base::Unretained(this), web_contents()));
                              ^~~~~~~~~~~~
../../../components/safe_browsing/content/browser/client_side_detection_host.cc:451:7: error: cannot initialize object parameter of type 'const content::WebContentsObserver' with an expression of type 'safe_browsing::ClientSideDetectionHost'
      web_contents(), csd_service_, database_manager_.get(), this);
      ^~~~~~~~~~~~
../../../components/safe_browsing/content/browser/client_side_detection_host.cc:456:31: error: no member named 'PhishingDetector' in namespace 'safe_browsing::mojom'
    const mojo::Remote<mojom::PhishingDetector>& phishing_detector) {
                       ~~~~~~~^
../../../components/safe_browsing/content/browser/client_side_detection_host.cc:474:8: error: cannot initialize object parameter of type 'const content::WebContentsObserver' with an expression of type 'safe_browsing::ClientSideDetectionHost'
  if (!web_contents() || web_contents() != tab_ || !csd_service_)
       ^~~~~~~~~~~~
../../../components/safe_browsing/content/browser/client_side_detection_host.cc:474:26: error: cannot initialize object parameter of type 'const content::WebContentsObserver' with an expression of type 'safe_browsing::ClientSideDetectionHost'
  if (!web_contents() || web_contents() != tab_ || !csd_service_)
                         ^~~~~~~~~~~~
../../../components/safe_browsing/content/browser/client_side_detection_host.cc:505:37: error: cannot initialize object parameter of type 'const content::WebContentsObserver' with an expression of type 'safe_browsing::ClientSideDetectionHost'
    content::RenderFrameHost* rfh = web_contents()->GetMainFrame();
                                    ^~~~~~~~~~~~
../../../components/safe_browsing/content/browser/client_side_detection_host.cc:582:9: error: cannot initialize object parameter of type 'const content::WebContentsObserver' with an expression of type 'safe_browsing::ClientSideDetectionHost'
        web_contents()->GetRenderWidgetHostView();
        ^~~~~~~~~~~~
../../../components/safe_browsing/content/browser/client_side_detection_host.cc:588:9: error: cannot initialize object parameter of type 'const content::WebContentsObserver' with an expression of type 'safe_browsing::ClientSideDetectionHost'
        web_contents()->GetBrowserContext()->IsOffTheRecord(), size,
        ^~~~~~~~~~~~
../../../components/safe_browsing/content/browser/client_side_detection_host.cc:589:58: error: cannot initialize object parameter of type 'const content::WebContentsObserver' with an expression of type 'safe_browsing::ClientSideDetectionHost'
        zoom::ZoomController::GetZoomLevelForWebContents(web_contents()));
                                                         ^~~~~~~~~~~~
../../../components/safe_browsing/content/browser/client_side_detection_host.cc:632:12: error: cannot initialize object parameter of type 'const content::WebContentsObserver' with an expression of type 'safe_browsing::ClientSideDetectionHost'
    DCHECK(web_contents());
           ^~~~~~~~~~~~
../../../base/check.h:148:53: note: expanded from macro 'DCHECK'
#define DCHECK(condition) EAT_CHECK_STREAM_PARAMS(!(condition))
                                                    ^~~~~~~~~
../../../base/check.h:61:35: note: expanded from macro 'EAT_CHECK_STREAM_PARAMS'
       : ::logging::VoidifyStream(expr) & (*::logging::g_swallow_stream)
                                  ^~~~
../../../components/safe_browsing/content/browser/client_side_detection_host.cc:635:11: error: cannot initialize object parameter of type 'const content::WebContentsObserver' with an expression of type 'safe_browsing::ClientSideDetectionHost'
          web_contents()->GetMainFrame()->GetGlobalId();
          ^~~~~~~~~~~~
../../../components/safe_browsing/content/browser/client_side_detection_host.cc:649:9: error: cannot initialize object parameter of type 'const content::WebContentsObserver' with an expression of type 'safe_browsing::ClientSideDetectionHost'
        web_contents()->GetController().DiscardNonCommittedEntries();
        ^~~~~~~~~~~~
../../../components/safe_browsing/content/browser/client_side_detection_host.cc:684:18: error: no member named 'PhishingDetector' in namespace 'safe_browsing::mojom'; did you mean 'ClearPhishingDetector'?
    mojo::Remote<mojom::PhishingDetector> new_detector;
                 ^~~~~~~~~~~~~~~~~~~~~~~
                 ClearPhishingDetector
../../../components/safe_browsing/content/browser/client_side_detection_host.h:190:8: note: 'ClearPhishingDetector' declared here
  void ClearPhishingDetector(content::GlobalRenderFrameHostId rfh_id);
       ^
../../../components/safe_browsing/content/browser/client_side_detection_host.cc:684:25: error: template argument for template type parameter must be a type
    mojo::Remote<mojom::PhishingDetector> new_detector;
                        ^~~~~~~~~~~~~~~~
../../../mojo/public/cpp/bindings/remote.h:58:20: note: template parameter is declared here
template <typename Interface>
                   ^
17 errors generated.

cast_shell_installer_build_error.log

Lei Zhang

unread,
Jun 8, 2022, 5:48:52 PM6/8/22
to Pandey, chromium-packagers
Given cast_shell is in the //chromecast directory, and folks here are
focused more on things related to //chrome/installer/linux, I'm not
sure anyone on this group can help you with the immediate problem you
are having with building cast_shell. Packaging is oftentimes a
separate step that happens after first successfully bujilding.
> --
> You received this message because you are subscribed to the Google Groups "chromium-packagers" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to chromium-packag...@chromium.org.
> To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-packagers/3a915005-4154-4a28-8793-d851b77f839cn%40chromium.org.

Lei Zhang

unread,
Jun 8, 2022, 5:50:20 PM6/8/22
to Pandey, chromium-packagers
I see the other email thread about building cast_shell is also from
you. I hope my reply on that thread helped you get further along, but
really this is probably not the right group to get help on all your
cast_shell build failures.
Reply all
Reply to author
Forward
0 new messages