How to package the cast_shell : Stable release version: 100.0.4896.127

48 views
Skip to first unread message

Pandey

unread,
May 27, 2022, 7:50:12 PM5/27/22
to chromium-packagers
Hi,

When i try to package the "cast_shell" target, the compilation fails due to the below error. So how to overcome this issue & generate a linux package? 

Pls note the chromium package is successful.

GN command :-
$ gn gen out/cast_shell/Release --args='target_cpu="arm" target_os="linux" arm_float_abi="hard" is_chromecast=true cc_wrapper="ccache" is_clang=true v8_symbol_level=0 enable_nacl=false blink_symbol_level=0 dcheck_always_on=false is_debug=false symbol_level=0 is_official_build=true  enable_linux_installer=true'
Done. Made 17794 targets from 2916 files in 3088ms

Build error :-

$ autoninja -C out/cast_shell/Release 'chrome/installer/linux:unstable_deb'
ninja: Entering directory `out/cast_shell/Release'
[20/7365] CXX obj/chrome/common/common/webui_url_constants.o
FAILED: obj/chrome/common/common/webui_url_constants.o
ccache ../../../third_party/llvm-build/Release+Asserts/bin/clang++ -MMD -MF obj/chrome/common/common/webui_url_constants.o.d -DUSE_AURA=1 -DUSE_OZONE=1 -DOFFICIAL_BUILD -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DNO_UNWIND_TABLES -D_GNU_SOURCE -DCR_CLANG_REVISION=\"llvmorg-15-init-1995-g5bec1ea7-1\" -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -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=d94ab800f295912a891b359fa5f71a643c3fba62 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DWEBP_EXTERN=extern -DUSE_EGL -DUSE_CAST_BLUETOOTH_ADAPTER -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 -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\" -DV8_USE_EXTERNAL_STARTUP_DATA -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 -DWEBRTC_HAVE_SCTP -DLOGGING_INSIDE_WEBRTC -DCRASHPAD_ZLIB_SOURCE_EXTERNAL -DLEVELDB_PLATFORM_CHROMIUM=1 -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/libwebp/src -I../../../third_party/libyuv/include -I../../../third_party/jsoncpp/source/include -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/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/common/platform/default -I../../../net/third_party/quiche/src -I../../../third_party/skia -I../../../third_party/wuffs/src/release/c -I../../../third_party/vulkan/include -I../../../third_party/webrtc_overrides -I../../../third_party/webrtc -Igen/third_party/webrtc -I../../../third_party/mesa_headers -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../../../third_party/libwebm/source -I../../../third_party/leveldatabase -I../../../third_party/leveldatabase/src -I../../../third_party/leveldatabase/src/include -I../../../chromecast/public -I../../../v8/include -Igen/v8/include -Igen/third_party/metrics_proto -Igen/components/policy/proto -Igen/third_party/private_membership/src -Igen/third_party/shell-encryption/src -I../../../third_party/re2/src -fprofile-sample-use=../../../chrome/android/profiles/afdo.prof -fprofile-sample-accurate -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 -Wall -Werror -Wextra -Wimplicit-fallthrough -Wunreachable-code-aggressive -Wthread-safety -Wextra-semi -Wno-missing-field-initializers -Wno-unused-parameter -Wloop-analysis -Wno-unneeded-internal-declaration -Wenum-compare-conditional -Wno-psabi -Wno-ignored-pragma-optimize -Wshadow -Oz -fdata-sections -ffunction-sections -fno-unique-section-names -fno-omit-frame-pointer -g0 -ftrivial-auto-var-init=pattern -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 -Wexit-time-destructors -DPROTOBUF_ALLOW_DEPRECATED=1 -isystem../../../build/linux/debian_sid_arm-sysroot/usr/include/nss -isystem../../../build/linux/debian_sid_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_sid_arm-sysroot -fvisibility-inlines-hidden -Wno-deprecated-declarations -c ../../../chrome/common/webui_url_constants.cc -o obj/chrome/common/common/webui_url_constants.o
../../../chrome/common/webui_url_constants.cc:728:5: error: no matching function for call to 'size'
    base::size(kChromeInternalsPathURLs);
    ^~~~~~~~~~
../../../base/cxx17_backports.h:25:16: note: candidate template ignored: substitution failure [with Container = const char *[0]]: member reference base type 'const char *const[0]' is not a structure or union
constexpr auto size(const Container& c) -> decltype(c.size()) {
               ^                                     ~
../../../base/cxx17_backports.h:30:18: note: candidate template ignored: substitution failure [with T = const char *, N = 0]: zero-length arrays are not permitted in C++
constexpr size_t size(const T (&array)[N]) noexcept {
                 ^                     ~
1 error generated.
[85/7365] CXX obj/components/page_load_metrics/browser/browser/metrics_web_contents_observer.o
ninja: build stopped: subcommand failed.

Lei Zhang

unread,
May 27, 2022, 8:07:05 PM5/27/22
to Pandey, chromium-packagers
Just set `kNumberOfChromeInternalsPathURLs` to 0?
> --
> 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/249713b7-de99-40f7-a667-4bb40574f2f7n%40chromium.org.
Reply all
Reply to author
Forward
0 new messages