[C++] [CMake] Missing hiveserver2 ErrorCodes_types
- Dominant language
- C++
- Stars
- 17.1k
- Forks
- 4.3k
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 91
Description
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
```sh
[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](https://issues.apache.org/jira/browse/ARROW-15774) / @9prady9
#### Original Issue Attachments:
- [cmake_config_generate.log](https://issues.apache.org/jira/secure/attachment/13040425/cmake_config_generate.log)
**Note**: *This issue was originally created as [ARROW-15774](https://issues.apache.org/jira/browse/ARROW-15774). Please see the [migration documentation](https://github.com/apache/arrow/issues/14542) for further details.*
Contributor guide
Research direction
Start by reproducing the `ninja-release-maximal` build and reading `cmake_config_generate.log`. Trace how `src/arrow/dbi/hiveserver2/ErrorCodes_types.cpp` is expected to be generated and compare that expectation with the generated build tree. Done means the preset creates the file and the `arrow_hiveserver2_thrift` target builds successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cmake, cpp
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100