LibBSD | Draft: gcc15: Fix warnings building with gcc15 (!100)
Chris Johns (@chris)
gitlab at rtems.org
Wed Sep 17 07:31:34 UTC 2025
Chris Johns commented on a discussion: https://gitlab.rtems.org/rtems/pkg/rtems-libbsd/-/merge_requests/100#note_131081
This is an interesting bug because FDT has not been defined is our builds. Adding `-DFDT=1` to the build resolves the compile errors however it exposes a disconnect in how FDT has been integrated into RTEMS. Enabling FDT with the FreeBSD support define breaks linking BSPs:
```
/opt/work/rtems/7-next/lib/gcc/arm-rtems7/15.2.0/../../../../arm-rtems7/bin/ld: ./libbsd.a(rtems-kernel-nexus.c.22.o): in function `nexus_ofw_map_intr':
/opt/work/chris/rtems/libbsd/rtems-libbsd.git/build/arm-rtems7-xilinx_zynq_microzed-default/../../rtemsbsd/rtems/rtems-kernel-nexus.c:412:(.text.nexus_ofw_map_intr+0x4): undefined reference to `bsp_fdt_map_intr'
```
and:
```
/opt/work/rtems/7-next/lib/gcc/arm-rtems7/15.2.0/../../../../arm-rtems7/bin/ld: ./libbsd.a(if_cgem.c.22.o): in function `cgem_probe':
/opt/work/chris/rtems/libbsd/rtems-libbsd.git/build/arm-rtems7-xilinx_zynq_microzed-default/../../freebsd/sys/dev/cadence/if_cgem.c:1915:(.text.cgem_probe+0x6): undefined reference to `bsp_fdt_get'
```
--
View it on GitLab: https://gitlab.rtems.org/rtems/pkg/rtems-libbsd/-/merge_requests/100#note_131081
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/20250917/3a704b61/attachment.htm>
More information about the bugs
mailing list