withoutboats / notty

A new kind of terminal
GNU Affero General Public License v3.0
2.31k stars 41 forks source link

[SOLVED] Cannot build notty #61

Closed pouete closed 7 years ago

pouete commented 7 years ago

Hello @withoutboats , I am trying to build notty but get this error :

cargo build --verbose                                                                                                                                                                                                                                       
       Fresh base64 v0.1.1
       Fresh num-traits v0.1.36
       Fresh uuid v0.3.1
       Fresh log v0.3.6
       Fresh unicode-width v0.1.4
   Compiling notty-encoding v0.1.0 (https://github.com/withoutboats/notty-encoding#ba5daba3)
       Fresh num-integer v0.1.32
     Running `rustc /home/julien/.cargo/git/checkouts/notty-encoding-26bc718f9ba2caca/ba5daba3cea3972cd17a3a1b2e4a610385816dcd/src/lib.rs --crate-name notty_encoding --crate-type lib -g -C metadata=52feb8dc22e8ee7a -C extra-filename=-52feb8dc22e8ee7a --out-dir /home/julien/Code/Sources/Perso/notty/scaffolding/target/debug/deps --emit=dep-info,link -L dependency=/home/julien/Code/Sources/Perso/notty/scaffolding/target/debug/deps --extern base64=/home/julien/Code/Sources/Perso/notty/scaffolding/target/debug/deps/libbase64-cbe986a1390b04a9.rlib --cap-lints allow`
   Compiling num-iter v0.1.32
     Running `rustc /home/julien/.cargo/registry/src/github.com-1ecc6299db9ec823/num-iter-0.1.32/src/lib.rs --crate-name num_iter --crate-type lib -g -C metadata=50df698bc905252c -C extra-filename=-50df698bc905252c --out-dir /home/julien/Code/Sources/Perso/notty/scaffolding/target/debug/deps --emit=dep-info,link -L dependency=/home/julien/Code/Sources/Perso/notty/scaffolding/target/debug/deps --extern num_integer=/home/julien/Code/Sources/Perso/notty/scaffolding/target/debug/deps/libnum_integer-52fdddf28cd8e924.rlib --extern num_traits=/home/julien/Code/Sources/Perso/notty/scaffolding/target/debug/deps/libnum_traits-92bb90166cd1857c.rlib --cap-lints allow`
error[E0554]: #[feature] may not be used on the stable release channel
 --> /home/julien/.cargo/git/checkouts/notty-encoding-26bc718f9ba2caca/ba5daba3cea3972cd17a3a1b2e4a610385816dcd/src/lib.rs:1:1
  |
1 | #![feature(associated_consts)]
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to previous error

Build failed, waiting for other jobs to finish...
error: Could not compile `notty-encoding`.

Caused by:
  process didn't exit successfully: `rustc /home/julien/.cargo/git/checkouts/notty-encoding-26bc718f9ba2caca/ba5daba3cea3972cd17a3a1b2e4a610385816dcd/src/lib.rs --crate-name notty_encoding --crate-type lib -g -C metadata=52feb8dc22e8ee7a -C extra-filename=-52feb8dc22e8ee7a --out-dir /home/julien/Code/Sources/Perso/notty/scaffolding/target/debug/deps --emit=dep-info,link -L dependency=/home/julien/Code/Sources/Perso/notty/scaffolding/target/debug/deps --extern base64=/home/julien/Code/Sources/Perso/notty/scaffolding/target/debug/deps/libbase64-cbe986a1390b04a9.rlib --cap-lints allow` (exit code: 101)

my cargo version :

cargo --version                                                                                                                                                                                                                                            
cargo 0.15.0-nightly (298a012 2016-12-20)

My rustc version :

rustc --version                                                                                                                                                                                                                                            
rustc 1.14.0 (e8a012324 2016-12-16)

How could i solve this problem ?

leroycep commented 7 years ago

You are trying to compile with a stable version of rust, where notty requires nightly. cargo is a nightly version, however, it is rustc that needs to be a nightly version. See this page for information on running nightly rust.

pouete commented 7 years ago

Okay ! it is building now . Thanks for the answer ! Closing and renaming in [SOLVED]