Skip to content

Fix a compilation error in CircleCI vs2019 CXX20 (#8090)#43

Merged
rzarzynski merged 1 commit intoceph:ceph-quincy-v6.15.5-1from
Matan-B:wip-matanb-rocksdb-cxx20-fork
Sep 29, 2022
Merged

Fix a compilation error in CircleCI vs2019 CXX20 (#8090)#43
rzarzynski merged 1 commit intoceph:ceph-quincy-v6.15.5-1from
Matan-B:wip-matanb-rocksdb-cxx20-fork

Conversation

@Matan-B
Copy link
Copy Markdown

@Matan-B Matan-B commented Sep 22, 2022

We should be able to compile rocksdb with c++20 on Ubuntu to avoid free(): invalid pointer with librados tests.
The compilation (with c++20) causes the following error:

party/folly/folly/synchronization/DistributedMutex.cpp:12:16:   required from here
2022-09-22T08:15:32.145 INFO:tasks.workunit.client.0.smithi157.stderr:/home/ubuntu/cephtest/mnt.0/client.0/tmp/rocksdb/third-party/folly/folly/synchronization/DistributedMutex-inl.h:1377:65: error: call of overloaded 'bit_cast<uintptr_t>(folly::detail::distributed_mutex::Waiter<std::atomic>*&)' is ambiguous

https://pulpito.ceph.com/matan-2022-09-22_07:51:28-rados:singleton-main-distro-default-smithi/
which was fixed here: facebook#8090

Fixes: https://tracker.ceph.com/issues/57632

(cherry picked from commit 2a12b80)

Signed-off-by: Matan Breizman mbreizma@redhat.com

Summary:
As title.
Always specify namespace::symbol_name...
Test plan
CircleCI and other CI results

Pull Request resolved: facebook#8090

Reviewed By: ltamasi

Differential Revision: D27256130

Pulled By: riversand963

fbshipit-source-id: b9b9ae2b3a8b4a16f0384292e71c6aecca93c570
@ljflores ljflores requested a review from markhpc September 22, 2022 15:03
@rzarzynski rzarzynski merged commit e72e24e into ceph:ceph-quincy-v6.15.5-1 Sep 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants