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

Aperta
#708 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
30/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript, zig

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Zig
Stelle
7.9k
Fork
335
Merge medio
10h 33m
PR unite (30g)
147

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di vercel-labs/native

Tutte le issue di vercel-labs/native

Issue simili

Altre issue su Build System

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.