Skip to contentSkip to conversation

rocksdb: Turn off Werror to fix build failure due to GCC9 checks

PATCH In review [email protected] 2 participants 2 messages Jun 3, 2019 – Jun 11, 2019

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 rocksdb: Turn off Werror to fix build failure due to GCC9 checks

From: He Zhe <[email protected]>

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]

---
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(+)
meta-oe/recipes-dbs/rocksdb/rocksdb_git.bb +1 -0
index 8d84619..5ce4c74 100644
@@ -30,6 +30,7 @@ EXTRA_OECMAKE = "\
     -DPORTABLE=ON \
     -DWITH_TESTS=OFF \
     -DWITH_TOOLS=OFF \
+    -DFAIL_ON_WARNINGS=OFF \
 "
 
 do_install_append() {
Signature · 1 line
2.7.4
#1 lore raw
Quoted 6 lines · On Sun, Jun 2, 2019 at 11:16 PM <[email protected]> wrote:

From: He Zhe <[email protected]>

GCC9 introduce stricter checks, deprecated-copy and pessimizing-move, while rocksdb uses -Werror and causes the following build error.

Quoted 7 lines

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]

---
v2: As suggested, turn off Werror instead of the two specifc check options

There is now a proposed fix upstream and there is also an uprev in progress by Pascal (RE: rocksdb: 5.18.3 -> 6.0.2). I have asked as part of that the potential fix
be included along with the uprev.

Mark

Quoted 24 lines
 meta-oe/recipes-dbs/rocksdb/rocksdb_git.bb | 1 +
 1 file changed, 1 insertion(+)
meta-oe/recipes-dbs/rocksdb/rocksdb_git.bb +1 -1
index 8d84619..5ce4c74 100644
@@ -30,6 +30,7 @@ EXTRA_OECMAKE = "\
     -DPORTABLE=ON \
     -DWITH_TESTS=OFF \
     -DWITH_TOOLS=OFF \
+    -DFAIL_ON_WARNINGS=OFF \
 "
 
 do_install_append() {
--

2.7.4

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel