Hello,
Twice in one day!
I'm trying to run a pinpoint job for a commit point > 1 month old. It keeps failing with build errors. The bot is using siso, and the build errors seem to happen on the remote side. Sample error output follows. The compile is failing because a generated header (a buildflag header) doesn't have the right set of defines. I believe it has a newer set of defines (perhaps from the machine building a more recent revision). Some folks mentioned this may be because chrome's deps are wrong:
https://b.corp.google.com/issues/345633541 . For the pinpoint job I modified the target that generates the header
https://chromium-review.googlesource.com/c/chromium/src/+/5771115 as well as moving/adding to public_deps where it may have been missing, but I still see the issue.
I also tried building (at the same commit point) locally, using siso, and couldn't replicate. Any suggestions?
Error:
../../buildtools/reclient/rewrapper -cfg=../../buildtools/reclient_cfgs/chromium-browser-clang/rewrapper_mac.cfg -inputs=build/config/unsafe_buffers_paths.txt -exec_root=/Volumes/Work/s/w/ir/cache/builder/src/ ../../third_party/llvm-build/Release+Asserts/bin/clang++ -MMD -MF obj/base/allocator/partition_allocator/src/partition_alloc/allocator_core/partition_oom.o.d -DOFFICIAL_BUILD -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE -D__ARM_NEON__=1 -DCR_XCODE_VERSION=1500 -DCR_CLANG_REVISION=\"llvmorg-19-init-14561-gecea8371-1\" -D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS -D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS -DCR_LIBCXX_REVISION=09b99fd8ab300c93ff7b8df6688cafb27bd3db28 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DIS_PARTITION_ALLOC_IMPL -I../.. -Igen -I../../buildtools/third_party/libc++ -I../../base/allocator/partition_allocator/src -Igen/base/allocator/partition_allocator/src -Wall -Wextra -Wimplicit-fallthrough -Wextra-semi -Wunreachable-code-aggressive -Wthread-safety -Wunguarded-availability -Wno-missing-field-initializers -Wno-unused-parameter -Wno-psabi -Wloop-analysis -Wno-unneeded-internal-declaration -Wno-cast-function-type -Wno-ignored-pragma-optimize -Wno-deprecated-builtins -Wno-bitfield-constant-conversion -Wno-deprecated-this-capture -Wno-invalid-offsetof -Wno-vla-extension -Wno-thread-safety-reference-return -Wshadow -Werror -fno-delete-null-pointer-checks -fno-ident -fno-strict-aliasing -fstack-protector -fcolor-diagnostics -fmerge-all-constants -fno-sized-deallocation -fcrash-diagnostics-dir=../../tools/clang/crashreports -mllvm -instcombine-lower-dbg-declare=0 -mllvm -split-threshold-for-reg-with-hint=0 -ffp-contract=off -flto=thin -fsplit-lto-unit -mllvm -inlinehint-threshold=360 -fwhole-program-vtables -fcomplete-member-pointers --target=arm64-apple-macos -mno-outline -ffile-compilation-dir=. -no-canonical-prefixes -ftrivial-auto-var-init=pattern -fno-omit-frame-pointer -gdwarf-4 -g1 -gdwarf-aranges -isysroot ../../build/mac_files/xcode_binaries/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk -mmacos-version-min=10.15 -fvisibility=hidden -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Xclang -add-plugin -Xclang find-bad-constructs -Xclang -plugin-arg-find-bad-constructs -Xclang span-ctor-from-string-literal -Xclang -plugin-arg-find-bad-constructs -Xclang raw-ref-template-as-trivial-member -Xclang -plugin-arg-find-bad-constructs -Xclang check-stack-allocated -Xclang -plugin-arg-find-bad-constructs -Xclang check-allow-auto-typedefs-better-nested -Xclang -add-plugin -Xclang raw-ptr-plugin -Xclang -plugin-arg-raw-ptr-plugin -Xclang check-raw-ptr-to-stack-allocated -Xclang -plugin-arg-raw-ptr-plugin -Xclang disable-check-raw-ptr-to-stack-allocated-error -Xclang -plugin-arg-raw-ptr-plugin -Xclang raw-ptr-exclude-path=/renderer/ -Xclang -plugin-arg-raw-ptr-plugin -Xclang raw-ptr-exclude-path=../../third_party/blink/public/web/ -Xclang -plugin-arg-raw-ptr-plugin -Xclang raw-ptr-exclude-path=../../third_party/dawn/ -DUNSAFE_BUFFERS_BUILD -Xclang -add-plugin -Xclang unsafe-buffers -Xclang -plugin-arg-unsafe-buffers -Xclang ../../build/config/unsafe_buffers_paths.txt -Wexit-time-destructors -O3 -fno-math-errno -Wc++11-narrowing -Wconditional-uninitialized -Wcstring-format-directive -Wctad-maybe-unsupported -Wdeprecated-copy -Wdeprecated-copy-dtor -Wduplicate-enum -Wextra-semi -Wextra-semi-stmt -Wimplicit-fallthrough -Winconsistent-missing-destructor-override -Winvalid-offsetof -Wmissing-field-initializers -Wnon-c-typedef-for-linkage -Wpessimizing-move -Wrange-loop-analysis -Wredundant-move -Wshadow-field -Wstrict-prototypes -Wsuggest-destructor-override -Wsuggest-override -Wtautological-unsigned-zero-compare -Wunreachable-code-aggressive -Wunused-but-set-variable -Wunused-macros -pedantic -Wenum-compare-conditional -Wno-c++11-narrowing-const-reference -Wno-missing-template-arg-list-after-template-kw -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 -c ../../base/allocator/partition_allocator/src/partition_alloc/partition_oom.cc -o obj/base/allocator/partition_allocator/src/partition_alloc/allocator_core/partition_oom.o
stdout:
In file included from ../../base/allocator/partition_allocator/src/partition_alloc/partition_oom.cc:8:
In file included from ../../base/allocator/partition_allocator/src/partition_alloc/oom.h:10:
In file included from ../../base/allocator/partition_allocator/src/partition_alloc/allocation_guard.h:10:
[1m../../base/allocator/partition_allocator/src/partition_alloc/partition_alloc_config.h:69:5: [0m [0;1;31merror: [0m [1mfunction-like macro 'PA_BUILDFLAG_INTERNAL_USE_STARSCAN' is not defined [0m
69 | # [0;34mif [0m PA_BUILDFLAG(USE_STARSCAN) [0m
| [0;1;32m ^
[0m [1m../../base/allocator/partition_allocator/src/partition_alloc/buildflag.h:15:29: [0m [0;1;36mnote: [0mexpanded from macro 'PA_BUILDFLAG' [0m
15 | #define PA_BUILDFLAG(flag) (PA_BUILDFLAG_CAT(PA_BUILDFLAG_INTERNAL_, flag)()) [0m
| [0;1;32m ^
[0m [1m../../base/allocator/partition_allocator/src/partition_alloc/buildflag.h:14:32: [0m [0;1;36mnote: [0mexpanded from macro 'PA_BUILDFLAG_CAT' [0m
14 | #define PA_BUILDFLAG_CAT(a, b) PA_BUILDFLAG_CAT_INDIRECT(a, b) [0m
| [0;1;32m ^
[0m [1m../../base/allocator/partition_allocator/src/partition_alloc/buildflag.h:13:41: [0m [0;1;36mnote: [0mexpanded from macro 'PA_BUILDFLAG_CAT_INDIRECT' [0m
13 | #define PA_BUILDFLAG_CAT_INDIRECT(a, b) a##b [0m
| [0;1;32m ^
[0m [1m<scratch space>:110:1: [0m [0;1;36mnote: [0mexpanded from here [0m
110 | PA_BUILDFLAG_INTERNAL_USE_STARSCAN [0m
| [0;1;32m^
-Scott