sergeibelov113 opened a new issue, #43350: URL: https://github.com/apache/arrow/issues/43350
### Describe the bug, including details regarding any error messages, version, and platform. ### Description Building the project fails with the following error in `util/pcre.h`: /arrow/cpp/re2_ep-prefix/src/re2_ep/util/pcre.h:503:11: error: 'int32_t' does not name a type ### Environment - OS: Docker Alpine 3.20 - Compiler: g++ (Alpine 13.2.1_git20240309) 13.2.1 20240309 - Build System: Ninja ### Steps to Reproduce ``` mkdir /arrow \ && wget -q https://github.com/apache/arrow/archive/apache-arrow-${ARROW_VERSION}.tar.gz -O /tmp/apache-arrow.tar.gz \ && echo "${ARROW_SHA256} *apache-arrow.tar.gz" | sha256sum /tmp/apache-arrow.tar.gz \ && tar -xvf /tmp/apache-arrow.tar.gz -C /arrow --strip-components 1 cd /arrow/cpp \ && cmake --preset ninja-release-python \ && cmake --build . --target install \ ``` ### Suggested Fix Adding `#include <cstdint>` to `util/pcre.h` resolves the issue: `patch -p1 < /arrow/re2_patch.diff` ```cpp diff --git a/util/pcre.h b/util/pcre.h index e69de29..b6f3e31 100644 --- a/util/pcre.h +++ b/util/pcre.h @@ -21,6 +21,7 @@ #include "re2/filtered_re2.h" #include "re2/pod_array.h" #include "re2/stringpiece.h" +#include <cstdint> ``` ```cpp #include <cstdint> ### Component(s) C++ -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@arrow.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org