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: linking with rust-lld failed: exit status: 1 #1161

Closed
netherous opened this issue Oct 15, 2022 · 2 comments
Closed

error: linking with rust-lld failed: exit status: 1 #1161

netherous opened this issue Oct 15, 2022 · 2 comments

Comments

@netherous
Copy link

Hi, I am currently in chapter 2 of the blog. Build and install bootimage are both successful, but when I ran "cargo bootimage" these warnings and errors appear. WARNING: CARGO_MANIFEST_DIR env variable not set .

error: linking with rust-lld failed: exit status: 1
|
= note: "rust-lld" "-flavor" "gnu" "/tmp/rustcToqTyx/symbols.o"

      rust-lld: error: undefined symbol: __bootloader_start
      >>> referenced by main.rs:112 (src/main.rs:112)
      >>>               /home/george/code/personal/personal_os/blog_os/target/bootimage/bootloader/x86_64-bootloader/release/deps/bootloader-b4a8a4a109acd4d8.bootloader.26c362f9-cgu.1.rcgu.o:(stage_4)
      >>> referenced by main.rs:105 (src/main.rs:105)
      >>>               /home/george/code/personal/personal_os/blog_os/target/bootimage/bootloader/x86_64-bootloader/release/deps/bootloader-b4a8a4a109acd4d8.bootloader.26c362f9-cgu.1.rcgu.o:(stage_4)

error: could not compile bootloader due to previous error
Error: Bootloader build failed.
Stderr:

@netherous
Copy link
Author

hawkw/mycelium#335

@phil-opp
Copy link
Owner

This should be fixed with the latest nightly.

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