BUPT-OS / RROS

RROS is a dual-kernel OS for satellites or other scenarios that need both real-time and general-purpose abilities. RROS = RTOS (Rust) + Linux (C).
https://bupt-os.github.io/website/
Other
567 stars 40 forks source link

Missing Makefile in `kernel/rros/` directory blocking rust-analyzer generation #54

Closed Caspian443 closed 1 month ago

Caspian443 commented 1 month ago

When running the make LLVM=1 rust-analyzer command, the build process fails due to a missing Makefile in the kernel/rros directory. Following is the error message:


$ make LLVM=1 rust-analyzer
  CALL    scripts/checksyscalls.sh
  CALL    scripts/atomic/check-atomics.sh
Traceback (most recent call last):
  File "/home/crism/RROS1/./scripts/generate_rust_analyzer.py", line 143, in <module>
    main()
  File "/home/crism/RROS1/./scripts/generate_rust_analyzer.py", line 136, in main
    "crates": generate_crates(args.srctree, args.objtree, args.sysroot_src, args.bindings_file),
  File "/home/crism/RROS1/./scripts/generate_rust_analyzer.py", line 107, in generate_crates
    if f"{name}.o" not in open(path.parent / "Makefile").read():
FileNotFoundError: [Errno 2] No such file or directory: 'kernel/rros/arch/Makefile'
make[1]: *** [rust/Makefile:283: rust-analyzer] Error 1
make: *** [Makefile:1870: rust-analyzer] Error 2