Skip to content

Issue building lapis with recipe B #101

@bartgol

Description

@bartgol

I am trying to build LAPIS using the recipe B (as I need torch-mlir). My cmake config script follows what's posted in the README, but I get the error

CMake Error at cmake/modules/TableGen.cmake:21 (message):
  MLIR_TABLEGEN_EXE not set
Call Stack (most recent call first):
  /home/lbertag/workdir/libs/lapis/mpact-compiler/externals/torch-mlir/externals/llvm-project/mlir/cmake/modules/AddMLIR.cmake:5 (tablegen)
  /home/lbertag/workdir/libs/lapis/mpact-compiler/externals/torch-mlir/include/torch-mlir/Conversion/TorchOnnxToTorch/CMakeLists.txt:2 (mlir_tablegen)

I grepped for MLIR_TABLEGEN_EXE, and found that it is set in externals/torch-mlir/externals/llvm-project/flang/CMakeLists.txt by find_program via

  find_program(MLIR_TABLEGEN_EXE "mlir-tblgen" ${LLVM_TOOLS_BINARY_DIR}
    NO_DEFAULT_PATH)

Am I supposed to build LLVM's tools before running the cmake config script? If so, how? Or am I supposed to install some pip package for mlir tools?

Metadata

Metadata

Assignees

No one assigned

    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