rcore-os / rcore-os/rCore-Tutorial-v3

在ch1中cargo build出现问题中显示linker.ld不存在解决办法

Open Beginner friendly
#165 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
2.1k
Forks
560
PR merge metrics
No merged PRs in 30d

Description

在os/.cargo/config.toml文件中,linker.ld文件是不存在的,实际上用的是os/src/linker-qemu.ld中的文件,记得改一改就行了。
os本身就有.cargo文件夹,但是被隐藏了,需要使用ls -al命令查看全部文件及权限。
之间cargo build失败的,可以先cargo clean之后再进行cargo build。

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Check os/.cargo/config.toml and compare its linker path with os/src/linker-qemu.ld. Use ls -al in os to confirm the hidden .cargo directory, then run cargo clean if an earlier build failed and cargo build again. Done means the build no longer reports that linker.ld is missing.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
build-system, operating-systems
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.