Skip to content

Can't handle UnknownFlag arguments with -Xclang (-fuse-ctor-homing) #1266

@hurims

Description

@hurims

Hi, I think I have no cache hit while building chromium on Ubuntu.

$ sccache -s
[2022-08-05T07:21:57Z DEBUG sccache::config] Attempting to read config file at "/home/user/.config/sccache/config"
[2022-08-05T07:21:57Z DEBUG sccache::config] Couldn't open config file: No such file or directory (os error 2)
[2022-08-05T07:21:57Z DEBUG sccache::commands] request_stats
Compile requests                    700
Compile requests executed             0
Cache hits                            0
Cache misses                          0
Cache timeouts                        0
Cache read errors                     0
Forced recaches                       0
Cache write errors                    0
Compilation failures                  0
Cache errors                          0
Non-cacheable compilations            0
Non-cacheable calls                 700
Non-compilation calls                 0
Unsupported compiler calls            0
Average cache write               0.000 s
Average cache read miss           0.000 s
Average cache read hit            0.000 s
Failed distributed compilations       0

Non-cacheable reasons:
Can't handle UnknownFlag arguments with -Xclang     700

Here are debug logs

[2022-08-05T05:37:09Z DEBUG sccache::server] parse_arguments: CannotCache(Can't handle UnknownFlag arguments with -Xclang): ["-MMD", "-MF", "obj/components/autofill_assistant/browser/browser/controller_observer.o.d", "-DDCHECK_ALWAYS_ON=1", "-DUSE_UDEV", "-DUSE_AURA=1", "-DUSE_GLIB=1", "-DUSE_OZONE=1", "-DNAVER_WHALE_BUILD", "-DWHALE_DEV_BUILD", "-D__STDC_CONSTANT_MACROS", "-D__STDC_FORMAT_MACROS", "-D_FILE_OFFSET_BITS=64", "-D_LARGEFILE_SOURCE", "-D_LARGEFILE64_SOURCE", "-D_GNU_SOURCE", "-DCR_CLANG_REVISION="llvmorg-15-init-17529-ga210f404-1"", "-DCOMPONENT_BUILD", "-D_LIBCPP_ABI_NAMESPACE=Cr", "-D_LIBCPP_ABI_VERSION=2", "-D_LIBCPP_ENABLE_NODISCARD", "-D_LIBCPP_DEBUG=0", "-DCR_LIBCXX_REVISION=253791a5ba1afef6f94d739e89c726c48169b1da", "-DCR_SYSROOT_HASH=cb4fa34f1faddafb72cace35faf62a611f2ca7c9", "-D_DEBUG", "-DDYNAMIC_ANNOTATIONS_ENABLED=1", "-DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_40", "-DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_40", "-DLIBYUV_DISABLE_NEON", "-DWEBP_EXTERN=extern", "-DGL_GLEXT_PROTOTYPES", "-DUSE_GLX", "-DUSE_EGL", "-DVK_USE_PLATFORM_XCB_KHR", "-DVK_USE_PLATFORM_WAYLAND_KHR", "-D_WTL_NO_AUTOMATIC_NAMESPACE", "-DON_FOCUS_PING_ENABLED", "-DTOOLKIT_VIEWS=1", "-DGOOGLE_PROTOBUF_NO_RTTI", "-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER", "-DGOOGLE_PROTOBUF_INTERNAL_DONATE_STEAL_INLINE=0", "-DHAVE_PTHREAD", "-DPROTOBUF_USE_DLLS", "-DABSL_CONSUME_DLL", "-DBORINGSSL_SHARED_LIBRARY", "-DU_USING_ICU_NAMESPACE=0", "-DU_ENABLE_DYLOAD=0", "-DUSE_CHROMIUM_ICU=1", "-DU_ENABLE_TRACING=1", "-DU_ENABLE_RESOURCE_TRACING=0", "-DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE", "-DLEVELDB_PLATFORM_CHROMIUM=1", "-DLEVELDB_SHARED_LIBRARY", "-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", "-DSKIA_DLL", "-DSKCMS_API=attribute((visibility("default")))", "-DSK_SUPPORT_GPU=1", "-DSK_GPU_WORKAROUNDS_HEADER="gpu/config/gpu_driver_bug_workaround_autogen.h"", "-DI18N_ADDRESS_VALIDATION_DATA_URL="https://chromium-i18n.appspot.com/ssl-aggregate-address/"", "-DWEBRTC_ENABLE_SYMBOL_EXPORT", "-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=0", "-DWEBRTC_USE_BUILTIN_ISAC_FLOAT=1", "-DWEBRTC_USE_X11", "-DWEBRTC_USE_PIPEWIRE", "-DWEBRTC_DLOPEN_PIPEWIRE", "-DWEBRTC_USE_GIO", "-DLOGGING_INSIDE_WEBRTC", "-DCRASHPAD_ZLIB_SOURCE_EXTERNAL", "-DV8_USE_EXTERNAL_STARTUP_DATA", "-DUSE_V8_CONTEXT_SNAPSHOT", "-DV8_CONTEXT_SNAPSHOT_FILENAME="v8_context_snapshot.bin"", "-DATK_LIB_DIR="/usr/lib/x86_64-linux-gnu"", "-DUSE_ATK_BRIDGE", "-DUSING_V8_SHARED", "-DV8_ENABLE_CHECKS", "-DV8_COMPRESS_POINTERS", "-DV8_COMPRESS_POINTERS_IN_SHARED_CAGE", "-DV8_31BIT_SMIS_ON_64BIT_ARCH", "-DV8_ENABLE_SANDBOX", "-DV8_SANDBOXED_POINTERS", "-DV8_DEPRECATION_WARNINGS", "-DCPPGC_CAGED_HEAP", "-DCPPGC_YOUNG_GENERATION", "-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/src", "-Igen/third_party/private_membership/src", "-Igen/third_party/shell-encryption/src", "-Igen/components/policy/proto", "-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/wtl/include", "-I../../third_party/protobuf/src", "-Igen/protoc_out", "-I../../third_party/abseil-cpp", "-I../../third_party/boringssl/src/include", "-I../../third_party/ced/src", "-I../../third_party/icu/source/common", "-I../../third_party/icu/source/i18n", "-I../../third_party/leveldatabase", "-I../../third_party/leveldatabase/src", "-I../../third_party/leveldatabase/src/include", "-I../../net/third_party/quiche/overrides", "-I../../net/third_party/quiche/src/quiche/common/platform/default", "-I../../net/third_party/quiche/src", "-Igen/net/third_party/quiche/src", "-I../../third_party/skia", "-I../../third_party/wuffs/src/release/c", "-I../../third_party/vulkan/include", "-I../../third_party/libaddressinput/src/cpp/include", "-I../../third_party/webrtc_overrides", "-I../../third_party/webrtc", "-Igen/third_party/webrtc", "-I../../third_party/libwebm/source", "-I../../third_party/mesa_headers", "-I../../third_party/libaom/source/libaom", "-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../../v8/include", "-Igen/v8/include", "-Igen/third_party/metrics_proto", "-I../../third_party/re2/src", "-Wall", "-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-array-parameter", "-Wno-deprecated-builtins", "-Wmax-tokens", "-Wshadow", "-fno-delete-null-pointer-checks", "-fno-ident", "-fno-strict-aliasing", "--param=ssp-buffer-size=4", "-fstack-protector", "-funwind-tables", "-fPIC", "-pthread", "-fcolor-diagnostics", "-fmerge-all-constants", "-fcrash-diagnostics-dir=../../tools/clang/crashreports", "-mllvm", "-instcombine-lower-dbg-declare=0", "-ffp-contract=off", "-fcomplete-member-pointers", "-m64", "-msse3", "-Wno-builtin-macro-redefined", "-D__DATE__=", "-D__TIME__=", "-D__TIMESTAMP__=", "-ffile-compilation-dir=.", "-no-canonical-prefixes", "-ftrivial-auto-var-init=pattern", "-O0", "-fno-omit-frame-pointer", "-gdwarf-4", "-g2", "-gdwarf-aranges", "-ggnu-pubnames", "-Xclang", "-fuse-ctor-homing", "-fvisibility=hidden", "-Wheader-hygiene", "-Wstring-conversion", "-Wtautological-overlap-compare", "-isystem../../build/linux/debian_bullseye_amd64-sysroot/usr/include/glib-2.0", "-isystem../../build/linux/debian_bullseye_amd64-sysroot/usr/lib/x86_64-linux-gnu/glib-2.0/include", "-DPROTOBUF_ALLOW_DEPRECATED=1", "-isystem../../build/linux/debian_bullseye_amd64-sysroot/usr/include/nss", "-isystem../../build/linux/debian_bullseye_amd64-sysroot/usr/include/nspr", "-Wno-shadow", "-isystem../../build/linux/debian_bullseye_amd64-sysroot/usr/include/at-spi2-atk/2.0", "-isystem../../build/linux/debian_bullseye_amd64-sysroot/usr/include/at-spi-2.0", "-isystem../../build/linux/debian_bullseye_amd64-sysroot/usr/include/dbus-1.0", "-isystem../../build/linux/debian_bullseye_amd64-sysroot/usr/lib/x86_64-linux-gnu/dbus-1.0/include", "-isystem../../build/linux/debian_bullseye_amd64-sysroot/usr/include/atk-1.0", "-isystem../../build/linux/debian_bullseye_amd64-sysroot/usr/include/glib-2.0", "-isystem../../build/linux/debian_bullseye_amd64-sysroot/usr/lib/x86_64-linux-gnu/glib-2.0/include", "-Wno-undefined-bool-conversion", "-Wno-tautological-undefined-compare", "-std=c++17", "-Wno-trigraphs", "-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_amd64-sysroot", "-fvisibility-inlines-hidden", "-Wno-deprecated-declarations", "-c", "../../components/autofill_assistant/browser/controller_observer.cc", "-o", "obj/components/autofill_assistant/browser/browser/controller_observer.o"]

-fuse-ctor-homing compile flag seems inserted only when configured for the debug build.
https://source.chromium.org/chromium/chromium/src/+/main:build/config/compiler/BUILD.gn;l=2393;drc=5ecdeae9114f5e3e72278378436575071fdaebe7

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions