Skip to content

Build failure on main branch. #663

Description

@Menooker

Seems a C++ problem:

/home/username/mlir-extensions/lib/Conversion/XeGPUToSPIRV/XeGPUToSPIRV.cpp: In function ‘void {anonymous}::lookupOrInsertIntrinsic(mlir::ConversionPatternRewriter&, mlir::Operation*, std::string, mlir::FunctionType)’:
/home/username/mlir-extensions/lib/Conversion/XeGPUToSPIRV/XeGPUToSPIRV.cpp:112:54: error: cannot convert ‘mlir::StringAttr’ to ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’}
  112 |                                                      nameAttr, linkageTypeAttr);
      |                                                      ^~~~~~~~
      |                                                      |
      |                                                      mlir::StringAttr
In file included from /home/username/llvm/llvm/../mlir/include/mlir/Dialect/SPIRV/IR/SPIRVAttributes.h:22,
                 from /home/username/llvm/llvm/../mlir/include/mlir/Dialect/SPIRV/IR/SPIRVOps.h:17,
                 from /home/username/mlir-extensions/include/imex/Conversion/XeGPUToSPIRV/XeGPUToSPIRV.h:18,
                 from /home/username/mlir-extensions/lib/Conversion/XeGPUToSPIRV/XeGPUToSPIRV.cpp:15:
/home/username/llvm/build/tools/mlir/include/mlir/Dialect/SPIRV/IR/SPIRVAttributes.h.inc:433:78: note:   initializing argument 2 of ‘static mlir::spirv::LinkageAttributesAttr mlir::spirv::LinkageAttributesAttr::get(mlir::MLIRContext*, std::string, mlir::spirv::LinkageTypeAttr)’
  433 |   static LinkageAttributesAttr get(::mlir::MLIRContext *context, std::string linkage_name, mlir::spirv::LinkageTypeAttr linkage_type);
      |                                                                  ~~~~~~~~~~~~^~~~~~~~~~~~
ninja: build stopped: subcommand failed.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions