Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need more details in build-guide for meeting python binding error when building buddy-mlir. #351

Open
luoxinkaikevin opened this issue Jul 25, 2024 · 0 comments

Comments

@luoxinkaikevin
Copy link

Is your feature request related to a problem? Please describe.
When I building the buddy-mlir using command as below, we meet the problem.

cmake -G Ninja ..     -DMLIR_DIR=$PWD/../llvm/build/lib/cmake/mlir     -DLLVM_DIR=$PWD/../llvm/build/lib/cmake/llvm     -DLLVM_ENABLE_ASSERTIONS=ON     -DCMAKE_BUILD_TYPE=RELEASE     -DBUDDY_MLIR_ENABLE_PYTHON_PACKAGES=ON     -DPython3_EXECUTABLE=$(which python3)

the error log:

CMake Error at /usr/local/lib/python3.10/dist-packages/cmake/data/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find Python3 (missing: Python3_INCLUDE_DIRS Python3_LIBRARIES
  Development Development.Module Development.Embed) (found suitable version
  "3.10.13", minimum required is "3.10")
Call Stack (most recent call first):
  /usr/local/lib/python3.10/dist-packages/cmake/data/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
  /usr/local/lib/python3.10/dist-packages/cmake/data/share/cmake-3.28/Modules/FindPython/Support.cmake:3867 (find_package_handle_standard_args)
  /usr/local/lib/python3.10/dist-packages/cmake/data/share/cmake-3.28/Modules/FindPython3.cmake:545 (include)
  CMakeLists.txt:216 (find_package)

However, in the continer(with the python3.10 version image), the python3 could work normally. Because we would like to use the buddy.compiler module, the python binding seems to be necessary.

Could you please give me some guide of building buddy-mlir or more help? Thank you very much!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant