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

rust-toolchain should update #92

Open
buloruabutata opened this issue Aug 15, 2023 · 6 comments
Open

rust-toolchain should update #92

buloruabutata opened this issue Aug 15, 2023 · 6 comments

Comments

@buloruabutata
Copy link

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.

@buloruabutata
Copy link
Author

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

@Tramis
Copy link

Tramis commented Aug 24, 2023

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.

@Tramis
Copy link

Tramis commented Aug 24, 2023

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.

#84 (comment)

fine, seems won't be maintained anymore...

@buloruabutata
Copy link
Author

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

@Tramis
Copy link

Tramis commented Aug 24, 2023

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↳

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?

@buloruabutata
Copy link
Author

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↳

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)

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

2 participants