Skip to content

[release-7.4] build: on rhel9 based distros, avoid linking GLIBC_2.35 symbols - #14274

Merged
ploxiln merged 3 commits into
apple:release-7.4from
ploxiln:r9_glibc_symver_fix_fdb74
Oct 14, 2026
Merged

ploxiln merged 3 commits into
apple:release-7.4from
ploxiln:r9_glibc_symver_fix_fdb74

Conversation

@ploxiln

@ploxiln ploxiln commented Oct 13, 2026 •

Copy link
Copy Markdown
Collaborator

RHEL 9.x has glibc-2.34, but at various minor releases some glibc-2.35 symbols were backported. The problematic one for us is _dl_find_object@GLIBC_2.35 backported in RHEL 9.7 which causes fdb binaries to fail to start on RHEL 9.6 based systems or containers.

This symbol actually comes from stack-unwinder routines in libgcc_eh.a from the system gcc-11 install, but the gcc-toolset-13 which we sometimes alternately use (instead of our typical custom clang-19.x) is not linked against the rhel-9.7+ glibc-with-backports, so we can use the needed libgcc bits from that instead. This is admittedly not a very thorough fix, just a way to avoid downgrading build systems for now.

Also add a test that unexpected GLIBC_2.35+ symbols do not appear on RHEL 9.x based builds in the future, so we can at least catch it.


I'm testing by minimally running fdb binaries in a rockylinux/rockylinux:9.6 container locally, and also with nm -D:

$ nm -D bin/fdbserver | grep GLIBC_2.35
                 U _dl_find_object@GLIBC_2.35

RHEL 9.x has glibc-2.34, but at various minor releases some
glibc-2.35 symbols were backported. The problematic one for
us is _dl_find_object@GLIBC_2.35 backported in RHEL 9.7 which
causes fdb binaries to fail to start on RHEL 9.6 based systems
or containers.

This symbol actually comes from stack-unwider routines in libgcc_eh.a
from the system gcc-11 install, but the gcc-toolset-13 which we
sometimes alternately use (instead of our typical custom clang-19.x)
is not linked against the new glibc-with-backports so we can use
the needed libgcc bits from that instead. This is admittedly not a
very thorough fix, just a way to avoid downgrading build systems for now.

Also add a test that unexpected GLIBC_2.35+ symbols do not appear
on RHEL 9.x based builds in the future, so we can at least catch it.
@ploxiln
ploxiln requested a review from spraza as a code owner October 13, 2026 16:00
@foundationdb-ci

This comment has been minimized.

@ploxiln

ploxiln commented Oct 13, 2026

Copy link
Copy Markdown
Collaborator Author

spurious:

98% tests passed, 1 tests failed out of 58

Total Test time (real) = 255.21 sec

The following tests FAILED:
      2 - single_process_fdbcli_tests (Failed)
Errors while running CTest

@foundationdb-ci

This comment has been minimized.

@foundationdb-ci

This comment has been minimized.

@foundationdb-ci

This comment has been minimized.

restartable-sequences is a pretty fancy new-ish linux feature
which we do not use and our libraries are unlikely to as well
@foundationdb-ci

This comment has been minimized.

@foundationdb-ci

This comment has been minimized.

@ploxiln ploxiln changed the title build: on rhel9 based distros, avoid linking GLIBC_2.35 symbols [release-7.4] build: on rhel9 based distros, avoid linking GLIBC_2.35 symbols Oct 13, 2026

@saintstack saintstack left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(I asked local LLM and it said it good)

@foundationdb-ci

This comment has been minimized.

@foundationdb-ci

This comment has been minimized.

@foundationdb-ci

This comment has been minimized.

@foundationdb-ci

This comment has been minimized.

@foundationdb-ci

This comment has been minimized.

@foundationdb-ci

This comment has been minimized.

@foundationdb-ci

Copy link
Copy Markdown
Contributor

Result of foundationdb-pr-clang on Linux RHEL 9

  • Commit ID: 20ced6b
  • Duration 0:36:45
  • Result: ✅ SUCCEEDED
  • Error: N/A
  • Build Log terminal output (available for 30 days)
  • Build Workspace zip file of the working directory (available for 30 days)

@foundationdb-ci

Copy link
Copy Markdown
Contributor

Result of foundationdb-pr on Linux RHEL 9

  • Commit ID: 20ced6b
  • Duration 0:43:49
  • Result: ✅ SUCCEEDED
  • Error: N/A
  • Build Log terminal output (available for 30 days)
  • Build Workspace zip file of the working directory (available for 30 days)

@foundationdb-ci

Copy link
Copy Markdown
Contributor

Result of foundationdb-pr-clang-arm on Linux RHEL 9

  • Commit ID: 20ced6b
  • Duration 0:44:11
  • Result: ✅ SUCCEEDED
  • Error: N/A
  • Build Log terminal output (available for 30 days)
  • Build Workspace zip file of the working directory (available for 30 days)

@foundationdb-ci

Copy link
Copy Markdown
Contributor

Result of foundationdb-pr-cluster-tests on Linux RHEL 9

  • Commit ID: 20ced6b
  • Duration 1:39:33
  • Result: ✅ SUCCEEDED
  • Error: N/A
  • Build Log terminal output (available for 30 days)
  • Build Workspace zip file of the working directory (available for 30 days)
  • Cluster Test Logs zip file of the test logs (available for 30 days)

@foundationdb-ci

This comment has been minimized.

@spraza

spraza commented Oct 13, 2026

Copy link
Copy Markdown
Collaborator

@ploxiln We also need to forward port this to 8.0?

@ploxiln

ploxiln commented Oct 13, 2026

Copy link
Copy Markdown
Collaborator Author

Yes, we should forward-port this

@foundationdb-ci

Copy link
Copy Markdown
Contributor

Result of foundationdb-pr-macos-m1 on macOS 14.x

  • Commit ID: 20ced6b
  • Duration 3:59:12
  • Result: ✅ SUCCEEDED
  • Error: N/A
  • Build Log terminal output (available for 30 days)
  • Build Workspace zip file of the working directory (available for 30 days)

@foundationdb-ci

This comment has been minimized.

@foundationdb-ci

Copy link
Copy Markdown
Contributor

Result of foundationdb-pr-macos on macOS 14.x

  • Commit ID: 20ced6b
  • Duration 1:56:22
  • Result: ✅ SUCCEEDED
  • Error: N/A
  • Build Log terminal output (available for 30 days)
  • Build Workspace zip file of the working directory (available for 30 days)

@ploxiln
ploxiln merged commit dafe301 into apple:release-7.4 Oct 14, 2026
7 checks passed
ploxiln added a commit to ploxiln/foundationdb that referenced this pull request Oct 14, 2026
@ploxiln
ploxiln deleted the r9_glibc_symver_fix_fdb74 branch November 2, 2026 20:22
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.

5 participants