[oe-commits] [meta-openembedded] 18/88: rocksdb: Fix build failure due to GCC9 deprecated-copy pessimizing-move

git at git.openembedded.org git at git.openembedded.org
Thu Jun 13 20:22:57 UTC 2019

This is an automated email from the git hooks/post-receive script.

khem pushed a commit to branch master-next
in repository meta-openembedded.

commit 637b99362b066476b6c435e9b14c8a3e025c8790
Author: He Zhe <zhe.he at windriver.com>
AuthorDate: Fri May 31 10:52:17 2019 +0800

    rocksdb: Fix build failure due to GCC9 deprecated-copy pessimizing-move
    GCC9 introduce more stricter checks deprecated-copy and pessimizing-move, while
    rocksdb uses -Werror and causes the following build error.
    db/version_edit.h:178:33: error: implicitly-declared 'constexpr rocksdb::FileDescriptor::FileDescriptor(const rocksdb::FileDescriptor&)' is deprecated [-Werror=deprecated-copy]
    utilities/persistent_cache/persistent_cache_util.h:51:23: error: moving a local object in a return statement prevents copy elision [-Werror=pessimizing-move]
    Signed-off-by: He Zhe <zhe.he at windriver.com>
    Signed-off-by: Khem Raj <raj.khem at gmail.com>
 meta-oe/recipes-dbs/rocksdb/rocksdb_git.bb | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta-oe/recipes-dbs/rocksdb/rocksdb_git.bb b/meta-oe/recipes-dbs/rocksdb/rocksdb_git.bb
index 8d84619..bbd8e4f 100644
--- a/meta-oe/recipes-dbs/rocksdb/rocksdb_git.bb
+++ b/meta-oe/recipes-dbs/rocksdb/rocksdb_git.bb
@@ -31,6 +31,9 @@ EXTRA_OECMAKE = "\
+do_compile_prepend() {
+    sed -i 's/set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror -Wno-error=shadow")/set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror -Wno-error=shadow -Wno-error=deprecated-copy -Wno-error=pessimizing-move")/' ${S}/CMakeLists.txt
 do_install_append() {
     # fix for qa check buildpaths

To stop receiving notification emails like this one, please contact
the administrator of this repository.

More information about the Openembedded-commits mailing list