[MacPorts] #71658: glib2 @2.78.4_1: build fails with gcc14: glib/gconvert.c:281:21: error: passing argument 2 of 'libiconv' from incompatible pointer type [-Wincompatible-pointer-types]
MacPorts
noreply at macports.org
Fri Dec 27 22:16:49 UTC 2024
#71658: glib2 @2.78.4_1: build fails with gcc14: glib/gconvert.c:281:21: error:
passing argument 2 of 'libiconv' from incompatible pointer type
[-Wincompatible-pointer-types]
---------------------+----------------------
Reporter: kencu | Owner: mascguy
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: glib2 |
---------------------+----------------------
Comment (by kencu):
doing this will turn off the pointer type checking error in gcc14:
{{{
configure.cflags-append -Wno-error=incompatible-pointer-types
}}}
but in the case of glib2, that just leads to another different error
later:
{{{
../glib-2.78.4/glib/gmem.c: In function 'g_aligned_alloc':
../glib-2.78.4/glib/gmem.c:643:16: error: format '%u' expects argument of
type 'unsigned int', but argument 6 has type 'long unsigned int'
[-Werror=format=]
643 | g_error ("%s: alignment %"G_GSIZE_FORMAT" must be a multiple
of %"G_GSIZE_FORMAT,
| ^~~~~~~~~~~~~~~~~
644 | G_STRLOC, alignment, sizeof (void *));
| ~~~~~~~~~~~~~~~
| |
| long unsigned int
}}}
so I gave up turning off the warnings-as-errors for gcc-14 and just
blacklisted it to get gcc-10.
--
Ticket URL: <https://trac.macports.org/ticket/71658#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list