NVIDIA/spark-rapids-jni

[BUG] submodule-sync failed nvcomp_adapter compile

Closed this issue · 2 comments

pxLi commented

Describe the bug
related to rapidsai/cudf#17431


[2024-12-04T03:09:04.696Z] [INFO]      [exec] [ 47%] Building CXX object CMakeFiles/cudf.dir/src/io/comp/nvcomp_adapter.cpp.o

[2024-12-04T03:09:09.936Z] [INFO]      [exec] /home/jenkins/agent/workspace/jenkins-spark-rapids-jni_submodule-sync-dev-4042/thirdparty/cudf/cpp/src/io/comp/nvcomp_adapter.cpp:73:13: error: 'std::string cudf::io::nvcomp::{anonymous}::compression_type_name(cudf::io::nvcomp::compression_type)' defined but not used [-Werror=unused-function]

[2024-12-04T03:09:09.937Z] [INFO]      [exec]    73 | std::string compression_type_name(compression_type compression)

[2024-12-04T03:09:09.937Z] [INFO]      [exec]       |             ^~~~~~~~~~~~~~~~~~~~~

[2024-12-04T03:09:09.937Z] [INFO]      [exec] [ 47%] Building CUDA object CMakeFiles/cudf.dir/src/io/comp/nvcomp_adapter.cu.o

[2024-12-04T03:09:14.099Z] [INFO]      [exec] [ 47%] Building CUDA object CMakeFiles/cudf.dir/src/io/comp/snap.cu.o

[2024-12-04T03:09:16.612Z] [INFO]      [exec] cc1plus: all warnings being treated as errors

[2024-12-04T03:09:16.612Z] [INFO]      [exec] gmake[2]: *** [CMakeFiles/cudf.dir/build.make:2258: CMakeFiles/cudf.dir/src/io/comp/nvcomp_adapter.cpp.o] Error 1

[2024-12-04T03:09:16.612Z] [INFO]      [exec] gmake[2]: *** Waiting for unfinished jobs....

[2024-12-04T03:15:38.093Z] [INFO]      [exec] gmake[1]: *** [CMakeFiles/Makefile2:401: CMakeFiles/cudf.dir/all] Error 2

[2024-12-04T03:15:38.093Z] [INFO]      [exec] gmake: *** [Makefile:156: all] Error 2

Steps/Code to reproduce bug
Please provide a list of steps or a code sample to reproduce the issue.
Avoid posting private or sensitive data.

Expected behavior
A clear and concise description of what you expected to happen.

Environment details (please complete the following information)

  • Environment location: [Standalone, YARN, Kubernetes, Cloud(specify cloud provider)]
  • Spark configuration settings related to the issue

Additional context
Add any other context about the problem here.

jlowe commented

Problem is caused by code being unreferenced when libcudf logging is disabled and the unused warning being treated as an error. Filed rapidsai/cudf#17510.