[llvm] [mlir] [MLIR][Standalone] test Standalone against installed distribution (PR #157944)

Maksim Levental via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 16 08:33:24 PDT 2025


================
@@ -240,6 +243,65 @@ add_custom_target(check-mlir-build-only
 )
 set_target_properties(check-mlir-build-only PROPERTIES FOLDER "MLIR/Tests")
 
+get_property(LLVM_EXPORTS GLOBAL PROPERTY LLVM_EXPORTS)
+get_property(MLIR_EXPORTS GLOBAL PROPERTY MLIR_EXPORTS)
+if(CLANG_ENABLE_CIR)
+  list(APPEND MLIR_EXPORTS cir-opt cir-translate cir-lsp-server)
+endif()
----------------
makslevental wrote:

It's a layering issue in the whole project (or possibly just CIR) then because this is the current error:

```
DLLVM_EXTERNAL_LIT="/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-lit"  -DMLIR_DIR="/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/mlir/mlir-standalone-test-install/lib/cmake/mlir"  -DLLVM_DIR="/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/mlir/mlir-standalone-test-install/lib/cmake/llvm"  -DLLVM_USE_LINKER=lld  -DPython3_EXECUTABLE="/usr/bin/python3"  -DPython_EXECUTABLE="/usr/bin/python3" | tee -a /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/mlir/test/Examples/standalone/Output/test.install-dir.toy.tmp
2025-09-16T06:56:36.4951832Z # executed command: /usr/bin/cmake /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/examples/standalone -G Ninja -DCMAKE_CXX_COMPILER=/opt/llvm/bin/clang++ -DCMAKE_C_COMPILER=/opt/llvm/bin/clang -DLLVM_ENABLE_LIBCXX=OFF -DLLVM_EXTERNAL_LIT=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-lit -DMLIR_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/mlir/mlir-standalone-test-install/lib/cmake/mlir -DLLVM_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/mlir/mlir-standalone-test-install/lib/cmake/llvm -DLLVM_USE_LINKER=lld -DPython3_EXECUTABLE=/usr/bin/python3 -DPython_EXECUTABLE=/usr/bin/python3
2025-09-16T06:56:36.4956077Z # .---command stderr------------
2025-09-16T06:56:36.4956844Z # | CMake Error at /usr/share/cmake-3.28/Modules/CMakeDetermineSystem.cmake:246 (configure_file):
2025-09-16T06:56:36.4957771Z # |   No such file or directory
2025-09-16T06:56:36.4958268Z # | Call Stack (most recent call first):
2025-09-16T06:56:36.4958780Z # |   CMakeLists.txt:2 (project)
2025-09-16T06:56:36.4959174Z # | 
2025-09-16T06:56:36.4959483Z # | 
2025-09-16T06:56:36.4960635Z # | CMake Error at /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/mlir/mlir-standalone-test-install/lib/cmake/mlir/MLIRTargets.cmake:4432 (message):
2025-09-16T06:56:36.4962030Z # |   The imported target "cir-lsp-server" references the file
2025-09-16T06:56:36.4962659Z # | 
2025-09-16T06:56:36.4963607Z # |      "/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/mlir/mlir-standalone-test-install/bin/cir-lsp-server"
2025-09-16T06:56:36.4964887Z # | 
2025-09-16T06:56:36.4965299Z # |   but this file does not exist.  Possible reasons include:
2025-09-16T06:56:36.4965753Z # | 
2025-09-16T06:56:36.4966128Z # |   * The file was deleted, renamed, or moved to another location.
2025-09-16T06:56:36.4966606Z # | 
2025-09-16T06:56:36.4967001Z # |   * An install or uninstall procedure did not complete successfully.
2025-09-16T06:56:36.4967499Z # | 
2025-09-16T06:56:36.4967832Z # |   * The installation package was faulty and contained
2025-09-16T06:56:36.4968249Z # | 
2025-09-16T06:56:36.4969099Z # |      "/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/mlir/mlir-standalone-test-install/lib/cmake/mlir/MLIRTargets.cmake"
2025-09-16T06:56:36.4970134Z # | 
2025-09-16T06:56:36.4970407Z # |   but not all the files it references.
2025-09-16T06:56:36.4971024Z # | 
2025-09-16T06:56:36.4971292Z # | Call Stack (most recent call first):
2025-09-16T06:56:36.4972427Z # |   /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/mlir/mlir-standalone-test-install/lib/cmake/mlir/MLIRConfig.cmake:37 (include)
2025-09-16T06:56:36.4973903Z # |   CMakeLists.txt:9 (find_package)
2025-09-16T06:56:36.4974252Z # | 
```

https://github.com/llvm/llvm-project/pull/157944


More information about the llvm-commits mailing list