RTEMS | arm/raspberrypi BSP fails to compile - missing assert.h (#5569)

Jacob Killelea (@jkillelea) gitlab at rtems.org
Mon May 11 05:45:57 UTC 2026



Jacob Killelea created an issue: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5569



## Summary
<!--
Please provide as much information as possible such as error messages or attaching logs
-->

The latest commit on `main`, fails to compile for the `arm/raspberrypi` BSP due to a missing header.

Error message:
```../../../bsps/shared/dev/gpio/gpio-support.c: In function 'generic_bank_isr':
../../../bsps/shared/dev/gpio/gpio-support.c:223:3: error: implicit declaration of function 'assert' [-Wimplicit-function-declaration]
  223 |   assert ( bank_number < GPIO_BANK_COUNT );
      |   ^~~~~~
../../../bsps/shared/dev/gpio/gpio-support.c:25:1: note: 'assert' is defined in header '<assert.h>'; this is probably fixable by adding '#include <assert.h>'
   24 | #include <stdlib.h>
  +++ |+#include <assert.h>
   25 |
../../../bsps/shared/dev/gpio/gpio-support.c:223:3: error: nested extern declaration of 'assert' [-Werror=nested-externs]
  223 |   assert ( bank_number < GPIO_BANK_COUNT );
      |   ^~~~~~
cc1: all warnings being treated as errors
```

## Steps to reproduce

RTEMS commit: `1b743eb9d7278c322089aefa7b9f5522c9d68435`
RTEMS compiler version: `arm-rtems7-gcc (GCC) 15.2.0 20250808 (RTEMS 7, Build 2026.03.04, RSB eccf52addccd7b794373f85217d5572c1f35fdd6, Newlib a7c61498)`

<!-- Pre-set options
- milestone
-->

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5569
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260511/747fbcd6/attachment-0001.htm>


More information about the bugs mailing list