Skip to content

[C++] Update bundled RE2 to fix musl/Alpine Linux build failure #48010

@thisisnic

Description

@thisisnic

Arrow currently bundles RE2 version 2022-06-01, which fails to build on musl libc systems (Alpine Linux) with the error:

error: 'int32_t' does not name a type
/arrow/cpp/re2_ep-prefix/src/re2_ep/util/pcre.h:503:11

This affects:

Root cause

RE2's util/pcre.h used int32_t without including <cstdint>. This was fixed upstream in RE2 on January 30, 2023 (commit changed from int32_t to plain int type).

Proposed solution

Update Arrow's bundled RE2 from 2022-06-01 to 2023-03-01:

  • This version includes the fix (any version >= 2023-02-01 would work)
  • 2023-03-01 is the newest version that doesn't require Abseil (dependency added in 2023-06-01)
  • Avoids adding Abseil as a new dependency for R package builds
  • Gets ~9 months of bug fixes over 2022-06-01

References

Component(s)

C++

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions