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

[BUG]: CMake changes introduced in PR #502 causes CPM errors fetching UCX in Morpheus #509

Closed
2 tasks done
dagardner-nv opened this issue Oct 23, 2024 · 0 comments · Fixed by #511
Closed
2 tasks done
Labels
bug Something isn't working

Comments

@dagardner-nv
Copy link
Contributor

dagardner-nv commented Oct 23, 2024

Version

24.10

Which installation method(s) does this occur on?

Conda

Describe the bug.

CMake Error at /home/dagardner/work/conda/envs/morpheus/envs/m2/lib/cmake/ucx/ucx-targets.cmake:10 (add_library):
  add_library cannot create imported target "ucx::ucs" because another target
  with the same name already exists.
Call Stack (most recent call first):
  /home/dagardner/work/conda/envs/morpheus/envs/m2/lib/cmake/ucx/ucx-config.cmake:7 (include)
  /home/dagardner/work/conda/envs/morpheus/envs/m2/share/cmake-3.27/Modules/CMakeFindDependencyMacro.cmake:76 (find_package)
  /home/dagardner/work/conda/envs/morpheus/envs/m2/lib/cmake/mrc/mrc-dependencies.cmake:23 (find_dependency)
  /home/dagardner/work/conda/envs/morpheus/envs/m2/lib/cmake/mrc/mrc-config.cmake:68 (include)
  .cache/cpm/cpm/CPM_0.40.0.cmake:249 (find_package)
  .cache/cpm/cpm/CPM_0.40.0.cmake:303 (cpm_find_package)
  build/_deps/rapids-cmake-src/rapids-cmake/cpm/find.cmake:189 (CPMFindPackage)
  external/utilities/cmake/morpheus_utils/package_config/mrc/Configure_mrc.cmake:29 (rapids_cpm_find)
  cmake/dependencies_llm.cmake:28 (morpheus_utils_configure_mrc)
  cmake/dependencies.cmake:80 (include)
  CMakeLists.txt:136 (include)

Minimum reproducible example

Install mrc/libmrc build #14 in Morpheus.
rm -rf .cache
run cmake

Relevant log output

CMake Error at /home/dagardner/work/conda/envs/morpheus/envs/m2/lib/cmake/ucx/ucx-targets.cmake:10 (add_library):
  add_library cannot create imported target "ucx::ucs" because another target
  with the same name already exists.
Call Stack (most recent call first):
  /home/dagardner/work/conda/envs/morpheus/envs/m2/lib/cmake/ucx/ucx-config.cmake:7 (include)
  /home/dagardner/work/conda/envs/morpheus/envs/m2/share/cmake-3.27/Modules/CMakeFindDependencyMacro.cmake:76 (find_package)
  /home/dagardner/work/conda/envs/morpheus/envs/m2/lib/cmake/mrc/mrc-dependencies.cmake:23 (find_dependency)
  /home/dagardner/work/conda/envs/morpheus/envs/m2/lib/cmake/mrc/mrc-config.cmake:68 (include)
  .cache/cpm/cpm/CPM_0.40.0.cmake:249 (find_package)
  .cache/cpm/cpm/CPM_0.40.0.cmake:303 (cpm_find_package)
  build/_deps/rapids-cmake-src/rapids-cmake/cpm/find.cmake:189 (CPMFindPackage)
  external/utilities/cmake/morpheus_utils/package_config/mrc/Configure_mrc.cmake:29 (rapids_cpm_find)
  cmake/dependencies_llm.cmake:28 (morpheus_utils_configure_mrc)
  cmake/dependencies.cmake:80 (include)
  CMakeLists.txt:136 (include)


CMake Error at /home/dagardner/work/conda/envs/morpheus/envs/m2/lib/cmake/ucx/ucx-targets.cmake:17 (add_library):
  add_library cannot create imported target "ucx::ucp" because another target
  with the same name already exists.
Call Stack (most recent call first):
  /home/dagardner/work/conda/envs/morpheus/envs/m2/lib/cmake/ucx/ucx-config.cmake:7 (include)
  /home/dagardner/work/conda/envs/morpheus/envs/m2/share/cmake-3.27/Modules/CMakeFindDependencyMacro.cmake:76 (find_package)
  /home/dagardner/work/conda/envs/morpheus/envs/m2/lib/cmake/mrc/mrc-dependencies.cmake:23 (find_dependency)
  /home/dagardner/work/conda/envs/morpheus/envs/m2/lib/cmake/mrc/mrc-config.cmake:68 (include)
  .cache/cpm/cpm/CPM_0.40.0.cmake:249 (find_package)
  .cache/cpm/cpm/CPM_0.40.0.cmake:303 (cpm_find_package)
  build/_deps/rapids-cmake-src/rapids-cmake/cpm/find.cmake:189 (CPMFindPackage)
  external/utilities/cmake/morpheus_utils/package_config/mrc/Configure_mrc.cmake:29 (rapids_cpm_find)
  cmake/dependencies_llm.cmake:28 (morpheus_utils_configure_mrc)
  cmake/dependencies.cmake:80 (include)
  CMakeLists.txt:136 (include)


CMake Error at /home/dagardner/work/conda/envs/morpheus/envs/m2/lib/cmake/ucx/ucx-targets.cmake:24 (add_library):
  add_library cannot create imported target "ucx::uct" because another target
  with the same name already exists.
Call Stack (most recent call first):
  /home/dagardner/work/conda/envs/morpheus/envs/m2/lib/cmake/ucx/ucx-config.cmake:7 (include)
  /home/dagardner/work/conda/envs/morpheus/envs/m2/share/cmake-3.27/Modules/CMakeFindDependencyMacro.cmake:76 (find_package)
  /home/dagardner/work/conda/envs/morpheus/envs/m2/lib/cmake/mrc/mrc-dependencies.cmake:23 (find_dependency)
  /home/dagardner/work/conda/envs/morpheus/envs/m2/lib/cmake/mrc/mrc-config.cmake:68 (include)
  .cache/cpm/cpm/CPM_0.40.0.cmake:249 (find_package)
  .cache/cpm/cpm/CPM_0.40.0.cmake:303 (cpm_find_package)
  build/_deps/rapids-cmake-src/rapids-cmake/cpm/find.cmake:189 (CPMFindPackage)
  external/utilities/cmake/morpheus_utils/package_config/mrc/Configure_mrc.cmake:29 (rapids_cpm_find)
  cmake/dependencies_llm.cmake:28 (morpheus_utils_configure_mrc)
  cmake/dependencies.cmake:80 (include)
  CMakeLists.txt:136 (include)


CMake Error at /home/dagardner/work/conda/envs/morpheus/envs/m2/lib/cmake/mrc/mrc-dependencies.cmake:34 (add_library):
  add_library cannot create ALIAS target "hwloc::hwloc" because another
  target with the same name already exists.
Call Stack (most recent call first):
  /home/dagardner/work/conda/envs/morpheus/envs/m2/lib/cmake/mrc/mrc-config.cmake:68 (include)
  .cache/cpm/cpm/CPM_0.40.0.cmake:249 (find_package)
  .cache/cpm/cpm/CPM_0.40.0.cmake:303 (cpm_find_package)
  build/_deps/rapids-cmake-src/rapids-cmake/cpm/find.cmake:189 (CPMFindPackage)
  external/utilities/cmake/morpheus_utils/package_config/mrc/Configure_mrc.cmake:29 (rapids_cpm_find)
  cmake/dependencies_llm.cmake:28 (morpheus_utils_configure_mrc)
  cmake/dependencies.cmake:80 (include)
  CMakeLists.txt:136 (include)

Full env printout

No response

Other/Misc.

No response

Code of Conduct

  • I agree to follow MRC's Code of Conduct
  • I have searched the open bugs and have found no duplicates for this bug report
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant