C++17 and C++ ABI on master
Good day,
I've just merged some changs into master that set us up to compile with C++17. This will require a reasonably new compiler to build master.
Due to a change in how 'noexcept' is handled (it is now part of the type signature of a function), mangled symbol names of noexcept functions are different, so if you have custom clients using the C++ libraries, you may need to recompile.
Do not worry, there should be no change to the C ABI. Any C clients should be unaffected.
Thank you.
Signature · 3 lines
Senior Software Engineer Red Hat Storage, Ann Arbor, MI, US IRC: Aemerson@OFTC, Actinic@Freenode 0x80F7544B90EDBFB9 E707 86BA 0C1B 62CC 152C 7C12 80F7 544B 90ED BFB9
We discussed splitting out a "libradospp" for C++ that lets us change SO_VERSION on ABI changes in the future, and hope to do it for Mimic release. Unfortunately we can't do that in librados at the moment since most users are C-only, and bumping the version on QEMU or other upstreams would result in them being stuck with the previous library versions.
-Greg
Quoted 24 lines · Adam C. Emerson
Good day,
I've just merged some changs into master that set us up to compile with C++17. This will require a reasonably new compiler to build master.
Due to a change in how 'noexcept' is handled (it is now part of the type signature of a function), mangled symbol names of noexcept functions are different, so if you have custom clients using the C++ libraries, you may need to recompile.
Do not worry, there should be no change to the C ABI. Any C clients should be unaffected.
Thank you.
--
Senior Software Engineer Red Hat Storage, Ann Arbor, MI, US
IRC: Aemerson@OFTC, Actinic@Freenode0x80F7544B90EDBFB9E707 86BA 0C1B 62CC 152C 7C12 80F7 544B 90ED BFB9
_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
Quoted 5 lines · Adam C. Emerson
Good day,
I've just merged some changs into master that set us up to compile with C++17. This will require a reasonably new compiler to build master.
Yay!
Quoted 7 lines
Due to a change in how 'noexcept' is handled (it is now part of the type signature of a function), mangled symbol names of noexcept functions are different, so if you have custom clients using the C++ libraries, you may need to recompile.
Do not worry, there should be no change to the C ABI. Any C clients should be unaffected.
I added cards to the backlog for libradospp, librbdpp, and libcephfspp. Anybody out there interested in working on that? libcephfspp might be the one to start with since it doesn't depend on librados and is a much simpler API.
sage
A message that is not in the archive (sent off-list or not yet received): alpine.DEB.2.11.1801082213050.24931-qHenpvqtifaMSRpgCs4c+g@public.gmane.org
Quoted 14 lines · Sage Weil
Quoted 5 lines · Adam C. Emerson
Good day,
I've just merged some changs into master that set us up to compile with C++17. This will require a reasonably new compiler to build master.
Yay!
Quoted 5 lines
Due to a change in how 'noexcept' is handled (it is now part of the type signature of a function), mangled symbol names of noexcept functions are different, so if you have custom clients using the C++ libraries, you may need to recompile.
Quoted 4 lines
Quoted 2 lines
Do not worry, there should be no change to the C ABI. Any C clients should be unaffected.
I added cards to the backlog for libradospp, librbdpp, and libcephfspp.
librados and librdb are a little bit complicated. most part of its C++ API is implemented using its C API and underlying RadosClient. but there are couple C functions, which are implemented using librados' public C++ interface. for example, IoCtx::from_rados_ioctx_t() is used by rados_lock_exclusive(). the same applies to librbd. so we need to decouple the C and C++ API so that they do not depend on each other. i have a wip branch at
https://github.com/tchaikov/ceph/tree/wip-librados-cxx, in case anyone would like to take a look. or, we can go with another route: to hide all the C++ symbols in librados. and expose all C and C++ symbols in its C++ counterpart. this turns this problem a symbol visibility problem. but the downside of this solution is that we will have two copies of APIs in each compiled library.
Quoted 3 lines
Anybody out there interested in working on that? libcephfspp might be the one to start with since it doesn't depend on librados and is a much simpler API.
libcephfs is a pure C API. so i think there is no need to split out a C++ library from it.
Quoted 8 lines
sage
_______________________________________________
ceph-users mailing list [email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
Signature · 2 lines
Regards Kefu Chai