rust-raspberrypi-OS-tutorials
rust-raspberrypi-OS-tutorials copied to clipboard
error: linker `cc` not found [Makefile:123: target/aarch64-unknown-none-softfloat/release/kernel] Error 101
Compiling kernel ELF - rpi3
Compiling atmos v0.2.0 (/mnt/c/Users/noahp/OneDrive/Desktop/osdev/rust-raspberrypi-OS-tutorials/atmos)
error: linking with `rust-lld` failed: exit status: 1
|
= note: "rust-lld" "-flavor" "gnu" "/tmp/rustcqhmSRS/symbols.o" "/mnt/c/Users/noahp/OneDrive/Desktop/osdev/rust-raspberrypi-OS-tutorials/atmos/target/aarch64-unknown-none-softfloat/release/deps/kernel-2087bfae60d86e28.kernel.660737e9-cgu.1.rcgu.o" "--as-needed" "-L" "/mnt/c/Users/noahp/OneDrive/Desktop/osdev/rust-raspberrypi-OS-tutorials/atmos/target/aarch64-unknown-none-softfloat/release/deps" "-L" "/mnt/c/Users/noahp/OneDrive/Desktop/osdev/rust-raspberrypi-OS-tutorials/atmos/target/release/deps" "-L" "/root/.rustup/toolchains/nightly-2022-10-13-x86_64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-none-softfloat/lib" "-Bstatic" "/root/.rustup/toolchains/nightly-2022-10-13-x86_64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-none-softfloat/lib/libcompiler_builtins-a3fd61d6b092195d.rlib" "-Bdynamic" "--eh-frame-hdr" "-znoexecstack" "-L" "/root/.rustup/toolchains/nightly-2022-10-13-x86_64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-none-softfloat/lib" "-o" "/mnt/c/Users/noahp/OneDrive/Desktop/osdev/rust-raspberrypi-OS-tutorials/atmos/target/aarch64-unknown-none-softfloat/release/deps/kernel-2087bfae60d86e28" "--gc-sections" "-O1" "--library-path=/mnt/c/Users/noahp/OneDrive/Desktop/osdev/rust-raspberrypi-OS-tutorials/atmos/src/boards/raspberrypi" "--script=kernel.ld"
= note: rust-lld: error: undefined symbol: BOOT_CORE_ID
>>> referenced by kernel.660737e9-cgu.1
>>> /mnt/c/Users/noahp/OneDrive/Desktop/osdev/rust-raspberrypi-OS-tutorials/atmos/target/aarch64-unknown-none-softfloat/release/deps/kernel-2087bfae60d86e28.kernel.660737e9-cgu.1.rcgu.o:(_start)
error: could not compile `atmos` due to previous error
make: *** [Makefile:123: target/aarch64-unknown-none-softfloat/release/kernel] Error 101
Hi, I am at chapter 3 and when I use make qemu
I get that error above.
Here is line 123 of the Makefile: @RUSTFLAGS="$(RUSTFLAGS_PEDANTIC)" $(RUSTC_CMD)
Please help.
Noah
This should fix your issue: https://stackoverflow.com/a/66598982/5852071