You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I download the src code to my local Ubuntu 24.04 LTS and follow the README to compile the src code, I encounter errors when compiling the deps/rocksdb:
db/db_impl/db_impl.cc: In member function ‘virtual rocksdb::Status rocksdb::DBImpl::FlushWAL(bool)’:
db/db_impl/db_impl.cc:1441:23: error: redundant move in return statement [-Werror=redundant-move]
1441 | return std::move(io_s);
| ~~~~~~~~~^~~~~~
db/db_impl/db_impl.cc:1441:23: note: remove ‘std::move’ call
db/db_impl/db_impl.cc:1445:23: error: redundant move in return statement [-Werror=redundant-move]
1445 | return std::move(io_s);
| ~~~~~~~~~^~~~~~
db/db_impl/db_impl.cc:1445:23: note: remove ‘std::move’ call
db/db_impl/db_impl.cc: In member function ‘virtual rocksdb::Status rocksdb::DBImpl::LockWAL()’:
db/db_impl/db_impl.cc:1562:19: error: redundant move in return statement [-Werror=redundant-move]
1562 | return std::move(status);
I have to set the following environment variable.
export CFLAGS="-Wno-error"
Then I face another error when compiling rocksdb.
'uint8_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
To solve this I have to downgrade the gcc from gcc 13 to gcc 12.
It would be nice to have a document for the environment setup, the library, gcc version, CFLAGS etc....
The text was updated successfully, but these errors were encountered:
When I download the src code to my local
Ubuntu 24.04 LTS
and follow the README to compile the src code, I encounter errors when compiling thedeps/rocksdb
:I have to set the following environment variable.
Then I face another error when compiling rocksdb.
To solve this I have to downgrade the gcc from gcc 13 to gcc 12.
It would be nice to have a document for the environment setup, the library, gcc version, CFLAGS etc....
The text was updated successfully, but these errors were encountered: