dan-v / rattlesnakeos-stack

Build your own privacy and security focused Android OS in the cloud.
MIT License
567 stars 87 forks source link

Initial build failed due to: chrome/common/buildflags.h' file not found #151

Closed laamalif closed 4 years ago

laamalif commented 4 years ago

Prerequisites

Description

Initial build failed due to: chrome/common/buildflags.h' file not found

Tested chromium versions: 81.0.4040.6, 80.0.3971.4, 80.0.3987.78

Steps to Reproduce

Platform

Linux

Full Config Used for Setup

You can mask stack name and email from here.

attestation-instance-type = "t3.nano"
attestation-max-price = ".005"
attestation-server = false
chromium-version = "80.0.3987.78"
device = "crosshatch"
encrypted-keys = false
hosts-file = ""
ignore-version-checks = false
instance-regions = "us-west-2,us-west-1,us-east-2"
instance-type = "c5.18xlarge"
max-price = "1.00"
name = "rattlesnakeos-crosshatch-xzyz"
region = "us-east-1"
schedule = "cron(0 0 10 * ? *)"
skip-price = "1.68"
ssh-key = "rattlesnakeos"

[[custom-patches]]
patches = ["00002-microg-sigspoof.patch"]
repo = "https://github.com/RattlesnakeOS/microg"

[[custom-prebuilts]]
modules = ["GmsCore","GsfProxy","FakeStore","com.google.android.maps.jar"]
repo = "https://github.com/RattlesnakeOS/microg"

Email Notification Output

Should look something like this. You can mask stack name from here and you may want to verify contents of log output before pasting.

  Device: crosshatch
  Stack Name: rattlesnakeos-crosshatch-xzyz
  Stack Version: 10.0.1
  Stack Region: us-east-1
  Release Channel: crosshatch-stable
  Instance Type: c5.18xlarge
  Instance Region: us-east-2
  Instance IP: 18.216.174.85
  Build Date: 2020.01.30.14
  Elapsed Time: 1hrs 20min 54sec
  AOSP Build: QQ1A.200105.002
  AOSP Branch: android-10.0.0_r21
  Chromium Version: 80.0.3987.78
  F-Droid Version: 1.7.1
  F-Droid Priv Extension Version: 0.2.9
  Build Reason: Initial build
...
[320/8823] CXX obj/chrome/browser/updates/announcement_notification/announcement_notification/announcement_notification_service.o
FAILED: obj/chrome/browser/updates/announcement_notification/announcement_notification/announcement_notification_service.o
../../third_party/llvm-build/Release+Asserts/bin/clang++ -MMD -MF obj/chrome/browser/updates/announcement_notification/announcement_notification/announcement_notification_service.o.d -DOFFICIAL_BUILD -DNO_UNWIND_TABLES -D_GNU_SOURCE -DANDROID -DHAVE_SYS_UIO_H -DANDROID_NDK_VERSION_ROLL=r20_1 -DCR_CLANG_REVISION=\"n332890-c2443155-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=375504 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DWEBP_EXTERN=extern -DVK_NO_PROTOTYPES -DUSE_EGL -DSK_HAS_PNG_LIBRARY -DSK_HAS_WEBP_LIBRARY -DSK_USER_CONFIG_HEADER=\"../../skia/config/SkUserConfig.h\" -DSK_GL -DSK_HAS_JPEG_LIBRARY -DSK_USE_LIBGIFCODEC -DSK_VULKAN_HEADER=\"../../skia/config/SkVulkanConfig.h\" -DSK_VULKAN=1 -DSK_SUPPORT_GPU=1 -DSK_GPU_WORKAROUNDS_HEADER=\"gpu/config/gpu_driver_bug_workaround_autogen.h\" -DSK_BUILD_FOR_ANDROID -DUSE_CHROMIUM_SKIA -DVK_NO_PROTOTYPES -I../.. -Igen -I../../third_party/libyuv/include -I../../third_party/jsoncpp/source/include -I../../third_party/jsoncpp/generated -I../../third_party/libwebp/src -I../../third_party/vulkan/include -I../../third_party/khronos -I../../gpu -I../../third_party/perfetto/include -Igen/third_party/perfetto/build_config -Igen/third_party/dawn/src/include -I../../third_party/dawn/src/include -I../../third_party/boringssl/src/include -I../../third_party/skia -I../../third_party/libgifcodec -I../../third_party/vulkan/include -I../../third_party/skia/third_party/vulkanmemoryallocator -I../../third_party/vulkan/include -fprofile-sample-use=../../chrome/android/profiles/afdo.prof -fprofile-sample-accurate -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fPIC -fcolor-diagnostics -fmerge-all-constants -fcrash-diagnostics-dir=../../tools/clang/crashreports -Xclang -mllvm -Xclang -instcombine-lower-dbg-declare=0 -flto=thin -fsplit-lto-unit -fcomplete-member-pointers -ffunction-sections -fno-short-enums --target=aarch64-linux-android21 -mno-outline -Xclang -fdebug-compilation-dir -Xclang . -no-canonical-prefixes -Wall -Werror -Wextra -Wimplicit-fallthrough -Wthread-safety -Wextra-semi -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-unneeded-internal-declaration -Wno-undefined-var-template -Wno-ignored-pragma-optimize -Wno-implicit-int-float-conversion -Wno-final-dtor-non-final-class -Wno-bitwise-conditional-parentheses -Wno-builtin-assume-aligned-alignment -Wno-deprecated-copy -Oz -fno-ident -fdata-sections -ffunction-sections -fno-omit-frame-pointer -g1 -fdebug-info-for-profiling -fvisibility=hidden -Xclang -add-plugin -Xclang find-bad-constructs -Xclang -plugin-arg-find-bad-constructs -Xclang check-ipc -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -std=c++14 -fno-exceptions -fno-rtti -nostdinc++ -isystem../../buildtools/third_party/libc++/trunk/include -isystem../../buildtools/third_party/libc++abi/trunk/include --sysroot=../../third_party/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot -fvisibility-inlines-hidden -Wno-deprecated-declarations -c ../../chrome/browser/updates/announcement_notification/announcement_notification_service.cc -o obj/chrome/browser/updates/announcement_notification/announcement_notification/announcement_notification_service.o
In file included from ../../chrome/browser/updates/announcement_notification/announcement_notification_service.cc:12:
../../chrome/browser/browser_process.h:22:10: fatal error: 'chrome/common/buildflags.h' file not found
#include "chrome/common/buildflags.h"
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
...

...

Full log

RattlesnakeOS Build FAILED
  Device: crosshatch
  Stack Name: rattlesnakeos-crosshatch-xzyz
  Stack Version: 10.0.1
  Stack Region: us-east-1
  Release Channel: crosshatch-stable
  Instance Type: c5.18xlarge
  Instance Region: us-east-2
  Instance IP: 18.216.174.85
  Build Date: 2020.01.30.14
  Elapsed Time: 1hrs 20min 54sec
  AOSP Build: QQ1A.200105.002
  AOSP Branch: android-10.0.0_r21
  Chromium Version: 80.0.3987.78
  F-Droid Version: 1.7.1
  F-Droid Priv Extension Version: 0.2.9
  Build Reason: Initial build
_clang_arm64)
[275/8823] ACTION //chrome/android/features/start_surface/internal:java_strings_grd__zip(//build/toolchain/android:android_clang_arm64)
[276/8823] STAMP obj/chrome/android/features/keyboard_accessory/factory/public_java__build_config_crbug_908819.stamp
[277/8823] STAMP obj/chrome/android/features/media_router/java_strings_grd__zip.stamp
[278/8823] ACTION //chrome/android/feed/core/java/src/org/chromium/chrome/browser/feed/library:piet_resources(//build/toolchain/android:android_clang_arm64)
[279/8823] ACTION //chrome/android/webapk/libs/runtime_library:webapk_service_aidl(//build/toolchain/android:android_clang_arm64)
[280/8823] STAMP obj/chrome/android/features/keyboard_accessory/internal/java_strings_grd__grit.stamp
[281/8823] STAMP obj/chrome/android/features/vr/java_resources__build_config_crbug_908819.stamp
[282/8823] STAMP obj/chrome/android/feed/core/java/src/org/chromium/chrome/browser/feed/library/shared_stream_publicapi_menumeasurer_resources.stamp
[283/8823] ACTION //chrome/android/webapk/libs/runtime_library:runtime_library_for_assets_java__build_config_crbug_908819(//build/toolchain/android:android_clang_arm64)
[284/8823] ACTION //chrome/android/features/tab_ui:java_strings_grd__zip(//build/toolchain/android:android_clang_arm64)
[285/8823] STAMP obj/chrome/android/features/start_surface/internal/java_strings_grd__zip.stamp
[286/8823] STAMP obj/chrome/android/features/media_router/java_strings_grd.stamp
[287/8823] STAMP obj/chrome/android/feed/core/java/src/org/chromium/chrome/browser/feed/library/piet_resources.stamp
[288/8823] STAMP obj/chrome/android/public/profiles/java__build_config_crbug_908819.stamp
[289/8823] ACTION //chrome/android/features/autofill_assistant:jni_headers(//build/toolchain/android:android_clang_arm64)
[290/8823] ACTION //chrome/android/webapk/libs/common:splash_java__build_config_crbug_908819(//build/toolchain/android:android_clang_arm64)
[291/8823] ACTION //chrome/android:chrome_public_non_pak_assets__build_config_crbug_908819(//build/toolchain/android:android_clang_arm64)
[292/8823] ACTION //chrome/android/webapk/libs/client:runtime_library_version_java(//build/toolchain/android:android_clang_arm64)
[293/8823] STAMP obj/chrome/android/features/tab_ui/java_strings_grd__zip.stamp
[294/8823] STAMP obj/chrome/android/features/start_surface/internal/java_strings_grd.stamp
[295/8823] STAMP obj/chrome/android/webapk/libs/runtime_library/runtime_library_for_assets_java__build_config_crbug_908819.stamp
[296/8823] STAMP obj/chrome/android/webapk/libs/runtime_library/webapk_service_aidl.stamp
[297/8823] ACTION //chrome/android/features/keyboard_accessory/internal:java_strings_grd__zip(//build/toolchain/android:android_clang_arm64)
[298/8823] STAMP obj/chrome/android/webapk/libs/runtime_library/webapk_service_aidl_java__build_config_crbug_908819.stamp
[299/8823] STAMP obj/chrome/android/features/autofill_assistant/jni_headers.stamp
[300/8823] STAMP obj/chrome/android/webapk/libs/common/splash_java__build_config_crbug_908819.stamp
[301/8823] STAMP obj/chrome/android/chrome_public_non_pak_assets__build_config_crbug_908819.stamp
[302/8823] STAMP obj/chrome/android/webapk/libs/client/runtime_library_version_java.stamp
[303/8823] STAMP obj/chrome/android/features/tab_ui/java_strings_grd.stamp
[304/8823] ACTION //chrome/android/webapk/libs/common:splash_resources(//build/toolchain/android:android_clang_arm64)
[305/8823] ACTION //chrome/android/features/keyboard_accessory:public_java__build_config_crbug_908819(//build/toolchain/android:android_clang_arm64)
[306/8823] STAMP obj/chrome/app/java_strings_grd__build_config_crbug_908819.stamp
[307/8823] STAMP obj/chrome/android/features/keyboard_accessory/internal/java_strings_grd__zip.stamp
[308/8823] ACTION //chrome/android/features/vr:jni_headers(//build/toolchain/android:android_clang_arm64)
[309/8823] ACTION //chrome/app/theme:chrome_unscaled_resources_grit(//build/toolchain/android:android_clang_arm64)
[310/8823] STAMP obj/chrome/android/features/keyboard_accessory/public_java__build_config_crbug_908819.stamp
[311/8823] STAMP obj/chrome/android/webapk/libs/common/splash_resources.stamp
[312/8823] ACTION //chrome/browser:availability_protos_gen(//build/toolchain/android:android_clang_arm64)
[313/8823] ACTION //chrome/app/vector_icons:chrome_vector_icons(//build/toolchain/android:android_clang_arm64)
[314/8823] STAMP obj/chrome/android/features/keyboard_accessory/internal/java_strings_grd.stamp
[315/8823] STAMP obj/chrome/android/features/vr/jni_headers.stamp
[316/8823] ACTION //chrome/app/resources:platform_locale_settings_grit(//build/toolchain/android:android_clang_arm64)
[317/8823] ACTION //chrome/android/webapk/libs/client:client_java__build_config_crbug_908819(//build/toolchain/android:android_clang_arm64)
[318/8823] STAMP obj/chrome/app/theme/chrome_unscaled_resources_grit.stamp
[319/8823] STAMP obj/chrome/app/vector_icons/chrome_vector_icons.stamp
[320/8823] CXX obj/chrome/browser/updates/announcement_notification/announcement_notification/announcement_notification_service.o
FAILED: obj/chrome/browser/updates/announcement_notification/announcement_notification/announcement_notification_service.o
../../third_party/llvm-build/Release+Asserts/bin/clang++ -MMD -MF obj/chrome/browser/updates/announcement_notification/announcement_notification/announcement_notification_service.o.d -DOFFICIAL_BUILD -DNO_UNWIND_TABLES -D_GNU_SOURCE -DANDROID -DHAVE_SYS_UIO_H -DANDROID_NDK_VERSION_ROLL=r20_1 -DCR_CLANG_REVISION=\"n332890-c2443155-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=375504 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DWEBP_EXTERN=extern -DVK_NO_PROTOTYPES -DUSE_EGL -DSK_HAS_PNG_LIBRARY -DSK_HAS_WEBP_LIBRARY -DSK_USER_CONFIG_HEADER=\"../../skia/config/SkUserConfig.h\" -DSK_GL -DSK_HAS_JPEG_LIBRARY -DSK_USE_LIBGIFCODEC -DSK_VULKAN_HEADER=\"../../skia/config/SkVulkanConfig.h\" -DSK_VULKAN=1 -DSK_SUPPORT_GPU=1 -DSK_GPU_WORKAROUNDS_HEADER=\"gpu/config/gpu_driver_bug_workaround_autogen.h\" -DSK_BUILD_FOR_ANDROID -DUSE_CHROMIUM_SKIA -DVK_NO_PROTOTYPES -I../.. -Igen -I../../third_party/libyuv/include -I../../third_party/jsoncpp/source/include -I../../third_party/jsoncpp/generated -I../../third_party/libwebp/src -I../../third_party/vulkan/include -I../../third_party/khronos -I../../gpu -I../../third_party/perfetto/include -Igen/third_party/perfetto/build_config -Igen/third_party/dawn/src/include -I../../third_party/dawn/src/include -I../../third_party/boringssl/src/include -I../../third_party/skia -I../../third_party/libgifcodec -I../../third_party/vulkan/include -I../../third_party/skia/third_party/vulkanmemoryallocator -I../../third_party/vulkan/include -fprofile-sample-use=../../chrome/android/profiles/afdo.prof -fprofile-sample-accurate -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fPIC -fcolor-diagnostics -fmerge-all-constants -fcrash-diagnostics-dir=../../tools/clang/crashreports -Xclang -mllvm -Xclang -instcombine-lower-dbg-declare=0 -flto=thin -fsplit-lto-unit -fcomplete-member-pointers -ffunction-sections -fno-short-enums --target=aarch64-linux-android21 -mno-outline -Xclang -fdebug-compilation-dir -Xclang . -no-canonical-prefixes -Wall -Werror -Wextra -Wimplicit-fallthrough -Wthread-safety -Wextra-semi -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-unneeded-internal-declaration -Wno-undefined-var-template -Wno-ignored-pragma-optimize -Wno-implicit-int-float-conversion -Wno-final-dtor-non-final-class -Wno-bitwise-conditional-parentheses -Wno-builtin-assume-aligned-alignment -Wno-deprecated-copy -Oz -fno-ident -fdata-sections -ffunction-sections -fno-omit-frame-pointer -g1 -fdebug-info-for-profiling -fvisibility=hidden -Xclang -add-plugin -Xclang find-bad-constructs -Xclang -plugin-arg-find-bad-constructs -Xclang check-ipc -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -std=c++14 -fno-exceptions -fno-rtti -nostdinc++ -isystem../../buildtools/third_party/libc++/trunk/include -isystem../../buildtools/third_party/libc++abi/trunk/include --sysroot=../../third_party/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot -fvisibility-inlines-hidden -Wno-deprecated-declarations -c ../../chrome/browser/updates/announcement_notification/announcement_notification_service.cc -o obj/chrome/browser/updates/announcement_notification/announcement_notification/announcement_notification_service.o
In file included from ../../chrome/browser/updates/announcement_notification/announcement_notification_service.cc:12:
../../chrome/browser/browser_process.h:22:10: fatal error: 'chrome/common/buildflags.h' file not found
#include "chrome/common/buildflags.h"
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[321/8823] ACTION //chrome/app/resources:locale_settings_grit(//build/toolchain/android:android_clang_arm64)
[322/8823] ACTION //chrome/android/webapk/libs/runtime_library:webapk_runtime_library__build_config_crbug_908819(//build/toolchain/android:android_clang_arm64)
[323/8823] STAMP obj/chrome/browser/availability_protos_gen.stamp
[324/8823] STAMP obj/chrome/app/resources/platform_locale_settings_grit.stamp
[325/8823] STAMP obj/chrome/android/webapk/libs/client/client_java__build_config_crbug_908819.stamp
[326/8823] CXX obj/components/crash/content/app/chrome_crashpad_handler/chrome_crashpad_handler.o
[327/8823] CXX obj/base/android/linker/chromium_android_linker/linker_jni.o
[328/8823] STAMP obj/chrome/app/theme/chrome_unscaled_resources.stamp
[329/8823] STAMP obj/chrome/app/vector_icons/vector_icons.inputdeps.stamp
[330/8823] CXX obj/chrome/common/cloud_print/cloud_print/cloud_print_constants.o
[331/8823] CXX obj/base/android/linker/chromium_android_linker/legacy_linker_jni.o
[332/8823] CXX obj/base/android/linker/chromium_android_linker/modern_linker_jni.o
[333/8823] CXX obj/chrome/common/channel_info/channel_info.o
[334/8823] CXX obj/chrome/common/cloud_print/cloud_print/cloud_print_proxy_info.o
[335/8823] CXX obj/chrome/browser/notifications/scheduler/public/public/icon_bundle.o
[336/8823] CXX obj/chrome/browser/notifications/scheduler/public/public/client_overview.o
[337/8823] CXX obj/chrome/common/string_matching/string_matching/tokenized_string_char_iterator.o
[338/8823] ACTION //chrome/android:chrome_public_java__compile_java(//build/toolchain/android:android_clang_arm64)
[339/8823] CXX obj/chrome/browser/notifications/scheduler/public/public/impression_detail.o
[340/8823] CXX obj/chrome/browser/notifications/scheduler/public/public/schedule_service_utils.o
[341/8823] CXX obj/chrome/common/string_matching/string_matching/tokenized_string.o
[342/8823] CXX obj/chrome/common/string_matching/string_matching/tokenized_string_match.o
[343/8823] CXX obj/chrome/browser/notifications/scheduler/public/public/notification_scheduler_types.o
[344/8823] CXX obj/chrome/browser/notifications/scheduler/public/public/schedule_params.o
[345/8823] CXX obj/chrome/common/media_router/router/media_sink_internal.o
[346/8823] CXX obj/chrome/common/ini_parser/ini_parser.o
[347/8823] CXX obj/chrome/common/string_matching/string_matching/term_break_iterator.o
[348/8823] CXX obj/chrome/browser/devtools/devtools/devtools_dock_tile.o
[349/8823] CXX obj/chrome/browser/notifications/scheduler/public/public/display_agent.o
[350/8823] CXX obj/chrome/common/media_router/router/issue.o
[351/8823] CXX obj/chrome/common/channel_info/channel_info_android.o
[352/8823] CXX obj/chrome/browser/notifications/scheduler/public/public/notification_params.o
[353/8823] CXX obj/components/captive_portal/captive_portal/captive_portal_metrics.o
[354/8823] CXX obj/chrome/browser/notifications/scheduler/public/public/features.o
[355/8823] CXX obj/chrome/browser/updates/announcement_notification/announcement_notification/announcement_notification_metrics.o
[356/8823] CXX obj/chrome/browser/share/share/features.o
[357/8823] CXX obj/chrome/browser/updates/announcement_notification/announcement_notification/empty_announcement_notification_service.o
[358/8823] CXX obj/chrome/app/shutdown_signal_handlers/shutdown_signal_handlers_posix.o
[359/8823] ACTION //chrome/app:chromium_strings_grit(//build/toolchain/android:android_clang_arm64)
[360/8823] CXX obj/chrome/browser/notifications/scheduler/public/public/notification_scheduler_client_registrar.o
[361/8823] CXX obj/chrome/browser/notifications/scheduler/public/public/notification_data.o
[362/8823] ACTION //chrome/android/third_party/compositor_animator:compositor_animator_java__compile_java(//build/toolchain/android:android_clang_arm64)
[363/8823] CXX obj/components/download/internal/background_service/proto/proto/scheduling.pb.o
[364/8823] CXX obj/chrome/common/string_matching/string_matching/fuzzy_tokenized_string_match.o
[365/8823] ACTION //chrome/android:update_proto_java__compile_java(//build/toolchain/android:android_clang_arm64)
[366/8823] ACTION //chrome/app:google_chrome_strings_grit(//build/toolchain/android:android_clang_arm64)
[367/8823] ACTION //chrome/android:thumbnail_cache_entry_proto_java__compile_java(//build/toolchain/android:android_clang_arm64)
[368/8823] CXX obj/chrome/common/string_matching/string_matching/sequence_matcher.o
[369/8823] CXX obj/components/browsing_data/core/core/bookmark_counter.o
[370/8823] ACTION //chrome/android/features/test_dummy/public:java__compile_java(//build/toolchain/android:android_clang_arm64)
[371/8823] CXX obj/components/download/internal/background_service/proto/proto/request.pb.o
[372/8823] CXX obj/chrome/browser/updates/announcement_notification/announcement_notification/announcement_notification_service_factory.o
[373/8823] ACTION //chrome/android/webapk/libs/common:common_java__compile_java(//build/toolchain/android:android_clang_arm64)
[374/8823] CXX obj/chrome/android/features/stack_unwinder/internal/native/stack_unwinder_impl.o
[375/8823] ACTION //chrome/android/webapk/libs/runtime_library:webapk_service_aidl_java__compile_java(//build/toolchain/android:android_clang_arm64)
[376/8823] ACTION //chrome/android/public/crypto:java__compile_java(//build/toolchain/android:android_clang_arm64)
[377/8823] ACTION //chrome/android:usage_stats_proto_java__compile_java(//build/toolchain/android:android_clang_arm64)
[378/8823] ACTION //chrome/android/webapk/libs/common:splash_java__compile_java(//build/toolchain/android:android_clang_arm64)
[379/8823] CXX obj/chrome/browser/updates/announcement_notification/announcement_notification/announcement_notification_delegate_android.o
[380/8823] CXX obj/chrome/android/modules/dev_ui/provider/native/dev_ui_install_listener.o
[381/8823] CXX obj/chrome/android/features/test_dummy/internal/native/test_dummy_impl.o
[382/8823] CXX obj/chrome/android/modules/dev_ui/provider/native/dev_ui_module_provider.o
[383/8823] CXX obj/chrome/android/modules/extra_icu/provider/native/module_provider.o
[384/8823] ACTION //chrome/android/webapk/libs/runtime_library:runtime_library_for_assets_java__compile_java(//build/toolchain/android:android_clang_arm64)
[385/8823] CXX obj/chrome/gpu/gpu/chrome_content_gpu_client.o
[386/8823] ACTION //chrome/android:partner_location_descriptor_proto_java__compile_java(//build/toolchain/android:android_clang_arm64)
[387/8823] CXX obj/chrome/gpu/gpu/browser_exposed_gpu_interfaces.o
[388/8823] CXX obj/components/download/content/public/public/all_download_item_notifier.o
[389/8823] CXX obj/components/download/content/public/public/download_navigation_observer.o
[390/8823] CXX obj/components/safe_browsing/triggers/ad_popup_trigger/ad_popup_trigger.o
[391/8823] CXX obj/components/safe_browsing/triggers/ad_sampler_trigger/ad_sampler_trigger.o
[392/8823] ACTION //chrome/android:chrome_jni_headers(//build/toolchain/android:android_clang_arm64)
[393/8823] ACTION //chrome/app:generated_resources_grit(//build/toolchain/android:android_clang_arm64)
ninja: build stopped: subcommand failed.
==================================
2020-01-30 15:54:28: Running aws_logging
==================================
Filesystem      Size  Used Avail Use% Mounted on
udev             69G     0   69G   0% /dev
tmpfs            14G 1012K   14G   1% /run
/dev/nvme0n1p1  194G   60G  134G  31% /
tmpfs            69G     0   69G   0% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs            69G     0   69G   0% /sys/fs/cgroup
/dev/loop0       91M   91M     0 100% /snap/core/6350
/dev/loop1       18M   18M     0 100% /snap/amazon-ssm-agent/930
tmpfs            20M     0   20M   0% /home/ubuntu/rattlesnake-os/keys
tmpfs            14G     0   14G   0% /run/user/1000
4.0K    /home/ubuntu/rattlesnake-os
4.0K    total
 15:54:28 up  1:21,  1 user,  load average: 5.67, 30.59, 52.57
Completed 256.0 KiB/10.8 MiB (1.7 MiB/s) with 1 file(s) remaining
Completed 512.0 KiB/10.8 MiB (3.2 MiB/s) with 1 file(s) remaining
Completed 768.0 KiB/10.8 MiB (4.7 MiB/s) with 1 file(s) remaining
Completed 1.0 MiB/10.8 MiB (5.9 MiB/s) with 1 file(s) remaining 
Completed 1.2 MiB/10.8 MiB (7.4 MiB/s) with 1 file(s) remaining 
Completed 1.5 MiB/10.8 MiB (8.8 MiB/s) with 1 file(s) remaining 
Completed 1.8 MiB/10.8 MiB (9.8 MiB/s) with 1 file(s) remaining 
Completed 2.0 MiB/10.8 MiB (11.1 MiB/s) with 1 file(s) remaining
Completed 2.2 MiB/10.8 MiB (12.4 MiB/s) with 1 file(s) remaining
Completed 2.5 MiB/10.8 MiB (13.8 MiB/s) with 1 file(s) remaining
Completed 2.8 MiB/10.8 MiB (14.5 MiB/s) with 1 file(s) remaining
Completed 3.0 MiB/10.8 MiB (12.5 MiB/s) with 1 file(s) remaining
Completed 3.2 MiB/10.8 MiB (12.4 MiB/s) with 1 file(s) remaining
Completed 3.5 MiB/10.8 MiB (13.3 MiB/s) with 1 file(s) remaining
Completed 3.8 MiB/10.8 MiB (14.3 MiB/s) with 1 file(s) remaining
Completed 4.0 MiB/10.8 MiB (15.2 MiB/s) with 1 file(s) remaining
Completed 4.2 MiB/10.8 MiB (15.6 MiB/s) with 1 file(s) remaining
Completed 4.5 MiB/10.8 MiB (16.5 MiB/s) with 1 file(s) remaining
Completed 4.8 MiB/10.8 MiB (17.3 MiB/s) with 1 file(s) remaining
Completed 5.0 MiB/10.8 MiB (18.2 MiB/s) with 1 file(s) remaining
Completed 5.1 MiB/10.8 MiB (18.4 MiB/s) with 1 file(s) remaining
Completed 5.3 MiB/10.8 MiB (18.9 MiB/s) with 1 file(s) remaining
Completed 5.6 MiB/10.8 MiB (19.7 MiB/s) with 1 file(s) remaining
Completed 5.8 MiB/10.8 MiB (20.5 MiB/s) with 1 file(s) remaining
Completed 6.1 MiB/10.8 MiB (21.4 MiB/s) with 1 file(s) remaining
Completed 6.3 MiB/10.8 MiB (22.2 MiB/s) with 1 file(s) remaining
Completed 6.6 MiB/10.8 MiB (23.0 MiB/s) with 1 file(s) remaining
Completed 6.8 MiB/10.8 MiB (23.8 MiB/s) with 1 file(s) remaining
Completed 7.1 MiB/10.8 MiB (24.1 MiB/s) with 1 file(s) remaining
Completed 7.3 MiB/10.8 MiB (24.8 MiB/s) with 1 file(s) remaining
Completed 7.6 MiB/10.8 MiB (25.6 MiB/s) with 1 file(s) remaining
Completed 7.8 MiB/10.8 MiB (26.3 MiB/s) with 1 file(s) remaining
Completed 8.1 MiB/10.8 MiB (26.8 MiB/s) with 1 file(s) remaining
Completed 8.3 MiB/10.8 MiB (27.2 MiB/s) with 1 file(s) remaining
Completed 8.6 MiB/10.8 MiB (27.9 MiB/s) with 1 file(s) remaining
Completed 8.8 MiB/10.8 MiB (28.6 MiB/s) with 1 file(s) remaining
Completed 9.1 MiB/10.8 MiB (29.3 MiB/s) with 1 file(s) remaining
Completed 9.3 MiB/10.8 MiB (30.0 MiB/s) with 1 file(s) remaining
Completed 9.6 MiB/10.8 MiB (30.8 MiB/s) with 1 file(s) remaining
Completed 9.8 MiB/10.8 MiB (30.0 MiB/s) with 1 file(s) remaining
Completed 10.1 MiB/10.8 MiB (30.7 MiB/s) with 1 file(s) remaining
Completed 10.3 MiB/10.8 MiB (31.3 MiB/s) with 1 file(s) remaining
Completed 10.6 MiB/10.8 MiB (32.0 MiB/s) with 1 file(s) remaining
Completed 10.8 MiB/10.8 MiB (32.7 MiB/s) with 1 file(s) remaining
upload: ../../../../var/log/cloud-init-output.log to s3://rattlesnakeos-crosshatch-xzyz-logs/crosshatch/1580399668
==================================
2020-01-30 15:54:28: Running aws_notify
==================================
dan-v commented 4 years ago

Thanks for the report @laamalif. I haven't attempted a Chromium build in a few weeks, but will kick something off and try to debug. I was previously able to build and am running '81.0.4027.2' if you want to give that a shot in the mean time.

dan-v commented 4 years ago

I was unfortunately not able to reproduce this issue, my latest build with Chromium 81.0.4040.6 went through fine.

RattlesnakeOS Build SUCCESS
 Device: crosshatch
 Stack Version: 10.0.1
 Stack Region: us-west-2
 Release Channel: crosshatch-stable
 Instance Type: c5.18xlarge
 Instance Region: us-east-2
 Instance IP: 18.224.183.124
 Build Date: 2020.01.31.04
 Elapsed Time: 2hrs 32min 53sec
 AOSP Build: QQ1A.200105.002
 AOSP Branch: android-10.0.0_r21
 Chromium Version: 81.0.4040.6
 F-Droid Version: 1.8-alpha1
 F-Droid Priv Extension Version: 0.2.11
 Build Reason:  'Chromium version 81.0.4027.2 != 81.0.4040.6'
pgera commented 4 years ago

I am seeing this with 81.0.4027.2 as well.

dan-v commented 4 years ago

Hmm.. I've had no issues building 81.0.4027.2 or latest 81.0.4040.6. Normally Chromium build issues like these are easy to reproduce. The only difference between our builds appears to be microg patches, but not sure how that would affect the Chromium build process.

corrmaan commented 4 years ago

I experienced the same error last night with version 81.0.4040.6, vanilla RattlesnakeOS with a brand new config and deployment. No special changes. Do you think it would work if I changed CHROME_CHANNEL to stable?

2020-02-02-024734-build.log

pgera commented 4 years ago

Stable is still on 79, whereas Q needs 80 or newer. Beta is on 80 though. So instead of dev, it may be worth trying beta (and stable in a few days when 80 hits stable).

Edit: It looks like OP already tried 80.x. So not sure anymore.

corrmaan commented 4 years ago

Maybe it has to do with too much build parallelization? I'll try a new build with --jobs in Chromium's build hard set to something like 4 or 8 instead of c5.4xlarge's 16 from nproc.

dan-v commented 4 years ago

@corrmaan - I was also thinking it could be related to build parallelization, but the original report was on a c5.18xlarge which has many more cores. So far I've had 1 successful build on 81.0.4027.2 and 2 successful builds on 81.0.4040.6 all on a c5.18xlarge instances. I'll try to kick off a build on a smaller instance type to see if I can reproduce.

corrmaan commented 4 years ago

Sounds good. My comment above was just a guess on how the Chromium build operates - after looking in to it it seems to me like any --jobs settings are handled by autoninja and wrapped up in some python scripts.

dan-v commented 4 years ago

Could also be related to build caching as well since the webview is being built first and then the browser is being built without cleaning first (this was intended to reduce build time). It would be interesting to see if this could reproduce if:

I'm still just trying to get a solid repro at this point; I kicked off a c5.4xlarge build and hoping I bump into the issue easier with that.

dan-v commented 4 years ago

Nice, I was able to reproduce this issue with a c5.4xlarge. So the question becomes what to do to fix it. I could:

In the mean time, I'm going to play around with swapping the build order to see what happens in that case.

dan-v commented 4 years ago

Looks like swapping the build order to first build the browser and then webview was successful on c5.4xlarge. I might do that at least temporarily until I figure out how to properly fix this situation. I'll try to get a new version out soon with that change.

corrmaan commented 4 years ago

Nice, thanks @dan-v. I was going to say that removing Chromium entirely seems like a step backwards. At least maybe instead just include an option to disable it. Cleaning between builds seems reasonable enough. Trichrome sounds like a good direction to head in too though. Whatever is easiest!

dan-v commented 4 years ago

Pushed a new release with the ordering workaround - hopefully it holds up for the time being. If someone gets a chance to test it out and could report back that would be a great help.

pgera commented 4 years ago

I can confirm that the build passed. Slight OT, but wanted to check if anyone has this chromium issue. On Q, I have never been able to download files in chromium. For eg., downloading a test pdf file (https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf) throws an "SD card not found" error. I wonder if this is also microg related somehow as that is the only deviation in my build.

corrmaan commented 4 years ago

Thanks @dan-v, that worked for me too. Sorry @pgera but I haven't ran in to that issue before, but maybe I've never tried downloading files on Chromium either.

laamalif commented 4 years ago

Location selection doesnt work on chromium while downloading files. I've also noticed that chromium keep crashing on video playback other than youtube site. maybe codec issue?

dan-v commented 4 years ago

@pgera - I can confirm that there appears to be an issue with that. It seems like it downloads it but it says 'failed to open' and it doesn't appear to be on disk. Not entirely sure what this issue is.

@laamalif - The crash on video playback issue is likely the same as seen here: https://github.com/GrapheneOS/Vanadium/pull/52. It sounds like there is a patch that works around the primary issue, but right now I don't support patches of Chromium. I'm gonna wait and see how the issue plays out for now.

laamalif commented 4 years ago

@dan-v Do you have plan to support patches for Chromium in future? I think having minimal or webview customization will be good option, in the end you still need another browser for day to day task.

Chromium patch support will be nice feature to have in my opinion or at least customization of webview only build.

dan-v commented 4 years ago

@laamalif - i have an enhancement open for it https://github.com/dan-v/rattlesnakeos-stack/issues/104, but I haven't had much time to implement new features lately and have been in maintenance mode for the most part (hopefully that changes in the future as there's a lot i'd like to add/change with this project). Anyways, for now I'm happy to take PRs for enhancements like this.

dan-v commented 4 years ago

Closing this and opened up an enhancement to move to Trichrome (https://github.com/dan-v/rattlesnakeos-stack/issues/152)

pgera commented 4 years ago

The download failure is being tracked upstream at https://bugs.chromium.org/p/chromium/issues/detail?id=1045642

and downstream at: https://github.com/GrapheneOS/Vanadium/issues/56 https://github.com/bromite/bromite/issues/485