rust-toolchain should update
run
make sfsimg PREBUILT=1 ARCH=riscv32
Caused by:
this version of Cargo is older than the 2021 edition, and only supports 2015 and 2018 editions.
Makefile:301: recipe for target 'rcore-fs-fuse' failed
Successfully run after updating the content of rust-toolchain to nightly-2022-06-27.
However, You need to run
rustup override nightly-2020-06-04-x86_64-unknown-linux-gnu
before running
make run ARCH=x86_64 LOG=info
You will get the following results
Finished release [optimized] target(s) in 3m 08s
target/riscv32/release/rcore: 1: target/riscv32/release/rcore: Syntax error: "(" unexpected
Makefile:324: recipe for target 'target/riscv32/release/kernel.img' failed
make: *** [target/riscv32/release/kernel.img] Error 2
if you do not run
rustup override nightly-2020-06-04-x86_64-unknown-linux-gnu
You will fail
Hi, have you ever met the toolchain version problem while compiling under directory rboot?
in which the toolchain version is nightly-2020-06-04-x86_64-unknown-linux-gnu, I have no idea how to control the dependency version 👀
make[1]: Entering directory '/home/ubuntu/rust/RustOS/rboot'
cargo build -Z build-std=core,alloc --target x86_64-unknown-uefi --release
error: failed to download `proc-macro2 v1.0.66`
Caused by:
unable to get packages from source
Caused by:
failed to parse manifest at `/home/ubuntu/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-1.0.66/Cargo.toml`
Caused by:
failed to parse the `edition` key
Caused by:
this version of Cargo is older than the `2021` edition, and only supports `2015` and `2018` editions.
Hi, have you ever met the toolchain version problem while compiling under directory
rboot?↳in which the toolchain version is
nightly-2020-06-04-x86_64-unknown-linux-gnu, I have no idea how to control the dependency version 👀↳make[1]: Entering directory '/home/ubuntu/rust/RustOS/rboot' cargo build -Z build-std=core,alloc --target x86_64-unknown-uefi --release error: failed to download `proc-macro2 v1.0.66` Caused by: unable to get packages from source Caused by: failed to parse manifest at `/home/ubuntu/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-1.0.66/Cargo.toml` Caused by: failed to parse the `edition` key Caused by: this version of Cargo is older than the `2021` edition, and only supports `2015` and `2018` editions.
https://github.com/rcore-os/rCore/issues/84#issuecomment-1172922681
fine, seems won't be maintained anymore...
Hi, have you ever met the toolchain version problem while compiling under directory
rboot?in which the toolchain version is
nightly-2020-06-04-x86_64-unknown-linux-gnu, I have no idea how to control the dependency version 👀make[1]: Entering directory '/home/ubuntu/rust/RustOS/rboot' cargo build -Z build-std=core,alloc --target x86_64-unknown-uefi --release error: failed to download `proc-macro2 v1.0.66` Caused by: unable to get packages from source Caused by: failed to parse manifest at `/home/ubuntu/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-1.0.66/Cargo.toml` Caused by: failed to parse the `edition` key Caused by: this version of Cargo is older than the `2021` edition, and only supports `2015` and `2018` editions.
you can change version in "./rust-toolchain". Just like I said before: Successfully run after updating the content of rust-toolchain to nightly-2022-06-27
Hi, have you ever met the toolchain version problem while compiling under directory
rboot?↳ in which the toolchain version isnightly-2020-06-04-x86_64-unknown-linux-gnu, I have no idea how to control the dependency version 👀↳make[1]: Entering directory '/home/ubuntu/rust/RustOS/rboot' cargo build -Z build-std=core,alloc --target x86_64-unknown-uefi --release error: failed to download `proc-macro2 v1.0.66` Caused by: unable to get packages from source Caused by: failed to parse manifest at `/home/ubuntu/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-1.0.66/Cargo.toml` Caused by: failed to parse the `edition` key Caused by: this version of Cargo is older than the `2021` edition, and only supports `2015` and `2018` editions.you can change version in "./rust-toolchain". Just like I said before: Successfully run after updating the content of rust-toolchain to nightly-2022-06-27↳
oh, that's crazy.
I just tried to switch it to the latest one and got tons of errors...
how did you find the exact version number that works fine?
Hi, have you ever met the toolchain version problem while compiling under directory
rboot?↳ in which the toolchain version isnightly-2020-06-04-x86_64-unknown-linux-gnu, I have no idea how to control the dependency version 👀↳make[1]: Entering directory '/home/ubuntu/rust/RustOS/rboot' cargo build -Z build-std=core,alloc --target x86_64-unknown-uefi --release error: failed to download `proc-macro2 v1.0.66` Caused by: unable to get packages from source Caused by: failed to parse manifest at `/home/ubuntu/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-1.0.66/Cargo.toml` Caused by: failed to parse the `edition` key Caused by: this version of Cargo is older than the `2021` edition, and only supports `2015` and `2018` editions.you can change version in "./rust-toolchain". Just like I said before: Successfully run after updating the content of rust-toolchain to nightly-2022-06-27↳
oh, that's crazy.
I just tried to switch it to the latest one and got tons of errors...
how did you find the exact version number that works fine?
I'm not quite sure. Perhaps your default version was modified to the old version when you ran an error earlier. You can use the following command to view the current default or override version, switch or delete versions and try again.
~$ rustup toolchain list
nightly-2020-06-04-x86_64-unknown-linux-gnu
nightly-2022-06-27-x86_64-unknown-linux-gnu (default)