ninja: Entering directory `out/gn' [1/1] Regenerating ninja files [1/3383] LIB lib/LLVMBinaryFormat.lib [2/3383] 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)) [3/3383] 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)) [4/3383] ACTION //lldb/test:lit_unit_site_cfg(//llvm/utils/gn/build/toolchain:win) FAILED: gen/lldb/test/Unit/lit.site.cfg.py python3 ../../llvm/utils/gn/build/write_cmake_config.py -o gen/lldb/test/Unit/lit.site.cfg.py ../../lldb/test/Unit/lit.site.cfg.py.in "LIT_SITE_CFG_IN_HEADER=## Autogenerated from //lldb/test/Unit/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 LLVM_BUILD_MODE=. 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: 'LLVM_USE_SANITIZER' [5/3383] LIB lib/lldbValueObject.lib [6/3383] CXX obj/llvm/lib/CodeGen/CodeGen.MachineModuleInfoImpls.obj [7/3383] CXX obj/llvm/lib/CodeGen/CodeGen.MachineModuleSlotTracker.obj [8/3383] CXX obj/llvm/lib/CodeGen/CodeGen.MachineFunctionAnalysis.obj [9/3383] CXX obj/llvm/lib/CodeGen/CodeGen.JMCInstrumenter.obj [10/3383] CXX obj/llvm/lib/CodeGen/CodeGen.MIRPrintingPass.obj [11/3383] CXX obj/llvm/lib/CodeGen/CodeGen.MachineStripDebug.obj [12/3383] CXX obj/llvm/lib/CodeGen/CodeGen.ShadowStackGCLowering.obj [13/3383] CXX obj/llvm/lib/CodeGen/CodeGen.LexicalScopes.obj [14/3383] CXX obj/llvm/lib/CodeGen/CodeGen.RemoveRedundantDebugValues.obj [15/3383] CXX obj/llvm/lib/CodeGen/CodeGen.SanitizerBinaryMetadata.obj [16/3383] CXX obj/llvm/lib/CodeGen/CodeGen.MachineModuleInfo.obj [17/3383] CXX obj/llvm/lib/CodeGen/CodeGen.MachineCheckDebugify.obj [18/3383] CXX obj/llvm/lib/CodeGen/CodeGen.PseudoProbeInserter.obj [19/3383] CXX obj/llvm/lib/CodeGen/CodeGen.RegAllocBase.obj [20/3383] CXX obj/llvm/lib/CodeGen/CodeGen.ReplaceWithVeclib.obj [21/3383] CXX obj/llvm/lib/CodeGen/CodeGen.StackMaps.obj [22/3383] CXX obj/llvm/lib/CodeGen/CodeGen.MachineFunctionPass.obj [23/3383] CXX obj/llvm/lib/CodeGen/CodeGen.StackFrameLayoutAnalysisPass.obj [24/3383] CXX obj/llvm/lib/CodeGen/CodeGen.MachineFunctionSplitter.obj [25/3383] CXX obj/llvm/lib/CodeGen/CodeGen.MIRFSDiscriminator.obj [26/3383] CXX obj/llvm/lib/CodeGen/CodeGen.MachinePassManager.obj [27/3383] CXX obj/llvm/lib/CodeGen/CodeGen.MachineConvergenceVerifier.obj [28/3383] CXX obj/llvm/lib/CodeGen/CodeGen.KCFI.obj [29/3383] CXX obj/llvm/lib/CodeGen/CodeGen.MachineDebugify.obj [30/3383] CXX obj/llvm/lib/CodeGen/CodeGen.PreISelIntrinsicLowering.obj [31/3383] CXX obj/llvm/lib/CodeGen/CodeGen.InterleavedAccessPass.obj [32/3383] CXX obj/llvm/lib/CodeGen/CodeGen.LiveIntervals.obj [33/3383] CXX obj/llvm/lib/CodeGen/CodeGen.StackProtector.obj [34/3383] CXX obj/llvm/lib/CodeGen/CodeGen.TargetInstrInfo.obj [35/3383] CXX obj/llvm/lib/CodeGen/CodeGen.StackColoring.obj [36/3383] CXX obj/llvm/lib/CodeGen/CodeGen.PrologEpilogInserter.obj [37/3383] CXX obj/llvm/lib/CodeGen/CodeGen.SelectOptimize.obj [38/3383] CXX obj/llvm/lib/CodeGen/CodeGen.SafeStack.obj [39/3383] CXX obj/llvm/lib/CodeGen/CodeGen.RegAllocGreedy.obj [40/3383] CXX obj/llvm/lib/CodeGen/CodeGen.MachineInstr.obj [41/3383] CXX obj/llvm/lib/CodeGen/CodeGen.MIRPrinter.obj [42/3383] CXX obj/llvm/lib/CodeGen/CodeGen.MIRSampleProfile.obj [43/3383] CXX obj/llvm/lib/CodeGen/CodeGen.MachineFunction.obj [44/3383] CXX obj/llvm/lib/CodeGen/CodeGen.MachineBasicBlock.obj [45/3383] CXX obj/llvm/lib/CodeGen/CodeGen.ModuloSchedule.obj [46/3383] CXX obj/llvm/lib/CodeGen/CodeGen.LiveDebugVariables.obj [47/3383] CXX obj/llvm/lib/CodeGen/CodeGen.MachineSink.obj [48/3383] CXX obj/llvm/lib/CodeGen/CodeGen.MachineOutliner.obj [49/3383] CXX obj/llvm/lib/CodeGen/LiveDebugValues/CodeGen.VarLocBasedImpl.obj [50/3383] CXX obj/llvm/lib/CodeGen/CodeGen.LLVMTargetMachine.obj [51/3383] CXX obj/llvm/lib/CodeGen/LiveDebugValues/CodeGen.InstrRefBasedImpl.obj ninja: build stopped: subcommand failed. Command '['ninja', '-C', 'out/gn']' returned non-zero exit status 1.