[windows] ReleaseFast build fails: coff does not support linking multiple objects into one (compile obj <app>-app-code)
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
- Domain
- build-system, desktop
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
native init tpl --template ts-core(accept defaults)cd tplnative 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
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from vercel-labs/native
-
Per-view widget layout budget (1024 nodes) drops whole frames on real multi-pane app viewsPossibly taken @slicenferqin claimed this 100 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
vercel-labs/native#408 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
vercel-labs/native#387 ·
Maintainers usually reply within 1 day
-
macOS: the window frame event reports the frame size where everything else expects the content sizeOpen
Difficulty 1/5 Under an hour Newbie friendliness 84/100
vercel-labs/native#355 ·
Maintainers usually reply within 1 day
-
cef.zig: InstallResult.archive_path leaks on successPossibly taken @versecafe claimed this 206 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
vercel-labs/native#32 ·
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
vercel-labs/native#957 ·
Maintainers usually reply within 1 day
All issues in vercel-labs/native
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
avaje/avaje-metrics#142 ·
-
enhancement github_actions good first issue
Difficulty 1/5 Under an hour Newbie friendliness 94/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
bazelbuild/apple_support#707 ·
Maintainers usually reply within 1 day
-
security
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
nimbus-agent/Nimbus#2319 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
nextjournal/clerk#830 ·