apache / horaedb

Apache HoraeDB (incubating) is a high-performance, distributed, cloud native time-series database.
https://horaedb.apache.org
Apache License 2.0
2.6k stars 203 forks source link

Build failed #1506

Open Shylock-Hg opened 5 months ago

Shylock-Hg commented 5 months ago

Describe this problem

 /home/shylock/.cargo/git/checkouts/rust-rocksdb-a9a28e74c6ead8ef/f04f4dd/librocksdb_sys/rocksdb/db/db_impl/db_impl.cc:1353:23: error: redundant move in return statement [-Werror=redundant-move]
   1353 |       return std::move(io_s);

Server version

44caa997e37991e570741c3da6c961563569da42

Steps to reproduce

  1. Build with
c (SUSE Linux) 13.2.1 20240206 [revision 67ac78caf31f7cb3202177e6428a46d829b70f23]
Copyright (C) 2023 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Or maybe any new c++ compiler.

Expected behavior

Build success.

Additional Information

No response

jiacai2050 commented 5 months ago

Or maybe any new c++ compiler.

Yes, rocksdb require a latest C++ compiler, gcc 8 or clang 16 should work.

Shylock-Hg commented 5 months ago

Or maybe any new c++ compiler.

Yes, rocksdb require a latest C++ compiler, gcc 8 or clang 16 should work.

My compiler is gcc-13.2.1

jiacai2050 commented 5 months ago

Your version seems too new, try downgrade, or you can try build rust-rocksdb directly https://github.com/tikv/rust-rocksdb

if it works against latest commit, we can bump our dependency.