Repository navigation
Conversation
|
Thank you for your contribution. Since you are not yet a member of the Ceph organization with write permissions on ceph/ceph.git, our CI will not automatically run. Any member of the Ceph organization may label this PR |
ceph-dencoder links cls_log_client, cls_version_client, cls_user_client and cls_cas_client, but not librados. Those client libraries are declared with a plain add_library(... STATIC ...) and no target_link_libraries, so they rely on consumers to supply librados themselves. Nothing in ceph_dencoder.cc references cls_log_client, so the archive member is normally never extracted and the missing dependency stays invisible. When it is extracted for any other reason, its librados::ObjectOperation references become undefined at link time. Signed-off-by: Dominik Raddatz <[email protected]>
Doracly
force-pushed
the
wip-cmake-missing-link-deps
branch
from
October 8, 2026 06:48
4ca6d3e to
af86b9e
Compare
5 of 14 tasks
4 of 14 tasks
Contributor
Author
|
@cbodley could you take a look? It's one line: ceph-dencoder links the cls_*_client archives but not librados, which they need. |
adamemerson
approved these changes
Nov 10, 2026
Contributor
|
This PR has been added to wip-anrao8-testing-2026-11-13-0837-main. |
Contributor
Author
|
4 of 14 tasks
Contributor
|
This PR has been removed from wip-anrao8-testing-2026-11-13-0838-main. |
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.
ceph-dencoderis missinglibradosceph-dencoderlinkscls_log_clientand friends, which are declared with a bareadd_library(... STATIC ...)and notarget_link_libraries, so they rely on consumersto supply
librados. This stays latent: nothing inceph_dencoder.ccreferences them,so their archive members are normally never extracted. Once one is pulled in, its
librados::ObjectOperationreferences are undefined.How this was found
ninja testsfails to linkceph-dencoderwith mold, with both clang and GCC. The samecommand lines link with GNU ld 2.46 and lld 21.1.8, which do not extract these members.
With this commit, it links under mold as well.
mold's behaviour was reported as rui314/mold#1657 and is fixed
upstream (not yet released); the dependency is still worth declaring, as older mold versions
will be around for a while.
Testing
Debug build with clang 21.1.8 and mold 2.40.4: without this commit,
ninja testsfails to link
ceph-dencoderwith undefinedlibrados::ObjectOperationreferences;with it, it links and
ceph-dencoder list_typeslists 666 types. A GCC 15 build withmold fails the same way without the fix.
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.