Ayush Yadav created an issue:
https://gitlab.rtems.org/rtems/tools/rtems-source-builder/-/issues/173
## Summary
While building the RTEMS Tool suite on Fedora 44 (GCC 16), the `dtc` package
fails to compile. This appears to be due to stricter pointer type checks in the
latest GCC/C23 standards. The compiler throws an error when the `const void *`
returned by `memchr` is assigned to a non-const `char *`.
**Environment:**
* **OS:** Fedora 44
* **Compiler:** GCC 16
#### Error Log
```
libfdt/fdt_overlay.c: In function 'overlay_fixup_phandle':
libfdt/fdt_overlay.c:424:21: error: assignment discards 'const' qualifier from
pointer target type [-Werror=discarded-qualifiers]
424 | sep = memchr(fixup_str, ':', fixup_len);
| ^
libfdt/fdt_overlay.c:434:21: error: assignment discards 'const' qualifier from
pointer target type [-Werror=discarded-qualifiers]
434 | sep = memchr(name, ':', fixup_len);
| ^
cc1: all warnings being treated as errors
make: *** [Makefile:359: libfdt/fdt_overlay.o] Error 1
```
## Steps to reproduce
1. ../source-builder/sb-set-builder --log log.txt --prefix=/opt/rtems/7
7/rtems-sparc #from rsb/rtems directory
--
View it on GitLab:
https://gitlab.rtems.org/rtems/tools/rtems-source-builder/-/issues/173
You're receiving this email because of your account on gitlab.rtems.org.
_______________________________________________
bugs mailing list
[email protected]
http://lists.rtems.org/mailman/listinfo/bugs