ninja: Entering directory `out/gn' [1/3052] LIB lib/LLVMLoongArchDesc.lib [2/3052] STAMP obj/llvm/lib/Target/Mips/MipsGenDAGISel.stamp [3/3052] STAMP obj/llvm/lib/Target/Mips/MipsGenGlobalISel.stamp [4/3052] STAMP obj/llvm/lib/Target/Mips/AsmParser/MipsGenAsmMatcher.stamp [5/3052] STAMP obj/llvm/lib/Target/Mips/MCTargetDesc/MCTargetDesc.inputdeps.stamp [6/3052] STAMP obj/llvm/lib/Target/NVPTX/NVPTXGenDAGISel.stamp [7/3052] STAMP obj/llvm/lib/Target/NVPTX/MCTargetDesc/NVPTXGenAsmWriter.stamp [8/3052] STAMP obj/llvm/lib/Target/NVPTX/MCTargetDesc/NVPTXGenInstrInfo.stamp [9/3052] STAMP obj/llvm/lib/Target/Mips/LLVMMipsCodeGen.inputdeps.stamp [10/3052] 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)) [11/3052] 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)) [12/3052] 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' [13/3052] STAMP obj/llvm/lib/Target/NVPTX/LLVMNVPTXCodeGen.inputdeps.stamp [14/3052] ACTION //llvm/lib/Target/PowerPC:PPCGenCallingConv(//llvm/utils/gn/build/toolchain:win) [15/3051] ACTION //llvm/lib/Target/PowerPC:PPCGenRegisterBank(//llvm/utils/gn/build/toolchain:win) [16/3050] ACTION //llvm/lib/Target/PowerPC/MCTargetDesc:PPCGenRegisterInfo(//llvm/utils/gn/build/toolchain:win) [17/3049] ACTION //llvm/lib/Target/PowerPC/AsmParser:PPCGenAsmMatcher(//llvm/utils/gn/build/toolchain:win) [18/3048] ACTION //llvm/lib/Target/PowerPC/Disassembler:PPCGenDisassemblerTables(//llvm/utils/gn/build/toolchain:win) [19/3047] ACTION //llvm/lib/Target/PowerPC/MCTargetDesc:PPCGenAsmWriter(//llvm/utils/gn/build/toolchain:win) [20/3046] ACTION //llvm/lib/Target/PowerPC/MCTargetDesc:PPCGenMCCodeEmitter(//llvm/utils/gn/build/toolchain:win) [21/3045] ACTION //llvm/lib/Target/PowerPC/MCTargetDesc:PPCGenSubtargetInfo(//llvm/utils/gn/build/toolchain:win) [22/3044] CXX obj/llvm/lib/Target/Mips/MCTargetDesc/MCTargetDesc.MipsABIInfo.obj [23/3044] CXX obj/llvm/lib/Target/Mips/MCTargetDesc/MCTargetDesc.MipsInstPrinter.obj [24/3044] CXX obj/llvm/lib/IR/IR.Intrinsics.obj FAILED: obj/llvm/lib/IR/IR.Intrinsics.obj ../../../chrome/src/third_party/llvm-build/Release+Asserts/bin/clang-cl /nologo /showIncludes /Foobj/llvm/lib/IR/IR.Intrinsics.obj /c ../../llvm/lib/IR/Intrinsics.cpp -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_HAS_EXCEPTIONS=0 -D_UNICODE -DUNICODE -I../../llvm/include -Igen/llvm/include -Igen/llvm/include/llvm/IR -Igen/llvm/include/llvm/IR -Igen/llvm/include/llvm/IR -Igen/llvm/include/llvm/IR -Igen/llvm/include/llvm/IR -Igen/llvm/include/llvm/IR -Igen/llvm/include/llvm/IR -Igen/llvm/include/llvm/IR -Igen/llvm/include/llvm/IR -Igen/llvm/include/llvm/IR -Igen/llvm/include/llvm/IR -Igen/llvm/include/llvm/IR -Igen/llvm/include/llvm/IR -Igen/llvm/include/llvm/IR -Igen/llvm/include/llvm/IR -Igen/llvm/include/llvm/IR -Igen/llvm/include/llvm/IR -Igen/llvm/include/llvm/IR -Igen/llvm/include/llvm/IR -Igen/llvm/include/llvm/IR -Igen/llvm/include/llvm/IR /O2 /Gw /Zc:inline /EHs-c- /W4 -Wno-unused-parameter -Wdelete-non-virtual-dtor -Wstring-conversion -no-canonical-prefixes -Werror=date-time -fmsc-version=1926 /Brepro -fdebug-compilation-dir=. /winsysroot../../sysroot-3bda71a11e -Wcovered-switch-default /std:c++17 /GR- In file included from ../../llvm/lib/IR/Intrinsics.cpp:13: In file included from ../../llvm/include\llvm/IR/Intrinsics.h:18: In file included from ../../llvm/include\llvm/ADT/ArrayRef.h:13: ../../llvm/include\llvm/ADT/SmallVector.h(563,5): error: reference to 'memcpy' is ambiguous 563 | memcpy(reinterpret_cast(this->end()), EltPtr, sizeof(T)); | ^ ../../sysroot-3bda71a11e\VC\Tools\MSVC\14.26.28801\include\vcruntime_string.h(43,15): note: candidate found by name lookup is 'memcpy' 43 | void* __cdecl memcpy( | ^ gen/llvm/include\llvm/IR/IntrinsicEnums.inc(245,5): note: candidate found by name lookup is 'llvm::Intrinsic::memcpy' 245 | memcpy, // llvm.memcpy | ^ In file included from ../../llvm/lib/IR/Intrinsics.cpp:13: In file included from ../../llvm/include\llvm/IR/Intrinsics.h:18: In file included from ../../llvm/include\llvm/ADT/ArrayRef.h:13: ../../llvm/include\llvm/ADT/SmallVector.h(562,14): warning: unused variable 'EltPtr' [-Wunused-variable] 562 | const T *EltPtr = reserveForParamAndGetAddress(Elt); | ^~~~~~ ../../llvm/include\llvm/IR/DataLayout.h(346,20): note: in instantiation of member function 'llvm::SmallVectorTemplateBase::push_back' requested here 346 | AddrSpaces.push_back(PS.AddrSpace); | ^ In file included from ../../llvm/lib/IR/Intrinsics.cpp:13: In file included from ../../llvm/include\llvm/IR/Intrinsics.h:18: In file included from ../../llvm/include\llvm/ADT/ArrayRef.h:13: ../../llvm/include\llvm/ADT/SmallVector.h(520,7): error: reference to 'memcpy' is ambiguous 520 | memcpy(reinterpret_cast(Dest), I, (E - I) * sizeof(T)); | ^ ../../llvm/include\llvm/ADT/SmallVector.h(1097,9): note: in instantiation of function template specialization 'llvm::SmallVectorTemplateBase::uninitialized_move' requested here 1097 | this->uninitialized_move(RHS.begin()+CurSize, RHS.end(), | ^ ../../llvm/include\llvm/ADT/SmallVector.h(1248,27): note: in instantiation of member function 'llvm::SmallVectorImpl::operator=' requested here 1248 | SmallVectorImpl::operator=(::std::move(RHS)); | ^ ../../llvm/include\llvm/IR/DataLayout.h(348,12): note: in instantiation of member function 'llvm::SmallVector::SmallVector' requested here 348 | return AddrSpaces; | ^ ../../sysroot-3bda71a11e\VC\Tools\MSVC\14.26.28801\include\vcruntime_string.h(43,15): note: candidate found by name lookup is 'memcpy' 43 | void* __cdecl memcpy( | ^ gen/llvm/include\llvm/IR/IntrinsicEnums.inc(245,5): note: candidate found by name lookup is 'llvm::Intrinsic::memcpy' 245 | memcpy, // llvm.memcpy | ^ In file included from ../../llvm/lib/IR/Intrinsics.cpp:13: In file included from ../../llvm/include\llvm/IR/Intrinsics.h:18: In file included from ../../llvm/include\llvm/ADT/ArrayRef.h:13: ../../llvm/include\llvm/ADT/SmallVector.h(562,14): warning: unused variable 'EltPtr' [-Wunused-variable] 562 | const T *EltPtr = reserveForParamAndGetAddress(Elt); | ^~~~~~ ../../llvm/lib/IR/Intrinsics.cpp(212,17): note: in instantiation of member function 'llvm::SmallVectorTemplateBase::push_back' requested here 212 | OutputTable.push_back(IITDescriptor::get(IITDescriptor::Void, 0)); | ^ In file included from ../../llvm/lib/IR/Intrinsics.cpp:13: In file included from ../../llvm/include\llvm/IR/Intrinsics.h:18: In file included from ../../llvm/include\llvm/ADT/ArrayRef.h:13: ../../llvm/include\llvm/ADT/SmallVector.h(562,14): warning: unused variable 'EltPtr' [-Wunused-variable] 562 | const T *EltPtr = reserveForParamAndGetAddress(Elt); | ^~~~~~ ../../llvm/lib/IR/Intrinsics.cpp(468,17): note: in instantiation of member function 'llvm::SmallVectorTemplateBase::push_back' requested here 468 | IITValues.push_back(TableVal & 0xF); | ^ In file included from ../../llvm/lib/IR/Intrinsics.cpp:13: In file included from ../../llvm/include\llvm/IR/Intrinsics.h:18: In file included from ../../llvm/include\llvm/ADT/ArrayRef.h:13: ../../llvm/include\llvm/ADT/SmallVector.h(562,14): warning: unused variable 'EltPtr' [-Wunused-variable] 562 | const T *EltPtr = reserveForParamAndGetAddress(Elt); | ^~~~~~ ../../llvm/lib/IR/Intrinsics.cpp(525,12): note: in instantiation of member function 'llvm::SmallVectorTemplateBase::push_back' requested here 525 | Elts.push_back(DecodeFixedType(Infos, Tys, Context)); | ^ In file included from ../../llvm/lib/IR/Intrinsics.cpp:13: In file included from ../../llvm/include\llvm/IR/Intrinsics.h:18: In file included from ../../llvm/include\llvm/ADT/ArrayRef.h:13: ../../llvm/include\llvm/ADT/SmallVector.h(562,14): warning: unused variable 'EltPtr' [-Wunused-variable] 562 | const T *EltPtr = reserveForParamAndGetAddress(Elt); | ^~~~~~ ../../llvm/include\llvm/ADT/SmallVector.h(556,5): note: in instantiation of member function 'llvm::SmallVectorTemplateBase>>::push_back' requested here 556 | push_back(T(std::forward(Args)...)); | ^ ../../llvm/include\llvm/ADT/SmallVector.h(939,20): note: in instantiation of function template specialization 'llvm::SmallVectorTemplateBase>>::growAndEmplaceBack &>' requested here 939 | return this->growAndEmplaceBack(std::forward(Args)...); | ^ ../../llvm/lib/IR/Intrinsics.cpp(773,20): note: in instantiation of function template specialization 'llvm::SmallVectorImpl>>::emplace_back &>' requested here 773 | DeferredChecks.emplace_back(T, InfosRef); | ^ 5 warnings and 2 errors generated. [25/3044] ACTION //llvm/lib/Target/PowerPC:PPCGenFastISel(//llvm/utils/gn/build/toolchain:win) [26/3043] CXX obj/llvm/lib/Target/Mips/MCTargetDesc/MCTargetDesc.MipsNaClELFStreamer.obj [27/3043] ACTION //llvm/lib/Target/PowerPC:PPCGenDAGISel(//llvm/utils/gn/build/toolchain:win) [28/3043] ACTION //llvm/lib/Target/PowerPC/MCTargetDesc:PPCGenInstrInfo(//llvm/utils/gn/build/toolchain:win) [29/3033] ACTION //llvm/lib/Target/PowerPC:PPCGenGlobalISel(//llvm/utils/gn/build/toolchain:win) [30/3033] ACTION //llvm/lib/Target/RISCV:RISCVGenMacroFusion(//llvm/utils/gn/build/toolchain:win) [31/3032] ACTION //llvm/lib/Target/RISCV:RISCVGenRegisterBank(//llvm/utils/gn/build/toolchain:win) [32/3031] ACTION //llvm/lib/Target/RISCV:RISCVGenPostLegalizeGICombiner(//llvm/utils/gn/build/toolchain:win) [33/3030] ACTION //llvm/lib/Target/RISCV:RISCVGenPreLegalizeGICombiner(//llvm/utils/gn/build/toolchain:win) [34/3030] CXX obj/llvm/lib/Target/LoongArch/AsmParser/AsmParser.LoongArchAsmParser.obj [35/3030] ACTION //llvm/lib/Target/RISCV:RISCVGenCompressInstEmitter(//llvm/utils/gn/build/toolchain:win) [36/3029] ACTION //llvm/lib/Target/RISCV/AsmParser:RISCVGenAsmMatcher(//llvm/utils/gn/build/toolchain:win) [37/3029] CXX obj/llvm/lib/Target/Mips/Disassembler/Disassembler.MipsDisassembler.obj [38/3029] ACTION //llvm/lib/Target/RISCV:RISCVGenMCPseudoLowering(//llvm/utils/gn/build/toolchain:win) [39/3028] ACTION //llvm/lib/Target/RISCV/Disassembler:RISCVGenDisassemblerTables(//llvm/utils/gn/build/toolchain:win) [40/3027] ACTION //llvm/lib/Target/RISCV:RISCVGenO0PreLegalizeGICombiner(//llvm/utils/gn/build/toolchain:win) [41/3027] CXX obj/llvm/lib/Target/LoongArch/LLVMLoongArchCodeGen.LoongArchSubtarget.obj [42/3027] CXX obj/llvm/lib/Target/LoongArch/LLVMLoongArchCodeGen.LoongArchRegisterInfo.obj [43/3027] CXX obj/llvm/lib/Target/LoongArch/LLVMLoongArchCodeGen.LoongArchMCInstLower.obj [44/3027] CXX obj/llvm/lib/Target/LoongArch/LLVMLoongArchCodeGen.LoongArchExpandAtomicPseudoInsts.obj [45/3027] CXX obj/llvm/lib/Target/LoongArch/LLVMLoongArchCodeGen.LoongArchFrameLowering.obj [46/3027] CXX obj/llvm/lib/Target/LoongArch/LLVMLoongArchCodeGen.LoongArchDeadRegisterDefinitions.obj [47/3027] CXX obj/llvm/lib/Target/LoongArch/LLVMLoongArchCodeGen.LoongArchMergeBaseOffset.obj [48/3027] CXX obj/llvm/lib/Target/LoongArch/LLVMLoongArchCodeGen.LoongArchOptWInstrs.obj [49/3027] CXX obj/llvm/lib/Target/LoongArch/LLVMLoongArchCodeGen.LoongArchInstrInfo.obj [50/3027] CXX obj/llvm/lib/Target/Mips/LLVMMipsCodeGen.MicroMipsSizeReduction.obj [51/3027] CXX obj/llvm/lib/Target/LoongArch/LLVMLoongArchCodeGen.LoongArchISelDAGToDAG.obj [52/3027] CXX obj/llvm/lib/Target/LoongArch/LLVMLoongArchCodeGen.LoongArchAsmPrinter.obj [53/3027] CXX obj/llvm/lib/Target/LoongArch/LLVMLoongArchCodeGen.LoongArchTargetTransformInfo.obj [54/3027] CXX obj/llvm/lib/Target/LoongArch/LLVMLoongArchCodeGen.LoongArchExpandPseudoInsts.obj [55/3027] CXX obj/llvm/lib/Target/Mips/AsmParser/AsmParser.MipsAsmParser.obj [56/3027] CXX obj/llvm/lib/Target/LoongArch/LLVMLoongArchCodeGen.LoongArchTargetMachine.obj [57/3027] CXX obj/llvm/lib/Target/LoongArch/LLVMLoongArchCodeGen.LoongArchISelLowering.obj [58/3027] ACTION //llvm/lib/Target/RISCV:RISCVGenGlobalISel(//llvm/utils/gn/build/toolchain:win) [59/3027] 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.