ninja: Entering directory `out/gn' [1/325] CXX obj/llvm/lib/Target/AMDGPU/LLVMAMDGPUCodeGen.R600MCInstLower.o FAILED: obj/llvm/lib/Target/AMDGPU/LLVMAMDGPUCodeGen.R600MCInstLower.o ../../../chrome/src/third_party/llvm-build/Release+Asserts/bin/clang++ -MMD -MF obj/llvm/lib/Target/AMDGPU/LLVMAMDGPUCodeGen.R600MCInstLower.o.d -o obj/llvm/lib/Target/AMDGPU/LLVMAMDGPUCodeGen.R600MCInstLower.o -c ../../llvm/lib/Target/AMDGPU/R600MCInstLower.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 -O3 -fdiagnostics-color -Wall -Wextra -Wno-unused-parameter -Wdelete-non-virtual-dtor -Wstring-conversion -no-canonical-prefixes -Werror=date-time -fdebug-compilation-dir=. --sysroot=../../sysroot -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/R600MCInstLower.cpp:15: ../../llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:28:3: error: unknown type name 'MCContext'; did you mean 'llvm::MCContext'? 28 | MCContext &Ctx; | ^~~~~~~~~ | llvm::MCContext ../../llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:24:7: note: 'llvm::MCContext' declared here 24 | class MCContext; | ^ ../../llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:29:9: error: unknown type name 'TargetSubtargetInfo'; did you mean 'llvm::TargetSubtargetInfo'? 29 | const TargetSubtargetInfo &ST; | ^~~~~~~~~~~~~~~~~~~ | llvm::TargetSubtargetInfo ../../llvm/include/llvm/Target/TargetMachine.h:64:7: note: 'llvm::TargetSubtargetInfo' declared here 64 | class TargetSubtargetInfo; | ^ In file included from ../../llvm/lib/Target/AMDGPU/R600MCInstLower.cpp:15: ../../llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:30:9: error: unknown type name 'AsmPrinter'; did you mean 'llvm::AsmPrinter'? 30 | const AsmPrinter ≈ | ^~~~~~~~~~ | llvm::AsmPrinter ../../llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:23:7: note: 'llvm::AsmPrinter' declared here 23 | class AsmPrinter; | ^ ../../llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:33:21: error: unknown type name 'MCContext'; did you mean 'llvm::MCContext'? 33 | AMDGPUMCInstLower(MCContext &ctx, const TargetSubtargetInfo &ST, | ^~~~~~~~~ | llvm::MCContext ../../llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:24:7: note: 'llvm::MCContext' declared here 24 | class MCContext; | ^ ../../llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:33:43: error: unknown type name 'TargetSubtargetInfo'; did you mean 'llvm::TargetSubtargetInfo'? 33 | AMDGPUMCInstLower(MCContext &ctx, const TargetSubtargetInfo &ST, | ^~~~~~~~~~~~~~~~~~~ | llvm::TargetSubtargetInfo ../../llvm/include/llvm/Target/TargetMachine.h:64:7: note: 'llvm::TargetSubtargetInfo' declared here 64 | class TargetSubtargetInfo; | ^ In file included from ../../llvm/lib/Target/AMDGPU/R600MCInstLower.cpp:15: ../../llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:34:27: error: unknown type name 'AsmPrinter'; did you mean 'llvm::AsmPrinter'? 34 | const AsmPrinter &AP); | ^~~~~~~~~~ | llvm::AsmPrinter ../../llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:23:7: note: 'llvm::AsmPrinter' declared here 23 | class AsmPrinter; | ^ ../../llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:36:27: error: unknown type name 'MachineOperand'; did you mean 'llvm::MachineOperand'? 36 | bool lowerOperand(const MachineOperand &MO, MCOperand &MCOp) const; | ^~~~~~~~~~~~~~ | llvm::MachineOperand ../../llvm/include/llvm/CodeGen/MachineStableHash.h:24:7: note: 'llvm::MachineOperand' declared here 24 | class MachineOperand; | ^ In file included from ../../llvm/lib/Target/AMDGPU/R600MCInstLower.cpp:15: ../../llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:36:47: error: unknown type name 'MCOperand'; did you mean 'llvm::MCOperand'? 36 | bool lowerOperand(const MachineOperand &MO, MCOperand &MCOp) const; | ^~~~~~~~~ | llvm::MCOperand ../../llvm/include/llvm/MC/MCInst.h:40:7: note: 'llvm::MCOperand' declared here 40 | class MCOperand { | ^ In file included from ../../llvm/lib/Target/AMDGPU/R600MCInstLower.cpp:15: ../../llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:39:20: error: unknown type name 'MachineInstr'; did you mean 'llvm::MachineInstr'? 39 | void lower(const MachineInstr *MI, MCInst &OutMI) const; | ^~~~~~~~~~~~ | llvm::MachineInstr ../../llvm/include/llvm/Target/TargetMachine.h:41:7: note: 'llvm::MachineInstr' declared here 41 | class MachineInstr; | ^ In file included from ../../llvm/lib/Target/AMDGPU/R600MCInstLower.cpp:15: ../../llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:39:38: error: unknown type name 'MCInst'; did you mean 'llvm::MCInst'? 39 | void lower(const MachineInstr *MI, MCInst &OutMI) const; | ^~~~~~ | llvm::MCInst ../../llvm/include/llvm/MC/MCStreamer.h:48:7: note: 'llvm::MCInst' declared here 48 | class MCInst; | ^ In file included from ../../llvm/lib/Target/AMDGPU/R600MCInstLower.cpp:15: ../../llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:41:32: error: unknown type name 'MachineInstr'; did you mean 'llvm::MachineInstr'? 41 | void lowerT16D16Helper(const MachineInstr *MI, MCInst &OutMI) const; | ^~~~~~~~~~~~ | llvm::MachineInstr ../../llvm/include/llvm/Target/TargetMachine.h:41:7: note: 'llvm::MachineInstr' declared here 41 | class MachineInstr; | ^ In file included from ../../llvm/lib/Target/AMDGPU/R600MCInstLower.cpp:15: ../../llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:41:50: error: unknown type name 'MCInst'; did you mean 'llvm::MCInst'? 41 | void lowerT16D16Helper(const MachineInstr *MI, MCInst &OutMI) const; | ^~~~~~ | llvm::MCInst ../../llvm/include/llvm/MC/MCStreamer.h:48:7: note: 'llvm::MCInst' declared here 48 | class MCInst; | ^ In file included from ../../llvm/lib/Target/AMDGPU/R600MCInstLower.cpp:15: ../../llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:45:21: error: unknown type name 'MCExpr'; did you mean 'llvm::MCExpr'? 45 | static inline const MCExpr *lowerAddrSpaceCast(const TargetMachine &TM, | ^~~~~~ | llvm::MCExpr ../../llvm/include/llvm/MC/MCStreamer.h:47:7: note: 'llvm::MCExpr' declared here 47 | class MCExpr; | ^ In file included from ../../llvm/lib/Target/AMDGPU/R600MCInstLower.cpp:15: ../../llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:45:54: error: unknown type name 'TargetMachine'; did you mean 'llvm::TargetMachine'? 45 | static inline const MCExpr *lowerAddrSpaceCast(const TargetMachine &TM, | ^~~~~~~~~~~~~ | llvm::TargetMachine ../../llvm/include/llvm/CodeGen/TargetPassConfig.h:25:7: note: 'llvm::TargetMachine' declared here 25 | class TargetMachine; | ^ In file included from ../../llvm/lib/Target/AMDGPU/R600MCInstLower.cpp:15: ../../llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:46:54: error: unknown type name 'Constant'; did you mean 'llvm::Constant'? 46 | const Constant *CV, | ^~~~~~~~ | llvm::Constant ../../llvm/include/llvm/IR/GlobalVariable.h:34:7: note: 'llvm::Constant' declared here 34 | class Constant; | ^ In file included from ../../llvm/lib/Target/AMDGPU/R600MCInstLower.cpp:15: ../../llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:47:48: error: unknown type name 'MCContext'; did you mean 'llvm::MCContext'? 47 | MCContext &OutContext) { | ^~~~~~~~~ | llvm::MCContext ../../llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:24:7: note: 'llvm::MCContext' declared here 24 | class MCContext; | ^ ../../llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:51:32: error: unknown type name 'AMDGPUTargetMachine'; did you mean 'llvm::AMDGPUTargetMachine'? 51 | auto &AT = static_cast(TM); | ^~~~~~~~~~~~~~~~~~~ | llvm::AMDGPUTargetMachine ../../llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.h:30:7: note: 'llvm::AMDGPUTargetMachine' declared here 30 | class AMDGPUTargetMachine : public CodeGenTargetMachineImpl { | ^ In file included from ../../llvm/lib/Target/AMDGPU/R600MCInstLower.cpp:15: ../../llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:52:23: error: unknown type name 'ConstantExpr'; did you mean 'llvm::ConstantExpr'? 52 | auto *CE = dyn_cast(CV); | ^~~~~~~~~~~~ | llvm::ConstantExpr ../../llvm/include/llvm/IR/Constants.h:1120:7: note: 'llvm::ConstantExpr' declared here 1120 | class ConstantExpr : public Constant { | ^ In file included from ../../llvm/lib/Target/AMDGPU/R600MCInstLower.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] 52 | auto *CE = dyn_cast(CV); | ^ ../../llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:57:32: error: use of undeclared identifier 'Instruction'; did you mean 'llvm::Instruction'? 57 | if (CE && CE->getOpcode() == Instruction::AddrSpaceCast) { | ^~~~~~~~~~~ | llvm::Instruction ../../llvm/include/llvm/IR/PseudoProbe.h:24:7: note: 'llvm::Instruction' declared here 24 | class Instruction; | ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 1 warning and 20 errors generated. [2/325] CXX obj/llvm/lib/Target/AMDGPU/LLVMAMDGPUCodeGen.AMDGPUMCInstLower.o FAILED: obj/llvm/lib/Target/AMDGPU/LLVMAMDGPUCodeGen.AMDGPUMCInstLower.o ../../../chrome/src/third_party/llvm-build/Release+Asserts/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 -O3 -fdiagnostics-color -Wall -Wextra -Wno-unused-parameter -Wdelete-non-virtual-dtor -Wstring-conversion -no-canonical-prefixes -Werror=date-time -fdebug-compilation-dir=. --sysroot=../../sysroot -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'? 28 | MCContext &Ctx; | ^~~~~~~~~ | llvm::MCContext ../../llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:24:7: note: 'llvm::MCContext' declared here 24 | class MCContext; | ^ ../../llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:29:9: error: unknown type name 'TargetSubtargetInfo'; did you mean 'llvm::TargetSubtargetInfo'? 29 | const TargetSubtargetInfo &ST; | ^~~~~~~~~~~~~~~~~~~ | llvm::TargetSubtargetInfo ../../llvm/include/llvm/Target/TargetMachine.h:64:7: note: 'llvm::TargetSubtargetInfo' declared here 64 | 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'? 30 | const AsmPrinter ≈ | ^~~~~~~~~~ | llvm::AsmPrinter ../../llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:23:7: note: 'llvm::AsmPrinter' declared here 23 | class AsmPrinter; | ^ ../../llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:33:21: error: unknown type name 'MCContext'; did you mean 'llvm::MCContext'? 33 | AMDGPUMCInstLower(MCContext &ctx, const TargetSubtargetInfo &ST, | ^~~~~~~~~ | llvm::MCContext ../../llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:24:7: note: 'llvm::MCContext' declared here 24 | class MCContext; | ^ ../../llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:33:43: error: unknown type name 'TargetSubtargetInfo'; did you mean 'llvm::TargetSubtargetInfo'? 33 | AMDGPUMCInstLower(MCContext &ctx, const TargetSubtargetInfo &ST, | ^~~~~~~~~~~~~~~~~~~ | llvm::TargetSubtargetInfo ../../llvm/include/llvm/Target/TargetMachine.h:64:7: note: 'llvm::TargetSubtargetInfo' declared here 64 | 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'? 34 | const AsmPrinter &AP); | ^~~~~~~~~~ | llvm::AsmPrinter ../../llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:23:7: note: 'llvm::AsmPrinter' declared here 23 | class AsmPrinter; | ^ ../../llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:36:27: error: unknown type name 'MachineOperand'; did you mean 'llvm::MachineOperand'? 36 | bool lowerOperand(const MachineOperand &MO, MCOperand &MCOp) const; | ^~~~~~~~~~~~~~ | llvm::MachineOperand ../../llvm/include/llvm/CodeGen/MachineStableHash.h:24:7: note: 'llvm::MachineOperand' declared here 24 | 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'? 36 | bool lowerOperand(const MachineOperand &MO, MCOperand &MCOp) const; | ^~~~~~~~~ | llvm::MCOperand ../../llvm/include/llvm/MC/MCInst.h:40:7: note: 'llvm::MCOperand' declared here 40 | 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'? 39 | void lower(const MachineInstr *MI, MCInst &OutMI) const; | ^~~~~~~~~~~~ | llvm::MachineInstr ../../llvm/include/llvm/Target/TargetMachine.h:41:7: note: 'llvm::MachineInstr' declared here 41 | 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'? 39 | void lower(const MachineInstr *MI, MCInst &OutMI) const; | ^~~~~~ | llvm::MCInst ../../llvm/include/llvm/MC/MCStreamer.h:48:7: note: 'llvm::MCInst' declared here 48 | 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'? 41 | void lowerT16D16Helper(const MachineInstr *MI, MCInst &OutMI) const; | ^~~~~~~~~~~~ | llvm::MachineInstr ../../llvm/include/llvm/Target/TargetMachine.h:41:7: note: 'llvm::MachineInstr' declared here 41 | 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'? 41 | void lowerT16D16Helper(const MachineInstr *MI, MCInst &OutMI) const; | ^~~~~~ | llvm::MCInst ../../llvm/include/llvm/MC/MCStreamer.h:48:7: note: 'llvm::MCInst' declared here 48 | 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'? 45 | static inline const MCExpr *lowerAddrSpaceCast(const TargetMachine &TM, | ^~~~~~ | llvm::MCExpr ../../llvm/include/llvm/MC/MCStreamer.h:47:7: note: 'llvm::MCExpr' declared here 47 | 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'? 45 | static inline const MCExpr *lowerAddrSpaceCast(const TargetMachine &TM, | ^~~~~~~~~~~~~ | llvm::TargetMachine ../../llvm/include/llvm/CodeGen/TargetPassConfig.h:25:7: note: 'llvm::TargetMachine' declared here 25 | 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'? 46 | const Constant *CV, | ^~~~~~~~ | llvm::Constant ../../llvm/include/llvm/IR/GlobalVariable.h:34:7: note: 'llvm::Constant' declared here 34 | 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'? 47 | MCContext &OutContext) { | ^~~~~~~~~ | llvm::MCContext ../../llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:24:7: note: 'llvm::MCContext' declared here 24 | class MCContext; | ^ ../../llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:51:32: error: unknown type name 'AMDGPUTargetMachine'; did you mean 'llvm::AMDGPUTargetMachine'? 51 | auto &AT = static_cast(TM); | ^~~~~~~~~~~~~~~~~~~ | llvm::AMDGPUTargetMachine ../../llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.h:30:7: note: 'llvm::AMDGPUTargetMachine' declared here 30 | 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'? 52 | auto *CE = dyn_cast(CV); | ^~~~~~~~~~~~ | llvm::ConstantExpr ../../llvm/include/llvm/IR/Constants.h:1120:7: note: 'llvm::ConstantExpr' declared here 1120 | 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] 52 | auto *CE = dyn_cast(CV); | ^ ../../llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.h:57:32: error: use of undeclared identifier 'Instruction'; did you mean 'llvm::Instruction'? 57 | if (CE && CE->getOpcode() == Instruction::AddrSpaceCast) { | ^~~~~~~~~~~ | llvm::Instruction ../../llvm/include/llvm/IR/PseudoProbe.h:24:7: note: 'llvm::Instruction' declared here 24 | class Instruction; | ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 1 warning and 20 errors generated. ninja: build stopped: subcommand failed. Command '['ninja', '-C', 'out/gn']' returned non-zero exit status 1.