Skip to content

Build failure on the main branch #32

@maekawatoshiki

Description

@maekawatoshiki

Hello.

Following the setup guide in the README, I ran into the error below.
Would you be able to provide a CI workflow (similar to the one in the legacy branch) or a Dockerfile that reproduces the expected environment?

$ uv sync
$ source .venv/bin/activate
$ ./build.sh
[WARNING] MLIR Python modules may not be built. Consider running:
  cd /home/maekawa/work/lython/third_party/llvm-project/build && cmake --build . --target MLIRPythonModules
Using Python: /home/maekawa/work/lython/.venv/bin/python
Using MLIR from: /home/maekawa/work/lython/third_party/llvm-project/build
Configuring Lython with CMake...
-- The CXX compiler identification is GNU 13.3.0
-- The C compiler identification is GNU 13.3.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
CMake Error at CMakeLists.txt:16 (find_package):
  Could not find a package configuration file provided by "MLIR" with any of
  the following names:

    MLIRConfig.cmake
    mlir-config.cmake

  Add the installation prefix of "MLIR" to CMAKE_PREFIX_PATH or set
  "MLIR_DIR" to a directory containing one of the above files.  If "MLIR"
  provides a separate development package or SDK, be sure it has been
  installed.


-- Configuring incomplete, errors occurred!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions