Open ppkowalski opened 3 months ago
Could you use https://github.com/conan-io/conan-center-index/tree/master/recipes/nlohmann_json instead of nlohmann-json3-dev
?
Could you share a list of installed files by google-cloud-cpp?
The overrides are needed, because google-cloud-cpp is requested by arrow in version 1.40.1 which is not supported by conan 2.
Could you report it to the upstream? https://github.com/conan-io/conan-center-index/blob/89d6c8edf50dbccefe84c24cfce45d449debfeb5/recipes/arrow/all/conanfile.py#L179
Could you use https://github.com/conan-io/conan-center-index/tree/master/recipes/nlohmann_json instead of
nlohmann-json3-dev
?
I tried adding explicit dependency to nlohmann_json in my conanfile.py, but it did not help. The problem seems to be in cmake_modules/ThirdpartyToolchain.cmake which tries to install this dependency on its own (unless it is installed by apt). Similar problem applies to google libs, as they are being installed by conan, but ThirdpartyToolchain tries to download sources and compile it on its own
Could you report it to the upstream?
I did so: https://github.com/conan-io/conan-center-index/issues/25011
Could you show full log?
It's strange that ThirdpartyToolchain.cmake
downloads and compile. It must not happen because ARROW_DEPENDENCY_SOURCE=SYSTEM
is used: https://github.com/conan-io/conan-center-index/blob/a848a025cc67040b7d496cd31dc8a58125f160c4/recipes/arrow/all/conanfile.py#L284
With the configuration, it must fail when system dependencies aren't found.
Please find following log files:
conan-json.log which shows arrow install attempt (after other dependencies has been installed) WITHOUT nlohmann-json installed in the system
conan-json-from-cc.log with nlohmann-json/3.11.3 added to the conanfile.py and installed from conan center
conan-google.log after running apt-get install nlohmann-json3-dev
Thanks but they don't include information what I know...
Could you also show the followings?
find /home/ppkowalski/.conan2/p/b/nlohmann_json*
find /home/ppkowalski/.conan2/p/b/google-cloud-cpp*
BTW, the arrow
conan recipe misses nlohmann_json
as a build dependency with "arrow/*:with_gcs": True
. Could you also report it to the upstream?
Please find the files attached:
find /home/ppkowalski/.conan2/p/nlohm*
since it's header only (nothing found in p/b)
nlohmann_json.log
find /home/ppkowalski/.conan2/p/b/googl*/
google.log
Thanks.
find /home/ppkowalski/.conan2/p/nlohm*
since it's header only (nothing found in p/b) nlohmann_json.log
This may be a problem. Could you open a new issue to conan-center-index for adding support for CMake integration? See also: https://github.com/nlohmann/json?tab=readme-ov-file#cmake
find /home/ppkowalski/.conan2/p/b/googl*/
google.log
Hmm. Do you have installed /home/ppkowalski/.conan2/p/b/googl0544eb5499220/b/build/Debug/google/cloud/storage/google_cloud_cpp_storage-config.cmake
? We need to locate it to ${PREFIX}/cmake/google_cloud_cpp_storage/google_cloud_cpp_storage-config.cmake
.
See also: https://cmake.org/cmake/help/latest/command/find_package.html#search-procedure
Describe the bug, including details regarding any error messages, version, and platform.
I am trying to install arrow 17 with conan 2.6.0 on Ubuntu22.04. My conanfile.py:
The overrides are needed, because google-cloud-cpp is requested by arrow in version 1.40.1 which is not supported by conan 2.
However at some point I am getting following error:
I thought about installing nlohmann-json3-dev package using apt on the system (which I prefer not to, since I'd like to install everything with conan), then it goes further, however I am getting another error:
How can I proceed?
Component(s)
Packaging