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

[C++] Error building Dockerfile with Apache Arrow and re2 on Alpine Linux #41619

Open
MauricioBedunEvig opened this issue May 10, 2024 · 3 comments
Labels
Component: C++ Type: usage Issue is a user question

Comments

@MauricioBedunEvig
Copy link

Describe the usage question you have. Please include as many useful details as possible.

I am trying to build a Docker image that includes installing Apache Arrow from the source, but I am encountering an error related to the re2 library.

https://stackoverflow.com/questions/78462028/error-building-dockerfile-with-apache-arrow-and-re2-on-alpine-linux

Component(s)

C++

@MauricioBedunEvig MauricioBedunEvig added the Type: usage Issue is a user question label May 10, 2024
@MauricioBedunEvig
Copy link
Author

The error message indicates that the specified file does not exist at the given path. This issue seems to arise during the build process of Apache Arrow when it tries to apply a patch to the pcre.h and pcre.cc files.

The context of the error involves a known issue where Findre2.cmake is called multiple times, causing conflicts. I have tried to address this by making Findre2.cmake idempotent with the following lines in the Dockerfile:

However, this does not seem to resolve the issue.

I have also ensured that all necessary dependencies are installed and tried different versions of the libraries, but the problem persists.

Question:

How can I resolve the No such file or directory error related to pcre.h and pcre.cc when building Apache Arrow with re2 on Alpine Linux? Is there a specific step or configuration that I am missing to ensure the re2 library is correctly patched and built?

@kou kou changed the title Error building Dockerfile with Apache Arrow and re2 on Alpine Linux [C++] Error building Dockerfile with Apache Arrow and re2 on Alpine Linux May 11, 2024
@kou
Copy link
Member

kou commented May 11, 2024

Could you show full error message when you remove your sed workaround?

@kou
Copy link
Member

kou commented May 11, 2024

If you think that it's a gRPC's CMake problem, could you report it to gRPC?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: C++ Type: usage Issue is a user question
Projects
None yet
Development

No branches or pull requests

2 participants