[BUG] Rust Hello example with cargo fails to build
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- rust
- Domain
- build-system, embedded-iot
Research direction
Locate the Rust Hello example and its Cargo.toml, then reproduce the failure with the reported Linux, Ubuntu 24.04, NuttX 12.12, and current Rust toolchain setup. Check how the example configures Cargo and verify that it builds successfully without the reported panic strategy error.
Written by the indexing model from the issue text.
Description
Description / Steps to reproduce the issue
I'm trying to build that with latest rust compiler and gives an error:
error: panic_immediate_abort is now a real panic strategy! Enable it with `panic = "immediate-abort"` in Cargo.toml, or with the compiler flags `-Zunstable-opti
ons -Cpanic=immediate-abort`. In both cases, you still need to build core, e.g. with `-Zbuild-std`
--> /home/adahn/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/panicking.rs:36:1
|
36 | / compile_error!(
37 | | "panic_immediate_abort is now a real panic strategy! \
38 | | Enable it with `panic = \"immediate-abort\"` in Cargo.toml, \
39 | | or with the compiler flags `-Zunstable-options -Cpanic=immediate-abort`. \
40 | | In both cases, you still need to build core, e.g. with `-Zbuild-std`"
41 | | );
| |_^
On which OS does this issue occur?
[OS: Linux]
What is the version of your OS?
Ubuntu 24.04
NuttX Version
12.12
Issue Architecture
[Arch: x86]
Issue Area
[Area: Examples]
Host information
No response
Verification
- I have verified before submitting the report.
- Dominant language
- C
- Stars
- 465
- Forks
- 782
- Avg merge
- 3d 11h
- Merged PRs (30d)
- 44
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from apache/nuttx-apps
-
Type: Enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
apache/nuttx-apps#3620 · 5 comments · 1 reaction ·
-
Type: Bug
Difficulty 4/5 3-5 days Newbie friendliness 52/100
apache/nuttx-apps#3634 · 1 comment ·
-
apache/nuttx-apps#3436 · 1 assignee ·
-
[FEATURE/SECURITY/BUG] Add hash key validation to check the files downloaded from external projects OpenType: Bug
Difficulty 4/5 3-5 days Newbie friendliness 35/100
apache/nuttx-apps#3418 ·
-
Type: Enhancement
Difficulty 5/5 Over a week Newbie friendliness 35/100
apache/nuttx-apps#3258 · 1 comment · 2 reactions ·
All issues in apache/nuttx-apps
Similar issues
-
level/task module/gcp type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
-
Difficulty 1/5 Under an hour Newbie friendliness 86/100
hapostgres/pg_auto_failover#1190 ·
-
docs
Difficulty 1/5 Under an hour Newbie friendliness 85/100
-
P3 sonic-vpp
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
sonic-net/sonic-buildimage#29662 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 94/100
spack/spack-packages#6586 ·