Windows: `coff does not support linking multiple objects into one`
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Domain
- build-system
Research direction
The failure comes from the build step that splits the markup object before linking, and the issue points to build/app.zig around line 1777 in the installed SDK. Read how the COFF target path differs from the others, and reproduce on a Windows target with native dev. Done means the app builds and runs on Windows without the 'coff does not support linking multiple objects' error, with the change made in the repository rather than the global npm install.
Written by the indexing model from the issue text.
Description
Environment
- Windows 11, x86_64
native0.10.1- Zig 0.16.0
- clang/LLVM 23.1.3
After running quick start commands:
npm install -g @native-sdk/[email protected] (there's a different bug on 0.11.0)
native init my_app
cd my_app
native dev
I get:
└─ compile obj meta-mp3-app-code Debug native failure
error: error: coff does not support linking multiple objects into one
I am new to Zig and this project (BTW, thanx for making it!!) so I asked AI where's the problem. It suggested several fixes: run it on (macOS that I don't have) or patch it:
Patch the installed SDK (build/app.zig, ~line 1777) to skip the object split on COFF and link the markup object directly instead:
const exe_root = if (ts_stage) |stage| root: {
if (target.result.object_format == .coff) {
app_mod.addObjectFile(markupDataObject(b, target, app_optimize, stage.markup_c).getEmittedBin());
break :root app_mod;
}
… existing split …
};
Unblocks immediately; lost on SDK update/reinstall, and edits a global npm package.
I'm happy to provide more info if needed or test a fix in a PR :)
- 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 ·