Skip to content

Conversation

@tuhaihe
Copy link
Member

@tuhaihe tuhaihe commented Dec 30, 2025

  1. Remove explicit -Werror=pessimizing-move flag from CMakeLists.txt. This flag was added in commit e7e07c2 to catch pessimizing-move warnings on higher GCC versions, but it breaks compilation on GCC 8.x where this warning option does not exist. The fix is safe because GCC 9+ enables -Wpessimizing-move by default and the existing -Werror flag already converts all warnings to errors.

  2. Fix fast_io.cc compatibility issues:

    • Add missing <unistd.h> include for pread()
    • Define uring_likely macro fallback for older liburing versions

See: Issue#1441 #1441

Fixes #1441

What does this PR do?

Type of Change

  • Bug fix (non-breaking change)
  • New feature (non-breaking change)
  • Breaking change (fix or feature with breaking changes)
  • Documentation update

Breaking Changes

Test Plan

  • Unit tests added/updated
  • Integration tests added/updated
  • Passed make installcheck
  • Passed make -C src/test installcheck-cbdb-parallel

Impact

Performance:

User-facing changes:

Dependencies:

Checklist

Additional Context

CI Skip Instructions


1. Remove explicit -Werror=pessimizing-move flag from CMakeLists.txt.
   This flag was added in commit e7e07c2 to catch pessimizing-move
   warnings on higher GCC versions, but it breaks compilation on GCC 8.x
   where this warning option does not exist. The fix is safe because
   GCC 9+ enables -Wpessimizing-move by default and the existing -Werror
   flag already converts all warnings to errors.

2. Fix fast_io.cc compatibility issues:
   - Add missing <unistd.h> include for pread()
   - Define uring_likely macro fallback for older liburing versions

See: Issue#1441 <https://github.com/apache/cloudberry/issues/1441\>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] PAX build error on Rocky Linux 8

1 participant