ninja: Entering directory `out/gn' [1/223] CXX obj/llvm/lib/Transforms/InstCombine/InstCombine.InstCombineCasts.o [2/223] AR lib/libLLVMInstCombine.a [3/223] CXX obj/llvm/lib/Target/AMDGPU/LLVMAMDGPUCodeGen.AMDGPUMCInstLower.o FAILED: obj/llvm/lib/Target/AMDGPU/LLVMAMDGPUCodeGen.AMDGPUMCInstLower.o ../../chromeclang/bin/clang++ -MMD -MF obj/llvm/lib/Target/AMDGPU/LLVMAMDGPUCodeGen.AMDGPUMCInstLower.o.d -o obj/llvm/lib/Target/AMDGPU/LLVMAMDGPUCodeGen.AMDGPUMCInstLower.o -c ../../llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.cpp -I../../llvm/lib/Target/AMDGPU -I../../llvm/include -Igen/llvm/include -Igen/llvm/lib/Target/AMDGPU -Igen/llvm/lib/Target/AMDGPU/MCTargetDesc -Igen/llvm/lib/Target/AMDGPU/Utils -Igen/llvm/include/llvm/IR -arch arm64 -isysroot ../../sysroot/MacOSX.sdk -mmacos-version-min=12 -mmacos-version-min=12 -O3 -fdiagnostics-color -Wall -Wextra -Wno-unused-parameter -Wdelete-non-virtual-dtor -Wstring-conversion -no-canonical-prefixes -Werror=date-time -isysroot ../../sysroot/MacOSX.sdk -Wpoison-system-directories -fPIC -Wcovered-switch-default -std=c++17 -fvisibility-inlines-hidden -fno-exceptions -fno-rtti In file included from ../../llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.cpp:15: ../../llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:28:3: error: unknown type name 'MCContext'; did you mean 'llvm::MCContext'? MCContext &Ctx; ^~~~~~~~~ llvm::MCContext ../../llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:24:7: note: 'llvm::MCContext' declared here class MCContext; ^ ../../llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:29:9: error: unknown type name 'TargetSubtargetInfo'; did you mean 'llvm::TargetSubtargetInfo'? const TargetSubtargetInfo &ST; ^~~~~~~~~~~~~~~~~~~ llvm::TargetSubtargetInfo ../../llvm/include/llvm/Target/TargetMachine.h:64:7: note: 'llvm::TargetSubtargetInfo' declared here class TargetSubtargetInfo; ^ In file included from ../../llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.cpp:15: ../../llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:30:9: error: unknown type name 'AsmPrinter'; did you mean 'llvm::AsmPrinter'? const AsmPrinter ≈ ^~~~~~~~~~ llvm::AsmPrinter ../../llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:23:7: note: 'llvm::AsmPrinter' declared here class AsmPrinter; ^ ../../llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:33:21: error: unknown type name 'MCContext'; did you mean 'llvm::MCContext'? AMDGPUMCInstLower(MCContext &ctx, const TargetSubtargetInfo &ST, ^~~~~~~~~ llvm::MCContext ../../llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:24:7: note: 'llvm::MCContext' declared here class MCContext; ^ ../../llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:33:43: error: unknown type name 'TargetSubtargetInfo'; did you mean 'llvm::TargetSubtargetInfo'? AMDGPUMCInstLower(MCContext &ctx, const TargetSubtargetInfo &ST, ^~~~~~~~~~~~~~~~~~~ llvm::TargetSubtargetInfo ../../llvm/include/llvm/Target/TargetMachine.h:64:7: note: 'llvm::TargetSubtargetInfo' declared here class TargetSubtargetInfo; ^ In file included from ../../llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.cpp:15: ../../llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:34:27: error: unknown type name 'AsmPrinter'; did you mean 'llvm::AsmPrinter'? const AsmPrinter &AP); ^~~~~~~~~~ llvm::AsmPrinter ../../llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:23:7: note: 'llvm::AsmPrinter' declared here class AsmPrinter; ^ ../../llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:36:27: error: unknown type name 'MachineOperand'; did you mean 'llvm::MachineOperand'? bool lowerOperand(const MachineOperand &MO, MCOperand &MCOp) const; ^~~~~~~~~~~~~~ llvm::MachineOperand ../../llvm/include/llvm/CodeGen/MachineStableHash.h:24:7: note: 'llvm::MachineOperand' declared here class MachineOperand; ^ In file included from ../../llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.cpp:15: ../../llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:36:47: error: unknown type name 'MCOperand'; did you mean 'llvm::MCOperand'? bool lowerOperand(const MachineOperand &MO, MCOperand &MCOp) const; ^~~~~~~~~ llvm::MCOperand ../../llvm/include/llvm/MC/MCInst.h:40:7: note: 'llvm::MCOperand' declared here class MCOperand { ^ In file included from ../../llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.cpp:15: ../../llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:39:20: error: unknown type name 'MachineInstr'; did you mean 'llvm::MachineInstr'? void lower(const MachineInstr *MI, MCInst &OutMI) const; ^~~~~~~~~~~~ llvm::MachineInstr ../../llvm/include/llvm/Target/TargetMachine.h:41:7: note: 'llvm::MachineInstr' declared here class MachineInstr; ^ In file included from ../../llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.cpp:15: ../../llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:39:38: error: unknown type name 'MCInst'; did you mean 'llvm::MCInst'? void lower(const MachineInstr *MI, MCInst &OutMI) const; ^~~~~~ llvm::MCInst ../../llvm/include/llvm/MC/MCStreamer.h:48:7: note: 'llvm::MCInst' declared here class MCInst; ^ In file included from ../../llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.cpp:15: ../../llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:41:32: error: unknown type name 'MachineInstr'; did you mean 'llvm::MachineInstr'? void lowerT16D16Helper(const MachineInstr *MI, MCInst &OutMI) const; ^~~~~~~~~~~~ llvm::MachineInstr ../../llvm/include/llvm/Target/TargetMachine.h:41:7: note: 'llvm::MachineInstr' declared here class MachineInstr; ^ In file included from ../../llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.cpp:15: ../../llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:41:50: error: unknown type name 'MCInst'; did you mean 'llvm::MCInst'? void lowerT16D16Helper(const MachineInstr *MI, MCInst &OutMI) const; ^~~~~~ llvm::MCInst ../../llvm/include/llvm/MC/MCStreamer.h:48:7: note: 'llvm::MCInst' declared here class MCInst; ^ In file included from ../../llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.cpp:15: ../../llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:45:21: error: unknown type name 'MCExpr'; did you mean 'llvm::MCExpr'? static inline const MCExpr *lowerAddrSpaceCast(const TargetMachine &TM, ^~~~~~ llvm::MCExpr ../../llvm/include/llvm/MC/MCStreamer.h:47:7: note: 'llvm::MCExpr' declared here class MCExpr; ^ In file included from ../../llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.cpp:15: ../../llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:45:54: error: unknown type name 'TargetMachine'; did you mean 'llvm::TargetMachine'? static inline const MCExpr *lowerAddrSpaceCast(const TargetMachine &TM, ^~~~~~~~~~~~~ llvm::TargetMachine ../../llvm/include/llvm/CodeGen/TargetPassConfig.h:25:7: note: 'llvm::TargetMachine' declared here class TargetMachine; ^ In file included from ../../llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.cpp:15: ../../llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:46:54: error: unknown type name 'Constant'; did you mean 'llvm::Constant'? const Constant *CV, ^~~~~~~~ llvm::Constant ../../llvm/include/llvm/IR/GlobalVariable.h:34:7: note: 'llvm::Constant' declared here class Constant; ^ In file included from ../../llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.cpp:15: ../../llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:47:48: error: unknown type name 'MCContext'; did you mean 'llvm::MCContext'? MCContext &OutContext) { ^~~~~~~~~ llvm::MCContext ../../llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:24:7: note: 'llvm::MCContext' declared here class MCContext; ^ ../../llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:51:32: error: unknown type name 'AMDGPUTargetMachine'; did you mean 'llvm::AMDGPUTargetMachine'? auto &AT = static_cast(TM); ^~~~~~~~~~~~~~~~~~~ llvm::AMDGPUTargetMachine ../../llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.h:30:7: note: 'llvm::AMDGPUTargetMachine' declared here class AMDGPUTargetMachine : public CodeGenTargetMachineImpl { ^ In file included from ../../llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.cpp:15: ../../llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:52:23: error: unknown type name 'ConstantExpr'; did you mean 'llvm::ConstantExpr'? auto *CE = dyn_cast(CV); ^~~~~~~~~~~~ llvm::ConstantExpr ../../llvm/include/llvm/IR/Constants.h:1120:7: note: 'llvm::ConstantExpr' declared here class ConstantExpr : public Constant { ^ In file included from ../../llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.cpp:15: ../../llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:52:14: warning: use of function template name with no prior declaration in function call with explicit template arguments is a C++20 extension [-Wc++20-extensions] auto *CE = dyn_cast(CV); ^ ../../llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:57:32: error: use of undeclared identifier 'Instruction'; did you mean 'llvm::Instruction'? if (CE && CE->getOpcode() == Instruction::AddrSpaceCast) { ^~~~~~~~~~~ llvm::Instruction ../../llvm/include/llvm/IR/PseudoProbe.h:24:7: note: 'llvm::Instruction' declared here class Instruction; ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 1 warning and 20 errors generated. [4/223] CXX obj/llvm/lib/Target/AMDGPU/LLVMAMDGPUCodeGen.AMDGPUPrepareAGPRAlloc.o [5/223] LINK obj/llvm/unittests/Target/ARM/ARMTests [6/223] CXX obj/llvm/lib/Target/AMDGPU/LLVMAMDGPUCodeGen.AMDGPUResourceUsageAnalysis.o [7/223] CXX obj/llvm/lib/Target/AMDGPU/LLVMAMDGPUCodeGen.AMDGPUReserveWWMRegs.o [8/223] CXX obj/llvm/lib/Target/AMDGPU/LLVMAMDGPUCodeGen.AMDGPURewriteAGPRCopyMFMA.o [9/223] CXX obj/llvm/lib/Target/AMDGPU/LLVMAMDGPUCodeGen.AMDGPUSubtarget.o [10/223] CXX obj/llvm/lib/Target/AMDGPU/LLVMAMDGPUCodeGen.AMDGPURegisterBankInfo.o [11/223] CXX obj/llvm/lib/Target/AMDGPU/LLVMAMDGPUCodeGen.AMDGPUSplitModule.o [12/223] CXX obj/llvm/lib/Target/AMDGPU/LLVMAMDGPUCodeGen.AMDGPURegBankCombiner.o ninja: build stopped: subcommand failed. Command '['ninja', '-C', 'out/gn']' returned non-zero exit status 1.