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] cmake fails to configure static libcudf due to arrow issues #15714

Closed
jlowe opened this issue May 10, 2024 · 0 comments · Fixed by #15715
Closed

[BUG] cmake fails to configure static libcudf due to arrow issues #15714

jlowe opened this issue May 10, 2024 · 0 comments · Fixed by #15715
Assignees
Labels
bug Something isn't working CMake CMake build issue libcudf Affects libcudf (C++/CUDA) code. Spark Functionality that helps Spark RAPIDS

Comments

@jlowe
Copy link
Member

jlowe commented May 10, 2024

Describe the bug
Configuring the cmake build of libcudf as a static library fails after #15703 with the error:

CMake Error in CMakeLists.txt:
  export called with target "arrow_static" which requires target
  "arrow_array" that is not in any export set.


CMake Error in CMakeLists.txt:
  export called with target "arrow_static" which requires target
  "arrow_compute" that is not in any export set.


CMake Error in CMakeLists.txt:
  export called with target "arrow_static" which requires target
  "arrow_filesystem" that is not in any export set.


CMake Error in CMakeLists.txt:
  export called with target "arrow_static" which requires target "arrow_io"
  that is not in any export set.


CMake Error in CMakeLists.txt:
  export called with target "arrow_static" which requires target "arrow_ipc"
  that is not in any export set.


CMake Error in CMakeLists.txt:
  export called with target "arrow_static" which requires target
  "arrow_memory_pool" that is not in any export set.


CMake Error in CMakeLists.txt:
  export called with target "arrow_static" which requires target "arrow_util"
  that is not in any export set.


CMake Error in CMakeLists.txt:
  export called with target "arrow_static" which requires target
  "arrow_vendored" that is not in any export set.

Steps/Code to reproduce bug

mkdir cpp/build
cd cpp/build
cmake .. -DBUILD_SHARED_LIBS=OFF -DBUILD_TESTS=OFF -DCMAKE_CUDA_ARCHITECTURES=89-real -DCUDF_DEPENDENCY_PIN_MODE=latest -DCUDA_STATIC_RUNTIME=ON -DCUDF_ENABLE_ARROW_S3=OFF -DCUDF_ENABLE_ARROW_PARQUET=ON -DCUDF_USE_ARROW_STATIC=ON -DCUDF_USE_PER_THREAD_DEFAULT_STREAM=ON

Expected behavior
cmake configures successfully. This was the case before the recent Arrow upgrade in #15703.

Environment overview (please complete the following information)
spark-rapids-jni Docker environment. To enter the environment:

git clone --depth 1 https://github.com/NVIDIA/spark-rapids-jni.git
cd spark-rapids-jni
build/run-in-docker
@jlowe jlowe added bug Something isn't working libcudf Affects libcudf (C++/CUDA) code. CMake CMake build issue Spark Functionality that helps Spark RAPIDS labels May 10, 2024
@robertmaynard robertmaynard self-assigned this May 10, 2024
@ttnghia ttnghia linked a pull request May 10, 2024 that will close this issue
3 tasks
rapids-bot bot pushed a commit that referenced this issue May 13, 2024
Correct the CMake logic in arrow so that we can properly build cudf + arrow statically

Fixes #15714

Authors:
  - Robert Maynard (https://github.com/robertmaynard)

Approvers:
  - Nghia Truong (https://github.com/ttnghia)
  - Kyle Edwards (https://github.com/KyleFromNVIDIA)
  - Jake Awe (https://github.com/AyodeAwe)

URL: #15715
@github-project-automation github-project-automation bot moved this from In Progress to Done in cuDF/Dask/Numba/UCX May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working CMake CMake build issue libcudf Affects libcudf (C++/CUDA) code. Spark Functionality that helps Spark RAPIDS
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants