[MacPorts] #73902: qemu @11.0.0_0+cocoa+curses+gl+spice+spice_protocol+target_arm+target_x86_64+usb+vnc does not compile on Mac M2
MacPorts
noreply at macports.org
Sun Aug 16 20:18:43 UTC 2026
#73902: qemu
@11.0.0_0+cocoa+curses+gl+spice+spice_protocol+target_arm+target_x86_64+usb+vnc
does not compile on Mac M2
----------------------+-------------------------
Reporter: rrobtoo | Owner: raimue
Type: defect | Status: closed
Priority: Normal | Milestone:
Component: ports | Version: 2.12.5
Resolution: fixed | Keywords: arm64 tahoe
Port: qemu |
----------------------+-------------------------
Changes (by herbygillot):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"1c229e6217ce46c919fb4cebef66873501e6f732/macports-ports"
1c229e6217ce46c919fb4cebef66873501e6f732/macports-ports] (master):
{{{
#!ConfigurableCommitTicketReference repository="macports-ports"
revision="1c229e6217ce46c919fb4cebef66873501e6f732"
qemu: fix +gl build with clang 15 and later
ui/egl-helpers.c passes an EGLNativeDisplayType straight to
eglGetPlatformDisplayEXT(), whose second parameter is void *. That
typedef is only a pointer on window systems that define a native display
type; Mesa's surfaceless configuration, which is what macOS uses, makes
it an int. clang 15 promoted -Wint-conversion from a warning to an
error, so the gl variant now fails to build outright:
ui/egl-helpers.c:531:54: error: incompatible integer to pointer
conversion passing 'EGLNativeDisplayType' (aka 'int') to parameter
of type 'void *'
Casting through uintptr_t is correct whether the typedef is an integer or
a pointer, so the patch needs no version or platform guard. It is
registered inside the gl variant rather than at the top level, since
ui/egl-helpers.c is only compiled when opengl is enabled.
Reproduced and verified on macOS 26.6.1 arm64 with Apple clang 21: the
original construct is a hard error against the installed epoxy headers,
the patched one compiles cleanly under -Wall -Wextra, and a full
qemu +gl install then succeeded. No revision bump, since the generated
code is unchanged for anyone whose compiler accepted the old form.
Fixes: https://trac.macports.org/ticket/73902
Assisted-by: Claude:claude-opus-5
Co-Authored-By: Claude Opus 5 <noreply at anthropic.com>
}}}
--
Ticket URL: <https://trac.macports.org/ticket/73902#comment:6>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list