apache / apache/nuttx-apps

[BUG] Rust Hello example with cargo fails to build

Open
#3,407 14 comments 0 reactions 0 assignees View on GitHub
Type: Bug
Dominant language
C
Stars
465
Forks
779
Avg merge
2d 9h
Merged PRs (30d)
36

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

- [x] I have verified before submitting the report.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.