-
Notifications
You must be signed in to change notification settings - Fork 700
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
0.19: use of undeclared identifier 'POSIX_MADV_NORMAL' #697
Comments
Hi, just wanted to note I have run into the same problem when cross compiling for Android on macOS. |
Hello, I have the same issue on coss compiling for Android. |
Unfortunately, I don't have such an environment for testing it. Could you provide steps for reproducing it? Besides, you can always create a PR to fix it. |
@aleksuss I have found the issue in rocksdb and made a PR there. Once it is merged ill make a PR here to update rocksdb |
Summary: Cross compiling rocksdb with rust bindings to android leads to an error since 7.4.0 (Incusion of madvise) This is due to missing placeholders for non-linux platforms. This PR adds the missing placeholders. See rust-rocksdb/rust-rocksdb#697 for the specific error thrown. I have just completed the CLA :) Pull Request resolved: #10881 Reviewed By: akankshamahajan15 Differential Revision: D40726103 Pulled By: ajkr fbshipit-source-id: 6b391636a74ef7e20d0daf47d332ddf0c14d5c34
Hi!
I am cross compiling rocksdb from WSL to android, which worked in 0.18. (
cargo build --target aarch64-linux-android --release
)However when i compile on 0.19 i get the following error:
Full error: https://pastebin.com/GHRrK3t3
I have traced the error to this commit: 17471a6. (Bump rocksdb to 7.4.3)
I import the crate in the following way:
Broken:
rocksdb = { version = "0.19.0", default-features = false, features = [ "lz4" ], optional = true }
Working:
rocksdb = { git = "https://github.com/rust-rocksdb/rust-rocksdb", rev = "947e4b63034fff2151f52c399a5d85925ea80911", default-features = false, features = ["lz4"], optional = true }
Any ideas how to fix this?
Thanks!
The text was updated successfully, but these errors were encountered: