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] Version conflict between dependents of spdlog/1.12.0 and mp-units/2.1.0 #24247

Closed
pseudoCode34 opened this issue Jun 6, 2024 · 3 comments · Fixed by #24284
Closed

[bug] Version conflict between dependents of spdlog/1.12.0 and mp-units/2.1.0 #24247

pseudoCode34 opened this issue Jun 6, 2024 · 3 comments · Fixed by #24284
Assignees

Comments

@pseudoCode34
Copy link

pseudoCode34 commented Jun 6, 2024

Describe the bug

Currently, mp-units/1.12.0's dependency is fmt/10.1.0. Meanwhile, the latest {fmt} version,10.2.1 is required by spdlog/2.1.0. Conan's dependency graph should have computed the compatible version requirement of the {fmt} library to satisfy those two. Perhaps, the common 10.1.0 is preferable?

How to reproduce it

  • System: Mac M1
  • Conan version 2.0.14
  • conanfile.txt
[requires]
spdlog/1.12.0
mp-units/2.1.0

[layout]
cmake_layout

[generators]
CMakeToolchain
CMakeDeps
  • Run command conan install conanfile.txt --build=missing
======== Input profiles ========
Profile host:
[settings]
arch=armv8
build_type=Release
compiler=clang
compiler.cppstd=23
compiler.version=17
os=Macos
[conf]
tools.cmake.cmake_layout:build_folder_vars=['settings.compiler', 'settings.compiler.version', 'settings.compiler.cppstd']
tools.build:compiler_executables={'c': '/opt/homebrew/opt/llvm@17/bin/clang', 'cpp': '/opt/homebrew/opt/llvm@17/bin/clang++'}

Profile build:
[settings]
arch=armv8
build_type=Release
compiler=apple-clang
compiler.cppstd=gnu17
compiler.libcxx=libc++
compiler.version=14
os=Macos
[conf]
tools.cmake.cmake_layout:build_folder_vars=['settings.compiler', 'settings.compiler.version', 'settings.compiler.cppstd']


======== Computing dependency graph ========
Graph root
    conanfile.txt: /Users/truong/ray_tracing/conanfile.txt
Requirements
    fmt/10.2.1#9199a7a0611866dea5c8849a77467b25 - Cache
    gsl-lite/0.40.0#18c5739cb0f0cf6ed59a3faaab6cc5e6 - Cache
    mp-units/2.1.0#4c9e21a6ac48b4287d6ee5b761c0a71c - Cache
    spdlog/1.12.0#baf01ff8c9be09bb6cb6c62c1804012c - Cache
Build requirements
    cmake/3.28.1#92f79424d7b65b12a84a2180866c3a78 - Cache
Resolved version ranges
    cmake/[>=3.19 <4]: cmake/3.28.1
ERROR: Version conflict: Conflict between fmt/10.1.0 and fmt/10.2.1 in the graph.
Conflict originates from mp-units/2.1.0

Run conan graph info with your recipe and add --format=html to inspect the graph errors in an easier to visualize way.
@AbrilRBS AbrilRBS self-assigned this Jun 6, 2024
@AbrilRBS
Copy link
Member

AbrilRBS commented Jun 6, 2024

Hi @pseudoCode34 thanks a lot for your report. I'll move this to the proper CCI repo, where we can work on fixing it :)

@AbrilRBS AbrilRBS transferred this issue from conan-io/conan Jun 6, 2024
@AbrilRBS
Copy link
Member

AbrilRBS commented Jun 6, 2024

(Note that for now, Conan Center Index does not use version ranges for most of the libraries, so Cona is not allowed to find a common version. This restriction will be lessened with time once we have enough data to support that version ranges in the context of CCI is a good fit, sorry for the pain it generates meanwhile!)

@pseudoCode34
Copy link
Author

Hi @pseudoCode34 thanks a lot for your report. I'll move this to the proper CCI repo, where we can work on fixing it :)

Happy to help. Hope it get fixed ASAP.

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

Successfully merging a pull request may close this issue.

3 participants