Repository navigation
[release-8.0] build: on rhel9 based distros, avoid linking GLIBC_2.35 symbols - #14278
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.
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.
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 14, 2026
spraza
approved these changes
Oct 14, 2026
This comment has been minimized.
This comment has been minimized.
Collaborator
Author
|
Contributor
Result of foundationdb-pr-clang-arm on Linux RHEL 9
|
Contributor
Result of foundationdb-pr on Linux RHEL 9
|
Contributor
Result of foundationdb-pr-macos-m1 on macOS 14.x
|
This comment has been minimized.
This comment has been minimized.
Collaborator
Author
|
Contributor
Result of foundationdb-pr-macos on macOS 14.x
|
Contributor
Result of foundationdb-pr-cluster-tests on Linux RHEL 9
|
Contributor
Result of foundationdb-pr-clang on Linux RHEL 9
|
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-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.
forward-port of #14274