ninja: Entering directory `out/gn' [1/1] Regenerating ninja files [1/3314] LIB lib/LLVMLanaiDesc.lib [2/3314] STAMP obj/llvm/lib/Target/Mips/MCTargetDesc/MipsGenAsmWriter.stamp [3/3314] STAMP obj/llvm/lib/Target/Mips/MCTargetDesc/MipsGenInstrInfo.stamp [4/3314] STAMP obj/llvm/lib/Target/Mips/MCTargetDesc/MipsGenMCCodeEmitter.stamp [5/3314] STAMP obj/llvm/lib/Target/NVPTX/MCTargetDesc/NVPTXGenAsmWriter.stamp [6/3314] LINK obj/clang/unittests/Basic/BasicTests.exe FAILED: obj/clang/unittests/Basic/BasicTests.exe ../../../chrome/src/third_party/llvm-build/Release+Asserts/bin/lld-link /nologo /OPT:REF /OPT:ICF /STACK:10000000 /pdbaltpath:%_PDB% /Brepro /winsysroot:../../sysroot-3bda71a11e /machine:x64 /out:obj/clang/unittests/Basic/BasicTests.exe /pdb:obj/clang/unittests/Basic/BasicTests.pdb obj/clang/unittests/Basic/BasicTests.CharInfoTest.obj obj/clang/unittests/Basic/BasicTests.DarwinSDKInfoTest.obj obj/clang/unittests/Basic/BasicTests.DiagnosticTest.obj obj/clang/unittests/Basic/BasicTests.FileEntryTest.obj obj/clang/unittests/Basic/BasicTests.FileManagerTest.obj obj/clang/unittests/Basic/BasicTests.LineOffsetMappingTest.obj obj/clang/unittests/Basic/BasicTests.SanitizersTest.obj obj/clang/unittests/Basic/BasicTests.SarifTest.obj obj/clang/unittests/Basic/BasicTests.SourceManagerTest.obj obj/third-party/unittest/UnitTestMain/UnitTestMain.TestMain.obj lib/clangBasic.lib lib/clangLex.lib lib/LLVMSupport.lib lib/LLVMTestingSupport.lib lib/LLVMOption.lib lib/LLVMSupportBlake3.lib lib/LLVMDemangle.lib lib/LLVMTargetParser.lib lib/gtest.lib ntdll.lib ws2_32.lib delayimp.lib lld-link: error: undefined symbol: __declspec(dllimport) public: static class llvm::iterator_range::iterator> __cdecl llvm::Registry::entries(void) >>> referenced by clangLex.lib(Lex.Pragma.obj):(private: void __cdecl clang::Preprocessor::RegisterBuiltinPragmas(void)) lld-link: error: undefined symbol: __declspec(dllimport) public: static class llvm::iterator_range::iterator> __cdecl llvm::Registry::entries(void) >>> referenced by clangBasic.lib(Basic.ParsedAttrInfo.obj):(class std::list>, class std::allocator>>> const & __cdecl clang::getAttributePluginInstances(void)) [7/3314] LINK ./bin/clang-format.exe FAILED: bin/clang-format.exe ../../../chrome/src/third_party/llvm-build/Release+Asserts/bin/lld-link /nologo /OPT:REF /OPT:ICF /STACK:10000000 /pdbaltpath:%_PDB% /Brepro /winsysroot:../../sysroot-3bda71a11e /machine:x64 /out:./bin/clang-format.exe /pdb:./bin/clang-format.pdb obj/clang/tools/clang-format/clang-format.ClangFormat.obj lib/clangBasic.lib lib/clangFormat.lib lib/clangRewrite.lib lib/clangToolingCore.lib lib/LLVMSupport.lib lib/LLVMOption.lib lib/LLVMSupportBlake3.lib lib/LLVMDemangle.lib lib/LLVMTargetParser.lib lib/clangLex.lib lib/clangToolingInclusions.lib ntdll.lib ws2_32.lib delayimp.lib lld-link: error: undefined symbol: __declspec(dllimport) public: static class llvm::iterator_range::iterator> __cdecl llvm::Registry::entries(void) >>> referenced by clangLex.lib(Lex.Pragma.obj):(private: void __cdecl clang::Preprocessor::RegisterBuiltinPragmas(void)) lld-link: error: undefined symbol: __declspec(dllimport) public: static class llvm::iterator_range::iterator> __cdecl llvm::Registry::entries(void) >>> referenced by clangBasic.lib(Basic.ParsedAttrInfo.obj):(class std::list>, class std::allocator>>> const & __cdecl clang::getAttributePluginInstances(void)) [8/3314] STAMP obj/llvm/lib/Target/Mips/MCTargetDesc/tablegen.stamp [9/3314] STAMP obj/llvm/lib/Target/Mips/LLVMMipsCodeGen.inputdeps.stamp [10/3314] ACTION //lldb/test:lit_api_site_cfg(//llvm/utils/gn/build/toolchain:win) FAILED: gen/lldb/test/API/lit.site.cfg.py python3 ../../llvm/utils/gn/build/write_cmake_config.py -o gen/lldb/test/API/lit.site.cfg.py ../../lldb/test/API/lit.site.cfg.py.in "LIT_SITE_CFG_IN_HEADER=## Autogenerated from //lldb/test/API/lit.site.cfg.py.in, do not edit" LLDB_BINARY_DIR=C:/src/llvm-project/out/gn/obj/lldb LLDB_SOURCE_DIR=C:/src/llvm-project/lldb LLVM_BINARY_DIR=C:/src/llvm-project/out/gn/obj/llvm LLVM_LIBS_DIR= LLVM_LIT_TOOLS_DIR= LLVM_SOURCE_DIR=C:/src/llvm-project/llvm LLVM_TOOLS_DIR=C:/src/llvm-project/out/gn/bin Python3_EXECUTABLE=python3 LLVM_TARGET_TRIPLE=x86_64-pc-windows-msvc DEFAULT_SYSROOT= LIBCXX_LIBRARY_DIR=C:/src/llvm-project/out/gn/lib LIBCXX_GENERATED_INCLUDE_DIR=C:/src/llvm-project/out/gn/include/c++/v1 LIBCXX_GENERATED_INCLUDE_TARGET_DIR= LLDB_BUILD_INTEL_PT=0 LLDB_TEST_COMMON_ARGS= LLDB_TEST_USER_ARGS= LLDB_ENABLE_PYTHON=0 LLDB_HAS_LIBCXX=False LLDB_LIBS_DIR= LLDB_TEST_ARCH=x64 LLDB_TEST_COMPILER=C:/src/llvm-project/out/gn/bin/clang LLDB_TEST_BUILD_DIRECTORY=C:/src/llvm-project/out/gn/gen/lldb/test/test_build LLDB_TEST_DSYMUTIL=C:/src/llvm-project/out/gn/bin/dsymutil LLDB_TEST_EXECUTABLE=C:/src/llvm-project/out/gn/bin/lldb LLDB_TEST_MAKE=make LLDB_TEST_MODULE_CACHE_CLANG=C:/src/llvm-project/out/gn/gen/lldb/test/lldb-test-build.noindex/module-cache-clang LLDB_TEST_MODULE_CACHE_LLDB=C:/src/llvm-project/out/gn/gen/lldb/test/lldb-test-build.noindex/module-cache-lldb LLDB_TEST_PLATFORM_URL= LLDB_TEST_PLATFORM_WORKING_DIR= LLDB_TEST_SYSROOT= LLVM_BUILD_MODE=. LLVM_ENABLE_SHARED_LIBS=0 LLVM_HOST_TRIPLE=x86_64-pc-windows-msvc LLVM_INCLUDE_DIR=C:/src/llvm-project/out/gn/include LLVM_USE_SANITIZER= Lua_EXECUTABLE= LLDB_FRAMEWORK_DIR=XXX_framework_dir CMAKE_CXX_COMPILER=c++ HOST_OS=win SHLIBDIR=../../../../bin Traceback (most recent call last): File "C:\src\llvm-project\llvm\utils\gn\build\write_cmake_config.py", line 122, in sys.exit(main()) File "C:\src\llvm-project\llvm\utils\gn\build\write_cmake_config.py", line 72, in main in_line = var_re.sub(repl, in_line) File "C:\src\llvm-project\llvm\utils\gn\build\write_cmake_config.py", line 70, in repl return values[key] KeyError: 'LUA_EXECUTABLE' [11/3314] ACTION //llvm/lib/Target/PowerPC:PPCGenCallingConv(//llvm/utils/gn/build/toolchain:win) [12/3313] CXX obj/llvm/lib/Target/LoongArch/MCTargetDesc/MCTargetDesc.LoongArchMatInt.obj [13/3313] ACTION //llvm/lib/Target/PowerPC:PPCGenRegisterBank(//llvm/utils/gn/build/toolchain:win) [14/3312] ACTION //llvm/lib/Target/PowerPC/MCTargetDesc:PPCGenRegisterInfo(//llvm/utils/gn/build/toolchain:win) [15/3311] CXX obj/llvm/lib/Target/LoongArch/MCTargetDesc/MCTargetDesc.LoongArchBaseInfo.obj [16/3311] ACTION //llvm/lib/Target/PowerPC/Disassembler:PPCGenDisassemblerTables(//llvm/utils/gn/build/toolchain:win) [17/3311] ACTION //llvm/lib/Target/NVPTX/MCTargetDesc:NVPTXGenRegisterInfo(//llvm/utils/gn/build/toolchain:win) [18/3310] ACTION //llvm/lib/Target/PowerPC/MCTargetDesc:PPCGenMCCodeEmitter(//llvm/utils/gn/build/toolchain:win) [19/3310] ACTION //llvm/lib/Target/PowerPC/MCTargetDesc:PPCGenAsmWriter(//llvm/utils/gn/build/toolchain:win) [20/3310] ACTION //llvm/lib/Target/PowerPC/AsmParser:PPCGenAsmMatcher(//llvm/utils/gn/build/toolchain:win) [21/3309] ACTION //llvm/lib/Target/NVPTX/MCTargetDesc:NVPTXGenSubtargetInfo(//llvm/utils/gn/build/toolchain:win) [22/3308] ACTION //llvm/lib/Target/PowerPC/MCTargetDesc:PPCGenSubtargetInfo(//llvm/utils/gn/build/toolchain:win) [23/3307] CXX obj/llvm/lib/Target/LoongArch/MCTargetDesc/MCTargetDesc.LoongArchInstPrinter.obj [24/3307] CXX obj/llvm/lib/Target/LoongArch/MCTargetDesc/MCTargetDesc.LoongArchMCAsmInfo.obj [25/3307] CXX obj/llvm/lib/Target/BPF/GISel/LLVMBPFCodeGen.BPFLegalizerInfo.obj [26/3307] CXX obj/llvm/lib/Target/LoongArch/MCTargetDesc/MCTargetDesc.LoongArchTargetStreamer.obj [27/3307] CXX obj/llvm/lib/Target/LoongArch/MCTargetDesc/MCTargetDesc.LoongArchELFObjectWriter.obj [28/3307] CXX obj/llvm/lib/Target/LoongArch/MCTargetDesc/MCTargetDesc.LoongArchELFStreamer.obj [29/3307] CXX obj/llvm/lib/Target/LoongArch/MCTargetDesc/MCTargetDesc.LoongArchMCExpr.obj [30/3307] ACTION //llvm/lib/Target/PowerPC:PPCGenGlobalISel(//llvm/utils/gn/build/toolchain:win) [31/3307] CXX obj/llvm/lib/Target/LoongArch/MCTargetDesc/MCTargetDesc.LoongArchAsmBackend.obj [32/3307] CXX obj/llvm/lib/Target/LoongArch/MCTargetDesc/MCTargetDesc.LoongArchMCCodeEmitter.obj [33/3307] ACTION //llvm/lib/Target/PowerPC:PPCGenFastISel(//llvm/utils/gn/build/toolchain:win) [34/3306] ACTION //llvm/lib/Target/PowerPC/MCTargetDesc:PPCGenInstrInfo(//llvm/utils/gn/build/toolchain:win) [35/3306] CXX obj/llvm/lib/Target/LoongArch/MCTargetDesc/MCTargetDesc.LoongArchMCTargetDesc.obj [36/3306] ACTION //llvm/lib/Target/NVPTX/MCTargetDesc:NVPTXGenInstrInfo(//llvm/utils/gn/build/toolchain:win) [37/3306] ACTION //llvm/lib/Target/RISCV:RISCVGenMacroFusion(//llvm/utils/gn/build/toolchain:win) [38/3305] ACTION //llvm/lib/Target/PowerPC:PPCGenDAGISel(//llvm/utils/gn/build/toolchain:win) [39/3304] ACTION //llvm/lib/Target/RISCV:RISCVGenO0PreLegalizeGICombiner(//llvm/utils/gn/build/toolchain:win) [40/3303] ACTION //llvm/lib/Target/RISCV:RISCVGenMCPseudoLowering(//llvm/utils/gn/build/toolchain:win) [41/3302] ACTION //llvm/lib/Target/RISCV:RISCVGenCompressInstEmitter(//llvm/utils/gn/build/toolchain:win) [42/3301] ACTION //llvm/lib/Target/RISCV/MCTargetDesc:RISCVGenRegisterInfo(//llvm/utils/gn/build/toolchain:win) [43/3300] ACTION //llvm/lib/Target/RISCV:RISCVGenRegisterBank(//llvm/utils/gn/build/toolchain:win) [44/3299] ACTION //llvm/lib/Target/RISCV/MCTargetDesc:RISCVGenMCCodeEmitter(//llvm/utils/gn/build/toolchain:win) [45/3299] ACTION //llvm/lib/Target/RISCV:RISCVGenPostLegalizeGICombiner(//llvm/utils/gn/build/toolchain:win) [46/3298] ACTION //llvm/lib/Target/RISCV/Disassembler:RISCVGenDisassemblerTables(//llvm/utils/gn/build/toolchain:win) [47/3298] ACTION //llvm/lib/Target/RISCV/MCTargetDesc:RISCVGenAsmWriter(//llvm/utils/gn/build/toolchain:win) [48/3298] ACTION //llvm/lib/Target/RISCV:RISCVGenPreLegalizeGICombiner(//llvm/utils/gn/build/toolchain:win) [49/3298] ACTION //llvm/lib/Target/RISCV/AsmParser:RISCVGenAsmMatcher(//llvm/utils/gn/build/toolchain:win) [50/3297] ACTION //llvm/lib/Target/RISCV/MCTargetDesc:RISCVGenSearchableTables(//llvm/utils/gn/build/toolchain:win) [51/3296] CXX obj/llvm/lib/Target/Mips/AsmParser/AsmParser.MipsAsmParser.obj [52/3296] CXX obj/llvm/lib/Target/BPF/GISel/LLVMBPFCodeGen.BPFInstructionSelector.obj [53/3296] ACTION //llvm/lib/Target/RISCV/MCTargetDesc:RISCVGenInstrInfo(//llvm/utils/gn/build/toolchain:win) [54/3296] ACTION //llvm/lib/Target/RISCV:RISCVGenGlobalISel(//llvm/utils/gn/build/toolchain:win) [55/3296] ACTION //llvm/lib/Target/RISCV:RISCVGenDAGISel(//llvm/utils/gn/build/toolchain:win) ninja: build stopped: subcommand failed. Command '['ninja', '-C', 'out/gn']' returned non-zero exit status 1.