Repository navigation
include/container_ios: do not include <iomanip> - #72481
MaxKellermann wants to merge 9 commits into
Conversation
tchaikov
left a comment
There was a problem hiding this comment.
this changeset FTBFS:
[ 29%] Built target fusestore
/ceph/debs/ubuntu/WORKDIR/ceph/src/tools/cephfs_mirror/PeerReplayer.cc: In member function 'void cephfs::mirror::PeerReplayer::add_live_sync_metrics_to_persist(json_spirit::mObject&, SnapSyncStat&)':
/ceph/debs/ubuntu/WORKDIR/ceph/src/tools/cephfs_mirror/PeerReplayer.cc:1038:32: error: 'setprecision' is not a member of 'std'
1038 | os << std::fixed << std::setprecision(2) << sync_pct << "%";
| ^~~~~~~~~~~~
/ceph/debs/ubuntu/WORKDIR/ceph/src/tools/cephfs_mirror/PeerReplayer.cc:1052:32: error: 'setprecision' is not a member of 'std'
1052 | os << std::fixed << std::setprecision(2) << sync_file_pct << "%";
| ^~~~~~~~~~~~
/ceph/debs/ubuntu/WORKDIR/ceph/src/tools/cephfs_mirror/PeerReplayer.cc: In static member function 'static std::string cephfs::mirror::PeerReplayer::format_time(double)':
/ceph/debs/ubuntu/WORKDIR/ceph/src/tools/cephfs_mirror/PeerReplayer.cc:3723:21: error: 'setw' is not a member of 'std'; did you mean 'set'?
3723 | << std::setw(2) << std::setfill('0') << hours << "h "
| ^~~~
| set
/ceph/debs/ubuntu/WORKDIR/ceph/src/tools/cephfs_mirror/PeerReplayer.cc:3723:37: error: 'setfill' is not a member of 'std'; did you mean 'fill'?
3723 | << std::setw(2) << std::setfill('0') << hours << "h "
| ^~~~~~~
| fill
/ceph/debs/ubuntu/WORKDIR/ceph/src/tools/cephfs_mirror/PeerReplayer.cc:3724:21: error: 'setw' is not a member of 'std'; did you mean 'set'?
3724 | << std::setw(2) << std::setfill('0') << minutes << "m "
| ^~~~
| set
/ceph/debs/ubuntu/WORKDIR/ceph/src/tools/cephfs_mirror/PeerReplayer.cc:3724:37: error: 'setfill' is not a member of 'std'; did you mean 'fill'?
3724 | << std::setw(2) << std::setfill('0') << minutes << "m "
| ^~~~~~~
| fill
/ceph/debs/ubuntu/WORKDIR/ceph/src/tools/cephfs_mirror/PeerReplayer.cc:3725:21: error: 'setw' is not a member of 'std'; did you mean 'set'?
3725 | << std::setw(2) << std::setfill('0') << seconds << "s";
| ^~~~
| set
/ceph/debs/ubuntu/WORKDIR/ceph/src/tools/cephfs_mirror/PeerReplayer.cc:3725:37: error: 'setfill' is not a member of 'std'; did you mean 'fill'?
3725 | << std::setw(2) << std::setfill('0') << seconds << "s";
| ^~~~~~~
| fill
/ceph/debs/ubuntu/WORKDIR/ceph/src/tools/cephfs_mirror/PeerReplayer.cc:3728:21: error: 'setw' is not a member of 'std'; did you mean 'set'?
3728 | << std::setw(2) << std::setfill('0') << minutes << "m "
| ^~~~
| set
/ceph/debs/ubuntu/WORKDIR/ceph/src/tools/cephfs_mirror/PeerReplayer.cc:3728:37: error: 'setfill' is not a member of 'std'; did you mean 'fill'?
3728 | << std::setw(2) << std::setfill('0') << minutes << "m "
| ^~~~~~~
| fill
/ceph/debs/ubuntu/WORKDIR/ceph/src/tools/cephfs_mirror/PeerReplayer.cc:3729:21: error: 'setw' is not a member of 'std'; did you mean 'set'?
3729 | << std::setw(2) << std::setfill('0') << seconds << "s";
| ^~~~
| set
/ceph/debs/ubuntu/WORKDIR/ceph/src/tools/cephfs_mirror/PeerReplayer.cc:3729:37: error: 'setfill' is not a member of 'std'; did you mean 'fill'?
3729 | << std::setw(2) << std::setfill('0') << seconds << "s";
| ^~~~~~~
| fill
/ceph/debs/ubuntu/WORKDIR/ceph/src/tools/cephfs_mirror/PeerReplayer.cc:3732:21: error: 'setw' is not a member of 'std'; did you mean 'set'?
3732 | << std::setw(2) << std::setfill('0') << seconds << "s";
| ^~~~
| set
/ceph/debs/ubuntu/WORKDIR/ceph/src/tools/cephfs_mirror/PeerReplayer.cc:3732:37: error: 'setfill' is not a member of 'std'; did you mean 'fill'?
3732 | << std::setw(2) << std::setfill('0') << seconds << "s";
| ^~~~~~~
Oh, there's no shortage of header bugs in Ceph... I'll try to set up a clang/libc++ based build here to find them all. |
|
How is anybody ever able to build Ceph with clang? Build fails after two seconds or so. |
|
That doesn't count because it uses GCC's libstdc++ instead of clang's libc++. The bugs are visible only with libc++ (which is the default on MacOS). |
|
I did my own LLVM/clang/libc++ build from git now, and with a bunch of weird kludges und bug fixes applied to Ceph/Boost/uadk/fmt, I can now build Ceph with that toolchain. (No joy here!) However, @tchaikov's bug I could not reproduce. Including What I will do now is fix just this one bug in |
|
@MaxKellermann I've kept #72479 open as the minimal fix ( |
Yes, I guess that's the best way forward, to get the regression fixed as quickly as possible. Meanwhile, I'm trying to reduce more header dependencies to get rid of the indirect |
d20a383 to
1a1e2e5
Compare
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
1a1e2e5 to
2d0cccc
Compare
@dvanders, rebased. |
|
|
Thanks, @tchaikov. I wonder how this is possible, because this source includes I'll try to eliminate more |
2d0cccc to
64dc9ae
Compare
|
Rebased & dropped patches that were already merged. |
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
eb3e403 to
e360a1b
Compare
|
@MaxKellermann Thank you for reviewing this pull request! As a member of the Ceph organization, please add yourself to |
Signed-off-by: Max Kellermann <[email protected]>
Signed-off-by: Max Kellermann <[email protected]>
Signed-off-by: Max Kellermann <[email protected]>
Signed-off-by: Max Kellermann <[email protected]>
Signed-off-by: Max Kellermann <[email protected]>
Signed-off-by: Max Kellermann <[email protected]>
Signed-off-by: Max Kellermann <[email protected]>
Signed-off-by: Max Kellermann <[email protected]>
Nothing in this header uses a manipulator. Reported-by: Bryan Stillwell <[email protected]> Assisted-by: Claude-Code-v2.1.287:claude-opus-5-5 Signed-off-by: Dan van der Ster <[email protected]>
e360a1b to
b2a2a91
Compare
idryomov
left a comment
There was a problem hiding this comment.
Ack from the RBD perspective
|
This PR has been added to wip-bharath19-testing-20261109.054757-main. |
|
jenkins test make check |
|
This PR has been added to wip-anrao19-testing-2026-12-02-0609-main. |
A copy of #72479 with a fix for a pre-existing header bug.
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.