exec ${PAGER:-/usr/bin/less} "$0" || exit 1 Executing tests from //src/test/shell/bazel:cc_integration_test ----------------------------------------------------------------------------- INFO[cc_integration_test 2025-06-18 21:25:35 (+0000)] bazel binary is at /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/ec321eb2cc2d0f8f91b676b6d4c66c29/sandbox/linux-sandbox/6235/execroot/_main/bazel-out/k8-fastbuild/bin/src/test/shell/bazel/cc_integration_test.runfiles/_main/src/test/shell/bin testenv.sh: Using repository cache at /var/lib/buildkite-agent/bazeltest/repo_cache. testenv.sh: Using shared install base at /var/lib/buildkite-agent/bazeltest/install_base. INFO[cc_integration_test 2025-06-18 21:25:35 (+0000)] setting up client in /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/ec321eb2cc2d0f8f91b676b6d4c66c29/sandbox/linux-sandbox/6235/execroot/_main/_tmp/9ba762f085a5c5e5bcaf62acfdff3c24/workspace cc_integration_test Wed Jun 18 21:25:35 UTC 2025 ** test_bazel_conlyopts ******************************************************** $TEST_TMPDIR defined, some defaults will be overridden Starting local Bazel server (no_version) and connecting to it... Computing main repo mapping: Loading: Loading: 0 packages loaded Analyzing: target //:main_cpp (1 packages loaded, 0 targets configured) Analyzing: target //:main_cpp (1 packages loaded, 0 targets configured) Analyzing: target //:main_cpp (63 packages loaded, 469 targets configured) INFO: Analyzed target //:main_cpp (71 packages loaded, 507 targets configured). ERROR: /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/ec321eb2cc2d0f8f91b676b6d4c66c29/sandbox/linux-sandbox/6235/execroot/_main/_tmp/9ba762f085a5c5e5bcaf62acfdff3c24/workspace/BUILD.bazel:5:10: Compiling main.cpp failed: (Exit 1): gcc failed: error executing CppCompile command (from cc_binary rule target //:main_cpp) /usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer '-std=c++17' -MD -MF ... (remaining 20 arguments skipped) Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging main.cpp: In function 'int main()': main.cpp:3:8: error: 'EXIT_CODE' was not declared in this scope 3 | exit(EXIT_CODE); | ^~~~~~~~~ Target //:main_cpp failed to build Use --verbose_failures to see the command lines of failed build steps. INFO: Elapsed time: 3.591s, Critical Path: 0.05s INFO: 5 processes: 5 internal. ERROR: Build did NOT complete successfully $TEST_TMPDIR defined, some defaults will be overridden Computing main repo mapping: Loading: Loading: 0 packages loaded Analyzing: target //:main_c (0 packages loaded, 0 targets configured) Analyzing: target //:main_c (0 packages loaded, 0 targets configured) INFO: Analyzed target //:main_c (32 packages loaded, 153 targets configured). INFO: Found 1 target... Target //:main_c up-to-date: bazel-bin/main_c INFO: Elapsed time: 0.385s, Critical Path: 0.06s INFO: 7 processes: 5 internal, 2 linux-sandbox. INFO: Build completed successfully, 7 total actions INFO: Running command line: bazel-bin/main_c INFO[cc_integration_test 2025-06-18 21:25:39 (+0000)] Cleaning up workspace PASSED: test_bazel_conlyopts Wed Jun 18 21:25:39 UTC 2025 ** test_cc_toolchain_tsan_feature ********************************************** -- Test log: ----------------------------------------------------------- $TEST_TMPDIR defined, some defaults will be overridden Computing main repo mapping: Loading: Loading: 0 packages loaded Analyzing: target //pkg:example (1 packages loaded, 0 targets configured) Analyzing: target //pkg:example (1 packages loaded, 0 targets configured) INFO: Analyzed target //pkg:example (71 packages loaded, 507 targets configured). [5 / 7] [Prepa] Linking pkg/example INFO: Found 1 target... Target //pkg:example up-to-date: bazel-bin/pkg/example INFO: Elapsed time: 1.191s, Critical Path: 0.33s INFO: 7 processes: 5 internal, 2 linux-sandbox. INFO: Build completed successfully, 7 total actions INFO: Running command line: bazel-bin/pkg/example FATAL: ThreadSanitizer: unexpected memory mapping 0x5c185e3d4000-0x5c185e3d7000 ------------------------------------------------------------------------ test_cc_toolchain_tsan_feature FAILED: Expected regexp 'WARNING: ThreadSanitizer: data race' not found. /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/ec321eb2cc2d0f8f91b676b6d4c66c29/sandbox/linux-sandbox/6235/execroot/_main/bazel-out/k8-fastbuild/bin/src/test/shell/bazel/cc_integration_test.runfiles/_main/src/test/shell/bazel/cc_integration_test:1826: in call to test_cc_toolchain_tsan_feature Tear down: INFO[cc_integration_test 2025-06-18 21:25:40 (+0000)] Cleaning up workspace FAILED: test_cc_toolchain_tsan_feature Wed Jun 18 21:25:41 UTC 2025 ** test_execroot_subdir_layout_fails_for_external_subpackages ****************** INFO[cc_integration_test 2025-06-18 21:25:41 (+0000)] Cleaning up workspace PASSED: test_execroot_subdir_layout_fails_for_external_subpackages Wed Jun 18 21:25:41 UTC 2025 ** test_include_external_genrule_header **************************************** $TEST_TMPDIR defined, some defaults will be overridden Computing main repo mapping: Loading: Loading: 0 packages loaded Analyzing: target @@+local_repository+repo//foo:bar (1 packages loaded, 0 targets configured) Analyzing: target @@+local_repository+repo//foo:bar (1 packages loaded, 0 targets configured) INFO: Analyzed target @@+local_repository+repo//foo:bar (72 packages loaded, 507 targets configured). INFO: Found 1 target... Target @@+local_repository+repo//foo:bar up-to-date: bazel-bin/external/+local_repository+repo/foo/libbar.a bazel-bin/external/+local_repository+repo/foo/libbar.so INFO: Elapsed time: 0.438s, Critical Path: 0.07s INFO: 5 processes: 1 internal, 4 linux-sandbox. INFO: Build completed successfully, 5 total actions $TEST_TMPDIR defined, some defaults will be overridden Computing main repo mapping: Loading: Loading: 0 packages loaded Analyzing: target @@+local_repository+repo//foo:bar (1 packages loaded, 0 targets configured) Analyzing: target @@+local_repository+repo//foo:bar (1 packages loaded, 0 targets configured) INFO: Analyzed target @@+local_repository+repo//foo:bar (72 packages loaded, 507 targets configured). INFO: Found 1 target... Target @@+local_repository+repo//foo:bar up-to-date: bazel-out/+local_repository+repo/k8-fastbuild/bin/foo/libbar.a bazel-out/+local_repository+repo/k8-fastbuild/bin/foo/libbar.so INFO: Elapsed time: 0.848s, Critical Path: 0.07s INFO: 5 processes: 1 internal, 4 linux-sandbox. INFO: Build completed successfully, 5 total actions INFO[cc_integration_test 2025-06-18 21:25:43 (+0000)] Cleaning up workspace PASSED: test_include_external_genrule_header Wed Jun 18 21:25:43 UTC 2025 ** test_tree_artifact_headers_are_invalidated ********************************** $TEST_TMPDIR defined, some defaults will be overridden Computing main repo mapping: Loading: Loading: 0 packages loaded Analyzing: target //ta_headers:myexec (1 packages loaded, 0 targets configured) Analyzing: target //ta_headers:myexec (1 packages loaded, 0 targets configured) INFO: Analyzed target //ta_headers:myexec (72 packages loaded, 957 targets configured). INFO: Found 1 target... Target //ta_headers:myexec up-to-date: bazel-bin/ta_headers/myexec INFO: Elapsed time: 0.821s, Critical Path: 0.05s INFO: 14 processes: 10 internal, 4 linux-sandbox. INFO: Build completed successfully, 14 total actions $TEST_TMPDIR defined, some defaults will be overridden Computing main repo mapping: Loading: Loading: 0 packages loaded Analyzing: target //ta_headers:myexec (0 packages loaded, 0 targets configured) Analyzing: target //ta_headers:myexec (0 packages loaded, 0 targets configured) INFO: Analyzed target //ta_headers:myexec (0 packages loaded, 0 targets configured). INFO: Found 1 target... Target //ta_headers:myexec up-to-date: bazel-bin/ta_headers/myexec INFO: Elapsed time: 0.157s, Critical Path: 0.04s INFO: 6 processes: 2 internal, 4 linux-sandbox. INFO: Build completed successfully, 6 total actions INFO[cc_integration_test 2025-06-18 21:25:44 (+0000)] Cleaning up workspace PASSED: test_tree_artifact_headers_are_invalidated ** 4 / 5 tests passed. ********************************************************* ** There were errors. ********************************************************** $TEST_TMPDIR defined, some defaults will be overridden