You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm finally working on packaging MLIR for Gentoo. The current main seems to work really great, for standalone builds and dylib installation both. However, there's one thing that seems wrong.
I'm using -DLLVM_DISTRIBUTION_COMPONENTS to skip installing the static libraries. However, if I include mlir_c_runner_utils shared library in them, CMake fails:
-- Configuring done (5.1s)
CMake Error: install(EXPORT "MLIRTargets" ...) includes target "mlir_c_runner_utils" which requires target "MLIRSparseTensorEnums" that is not in any export set.
CMake Error: install(EXPORT "MLIRTargets" ...) includes target "mlir_c_runner_utils" which requires target "MLIRSparseTensorRuntime" that is not in any export set.
-- Generating done (3.4s)
CMake Generate step failed. Build files cannot be regenerated correctly.
Please correct me if I'm wrong, but if I understand correctly, MLIRSparseTensorRuntime is only used as an implementation detail of mlir_c_runner_utils and isn't used otherwise. So I don't think it should be necessary to install the static library at all, and something is going wrong within the build system dependencies.
My current (work-in-progress) CMake invocation is the following:
I think the problem is that these linked libraries are specified as PUBLIC, which implies that anything linking to them will also implicitly link to the static libraries. I think PUBLIC is rather an uncommon choice for shared libraries, and PRIVATE should be used instead, i.e.:
I'm finally working on packaging MLIR for Gentoo. The current main seems to work really great, for standalone builds and dylib installation both. However, there's one thing that seems wrong.
I'm using
-DLLVM_DISTRIBUTION_COMPONENTS
to skip installing the static libraries. However, if I includemlir_c_runner_utils
shared library in them, CMake fails:Please correct me if I'm wrong, but if I understand correctly,
MLIRSparseTensorRuntime
is only used as an implementation detail ofmlir_c_runner_utils
and isn't used otherwise. So I don't think it should be necessary to install the static library at all, and something is going wrong within the build system dependencies.My current (work-in-progress) CMake invocation is the following:
The text was updated successfully, but these errors were encountered: