Closed
Description
[master]> rustc --version
rustc 1.4.0 (8ab8581f6 2015-10-27)
[master]> cargo --version
cargo 0.5.0-nightly (833b947 2015-09-13)
[master]> cargo build --verbose
Compiling gstreamer v0.2.7 (file:///D:/Users/coriolinus/Documents/GitHub/gstreamer1.0-rs)
Running `rustc build.rs --crate-name build_script_build --crate-type bin -g --out-dir D:\Users\coriolinus\Documents\GitHub\gstreamer1.0-rs\target\debug\build\gstreamer-c4035b655e0fdb42 --emit=dep-info,link -L dependency=D:\Users\coriolinus\Documents\GitHub\gstreamer1.0-rs\target\debug -L dependency=D:\Users\coriolinus\Documents\GitHub\gstreamer1.0-rs\target\debug\deps`
Fresh libc v0.1.12
build.rs:13:1: 13:19 error: use of unstable library feature 'libc': use `libc` from crates.io (see issue #27783)
build.rs:13 extern crate libc;
^~~~~~~~~~~~~~~~~~
build.rs:20:37: 20:51 error: use of unstable library feature 'libc': use `libc` from crates.io (see issue #27783)
build.rs:20 let key = if mem::size_of::<*const ::libc::c_void>() == 4{
^~~~~~~~~~~~~~
error: aborting due to 2 previous errors
Could not compile `gstreamer`.
Caused by:
Process didn't exit successfully: `rustc build.rs --crate-name build_script_build --crate-type bin -g --out-dir D:\Users\coriolinus\Documents\GitHub\gstreamer1.0-rs\target\debug\build\gstreamer-c4035b655e0fdb42 --emit=dep-info,link -L dependency=D:\Users\coriolinus\Documents\GitHub\gstreamer1.0-rs\target\debug -L dependency=D:\Users\coriolinus\Documents\GitHub\gstreamer1.0-rs\target\debug\deps` (exit code: 101)
I've tested this with libc 0.1.12 and 0.2.2; they both return the same error.
The referred error (rust-lang/rust#27783) is a bit opaque to me given that as far as I can tell, you do in fact require the use of libc from crates.io in your Cargo.toml here.
Any ideas what's going on here and how to get this to compile, or do you feel it's more useful to just wait until libc stabilizes?
Metadata
Metadata
Assignees
Labels
No labels