Opened 2 years ago

Closed 2 years ago

#66174 closed defect (worksforme)

gtk3-devel build failed due to incompatible pointer types (gint64 != int64_t).

Reported by: bll123 (Brad Lanam) Owned by: mascguy (Christopher Nielsen)
Priority: Normal Milestone:
Component: ports Version: 2.8.0
Keywords: Cc:
Port: gtk3-devel

Description (last modified by jmroot (Joshua Root))

Building gtk3-devel

Ventura, command line tools 14.1

The 14.x clang compilers on MacOS are creating errors and warnings about mismatched types even when sizeof (long) == sizeof (long long). Or in this case, sizeof (gint64) == sizeof (int64_t).

libtool: compile:  /usr/bin/clang -arch x86_64 -DHAVE_CONFIG_H -I. -I../.. -DG_LOG_DOMAIN=\"Gdk\" -DG_LOG_USE_STRUCTURED=1 -DGDK_COMPILATION -I../.. -I../../gdk -I../../gdk -fvisibility=hidden -DG_ENABLE_DEBUG -DG_DISABLE_CAST_CHECKS -DGLIB_MIN_REQUIRED_VERSION=GLIB_VERSION_2_56 -DGLIB_MAX_ALLOWED_VERSION=GLIB_VERSION_2_58 -I/opt/local/include/pango-1.0 -I/opt/local/include/harfbuzz -I/opt/local/include/pango-1.0 -I/opt/local/include/harfbuzz -I/opt/local/include/gdk-pixbuf-2.0 -I/opt/local/include/cairo -I/opt/local/include/gio-unix-2.0 -I/opt/local/include/cairo -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/pixman-1 -I/opt/local/include/freetype2 -I/opt/local/include/libpng16 -I/opt/local/include/fribidi -I/opt/local/include -DX_LOCALE -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -pipe -Os -fstrict-aliasing -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -arch x86_64 -Wall -MT gdkmonitor-x11.lo -MD -MP -MF .deps/gdkmonitor-x11.Tpo -c gdkmonitor-x11.c -o gdkmonitor-x11.o >/dev/null 2>&1
gdkglcontext-x11.c:107:43: warning: incompatible pointer types passing 'gint64 *' (aka 'long *') to parameter of type 'int64_t *' (aka 'long long *') [-Wincompatible-pointer-types]
      glXGetSyncValuesOML (dpy, drawable, &ust, &msc, &sbc);
                                          ^~~~
gdkglcontext-x11.c:107:49: warning: incompatible pointer types passing 'gint64 *' (aka 'long *') to parameter of type 'int64_t *' (aka 'long long *') [-Wincompatible-pointer-types]
      glXGetSyncValuesOML (dpy, drawable, &ust, &msc, &sbc);
                                                ^~~~
gdkglcontext-x11.c:107:55: warning: incompatible pointer types passing 'gint64 *' (aka 'long *') to parameter of type 'int64_t *' (aka 'long long *') [-Wincompatible-pointer-types]
      glXGetSyncValuesOML (dpy, drawable, &ust, &msc, &sbc);
                                                      ^~~~
gdkglcontext-x11.c:110:25: warning: incompatible pointer types passing 'gint64 *' (aka 'long *') to parameter of type 'int64_t *' (aka 'long long *') [-Wincompatible-pointer-types]
                        &ust, &msc, &sbc);
                        ^~~~
gdkglcontext-x11.c:110:31: warning: incompatible pointer types passing 'gint64 *' (aka 'long *') to parameter of type 'int64_t *' (aka 'long long *') [-Wincompatible-pointer-types]
                        &ust, &msc, &sbc);
                              ^~~~
gdkglcontext-x11.c:110:37: warning: incompatible pointer types passing 'gint64 *' (aka 'long *') to parameter of type 'int64_t *' (aka 'long long *') [-Wincompatible-pointer-types]
                        &ust, &msc, &sbc);
                                    ^~~~

Change History (4)

comment:1 Changed 2 years ago by bll123 (Brad Lanam)

I think this ticket should be closed. I need to clean out macports properly and start over. the macPorts build on Ventura doesn't seem very stable for me right now.

comment:2 Changed 2 years ago by jmroot (Joshua Root)

Description: modified (diff)
Owner: set to mascguy
Status: newassigned
Summary: port: gtk3-devel build failed due to incompatible pointer types (gint64 != int64_t).gtk3-devel build failed due to incompatible pointer types (gint64 != int64_t).

comment:3 Changed 2 years ago by bll123 (Brad Lanam)

Completely uninstalled all macports and reinstalled. Confirmed that gtk3-devel builds ok on Ventura, CLT 14.1 . As of: Tue Nov 8 15:03:33 UTC 2022 This ticket can be closed.

comment:4 Changed 2 years ago by kencu (Ken)

Resolution: worksforme
Status: assignedclosed

OK, thanks. If this happens again (we do see this issue from time to time with glib) we can start fresh.

Note: See TracTickets for help on using tickets.