Skip to content

Cross-platform APE build hangs with cosmocc/Wine on Linux #34

@aaronsb

Description

@aaronsb

Problem

Building the way-match binary with Cosmopolitan (cosmocc) hangs indefinitely on Linux when Wine is involved. The mktemper step runs at ~37% CPU but never completes.

$ make -f tools/way-match/Makefile
/home/aaron/.cosmocc/bin/cosmocc -O2 -Itools/way-match -o bin/way-match ...
00b4:fixme:wineusb:query_id Unhandled ID query type 0x5.
# hangs here

The make local target (system cc) completes instantly.

Impact

  • Release binaries are currently Linux x86-64 only (ELF), not cross-platform APE
  • Other machines that clone the repo get no binary and fall back to NCD matching (see Make file output language configurable #33 screenshot context)

Current workaround

make -f tools/way-match/Makefile local builds a native Linux binary. This is attached to releases as an asset.

Desired outcome

Either:

  1. Fix the cosmocc build so it produces a true APE binary (Linux + macOS + Windows in one file)
  2. Or set up CI to build platform-specific binaries and attach them to releases

Environment

  • Arch Linux 6.18.9
  • cosmocc from cosmo.zip/pub/cosmocc/cosmocc.zip
  • Wine is installed on the system

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions