-
Notifications
You must be signed in to change notification settings - Fork 703
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
error: failed to run custom build command for librocksdb-sys v5.17.2
#286
Comments
|
Does compiling any Rust project work with Clang 10.0 on your system? |
@iSynaptic yes,i compiling https://github.com/KZen-networks/gotham-city/tree/master/gotham-client |
@freehere107 Strange. We've got a CI build that ensures it compiles on Mac OS. I'm wondering if there is some tooling version incompatibilities causing this. I don't have access to a Mac - is it possible for you to try an earlier version of Clang to see if that is where the incompatibility is coming from? |
@iSynaptic ok. i try it, thank you |
@freehere107 Did a different version of Clang work? |
@iSynaptic Still have same error.i reopen this issue |
@aleksuss I'm not using a Mac for my workstation, are you? If so, are you able to reproduce this? |
Cannot reproduce. The exact same Mac version, clang and rustc versions |
@vitvakatu Thanks! @freehere107 Our Mac CI build and @vitvakatu's Mac cannot reproduce. I'm going to close for now, but if you can pinpoint what might be causing the error for you, please post the details here. |
@iSynaptic I can't reproduce it as well 😕 |
I try reinstall llvm, it solved, |
mac version
mac mojave 10.14.3
Got error
error: failed to run custom build command for
librocksdb-sys v5.17.2
process didn't exit successfully:
/gotham-city/gotham-server/target/debug/build/librocksdb-sys-531f568e71a25329/build-script-build
(exit code: 101)--- stdout
cargo:rerun-if-changed=build.rs
cargo:rerun-if-changed=rocksdb/
cargo:rerun-if-changed=snappy/
cargo:rerun-if-changed=lz4/
cargo:rerun-if-changed=zstd/
cargo:rerun-if-changed=zlib/
cargo:rerun-if-changed=bzip2/
--- stderr
libclang: crash detected during parsing: {
'source_filename' : ''
'command_line_args' : ['--target=x86_64-apple-darwin', '-isystem', '/usr/local/include', '-isystem', '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/10.0.0/include', '-isystem', '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include', '-isystem', '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include', '-isystem', '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks', 'rocksdb/include/rocksdb/c.h'],
'unsaved_files' : [],
'options' : 1,
}
thread 'main' panicked at 'libclang error; possible causes include:
If you encounter an error missing from this list, please file an issue or a PR!', src/libcore/option.rs:1034:5
note: Run with
RUST_BACKTRACE=1
environment variable to display a backtrace.my clang version
Apple LLVM version 10.0.0 (clang-1000.11.45.5)
Target: x86_64-apple-darwin18.2.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
rust version
rustc 1.33.0 (2aa4c46cf 2019-02-28)
cargo version
cargo 1.33.0 (f099fe94b 2019-02-12)
The text was updated successfully, but these errors were encountered: