You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reproduced on macOS ARM64 using GCC 13.3.0, C++17, Release (-O3 -DNDEBUG) and the default -Wall -Werror. GCC was paired with a compatible macOS SDK. The original report refers to GCC 13.3 ARM64; a Linux ARM64 reproduction has not been run locally.
Minimal reproduce step
With GCC 13.3 selected and the platform toolchain configured:
The unmodified src/paimon/core/realtime/arrow_realtime_store_test.cpp fails at the ASSERT_OK_AND_ASSIGN declarations of empty_segment and segment (lines 138 and 184 at the revision above). The diagnostic concerns the shared-pointer payload of std::optional:
error: ... _M_pi ... may be used uninitialized [-Werror=maybe-uninitialized]
cc1plus: all warnings being treated as errors
An isolated compilation of this translation unit with the same Release optimization and warning flags reproduces the failure. Splitting each optional's default construction from the macro assignment compiles successfully without disabling -Werror.
What doesn't meet your expectations?
The Release tests should compile with GCC 13.3 ARM64. This is a build blocker; the compiler diagnostic alone does not establish runtime undefined behavior.
Broader macOS regression also exposes similar optional-related diagnostics in deletion-vector/file-index code, fixed-width integer and temporary-path assumptions in tests, early-year date conversion differences, and a REST mock server that hangs during shutdown because macOS does not wake its blocking accept().
The proposed fix preserves strict project warnings, corrects the portability problems above, and incorporates the macOS ARM64 Release CI coverage from #536 (related issue #535).
Activity