[bug] cmake in (profile) build_requires result in openssl conflict error
See original GitHub issueEnvironment Details (include every applicable attribute)
- Operating System+version: OpenSuse Linux Leap 15.2
- Compiler+version: gcc 10.2.1
- Conan version: 1.36.0
- Python version: 3.6.12
Steps to reproduce (Include if Applicable)
I have the following build_requirements in my profile:
[build_requires]
ninja/1.10.2
cmake/3.20.0
In my top level recipe I have the following requirements:
def requirements(self):
self.requires("zlib/1.2.11")
self.requires("qt/5.15.2")
self.requires("openssl/1.1.1k")
if self.options.doc:
self.requires("doxygen/1.8.20")
When calling conan install on this recipe Conan prints the following conflict:
ERROR: Conflict in cmake/3.20.0:
'cmake/3.20.0' requires 'openssl/1.1.1j' while 'qt/5.15.2' requires 'openssl/1.1.1k'.
To fix this conflict you need to override the package 'openssl' in your root package.
This looks like a bug to me because openssl is already overridden in the root package recipe.
When I downgrade the openssl requirement in my top level recipe to openssl/1.1.1j Conan no longer reports a conflict error.
Logs (Executed commands with output) (Include/Attach if Applicable)
wdobbe@linux-wdobbe:~/build/qtftp> conan install ~/crdata/git/qtftp/ Configuration: [settings] arch=x86_64 arch_build=x86_64 build_type=Release compiler=gcc compiler.cppstd=17 compiler.libcxx=libstdc++11 compiler.version=10 os=Linux os_build=Linux [options] [build_requires] *: ninja/1.10.2, cmake/3.20.0 [env] CC=/usr/bin/gcc-10 CXX=/usr/bin/g+±10 ERROR: Conflict in cmake/3.20.0: ‘cmake/3.20.0’ requires ‘openssl/1.1.1j’ while ‘qt/5.15.2’ requires ‘openssl/1.1.1k’. To fix this conflict you need to override the package ‘openssl’ in your root package.
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (8 by maintainers)

Top Related StackOverflow Question
Hi @czoido Sorry for the late response, the notification got buried under a lot of other notification. I tried your suggestion and that fixes it indeed. Thank you for your help.
Thanks a lot for your comment @jellespijker Those projects look quite interesting and you have done a great job with the conanfile-recipes 👏 Given your explanation, I definitely think it’s a problem related to the graph resolution for your current configuration (it looks like a beautiful corner-case) and it’s something that @memsharded will have to look into.