chyyuu / os_kernel_lab

OS kernel labs based on Rust/C Lang & RISC-V 64/X86-32
https://rcore-os.github.io/rCore-Tutorial-Book-v3/index.html
GNU General Public License v3.0
3.95k stars 1.92k forks source link

编译rcore-fs失败,请问如何解决 #88

Open feitboiling opened 4 years ago

feitboiling commented 4 years ago

zhu@ubuntu:~/qemu-4.2.0/rCore-Tutorial$ sudo make make[1]: 进入目录“/home/zhu/qemu-4.2.0/rCore-Tutorial/user” Installing rcore-fs-fuse Updating git repository https://github.com/rcore-os/rcore-fs Installing rcore-fs-fuse v0.1.0 (https://github.com/rcore-os/rcore-fs#6df6cd24) Updating crates.io index Compiling libc v0.2.79 Compiling log v0.4.11 Compiling winapi-build v0.1.1 Compiling cfg-if v0.1.10 Compiling proc-macro2 v1.0.24 Compiling proc-macro2 v0.4.30 Compiling unicode-xid v0.1.0 Compiling winapi v0.2.8 Compiling unicode-xid v0.2.1 Compiling syn v1.0.42 Compiling syn v0.15.44 Compiling spin v0.5.2 Compiling bitflags v1.2.1 Compiling unicode-width v0.1.8 Compiling unicode-segmentation v1.6.0 Compiling either v1.6.1 Compiling radium v0.3.0 Compiling utf8-ranges v0.1.3 Compiling strsim v0.8.0 Compiling proc-macro-hack v0.5.18 Compiling regex-syntax v0.3.9 Compiling vec_map v0.8.2 Compiling static_assertions v0.3.4 Compiling ansi_term v0.11.0 Compiling kernel32-sys v0.2.2 Compiling textwrap v0.11.0 Compiling heck v0.3.1 Compiling bitvec v0.17.4 Compiling log v0.3.9 Compiling quote v1.0.7 Compiling rcore-fs v0.1.0 (/home/zhu/.cargo/git/checkouts/rcore-fs-7fdf258332f6146d/6df6cd2/rcore-fs) error[E0554]: #![feature] may not be used on the stable release channel --> rcore-fs/src/lib.rs:2:1 | 2 | #![feature(async_closure)] | ^^^^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to previous error

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

To learn more, run the command again with --verbose. warning: build failed, waiting for other jobs to finish... error: failed to compile rcore-fs-fuse v0.1.0 (https://github.com/rcore-os/rcore-fs#6df6cd24), intermediate artifacts can be found at /tmp/cargo-installunMg5N

Caused by: build failed Makefile:22: recipe for target 'dependency' failed make[1]: [dependency] Error 101 make[1]: 离开目录“/home/zhu/qemu-4.2.0/rCore-Tutorial/user” Makefile:2: recipe for target 'run' failed make: [run] Error 2

ghost commented 3 years ago

Seems like it only compiles with rust nightly curl https://sh.rustup.rs -sSf | sh