[BUG] User led Rust example doesn't compile
- Dominant language
- C
- Stars
- 465
- Forks
- 779
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 36
Description
### Description / Steps to reproduce the issue
To reproduce the issue:
1. Configure for the `nucleo-l452re` config: ./tools/configure.sh -E -l nucleo-l452re:nsh
2. In the `make menuconfig` enable the `USERLED` option for `LED Driver`
3. In the `make menuconfig` enable the `EXAMPLES_LEDS_RUST` option, and leave everything as default
4. Compile with `make -j`
And you should have this error message:
```bash
arm-none-eabi-ld: /home/ludovic/Code/nuttx_ws/nuttx/staging/libapps.a(leds_rust_main.rs.home.ludovic.Code.nuttx_ws.apps.examples.leds_rust_1.o): in function `leds_rust_main::nuttx::safe_puts':
/home/ludovic/Code/nuttx_ws/apps/examples/leds_rust/nuttx.rs:108: undefined reference to `__aeabi_memclr'
arm-none-eabi-ld: /home/ludovic/Code/nuttx_ws/apps/examples/leds_rust/nuttx.rs:108: undefined reference to `__aeabi_memclr'
arm-none-eabi-ld: /home/ludovic/Code/nuttx_ws/nuttx/staging/libapps.a(leds_rust_main.rs.home.ludovic.Code.nuttx_ws.apps.examples.leds_rust_1.o): in function `leds_rust_main::nuttx::safe_open':
/home/ludovic/Code/nuttx_ws/apps/examples/leds_rust/nuttx.rs:77: undefined reference to `__aeabi_memclr'
arm-none-eabi-ld: /home/ludovic/Code/nuttx_ws/nuttx/staging/libapps.a(leds_rust_main.rs.home.ludovic.Code.nuttx_ws.apps.examples.leds_rust_1.o): in function `leds_rust_main::nuttx::safe_puts':
/home/ludovic/Code/nuttx_ws/apps/examples/leds_rust/nuttx.rs:108: undefined reference to `__aeabi_memclr'
arm-none-eabi-ld: /home/ludovic/Code/nuttx_ws/apps/examples/leds_rust/nuttx.rs:108: undefined reference to `__aeabi_memclr4'
arm-none-eabi-ld: /home/ludovic/Code/nuttx_ws/apps/examples/leds_rust/nuttx.rs:108: undefined reference to `__aeabi_memclr'
make[1]: *** [Makefile:212: nuttx] Error 1
make: *** [tools/Unix.mk:551: nuttx] Error 2
```
### On which OS does this issue occur?
[OS: Linux]
### What is the version of your OS?
Ubuntu 22.04 LTS
### NuttX Version
master - e2a21337ac5be663a8e6d9a82baa64b93cc19755 and stable 12.7
### Issue Architecture
[Arch: arm]
### Issue Area
[Area: Examples]
### 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.