pleco-rs / Pleco

A Rust-based re-write of the Stockfish Chess Engine

Home Page:https://crates.io/crates/pleco

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

can't compile E0554

abdulbadii opened this issue · comments

tried to build engine by:

$ cargo build --release
warning: profiles for the non root package will be ignored, specify profiles at the workspace root:
package:   /media/demo/1a16bb7d-7776-4545-b1d6-7f7ec43d7e64/Pleco/pleco/Cargo.toml
workspace: /media/demo/1a16bb7d-7776-4545-b1d6-7f7ec43d7e64/Pleco/Cargo.toml
warning: profiles for the non root package will be ignored, specify profiles at the workspace root:
package:   /media/demo/1a16bb7d-7776-4545-b1d6-7f7ec43d7e64/Pleco/pleco_engine/Cargo.toml
workspace: /media/demo/1a16bb7d-7776-4545-b1d6-7f7ec43d7e64/Pleco/Cargo.toml
   Compiling prefetch v0.2.0
   Compiling crossbeam-utils v0.8.1
   Compiling memoffset v0.6.1
   Compiling num-traits v0.2.14
error[E0554]: `#![feature]` may not be used on the stable release channel
  --> /home/demo/.cargo/registry/src/github.com-1ecc6299db9ec823/prefetch-0.2.0/src/lib.rs:18:1
   |
18 | #![feature(link_llvm_intrinsics)]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to previous error

For more information about this error, try `rustc --explain E0554`.
error: could not compile `prefetch`

How to solve this?

You must compile on nightly with cargo +nightly build --release. The readme should be updated to reflect this.

@abdulbadii This should be fixed now 😄