Skip to content

Use std instead of Boost - #61000

Merged
SrinivasaBharath merged 2 commits into
ceph:mainfrom
MaxKellermann:no_boost
Jan 13, 2025
Merged

SrinivasaBharath merged 2 commits into
ceph:mainfrom
MaxKellermann:no_boost

Conversation

@MaxKellermann

@MaxKellermann MaxKellermann commented Dec 9, 2024 •

Copy link
Copy Markdown
Member

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)

@github-actions github-actions Bot added the common label Dec 9, 2024
Comment thread src/include/random.h
EngineT& engine()
{
thread_local boost::optional<EngineT> rng_engine;
thread_local std::optional<EngineT> rng_engine;

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.

we tried this change in #20670 but had to revert with #21567 due to https://tracker.ceph.com/issues/23778#note-8

we never got to the bottom of it, but it's possible libstdc++ fixed a bug here in the meantime. maybe you could try the reproducer from https://tracker.ceph.com/issues/23778#note-7?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I've been struggling for hours to make ceph-mon work. Now that it appears to work, rados suddenly doesn't start anymore because "lib/librados.so.2: undefined symbol: rados_create_with_context" ... Sorry, my competence is apparently not enough to run this test.
There are lots of unmerged PRs from me to fix various build failures, and I still stumbler over more build failures every time I try to build Ceph. This frustrates me a lot, and I don't know how you guys manage to run Ceph at all. It's a fragile mess.
In any case, whatever the problem was, it must have been a toolchain bug. Unfortunately, 6 years ago, nobody dug deep enough to find out, so we still don't know.

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.

ceph is indeed a beast that grows and grows. we lost some key contributors over the years that kept things sane. it's been hard to find devs willing to go back and clean things up, so i sincerely appreciate your efforts here

i built this branch with gcc-14 and each rados command generated difference nonces, so at least that toolchain works. i'll go ahead and approve, and we'll rely on the rados suite to validate it

@MaxKellermann

Copy link
Copy Markdown
Member Author

@SrinivasaBharath, testing results?

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Can one of the admins verify this patch?

@Naveenaidu

Copy link
Copy Markdown
Contributor

@SrinivasaBharath

Copy link
Copy Markdown
Contributor

jenkins test make check arm64

@SrinivasaBharath
SrinivasaBharath merged commit 1e49516 into ceph:main Jan 13, 2025
@MaxKellermann
MaxKellermann deleted the no_boost branch January 13, 2025 11:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants