apache / arrow

Apache Arrow is a multi-language toolbox for accelerated data interchange and in-memory processing
https://arrow.apache.org/
Apache License 2.0
14.24k stars 3.47k forks source link

[C++] [CMake] Missing hiveserver2 ErrorCodes_types #31217

Open asfimport opened 2 years ago

asfimport commented 2 years ago

With cmake preset ninja-release-maximal, one of the auto-generated files seems to be missing and that in turn is resulting in the following error


[96/576] Building CXX object src/arrow/dbi/hiveserver2/CMakeFiles/arrow_hiveserver2_thrift.dir/ErrorCodes_types.cpp.o
FAILED: src/arrow/dbi/hiveserver2/CMakeFiles/arrow_hiveserver2_thrift.dir/ErrorCodes_types.cpp.o 
/usr/bin/ccache /usr/bin/c++ -DARROW_HAVE_RUNTIME_AVX2 -DARROW_HAVE_RUNTIME_AVX512 -DARROW_HAVE_RUNTIME_BMI2 -DARROW_HAVE_RUNTIME_SSE4_2 -DARROW_HAVE_SSE4_2 -DARROW_HDFS -DARROW_JEMALLOC -DARROW_JEMALLOC_INCLUDE_DIR="" -DARROW_MIMALLOC -DARROW_WITH_BROTLI -DARROW_WITH_BZ2 -DARROW_WITH_LZ4 -DARROW_WITH_RE2 -DARROW_WITH_SNAPPY -DARROW_WITH_TIMING_TESTS -DARROW_WITH_UTF8PROC -DARROW_WITH_ZLIB -DARROW_WITH_ZSTD -DURI_STATIC_BUILD -I/home/pradeep/gitroot/ArrowWorkspace/arrow/cpp/build/src -I/home/pradeep/gitroot/ArrowWorkspace/arrow/cpp/src -I/home/pradeep/gitroot/ArrowWorkspace/arrow/cpp/src/generated -isystem /home/pradeep/gitroot/ArrowWorkspace/arrow/cpp/thirdparty/flatbuffers/include -isystem /home/pradeep/gitroot/ArrowWorkspace/arrow/cpp/build/jemalloc_ep-prefix/src -isystem /home/pradeep/gitroot/ArrowWorkspace/arrow/cpp/build/mimalloc_ep/src/mimalloc_ep/include/mimalloc-1.7 -isystem /home/pradeep/gitroot/ArrowWorkspace/arrow/cpp/build/xsimd_ep/src/xsimd_ep-install/include -isystem /home/pradeep/gitroot/ArrowWorkspace/arrow/cpp/build/zstd_ep-install/include -isystem /home/pradeep/gitroot/ArrowWorkspace/arrow/cpp/thirdparty/hadoop/include -isystem /home/pradeep/gitroot/ArrowWorkspace/arrow/cpp/build/orc_ep-install/include -Wno-noexcept-type  -fdiagnostics-color=always -O3 -DNDEBUG  -Wall -fno-semantic-interposition -msse4.2  -O3 -DNDEBUG -fPIC -std=c++11 -Wno-unused-variable -Wno-shadow-field -MD -MT src/arrow/dbi/hiveserver2/CMakeFiles/arrow_hiveserver2_thrift.dir/ErrorCodes_types.cpp.o -MF src/arrow/dbi/hiveserver2/CMakeFiles/arrow_hiveserver2_thrift.dir/ErrorCodes_types.cpp.o.d -o src/arrow/dbi/hiveserver2/CMakeFiles/arrow_hiveserver2_thrift.dir/ErrorCodes_types.cpp.o -c /home/pradeep/gitroot/ArrowWorkspace/arrow/cpp/build/src/arrow/dbi/hiveserver2/ErrorCodes_types.cpp
cc1plus: fatal error: /home/pradeep/gitroot/ArrowWorkspace/arrow/cpp/build/src/arrow/dbi/hiveserver2/ErrorCodes_types.cpp: No such file or directory

I have attached the cmake log of configuration/generation steps.

Environment: Arch Linux 5.16.10; All dependencies are system packages Reporter: Pradeep Garigipati / @9prady9

Original Issue Attachments:

Note: This issue was originally created as ARROW-15774. Please see the migration documentation for further details.

asfimport commented 2 years ago

Antoine Pitrou / @pitrou: I took some time looking at this. It appears that ARROW_HIVESERVER2 is currently completely broken (it probably has been for a long time).

Observations: