Comments (8)
Workaround:
CXXFLAGS="-Wno-deprecated-copy -Wno-pessimizing-move -Wno-sign-compare" cargo build
Seems when building TiKV with this you need:
CXXFLAGS='-Wno-error=deprecated-copy -Wno-error=pessimizing-move -Wno-error=sign-compare' cargo build
from rust-rocksdb.
from rust-rocksdb.
gcc has version 9 already?!
from rust-rocksdb.
Surprise! /cc facebook/rocksdb#5303
from rust-rocksdb.
Build with latest cherry pick still fails with following:
/home/jay/.cargo/git/checkouts/rust-rocksdb-82ef6e5337b3fbe6/6ead62c/librocksdb_sys/rocksdb/port/port_posix.cc: In function ‘int rocksdb::port::GetMaxOpenFiles()’:
/home/jay/.cargo/git/checkouts/rust-rocksdb-82ef6e5337b3fbe6/6ead62c/librocksdb_sys/rocksdb/port/port_posix.cc:180:31: error: comparison of integer expressions of different signedness: ‘rlim_t’ {aka ‘long unsigned int’} and ‘int’ [-Werror=sign-compare]
180 | if (no_files_limit.rlim_cur >= std::numeric_limits<int>::max()) {
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
gmake[4]: *** [CMakeFiles/rocksdb.dir/build.make:2991: CMakeFiles/rocksdb.dir/port/port_posix.cc.o] Error 1
gmake[4]: *** Waiting for unfinished jobs....
gmake[3]: *** [CMakeFiles/Makefile2:2714: CMakeFiles/rocksdb.dir/all] Error 2
gmake[2]: *** [CMakeFiles/Makefile2:2726: CMakeFiles/rocksdb.dir/rule] Error 2
gmake[1]: *** [Makefile:1036: rocksdb] Error 2
thread 'main' panicked at '
command did not execute successfully, got: exit code: 2
build script failed, must exit now', /home/jay/.cargo/registry/src/github.com-1ecc6299db9ec823/cmake-0.1.40/src/lib.rs:832:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
make: *** [Makefile:210: clippy] Error 101
env TMPDIR=/mnt/wwn-0x5002538d00000000-part1/workspace/temp/ make dev 1389.83s user 134.81s system 206% cpu 12:19.09 total
from rust-rocksdb.
@BusyJay not reproducing on my side (ubuntu 19.10 + gcc9). Does adding static_cast<int>
around no_files_limit.rlim_cur
work for you?
from rust-rocksdb.
I can confirm that rust-rocksdb is built successfully using the latest compile toolchains on fedora 30.
from rust-rocksdb.
Related to #343
from rust-rocksdb.
Related Issues (20)
- linking with `cc` failed: multiple definition of `__muloti4' HOT 6
- Reduce boxing in callback structs HOT 1
- Support rocksdb-cloud HOT 5
- Questions: About IndexType::TwoLevelIndexSearch HOT 1
- Implement BitMask PerfContext HOT 6
- Build fail on Apple Silicon/M1 HOT 1
- 什么时候能够支持windows版本呢 HOT 1
- WriteBatch::iterate memory leak HOT 2
- Can't compile with README.md HOT 2
- Doc: update examples HOT 1
- Compile fail in clang 13.1.6 HOT 2
- The variable 'cf_opts' is not used by 'DB::open_cf' HOT 1
- rocksdb 7.7.3 achieves significant improvement
- Support for ChecksumGeneratorFactory HOT 4
- Does rust-rocksdb support async? HOT 2
- How to made rust backtrace readable?
- Fedora 38 build issue HOT 3
- Build failed when using clang 16
- Wide Columns support
- FFI bindings file generated by bindgen never used actually ? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rust-rocksdb.