RTEMS Source Builder | config/gmp: Add GCC 14+ compatibility warning (!165)
Priyanshu Shah (@pvshah)
gitlab at rtems.org
Sat Aug 23 12:25:57 UTC 2025
Priyanshu Shah commented on a discussion on source-builder/config/gmp.cfg: https://gitlab.rtems.org/rtems/tools/rtems-source-builder/-/merge_requests/165#note_129328
> + echo "==============================================================================="
> + echo "WARNING: GCC %{gcc_version_check} detected - GMP compilation may fail"
> + echo "==============================================================================="
> + echo ""
> + echo "GCC 14 and later default to C23 standard, which may cause compilation failures"
> + echo "with GMP %{gmp_version}. If you encounter build errors, consider using:"
> + echo ""
> + echo " - GCC 12 or GCC 13 (recommended)"
> + echo " - Or export CC=gcc-12 (or gcc-13) before running the build"
> + echo ""
> + echo "This is a known compatibility issue with newer GCC versions."
> + echo "==============================================================================="
> + echo ""
> + %endif
> +
> ./configure \
I don't really understand why it should be set to c++17, the issue is with gnu14's implicit function declaration, setting it to something like "-std=gnu11" seems more logical to me.
--
View it on GitLab: https://gitlab.rtems.org/rtems/tools/rtems-source-builder/-/merge_requests/165#note_129328
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/20250823/4e7a6fbf/attachment-0001.htm>
More information about the bugs
mailing list