Repository navigation
[release-7.4] build: on rhel9 based distros, avoid linking GLIBC_2.35 symbols - #14274
Merged
Merged
Conversation
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.
This comment has been minimized.
This comment has been minimized.
Collaborator
Author
|
spurious: |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
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
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
saintstack
approved these changes
Oct 13, 2026
saintstack
left a comment
Contributor
There was a problem hiding this comment.
(I asked local LLM and it said it good)
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
johscheuer
approved these changes
Oct 13, 2026
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Contributor
Result of foundationdb-pr-clang on Linux RHEL 9
|
Contributor
Result of foundationdb-pr on Linux RHEL 9
|
Contributor
Result of foundationdb-pr-clang-arm on Linux RHEL 9
|
Contributor
Result of foundationdb-pr-cluster-tests on Linux RHEL 9
|
This comment has been minimized.
This comment has been minimized.
spraza
approved these changes
Oct 13, 2026
Collaborator
|
@ploxiln We also need to forward port this to 8.0? |
Collaborator
Author
|
Yes, we should forward-port this |
Contributor
Result of foundationdb-pr-macos-m1 on macOS 14.x
|
This comment has been minimized.
This comment has been minimized.
Contributor
Result of foundationdb-pr-macos on macOS 14.x
|
This was referenced Oct 14, 2026
ploxiln
added a commit
to ploxiln/foundationdb
that referenced
this pull request
Oct 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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: