Skip to content
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

Unable to Build #51

Closed
bencevans opened this issue Feb 21, 2016 · 4 comments
Closed

Unable to Build #51

bencevans opened this issue Feb 21, 2016 · 4 comments

Comments

@bencevans
Copy link

Hi,

I'm on an Ubuntu 14.10 x64 box. Building this project seems to fail. I'm afraid I'm a bit of a Rust noob but happy to dig if you're able to give me some pointers. This is the output I'm getting at the moment from sudo rust build --verbose...

➜  librespot git:(master) sudo cargo build --verbose
[sudo] password for bencevans: 
   Compiling rustc-serialize v0.3.18
     Running `rustc /home/bencevans/.cargo/registry/src/github.com-88ac128001ac3a9a/rustc-serialize-0.3.18/src/lib.rs --crate-name rustc_serialize --crate-type lib -g -C metadata=79a17eda1cd94e46 -C extra-filename=-79a17eda1cd94e46 --out-dir /home/bencevans/Code/librespot/target/debug/deps --emit=dep-info,link -L dependency=/home/bencevans/Code/librespot/target/debug/deps -L dependency=/home/bencevans/Code/librespot/target/debug/deps --cap-lints allow`
   Compiling gcc v0.3.24
     Running `rustc /home/bencevans/.cargo/registry/src/github.com-88ac128001ac3a9a/gcc-0.3.24/src/lib.rs --crate-name gcc --crate-type lib -g -C metadata=5002d5e6be584e6e -C extra-filename=-5002d5e6be584e6e --out-dir /home/bencevans/Code/librespot/target/debug/deps --emit=dep-info,link -L dependency=/home/bencevans/Code/librespot/target/debug/deps -L dependency=/home/bencevans/Code/librespot/target/debug/deps --cap-lints allow`
       Fresh ascii v0.5.4
   Compiling pkg-config v0.3.7
     Running `rustc /home/bencevans/.cargo/registry/src/github.com-88ac128001ac3a9a/pkg-config-0.3.7/src/lib.rs --crate-name pkg_config --crate-type lib -g -C metadata=2507e318f8e010c2 -C extra-filename=-2507e318f8e010c2 --out-dir /home/bencevans/Code/librespot/target/debug/deps --emit=dep-info,link -L dependency=/home/bencevans/Code/librespot/target/debug/deps -L dependency=/home/bencevans/Code/librespot/target/debug/deps --cap-lints allow`
       Fresh libc v0.1.12
   Compiling bit-vec v0.4.3
     Running `rustc /home/bencevans/.cargo/registry/src/github.com-88ac128001ac3a9a/bit-vec-0.4.3/src/lib.rs --crate-name bit_vec --crate-type lib -g -C metadata=4ae2314927a79fef -C extra-filename=-4ae2314927a79fef --out-dir /home/bencevans/Code/librespot/target/debug/deps --emit=dep-info,link -L dependency=/home/bencevans/Code/librespot/target/debug/deps -L dependency=/home/bencevans/Code/librespot/target/debug/deps --cap-lints allow`
       Fresh encoding_index_tests v0.1.4
       Fresh encoding-index-singlebyte v1.20141219.5
       Fresh encoding-index-japanese v1.20141219.5
       Fresh encoding-index-simpchinese v1.20141219.5
       Fresh encoding-index-korean v1.20141219.5
       Fresh getopts v0.2.14
       Fresh lazy_static v0.1.15
   Compiling protobuf_macros v0.1.2 (https://github.com/plietar/rust-protobuf-macros.git#37c6a34e)
     Running `rustc /home/bencevans/.cargo/git/checkouts/rust-protobuf-macros-0155ebac4efea846/master/src/lib.rs --crate-name protobuf_macros --crate-type dylib -C prefer-dynamic -g -C metadata=10fbf04e2f39f8e7 -C extra-filename=-10fbf04e2f39f8e7 --out-dir /home/bencevans/Code/librespot/target/debug/deps --emit=dep-info,link -L dependency=/home/bencevans/Code/librespot/target/debug/deps -L dependency=/home/bencevans/Code/librespot/target/debug/deps --cap-lints allow`
/home/bencevans/.cargo/git/checkouts/rust-protobuf-macros-0155ebac4efea846/master/src/lib.rs:1:1: 1:45 error: #[feature] may not be used on the stable release channel
/home/bencevans/.cargo/git/checkouts/rust-protobuf-macros-0155ebac4efea846/master/src/lib.rs:1 #![feature(plugin_registrar, rustc_private)]
                                                                                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/bencevans/.cargo/git/checkouts/rust-protobuf-macros-0155ebac4efea846/master/src/lib.rs:2:1: 2:28 error: #[feature] may not be used on the stable release channel
/home/bencevans/.cargo/git/checkouts/rust-protobuf-macros-0155ebac4efea846/master/src/lib.rs:2 #![feature(slice_patterns)]
                                                                                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~
error: aborting due to 2 previous errors
Build failed, waiting for other jobs to finish...
Could not compile `protobuf_macros`.

Caused by:
  Process didn't exit successfully: `rustc /home/bencevans/.cargo/git/checkouts/rust-protobuf-macros-0155ebac4efea846/master/src/lib.rs --crate-name protobuf_macros --crate-type dylib -C prefer-dynamic -g -C metadata=10fbf04e2f39f8e7 -C extra-filename=-10fbf04e2f39f8e7 --out-dir /home/bencevans/Code/librespot/target/debug/deps --emit=dep-info,link -L dependency=/home/bencevans/Code/librespot/target/debug/deps -L dependency=/home/bencevans/Code/librespot/target/debug/deps --cap-lints allow` (exit code: 101)
@bencevans
Copy link
Author

master@95d1dfd7740caa3b3081664d01c268ae538c0125

@herrernst
Copy link
Contributor

Building librespot requires rust nightly. It will not work on rust stable or beta.

https://github.com/plietar/librespot#building

Also, there's no need to use sudo, and you shouldn't do it from a security perspective.

@plietar
Copy link
Owner

plietar commented Feb 21, 2016

As @herrernst said, rust nightly is required.
There's an issue (#48) about it, but it probably won't change any time soon.

@plietar plietar closed this as completed Feb 21, 2016
@bencevans
Copy link
Author

Ah sorry I missed that. Thanks for your help though!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants