[windows] ReleaseFast build fails: coff does not support linking multiple objects into one (compile obj <app>-app-code)

Open
#708 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
30/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
typescript, zig

Research direction

Reproduce with the three repro steps on Windows, using the ts-core template and the default ReleaseFast build. The failure is in the compile obj tpl-app-code step, which the payload gives as the only named location, so start from that step in the Zig build graph and find where it passes multiple objects to the COFF linker. Done means native build produces zig-out/bin/tpl.exe on Windows without the COFF error.

Written by the indexing model from the issue text.

Description

Summary

native build on Windows fails at the compile obj <app>-app-code step with:

error: error: coff does not support linking multiple objects into one

Build Summary: 14/18 steps succeeded (1 failed)

It reproduces on a blank template app, so it is not app-specific.

Repro

  1. native init tpl --template ts-core (accept defaults)
  2. cd tpl
  3. native build

The TypeScript core itself compiles fine (native scriptc core compile success,
native check clean); only the later native link step fails:

+- compile obj tpl-app-code ReleaseFast native failure
error: error: coff does not support linking multiple objects into one

Environment

  • OS: Windows 11 Enterprise LTSC 10.0.26200, x64
  • Node: v24.21.0
  • Zig: 0.16.0 (official zip, on PATH)
  • CLI: @native-sdk/cli 0.10.1

Note: on a machine without clang, the build first stops at
spawn clang ENOENT in the scriptc stage; setting SCRIPTC_CC=zigcc
works around that and leads to the COFF failure above.

Expected

native build produces zig-out/bin/<app>.exe as documented.

Actual

Build fails at 14/18 steps; no binary is produced.

Dominant language
Zig
Stars
7.9k
Forks
335
Avg merge
10h 33m
Merged PRs (30d)
147

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from vercel-labs/native

All issues in vercel-labs/native

Similar issues

More Build System issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.