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

error: linker cc not found [Makefile:123: target/aarch64-unknown-none-softfloat/release/kernel] Error 101 #176

Open
noah-pn opened this issue Apr 15, 2023 · 1 comment

Comments

@noah-pn
Copy link

noah-pn commented Apr 15, 2023

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

@noah-pn noah-pn changed the title [Makefile:123: target/aarch64-unknown-none-softfloat/release/kernel] Error 101 error: linker cc not found [Makefile:123: target/aarch64-unknown-none-softfloat/release/kernel] Error 101 Apr 15, 2023
@pooladkhay
Copy link

This should fix your issue:
https://stackoverflow.com/a/66598982/5852071

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