[
https://issues.apache.org/jira/browse/ARROW-17615?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17600340#comment-17600340
]
Raúl Cumplido commented on ARROW-17615:
---------------------------------------
[~kou] I am not entirely sure why CMake is not setting `Arrow_FOUND` to true on
this case, the ArrowConfig.cmake file is found and it tries to find Arrow, I
was doing some more debugging and libarrow is there:
{code:java}
-- _RELEASE - ARROW_SHARED_LIB:
/home/raulcd/miniconda3/envs/cookbook-cpp-dev/lib/libarrow.so.1000.0.0 {code}
Expected target seems to be Arrow::arrow_shared.
It is also not able to find any of the other components:
{code:java}
-- Searching Component Arrow_dataset
-- Component Arrow_dataset NOT FOUND
-- Searching Component Arrow_flight
-- Component Arrow_flight NOT FOUND
-- Searching Component Arrow_parquet
-- Component Arrow_parquet NOT FOUND
{code}
I suspect there is an issue that was introduced by: ARROW-12175: [C++] Fix
CMake packages
> [CI][Packaging] arrow-cpp on conda nightlies fail finding Arrow package
> -----------------------------------------------------------------------
>
> Key: ARROW-17615
> URL: https://issues.apache.org/jira/browse/ARROW-17615
> Project: Apache Arrow
> Issue Type: Bug
> Reporter: Raúl Cumplido
> Assignee: Raúl Cumplido
> Priority: Critical
>
> Trying to find arrow package using our current nightly arrow-cpp packange on
> conda raises the following:
> {code:java}
> $ cmake . -DCMAKE_BUILD_TYPE=Release
> -- The C compiler identification is GNU 10.4.0
> -- The CXX compiler identification is GNU 10.4.0
> -- Detecting C compiler ABI info
> -- Detecting C compiler ABI info - done
> -- Check for working C compiler:
> /home/raulcd/miniconda3/envs/cookbook-cpp-dev/bin/x86_64-conda-linux-gnu-cc -
> skipped
> -- Detecting C compile features
> -- Detecting C compile features - done
> -- Detecting CXX compiler ABI info
> -- Detecting CXX compiler ABI info - done
> -- Check for working CXX compiler:
> /home/raulcd/miniconda3/envs/cookbook-cpp-dev/bin/x86_64-conda-linux-gnu-c++
> - skipped
> -- Detecting CXX compile features
> -- Detecting CXX compile features - done
> CMake Error at CMakeLists.txt:10 (find_package):
> Found package configuration file:
> /home/raulcd/miniconda3/envs/cookbook-cpp-dev/lib/cmake/Arrow/ArrowConfig.cmake
> but it set Arrow_FOUND to FALSE so package "Arrow" is considered to be NOT
> FOUND.
> -- Configuring incomplete, errors occurred!
> See also "/home/raulcd/code/my-cpp-test/CMakeFiles/CMakeOutput.log".
> {code}
> The CMakeLists.txt file to reproduce is:
> {code:java}
> cmake_minimum_required(VERSION 3.19)
> project(arrow-test)set(CMAKE_CXX_STANDARD 17)
> if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
> set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libstdc++")
> endif()
> # Add Arrow
> find_package(Arrow REQUIRED COMPONENTS dataset flight parquet) {code}
> The conda package was created with the following environment:
> {code:java}
> name: cookbook-cpp-dev
> channels:
> - arrow-nightlies
> - conda-forge
> dependencies:
> - python=3.9
> - compilers
> - arrow-nightlies::arrow-cpp >9
> - sphinx
> - gtest
> - gmock
> - arrow-nightlies::pyarrow >9
> - clang-tools
> {code}
> The compilation is successful when using arrow-cpp 9.0.0 from conda-forge
> instead of using the arrow-nightlies channel.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)