When I was compiling chromium-134.0.6998.35, I encountered a compilation error. Has anyone else encountered it?
Code:
FAILED: obj/ui/ozone/platform/wayland/wayland/wayland_util.o
c++ -MD -MF obj/ui/ozone/platform/wayland/wayland/wayland_util.o.d -DOZONE_IMPLEMENTATION -DWAYLAND_GBM -DUSE_AURA=1 -DUSE_GLIB=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 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE -D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS -D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS -D_LIBCPP_INSTRUMENTED_WITH_ASAN=0 -DCR_LIBCXX_REVISION=2e25154d49c29fa9aa42c30ad4a027bd30123434 -DTMP_REBUILD_HACK -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_56 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_56 -DSK_ENABLE_SKSL -DSK_UNTIL_CRBUG_1187654_IS_FIXED -DSK_USER_CONFIG_HEADER=\"../../skia/config/SkUserConfig.h\" -DSK_WIN_FONTMGR_NO_SIMULATIONS -DSK_DISABLE_LEGACY_INIT_DECODERS -DSK_DISABLE_LEGACY_BACKEND_TEXTURE_FUNCS -DSK_DISABLE_LEGACY_TEXTURE_INFO_FUNCS -DSK_DISABLE_LEGACY_BACKEND_SEMAPHORE_FUNCS -DSK_DISABLE_LEGACY_GRAPHITE_IMAGES -DSK_DISABLE_LEGACY_DAWN_TEXTURE_INFO_FUNCS -DSK_DISABLE_LEGACY_DAWN_BACKEND_TEXTURE_FUNCS -DSK_CODEC_DECODES_JPEG -DSK_ENCODE_JPEG -DSK_ENCODE_PNG -DSK_ENCODE_WEBP -DSK_GAMMA_EXPONENT=1.2 -DSK_GAMMA_CONTRAST=0.2 -DSK_GANESH -DSK_GPU_WORKAROUNDS_HEADER=\"gpu/config/gpu_driver_bug_workaround_autogen.h\" -DSK_GL -DSK_VULKAN=1 -DSK_GRAPHITE -DSK_DAWN -DVK_USE_PLATFORM_XCB_KHR -DVK_USE_PLATFORM_WAYLAND_KHR -DCR_CXX_INCLUDE=\"third_party/rust/chromium_crates_io/vendor/cxx-1.0.137/include/cxx.h\" -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_STATIC -DGOOGLE_PROTOBUF_NO_RTTI -DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -DGOOGLE_PROTOBUF_INTERNAL_DONATE_STEAL_INLINE=0 -DHAVE_PTHREAD -DVK_NO_PROTOTYPES -DUSE_VULKAN_XCB -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/skia -Igen/third_party/skia -I../../third_party/wuffs/src/release/c -I../../third_party/vulkan/include -I../../third_party/vulkan-headers/src/include -I../../third_party/wayland/src/src -I../../third_party/wayland/include/src -Igen/third_party/dawn/include -I../../third_party/dawn/include -Igen/shim_headers/libpng_shim -Igen/shim_headers/libwebp_shim -Igen/shim_headers/libdrm_shim -I../../net/third_party/quiche/overrides -I../../net/third_party/quiche/src/quiche/common/platform/default -I../../net/third_party/quiche/src -I../../base/allocator/partition_allocator/src -Igen/base/allocator/partition_allocator/src -I../../third_party/abseil-cpp -I../../third_party/boringssl/src/include -I../../third_party/protobuf/src -Igen/components/exo/wayland/protocol -I../../third_party/ipcz/include -I../../third_party/angle/include -I../../third_party/libsync/src -I../../third_party/libsync/src/include -I../../third_party/wayland/include -I../../third_party/wayland/src/cursor -I../../third_party/wayland/src/egl -I/usr/local/include/libepoll-shim -Igen/third_party/wayland/src/protocol -Igen/third_party/wayland-protocols/unstable/alpha-compositing -Igen/third_party/wayland-protocols/unstable/content-type -Igen/third_party/wayland-protocols/src/staging/cursor-shape -Igen/third_party/wayland-protocols/unstable/extended-drag -Igen/third_party/wayland-protocols/src/staging/fractional-scale -Igen/third_party/wayland-protocols/unstable/gtk-primary-selection -Igen/third_party/wayland-protocols/gtk/gdk/wayland/protocol -Igen/third_party/wayland-protocols/src/unstable/idle-inhibit -Igen/third_party/wayland-protocols/unstable/keyboard -Igen/third_party/wayland-protocols/src/unstable/keyboard-shortcuts-inhibit -Igen/third_party/wayland-protocols/src/unstable/linux-dmabuf -Igen/third_party/wayland-protocols/src/staging/linux-drm-syncobj -Igen/third_party/wayland-protocols/src/unstable/linux-explicit-synchronization -Igen/third_party/wayland-protocols/kde/src/protocols -Igen/third_party/wayland-protocols/src/unstable/pointer-constraints -Igen/third_party/wayland-protocols/src/unstable/pointer-gestures -Igen/third_party/wayland-protocols/src/stable/presentation-time -Igen/third_party/wayland-protocols/src/unstable/primary-selection -Igen/third_party/wayland-protocols/src/unstable/relative-pointer -Igen/third_party/wayland-protocols/src/staging/single-pixel-buffer -Igen/third_party/wayland-protocols/src/unstable/tablet -Igen/third_party/wayland-protocols/unstable/text-input -Igen/third_party/wayland-protocols/src/unstable/text-input -Igen/third_party/wayland-protocols/src/stable/viewporter -Igen/third_party/wayland-protocols/mesa/wayland-drm -Igen/third_party/wayland-protocols/src/staging/xdg-activation -Igen/third_party/wayland-protocols/src/unstable/xdg-decoration -Igen/third_party/wayland-protocols/src/unstable/xdg-foreign -Igen/third_party/wayland-protocols/src/unstable/xdg-output -Igen/third_party/wayland-protocols/src/stable/xdg-shell -Igen/third_party/wayland-protocols/src/unstable/xdg-shell -Igen/third_party/wayland-protocols/src/staging/xdg-toplevel-drag -Igen/third_party/wayland-protocols/src/staging/xdg-toplevel-icon -I../../third_party/icu/source/common -I../../third_party/icu/source/i18n -I../../third_party/ced/src -Igen/net/third_party/quiche/src -Wall -Wextra -Wimplicit-fallthrough -Wextra-semi -Wunreachable-code-aggressive -Wthread-safety -Wgnu -Wno-gnu-anonymous-struct -Wno-gnu-conditional-omitted-operand -Wno-gnu-include-next -Wno-gnu-label-as-value -Wno-gnu-redeclared-enum -Wno-gnu-statement-expression -Wno-gnu-zero-variadic-macro-arguments -Wno-zero-length-array -Wno-missing-field-initializers -Wno-unused-parameter -Wno-psabi -Wloop-analysis -Wno-unneeded-internal-declaration -Wno-cast-function-type -Wshadow -fno-delete-null-pointer-checks -fwrapv -fno-ident -fno-strict-aliasing -fstack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fPIC -pthread -fcolor-diagnostics -fmerge-all-constants -fno-sized-deallocation -flto=thin -fsplit-lto-unit -mllvm -inlinehint-threshold=360 -fwhole-program-vtables -fcomplete-member-pointers -m64 -msse3 -Xclang -fdebug-compilation-dir -Xclang . -no-canonical-prefixes -ftrivial-auto-var-init=pattern -O2 -fdata-sections -ffunction-sections -fno-unique-section-names -fno-math-errno -fno-omit-frame-pointer -g0 -fprofile-use=../../chrome/build/pgo_profiles/chrome-linux-6998-1740504838-d674c0736f2395257e3218be5f686d4659c91386-3199264f1b9d2b6785a12312fb1dde786c7cffea.profdata -Wno-profile-instr-unprofiled -Wno-profile-instr-out-of-date -Wno-backend-plugin -fvisibility=hidden -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -isystem/usr/local/include -isystem/usr/local/include -isystem/usr/local/include/glib-2.0 -isystem/usr/local/lib/glib-2.0/include -Wno-redundant-parens -Wno-redundant-parens -DPROTOBUF_ALLOW_DEPRECATED=1 -isystem/usr/local/include -isystem/usr/local/include/libdrm -isystem/usr/local/include -isystem/usr/local/include/nss -isystem/usr/local/include/nspr -isystem/usr/local/include/dbus-1.0 -isystem/usr/local/lib/dbus-1.0/include -isystem/usr/local/include -Wno-invalid-offsetof -Wenum-compare-conditional -std=c++20 -Wno-trigraphs -fno-exceptions -fno-rtti -nostdinc++ -isystem../../third_party/libc++/src/include -isystem../../third_party/libc++abi/src/include -fvisibility-inlines-hidden -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -D_LIBCPP_TYPEINFO_COMPARISON_IMPLEMENTATION=2 -D_LIBCPP_TYPEINFO_COMPARISON_IMPLEMENTATION=2 -isystem /usr/local/include -I/usr/local/include/libepoll-shim -c ../../ui/ozone/platform/wayland/common/wayland_util.cc -o obj/ui/ozone/platform/wayland/wayland/wayland_util.o
../../ui/ozone/platform/wayland/common/wayland_util.cc:428:5: error: unknown type name 'ucred'
428 | ucred credentials{.pid = 0};
| ^
../../ui/ozone/platform/wayland/common/wayland_util.cc:429:29: error: use of undeclared identifier 'ucred'
429 | socklen_t size = sizeof(ucred);
| ^
../../ui/ozone/platform/wayland/common/wayland_util.cc:430:36: error: use of undeclared identifier 'SO_PEERCRED'
430 | if (getsockopt(fd, SOL_SOCKET, SO_PEERCRED, &credentials, &size) == -1) {
| ^
3 errors generated.
ninja: build stopped: subcommand failed.
*** Error code 1