[
https://issues.apache.org/jira/browse/ARROW-17615?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17600670#comment-17600670
]
Raúl Cumplido commented on ARROW-17615:
---------------------------------------
I was using components as I was replicating what we have on the Cookbooks. I've
pushed a PR on the cookbooks to add the ability to build against Nightlies and
have modified our build there to be compatible with both 9.0.0 and the current
Nightlies. We probably can close this ticket as it seems using COMPONENTS was
never supported (even though in the past the build did not fail if they were
used). Thanks for your support Kou!
Here the cookbooks PR in case you want to take a look:
https://github.com/apache/arrow-cookbook/pull/252/files
> [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
> Labels: pull-request-available
> Time Spent: 1h
> Remaining Estimate: 0h
>
> 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)