Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

"Thread 'main' panicked" build.rs quit compiling with rp_hal

Open
#602 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
rust
Domain
embedded-iot

Research direction

Start by reproducing the cortex-m 0.7.7 build for the rp2040 (cortexv6-m) target under Apache Nuttx, then inspect build.rs line 25 where the static library copy panics. Compare the failure with issue #271 and check whether the absence of semihosting is relevant. Done means identifying the cause and documenting or fixing the build failure for this target.

Written by the indexing model from the issue text.

Description

I am a rust newbie trying to compile a rust program for target rp2040 (cortexv6-m), and trying to build the cortex-m package 0.7.7 crashes with a panic while trying to copy the static library (build.rs:25). I am using rp_hal because I wish to be able to communicate with rp2040 hardware from my app. The app is building as an app under Apache Nuttx, if that makes any difference.

The error seems very very similar to #271 and my issue may be because I don't use the semihosting module, but my target won't have anything to semihost with.

I can provide more details if needed... can you help?

Dominant language
Rust
Stars
1k
Forks
201
Avg merge
3d 16h
Merged PRs (30d)
3

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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.

More from rust-embedded/cortex-m

All issues in rust-embedded/cortex-m

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.