Skip to content

Build macOS Tahoe binaries and fix CI on newer runners#2

Merged
alexarchambault merged 13 commits intostatic-binariesfrom
macos-tahoe
Mar 19, 2026
Merged

Build macOS Tahoe binaries and fix CI on newer runners#2
alexarchambault merged 13 commits intostatic-binariesfrom
macos-tahoe

Conversation

@alexarchambault
Copy link
Copy Markdown
Member

No description provided.

@alexarchambault

This comment was marked as resolved.

This comment was marked as resolved.

Copilot AI and others added 5 commits March 18, 2026 16:06
* Initial plan

* Fix distlib error in macOS and Windows CI builds

Python 3.14.3 ships with pip 25+ which no longer bundles distlib as a
vendored package. QEMU's mkvenv.py requires distlib (either standalone or
as pip._vendor.distlib). Install distlib via pip in the prepare step for
both macOS and Windows (MSYS2) builds.

Co-authored-by: alexarchambault <7063723+alexarchambault@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: alexarchambault <7063723+alexarchambault@users.noreply.github.com>
@alexarchambault

This comment was marked as resolved.

This comment was marked as outdated.

Copilot AI and others added 4 commits March 18, 2026 20:13
…uild (#4)

* Initial plan

* Fix windows-2022 CI: change prefix to C:/qemu in configs/meson/windows.txt

Meson 1.5.0 validates prefix using Python's os.path.isabs(), which
returns False for '/qemu' on Windows (requires a drive letter). Change
to 'C:/qemu' which is accepted as absolute on Windows while producing
the same archive directory structure (symlink-install-tree.py strips
the drive letter via PurePath.parts[1:]).

Co-authored-by: alexarchambault <7063723+alexarchambault@users.noreply.github.com>

* Fix windows prefix: apply C:/qemu only in native build, not cross

Revert configs/meson/windows.txt to prefix = '/qemu' (needed for the
cross-compilation job which runs meson on Linux, where os.path.isabs
returns True for /qemu but False for C:/qemu).

Instead, pass --prefix=C:/qemu via configure.sh OS_ARGS only in the
native Windows (MSYS/MINGW) branch, where meson runs on Windows Python
and requires a drive-letter-prefixed absolute path.

Co-authored-by: alexarchambault <7063723+alexarchambault@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: alexarchambault <7063723+alexarchambault@users.noreply.github.com>
@alexarchambault

This comment was marked as resolved.

This comment was marked as outdated.

* Initial plan

* Fix Windows compilation error: guard ConvertStringToBSTR redefinition

Co-authored-by: alexarchambault <7063723+alexarchambault@users.noreply.github.com>

* Fix Windows linking error: move qemu_ftruncate64 to util/oslib-win32.c

Co-authored-by: alexarchambault <7063723+alexarchambault@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: alexarchambault <7063723+alexarchambault@users.noreply.github.com>
@alexarchambault alexarchambault changed the title Try to build macOS Tahoe binaries Build macOS Tahoe binaries and fix CI on newer runners Mar 19, 2026
@alexarchambault alexarchambault marked this pull request as ready for review March 19, 2026 01:46
@alexarchambault

This comment was marked as outdated.

This comment was marked as outdated.

* Initial plan

* Bundle libwinpthread-1.dll in native Windows build archive to fix check-windows CI

Co-authored-by: alexarchambault <7063723+alexarchambault@users.noreply.github.com>

* Fix macOS 14 CI: disable CoreAudio to avoid clang-15 ObjC incompatibility

Co-authored-by: alexarchambault <7063723+alexarchambault@users.noreply.github.com>

* Fix macOS 14 CI: disable vmnet to eliminate remaining ObjC compilation on clang-15

Co-authored-by: alexarchambault <7063723+alexarchambault@users.noreply.github.com>

* Fix ObjC hardening flags on clang-15: test with ObjC compiler, restore vmnet support

Co-authored-by: alexarchambault <7063723+alexarchambault@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: alexarchambault <7063723+alexarchambault@users.noreply.github.com>
@alexarchambault alexarchambault merged commit fd5fed8 into static-binaries Mar 19, 2026
18 checks passed
@alexarchambault alexarchambault deleted the macos-tahoe branch March 19, 2026 19:37
alexarchambault pushed a commit that referenced this pull request Mar 19, 2026
ASAN spotted a leaking string in machine_set_loadparm():

Direct leak of 9 byte(s) in 1 object(s) allocated from:
    #0 0x560ffb5bb379 in malloc ../projects/compiler-rt/lib/asan/asan_malloc_linux.cpp:69:3
    #1 0x7f1aca926518 in g_malloc ../glib/gmem.c:106
    #2 0x7f1aca94113e in g_strdup ../glib/gstrfuncs.c:364
    #3 0x560ffc8afbf9 in qobject_input_type_str ../qapi/qobject-input-visitor.c:542:12
    #4 0x560ffc8a80ff in visit_type_str ../qapi/qapi-visit-core.c:349:10
    #5 0x560ffbe6053a in machine_set_loadparm ../hw/s390x/s390-virtio-ccw.c:802:10
    #6 0x560ffc0c5e52 in object_property_set ../qom/object.c:1450:5
    #7 0x560ffc0d4175 in object_property_set_qobject ../qom/qom-qobject.c:28:10
    #8 0x560ffc0c6004 in object_property_set_str ../qom/object.c:1458:15
    #9 0x560ffbe2ae60 in update_machine_ipl_properties ../hw/s390x/ipl.c:569:9
    #10 0x560ffbe2aa65 in s390_ipl_update_diag308 ../hw/s390x/ipl.c:594:5
    #11 0x560ffbdee132 in handle_diag_308 ../target/s390x/diag.c:147:9
    #12 0x560ffbebb956 in helper_diag ../target/s390x/tcg/misc_helper.c:137:9
    #13 0x7f1a3c51c730  (/memfd:tcg-jit (deleted)+0x39730)

Cc: qemu-stable@nongnu.org
Signed-off-by: Fabiano Rosas <farosas@suse.de>
Message-ID: <20250509174938.25935-1-farosas@suse.de>
Fixes: 1fd396e ("s390x: Register TYPE_S390_CCW_MACHINE properties as class properties")
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
(cherry picked from commit bdf12f2)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants