Skip to content

win32 on linux64: build run -fwine: host system (x86_64-linux-gnu) is unable to execute binaries from target (x86-windows-gnu) #22361

@Des-Nerger

Description

@Des-Nerger

Zig Version

0.14.0-dev.2577+271452d22

Steps to Reproduce and Observed Behavior

$ winepath -u c:\\windows\\system32 | grep -Eo 'sys.*' # Although I guess it shouldn't matter if this were 'syswow64'.
system32
$ mkdir all-your-base && cd all-your-base && zig init 2>/dev/null && zig build run -fwine -Dtarget=x86-windows-gnu 2>&1 | sed -n '/error:/{p;q}'
error: the host system (x86_64-linux.6.12.6...6.12.6-gnu.2.39) is unable to execute binaries from the target (x86-windows.win10...win11_dt-gnu

Expected Behavior

$ zig targets | grep -FA1 native | tail -n1
  "triple": "x86_64-linux.6.12.6...6.12.6-gnu.2.39",
$ mkdir all-your-base && cd all-your-base && zig init 2>/dev/null && zig build run -fwine -Dtarget=x86-windows-gnu
All your codebase are belong to us.
Run `zig build test` to run the tests.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugObserved behavior contradicts documented or intended behavior

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions