RTEMS | mips/hurricane: Compile error with gcc 14 (#5272)

Joel Sherrill (@joel) gitlab at rtems.org
Wed Jun 18 18:03:50 UTC 2025



Joel Sherrill created an issue: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5272

Assignee: Joel Sherrill

## Summary

The mips/hurricane BSP has a compile error with GCC 14.

```
[  89/4370] Compiling bsps/mips/hurricane/clock/ckinit.c
../../../bsps/mips/hurricane/clock/ckinit.c: In function '_Clock_Initialize':
../../../bsps/mips/hurricane/clock/ckinit.c:203:18: error: passing argument 1 of 'Install_clock' from incompatible pointer type [-Wincompatible-pointer-types]
  203 |   Install_clock( Clock_isr );
      |                  ^~~~~~~~~
      |                  |
      |                  rtems_isr (*)(rtems_vector_number) {aka void (*)(unsigned int)}
../../../bsps/mips/hurricane/clock/ckinit.c:144:19: note: expected 'rtems_isr_entry' {aka 'void (*)(void *)'} but argument is of type 'rtems_isr (*)(rtems_vector_number)' {aka 'void (*)(unsigned int)'}
  144 |   rtems_isr_entry clock_isr
      |   ~~~~~~~~~~~~~~~~^~~~~~~~~
```

Initially, I thought this would require a signature change on the _Clock_isr_ function to match the expected ISR handler signature. Tracking back to the typedef, it was just a void * so the fix was to add a cast.


### Pre-set options

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5272
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/20250618/9ee19b70/attachment.htm>


More information about the bugs mailing list