LibertyOS-Development / kernel

The kernel for LibertyOS.
Apache License 2.0
277 stars 12 forks source link

[BUG] error: cannot find macro `asm` in this scope #12

Closed nikitundrik closed 1 year ago

nikitundrik commented 2 years ago

Describe the bug When I tried building the kernel from the source when crates were building at the moment of compilation of lazy_static error: cannot find macroasmin this scope error appeared.

To Reproduce Steps to reproduce the behavior:

  1. Build the kernel from the instructions on the Github page. The error happened when I ran cargo build

Expected behavior Expected that the kernel would build succesfully

Additional information

davethiede commented 2 years ago

Several of us are having build issues with Linux. I'm using Arch. I've found today that running a "cargo install" command will succeed. I also tried moving the rust-toolchain file out of the way to see if that made a difference but it didn't. I use the nightly toolchain by default. All of the commands were run from bootstrap.sh file except for installing rustup which is already installed on my systems.

works

cargo install --debug --path . cargo install --path .

fails

cargo build