INFO:2025-04-09T20:02:15Z:root:pulling... From github.com:llvm/llvm-project * branch main -> FETCH_HEAD 5709506de0e8..fe2eefc4718f main -> origin/main Switched to branch 'main' Your branch is behind 'origin/main' by 1 commit, and can be fast-forwarded. (use "git pull" to update your local branch) HEAD is now at fe2eefc4718f [clang][index] Handle undefined function-like macros in single file parse mode (#135054) INFO:2025-04-09T20:02:18Z:root:syncing... Deleted branch merge (was 5709506de0e8). Switched to a new branch 'merge' branch 'merge' set up to track 'origin/main'. INFO:2025-04-09T20:02:19Z:root:building ninja: Entering directory `out/gn' [1/285] CXX obj/clang/lib/Lex/Lex.PPExpressions.o [2/285] AR lib/libclangLex.a [3/285] LINK obj/clang/unittests/Basic/BasicTests [4/285] LINK ./bin/clang-format [5/285] LINK obj/clang/unittests/InstallAPI/InstallAPITests [6/285] LINK obj/clang-tools-extra/unittests/clang-apply-replacements/ClangApplyReplacementsTests [7/285] LINK ./bin/clang-apply-replacements [8/285] LINK obj/clang/unittests/Parse/ParseTests [9/285] LINK obj/clang/unittests/Format/FormatTests [10/285] LINK ./bin/clang-reorder-fields [11/285] LINK obj/clang-tools-extra/unittests/clang-move/ClangMoveTests [12/285] LINK ./bin/clang-change-namespace [13/285] LINK ./bin/clang-include-fixer [14/285] LINK ./bin/pp-trace [15/285] LINK ./bin/find-all-symbols [16/285] LINK obj/clang-tools-extra/unittests/clang-include-fixer/find-all-symbols/FindAllSymbolsTests [17/285] LINK ./bin/clang-installapi [18/285] LINK ./bin/clang-doc [19/285] LINK obj/clang/unittests/Lex/LexTests [20/285] LINK obj/clang/unittests/Sema/SemaTests [21/285] LINK ./bin/clang-query [22/285] LINK obj/clang/unittests/Analysis/FlowSensitive/ClangAnalysisFlowSensitiveTests [23/285] LINK ./bin/clang-move [24/285] LINK obj/clang/unittests/Index/IndexTests [25/285] LINK obj/clang-tools-extra/unittests/clang-query/ClangQueryTests [26/285] LINK obj/clang-tools-extra/unittests/clang-doc/ClangDocTests [27/285] LINK ./bin/modularize [28/285] LINK obj/clang-tools-extra/unittests/clang-include-fixer/ClangIncludeFixerTests [29/285] LINK obj/clang/unittests/AST/ASTTests [30/285] LINK obj/clang/unittests/Serialization/SerializationTests [31/285] LINK obj/clang-tools-extra/unittests/clang-change-namespace/ClangChangeNamespaceTests [32/285] LINK obj/clang/unittests/Rewrite/RewriteTests [33/285] LINK ./bin/clang-diff [34/285] LINK ./bin/diagtool [35/285] LINK ./bin/clang-refactor [36/285] LINK obj/clang/unittests/StaticAnalyzer/StaticAnalysisTests [37/285] LINK obj/clang/unittests/ASTMatchers/Dynamic/DynamicASTMatchersTests [38/285] LINK obj/clang/unittests/ASTMatchers/ASTMatchersTests [39/285] LINK obj/clang-tools-extra/unittests/clang-tidy/ClangTidyTests [40/285] LINK obj/clang/unittests/AST/ByteCode/InterpTests [41/285] LINK obj/clang/unittests/Support/ClangSupportTests [42/285] LINK ./bin/clang-scan-deps [43/285] LINK ./bin/clang-extdef-mapping [44/285] LINK obj/clang/unittests/CrossTU/CrossTUTests [45/285] LINK obj/clang/unittests/Tooling/Syntax/SyntaxTests [46/285] LINK obj/clang/unittests/Analysis/ClangAnalysisTests [47/285] LINK ./bin/dexp [48/285] LINK ./bin/clang-import-test [49/285] LINK obj/clang/unittests/CodeGen/ClangCodeGenTests [50/285] LINK obj/clang/unittests/Frontend/FrontendTests [51/285] LINK obj/clang/unittests/Interpreter/ExceptionTests/ClangReplInterpreterExceptionTests [52/285] LINK ./bin/lldb-server [53/285] LINK obj/clang/unittests/Driver/ClangDriverTests [54/285] LINK obj/clang-tools-extra/clangd/unittests/ClangdTests [55/285] LINK ./bin/clangd [56/285] LINK ./bin/clang-tidy [57/285] LINK ./bin/clangd-indexer [58/285] LINK ./bin/clang [59/285] ACTION //clang/tools/driver:clang-cpp(//llvm/utils/gn/build/toolchain:unix) [60/285] ACTION //clang/tools/driver:clang-cl(//llvm/utils/gn/build/toolchain:unix) [61/285] ACTION //clang/tools/driver:clangxx(//llvm/utils/gn/build/toolchain:unix) [62/285] LINK obj/clang/unittests/Tooling/ToolingTests [63/285] ACTION //compiler-rt/test/hwasan:lit_site_cfg(//llvm/utils/gn/build/toolchain:stage2_unix) [64/285] ACTION //compiler-rt/test:lit_common_configured(//llvm/utils/gn/build/toolchain:stage2_unix) [65/285] ACTION //compiler-rt/test/asan:lit_site_cfg(//llvm/utils/gn/build/toolchain:stage2_unix) [66/285] ACTION //compiler-rt/test/lsan:asan_mode_cfg(//llvm/utils/gn/build/toolchain:stage2_unix) [67/285] ACTION //libcxx/src:cxx_symlink(//llvm/utils/gn/build/toolchain:stage2_unix) [68/285] ACTION //llvm/include/llvm/Config:llvm-config(//llvm/utils/gn/build/toolchain:stage2_unix) [69/252] ACTION //llvm/include/llvm/Config:AsmParsers.def(//llvm/utils/gn/build/toolchain:stage2_unix) [70/252] ACTION //llvm/include/llvm/Config:Disassemblers.def(//llvm/utils/gn/build/toolchain:stage2_unix) [71/252] ACTION //llvm/include/llvm/Support:write_extension_def(//llvm/utils/gn/build/toolchain:stage2_unix) [72/252] LINK ./bin/lldb-test [73/252] ACTION //compiler-rt/test/builtins:builtins_mode_cfg(//llvm/utils/gn/build/toolchain:stage2_unix) [74/252] ACTION //llvm/include/llvm/Config:AsmPrinters.def(//llvm/utils/gn/build/toolchain:stage2_unix) [75/252] ACTION //llvm/include/llvm/Config:TargetExegesis.def(//llvm/utils/gn/build/toolchain:stage2_unix) [76/252] LINK ./bin/clang-check [77/252] ACTION //llvm/include/llvm/Config:abi-breaking(//llvm/utils/gn/build/toolchain:stage2_unix) [78/125] ACTION //llvm/include/llvm/Config:TargetMCAs.def(//llvm/utils/gn/build/toolchain:stage2_unix) [79/125] ACTION //llvm/include/llvm/Config:Targets.def(//llvm/utils/gn/build/toolchain:stage2_unix) [80/125] ACTION //llvm/include/llvm/Support:write_vcsrevision(//llvm/utils/gn/build/toolchain:stage2_unix) [81/125] ACTION //libcxx/src:cxx_linker_script(//llvm/utils/gn/build/toolchain:stage2_unix) [82/125] ACTION //llvm/include/llvm/Config:config(//llvm/utils/gn/build/toolchain:stage2_unix) [83/94] SOLINK ./lib/libclang.so [84/94] LINK ./bin/lldb-dap [85/94] LINK obj/clang/unittests/Interpreter/ClangReplInterpreterTests [86/94] LINK obj/clang/unittests/libclang/libclangTests [87/94] LINK obj/clang/unittests/libclang/CrashTests/libclangCrashTests [88/94] LINK ./bin/clang-repl [89/94] ACTION //compiler-rt/lib/ubsan:version_script(//llvm/utils/gn/build/toolchain:stage2_unix) [90/94] ACTION //compiler-rt/lib/hwasan:version_script(//llvm/utils/gn/build/toolchain:stage2_unix) [91/94] LINK ./bin/c-index-test [92/94] LINK ./bin/lldb [93/94] SOLINK lib/clang/21/lib/linux/libclang_rt.ubsan_standalone-x86_64.so [94/94] SOLINK lib/clang/21/lib/linux/libclang_rt.hwasan_aliases-x86_64.so INFO:2025-04-09T20:02:27Z:root:analyze skipping analyze because previous build was not green INFO:2025-04-09T20:02:27Z:root:testing INFO:2025-04-09T20:02:27Z:root:test check-clang ninja: Entering directory `out/gn' [0/1] ACTION //clang/test:check-clang(//llvm/utils/gn/build/toolchain:unix) llvm-lit: /usr/local/google/home/thakis/src/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using clang: /usr/local/google/home/thakis/src/llvm-project/out/gn/bin/clang llvm-lit: /usr/local/google/home/thakis/src/llvm-project/llvm/utils/lit/lit/llvm/subst.py:126: note: Did not find cir-opt in /usr/local/google/home/thakis/src/llvm-project/out/gn/bin:/usr/local/google/home/thakis/src/llvm-project/out/gn/bin llvm-lit: /usr/local/google/home/thakis/src/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using ld.lld: /usr/local/google/home/thakis/src/llvm-project/out/gn/bin/ld.lld llvm-lit: /usr/local/google/home/thakis/src/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using lld-link: /usr/local/google/home/thakis/src/llvm-project/out/gn/bin/lld-link llvm-lit: /usr/local/google/home/thakis/src/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using ld64.lld: /usr/local/google/home/thakis/src/llvm-project/out/gn/bin/ld64.lld llvm-lit: /usr/local/google/home/thakis/src/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using wasm-ld: /usr/local/google/home/thakis/src/llvm-project/out/gn/bin/wasm-ld -- Testing: 22334 tests, 64 workers -- Testing: 0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. Testing Time: 164.76s Total Discovered Tests: 46953 Skipped : 4 (0.01%) Unsupported : 173 (0.37%) Passed : 46745 (99.56%) Expectedly Failed: 31 (0.07%) INFO:2025-04-09T20:05:25Z:root:test check-clang-tools ninja: Entering directory `out/gn' [0/1] ACTION //clang-tools-extra/test:check-clang-tools(//llvm/utils/gn/build/toolchain:unix) llvm-lit: /usr/local/google/home/thakis/src/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using clang: /usr/local/google/home/thakis/src/llvm-project/out/gn/bin/clang -- Testing: 1190 tests, 64 workers -- Testing: 0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. Testing Time: 10.70s Total Discovered Tests: 1432 Unsupported : 2 (0.14%) Passed : 1429 (99.79%) Expectedly Failed: 1 (0.07%) INFO:2025-04-09T20:05:39Z:root:test check-clangd ninja: Entering directory `out/gn' [0/1] ACTION //clang-tools-extra/clangd/test:check-clangd(//llvm/utils/gn/build/toolchain:unix) llvm-lit: /usr/local/google/home/thakis/src/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using clang: /usr/local/google/home/thakis/src/llvm-project/out/gn/bin/clang -- Testing: 168 tests, 64 workers -- Testing: 0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. Testing Time: 6.40s Total Discovered Tests: 1373 Unsupported: 6 (0.44%) Passed : 1367 (99.56%) INFO:2025-04-09T20:05:46Z:root:test check-hwasan ninja: Entering directory `out/gn' [0/1] ACTION //compiler-rt/test/hwasan:check-hwasan(//llvm/utils/gn/build/toolchain:unix) llvm-lit: /usr/local/google/home/thakis/src/llvm-project/compiler-rt/test/lit.common.cfg.py:60: warning: Path reported by clang does not exist: "/usr/local/google/home/thakis/src/llvm-project/out/gn/lib/clang/21/lib/x86_64-unknown-linux-gnu". This path was found by running ['/usr/local/google/home/thakis/src/llvm-project/out/gn/bin/clang', '--target=x86_64-unknown-linux-gnu', '-print-runtime-dir']. -- Testing: 109 tests, 64 workers -- Testing: 0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. 1 warning(s) in tests Testing Time: 9.14s Total Discovered Tests: 109 Unsupported : 37 (33.94%) Passed : 63 (57.80%) Expectedly Failed: 9 (8.26%) INFO:2025-04-09T20:05:56Z:root:test check-lld ninja: Entering directory `out/gn' [0/1] ACTION //lld/test:check-lld(//llvm/utils/gn/build/toolchain:unix) llvm-lit: /usr/local/google/home/thakis/src/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using ld.lld: /usr/local/google/home/thakis/src/llvm-project/out/gn/bin/ld.lld llvm-lit: /usr/local/google/home/thakis/src/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using lld-link: /usr/local/google/home/thakis/src/llvm-project/out/gn/bin/lld-link llvm-lit: /usr/local/google/home/thakis/src/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using ld64.lld: /usr/local/google/home/thakis/src/llvm-project/out/gn/bin/ld64.lld llvm-lit: /usr/local/google/home/thakis/src/llvm-project/llvm/utils/lit/lit/llvm/config.py:520: note: using wasm-ld: /usr/local/google/home/thakis/src/llvm-project/out/gn/bin/wasm-ld -- Testing: 3078 tests, 64 workers -- Testing: FAIL: lld :: ELF/lto/cache.ll (16 of 3078) ******************** TEST 'lld :: ELF/lto/cache.ll' FAILED ******************** Exit Code: 1 Command Output (stderr): -- rm -rf /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/lld/test/ELF/lto/Output/cache.ll.tmp && mkdir /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/lld/test/ELF/lto/Output/cache.ll.tmp && cd /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/lld/test/ELF/lto/Output/cache.ll.tmp # RUN: at line 5 + rm -rf /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/lld/test/ELF/lto/Output/cache.ll.tmp + mkdir /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/lld/test/ELF/lto/Output/cache.ll.tmp + cd /usr/local/google/home/thakis/src/llvm-project/out/gn/obj/lld/test/ELF/lto/Output/cache.ll.tmp /usr/local/google/home/thakis/src/llvm-project/out/gn/bin/opt -module-hash -module-summary /usr/local/google/home/thakis/src/llvm-project/lld/test/ELF/lto/cache.ll -o a.bc # RUN: at line 6 + /usr/local/google/home/thakis/src/llvm-project/out/gn/bin/opt -module-hash -module-summary /usr/local/google/home/thakis/src/llvm-project/lld/test/ELF/lto/cache.ll -o a.bc /usr/local/google/home/thakis/src/llvm-project/out/gn/bin/opt -module-hash -module-summary /usr/local/google/home/thakis/src/llvm-project/lld/test/ELF/lto/Inputs/cache.ll -o b.bc # RUN: at line 7 + /usr/local/google/home/thakis/src/llvm-project/out/gn/bin/opt -module-hash -module-summary /usr/local/google/home/thakis/src/llvm-project/lld/test/ELF/lto/Inputs/cache.ll -o b.bc mkdir cache # RUN: at line 9 + mkdir cache touch -t 197001011200 cache/llvmcache-foo cache/foo # RUN: at line 12 + touch -t 197001011200 cache/llvmcache-foo cache/foo /usr/local/google/home/thakis/src/llvm-project/out/gn/bin/ld.lld --thinlto-cache-dir=cache --thinlto-cache-policy prune_after=1h:prune_interval=0s -o out b.bc a.bc # RUN: at line 13 + /usr/local/google/home/thakis/src/llvm-project/out/gn/bin/ld.lld --thinlto-cache-dir=cache --thinlto-cache-policy prune_after=1h:prune_interval=0s -o out b.bc a.bc ls cache | /usr/local/google/home/thakis/src/llvm-project/out/gn/bin/count 4 # RUN: at line 16 + ls cache + /usr/local/google/home/thakis/src/llvm-project/out/gn/bin/count 4 "/usr/bin/python3" -c "print(' ' * 65536)" > cache/llvmcache-foo # RUN: at line 19 + /usr/bin/python3 -c 'print('\'' '\'' * 65536)' /usr/local/google/home/thakis/src/llvm-project/out/gn/bin/ld.lld --thinlto-cache-dir=cache --thinlto-cache-policy cache_size_bytes=128k:prune_interval=0s -o out b.bc a.bc # RUN: at line 22 + /usr/local/google/home/thakis/src/llvm-project/out/gn/bin/ld.lld --thinlto-cache-dir=cache --thinlto-cache-policy cache_size_bytes=128k:prune_interval=0s -o out b.bc a.bc ls cache | /usr/local/google/home/thakis/src/llvm-project/out/gn/bin/count 5 # RUN: at line 23 + ls cache + /usr/local/google/home/thakis/src/llvm-project/out/gn/bin/count 5 "/usr/bin/python3" -c 'import os,sys,time; t=time.time()-120; os.utime(sys.argv[1],(t,t))' cache/llvmcache-foo # RUN: at line 27 + /usr/bin/python3 -c 'import os,sys,time; t=time.time()-120; os.utime(sys.argv[1],(t,t))' cache/llvmcache-foo /usr/local/google/home/thakis/src/llvm-project/out/gn/bin/ld.lld --thinlto-cache-dir=cache --thinlto-cache-policy cache_size_bytes=32k:prune_interval=0s -o out b.bc a.bc # RUN: at line 30 + /usr/local/google/home/thakis/src/llvm-project/out/gn/bin/ld.lld --thinlto-cache-dir=cache --thinlto-cache-policy cache_size_bytes=32k:prune_interval=0s -o out b.bc a.bc ls cache | /usr/local/google/home/thakis/src/llvm-project/out/gn/bin/count 4 # RUN: at line 31 + ls cache + /usr/local/google/home/thakis/src/llvm-project/out/gn/bin/count 4 /usr/local/google/home/thakis/src/llvm-project/out/gn/bin/ld.lld --thinlto-cache-dir=cache --thinlto-cache-policy prune_after=0s:cache_size=0%:cache_size_files=0:prune_interval=0s -o out b.bc a.bc # RUN: at line 34 + /usr/local/google/home/thakis/src/llvm-project/out/gn/bin/ld.lld --thinlto-cache-dir=cache --thinlto-cache-policy prune_after=0s:cache_size=0%:cache_size_files=0:prune_interval=0s -o out b.bc a.bc ls cache | /usr/local/google/home/thakis/src/llvm-project/out/gn/bin/count 4 # RUN: at line 35 + ls cache + /usr/local/google/home/thakis/src/llvm-project/out/gn/bin/count 4 /usr/local/google/home/thakis/src/llvm-project/out/gn/bin/ld.lld --thinlto-cache-dir=cache --thinlto-cache-policy prune_after=0s:cache_size=0%:cache_size_files=1:prune_interval=0s -o out b.bc a.bc # RUN: at line 38 + /usr/local/google/home/thakis/src/llvm-project/out/gn/bin/ld.lld --thinlto-cache-dir=cache --thinlto-cache-policy prune_after=0s:cache_size=0%:cache_size_files=1:prune_interval=0s -o out b.bc a.bc warning: ThinLTO cache pruning happens since the number of created files (3) exceeds the maximum number of files (1); consider adjusting --thinlto-cache-policy ls cache | /usr/local/google/home/thakis/src/llvm-project/out/gn/bin/count 3 # RUN: at line 39 + ls cache + /usr/local/google/home/thakis/src/llvm-project/out/gn/bin/count 3 rm -fr cache && mkdir cache # RUN: at line 42 + rm -fr cache + mkdir cache echo xyz > cache/llvmcache-old # RUN: at line 43 + echo xyz touch -t 198002011200 cache/llvmcache-old # RUN: at line 44 + touch -t 198002011200 cache/llvmcache-old echo xyz > cache/llvmcache-newer # RUN: at line 45 + echo xyz touch -t 198002021200 cache/llvmcache-newer # RUN: at line 46 + touch -t 198002021200 cache/llvmcache-newer /usr/local/google/home/thakis/src/llvm-project/out/gn/bin/ld.lld --thinlto-cache-dir=cache --thinlto-cache-policy prune_after=0s:cache_size=0%:cache_size_files=3:prune_interval=0s -o out b.bc a.bc # RUN: at line 47 + /usr/local/google/home/thakis/src/llvm-project/out/gn/bin/ld.lld --thinlto-cache-dir=cache --thinlto-cache-policy prune_after=0s:cache_size=0%:cache_size_files=3:prune_interval=0s -o out b.bc a.bc ls cache | /usr/local/google/home/thakis/src/llvm-project/out/gn/bin/FileCheck /usr/local/google/home/thakis/src/llvm-project/lld/test/ELF/lto/cache.ll # RUN: at line 48 + ls cache + /usr/local/google/home/thakis/src/llvm-project/out/gn/bin/FileCheck /usr/local/google/home/thakis/src/llvm-project/lld/test/ELF/lto/cache.ll /usr/local/google/home/thakis/src/llvm-project/lld/test/ELF/lto/cache.ll:51:10: error: CHECK: expected string not found in input ; CHECK: llvmcache-newer ^ :1:1: note: scanning from here llvmcache-33EDB94701C9EC188DCFCD8C5E071153899BC6F3 ^ Input file: Check file: /usr/local/google/home/thakis/src/llvm-project/lld/test/ELF/lto/cache.ll -dump-input=help explains the following input dump. Input was: <<<<<< 1: llvmcache-33EDB94701C9EC188DCFCD8C5E071153899BC6F3 check:51 X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found 2: llvmcache-6F0F174E6C7C5EFD8C51E8F98CEB9A72365ABFB2 check:51 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3: llvmcache-old check:51 ~~~~~~~~~~~~~~ 4: llvmcache.timestamp check:51 ~~~~~~~~~~~~~~~~~~~~ >>>>>> -- ******************** Testing: 0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. ******************** Failed Tests (1): lld :: ELF/lto/cache.ll Testing Time: 18.51s Total Discovered Tests: 3078 Unsupported : 21 (0.68%) Passed : 3055 (99.25%) Expectedly Failed: 1 (0.03%) Failed : 1 (0.03%) FAILED: gen/lld/test/run-lit python3 bin/llvm-lit -sv ../../lld/test ninja: build stopped: subcommand failed. Command '['ninja', '-C', 'out/gn', 'check-lld']' returned non-zero exit status 1.