[oe] [meta-oe][PATCH v2] rocksdb: Turn off Werror to fix build failure due to GCC9 checks
zhe.he at windriver.com
zhe.he at windriver.com
Mon Jun 3 03:15:58 UTC 2019
From: He Zhe <zhe.he at windriver.com>
GCC9 introduce 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>
---
v2: As suggested, turn off Werror instead of the two specifc check options
meta-oe/recipes-dbs/rocksdb/rocksdb_git.bb | 1 +
1 file changed, 1 insertion(+)
diff --git a/meta-oe/recipes-dbs/rocksdb/rocksdb_git.bb b/meta-oe/recipes-dbs/rocksdb/rocksdb_git.bb
index 8d84619..5ce4c74 100644
--- a/meta-oe/recipes-dbs/rocksdb/rocksdb_git.bb
+++ b/meta-oe/recipes-dbs/rocksdb/rocksdb_git.bb
@@ -30,6 +30,7 @@ EXTRA_OECMAKE = "\
-DPORTABLE=ON \
-DWITH_TESTS=OFF \
-DWITH_TOOLS=OFF \
+ -DFAIL_ON_WARNINGS=OFF \
"
do_install_append() {
--
2.7.4
More information about the Openembedded-devel
mailing list