You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
mcpp pack per target: a DJGPP program is refused in the default mode, and a wasm32-emscripten package leaves out cmd.exe.wasm #1007
Packing Sunrisepeak/cmd#1 (a C program with two program targets, cmd.exe and COMMAND.COM) target by target with mcpp 2026.11.22.1, mcpp pack --release --target <T> --all-programs:
refused in the default mode; packed with --mode static
wasm32-emscripten
packed, but cmd.exe.wasm is missing; COMMAND.COM.wasm is there
Neither blocks the project: its release uses --mode static for the DJGPP row and the web directory (--pkg-format web, complete) for WebAssembly.
1. DJGPP: the default (vendored) mode refuses a DJGPP program
Packing cmd v0.1.0 (vendored, stripped)
error: cannot package the unknown artifact 'COMMAND.COM' yet.
Its dependency closure is resolved by running the artifact under its own
dynamic linker, and this file is neither ELF, PE nor Mach-O -- there is no
such linker to ask.
A DJGPP program (COFF under a go32 stub) has no dynamic linker and links everything statically, so its closure is empty by construction. --mode static packs it (cmd-0.1.0-i586-dos-djgpp-static.tar.gz, both programs). Expected: the row (or djgpp-platform) states that its programs are static, so the default mode packs them as i686-dos-musl is packed, without a flag the user has to find.
2. wasm32-emscripten: one program's .wasm is left out
The build directory holds both programs' launcher and module:
cmd.exe.js cannot run without cmd.exe.wasm. The difference between the two programs is the name: cmd.exe already ends in .exe. The project's build program keeps the row's suffix on this row (mcpp::artifact_name is not called for emscripten), so the files are cmd.exe.js / cmd.exe.wasm; a guess is that the companion of cmd.exe.js is looked up from a name with .exe treated as a suffix (cmd.wasm), which does not exist. mcpp pack --pkg-format web copies cmd.exe.wasm correctly.
A third finding while staging a release, same mcpp (2026.11.22.1):
mcpp pack -o dist/pack/ empties the project's dist/. Files placed in dist/bare/ before the pack are gone after it (the directory stays, its files do not). With the output elsewhere (-o rel/pack/) sibling directories keep their files and earlier packages in the output directory stay.
mkdir -p dist/bare &&echo x > dist/bare/marker
mcpp pack --release --target x86_64-linux-musl --all-programs -o dist/pack/
ls dist/bare # empty
mkdir -p rel/bare &&echo x > rel/bare/marker
mcpp pack --release --target x86_64-linux-musl --all-programs -o rel/pack/
ls rel/bare # marker
Expected: a pack writes into the directory it is given and leaves anything else the user put there. The project stages its release in rel/ meanwhile.
Items 1 and 2 are fixed in mcpp 2026.11.23.1 (#1006). A DJGPP program packs in the default mode, because the row states that its programs are static. A wasm32-emscripten package carries every program's .wasm.
The third finding (-o dist/pack/ empties dist/) did not reproduce on a copy of this project. Before each pack, dist/bare/marker was written, and it was still there after each of these runs of mcpp pack --release --all-programs -o dist/pack/:
mcpp 2026.11.22.1 and 2026.11.23.1 with --target x86_64-linux-musl;
2026.11.22.1 with x86_64-windows-gnu, i686-dos-musl, x86_64-openkal, x86_64-uefi and wasm32-emscripten, run one after another.
--pkg-format web is a provided format and was not configured in the copy, so it was not measured. This issue stays open for the third finding; the exact sequence of commands that emptied dist/bare would locate it.
mcpp 2026.11.24.1 (#1012) fixes a related defect found while measuring the third finding: -o <directory>/ with a provided format (--pkg-format web) wrote the distributable alone, so index.html arrived without the .js and .wasm it loads. It now writes the distributable with the outputs it reads beside it, at their relative places, and leaves the directory's other contents.
The third finding (-o dist/pack/ empties dist/) is still not reproduced; in a clean install of 2026.11.24.1, dist/bare/marker survives mcpp pack --release -o dist/pack/. This issue stays open for it; the exact command sequence that emptied dist/bare would locate it.
Activity
speak-agent commentedon Nov 22, 2026
A third finding while staging a release, same mcpp (2026.11.22.1):
mcpp pack -o dist/pack/empties the project'sdist/. Files placed indist/bare/before the pack are gone after it (the directory stays, its files do not). With the output elsewhere (-o rel/pack/) sibling directories keep their files and earlier packages in the output directory stay.Expected: a pack writes into the directory it is given and leaves anything else the user put there. The project stages its release in
rel/meanwhile.2026.11.23.1: the kernel headers are the kernel-abi layer's, platform…
2026.11.23.1: the kernel interface as the kernel-abi layer, derived s…
speak-agent commentedon Nov 24, 2026
Items 1 and 2 are fixed in mcpp 2026.11.23.1 (#1006). A DJGPP program packs in the default mode, because the row states that its programs are static. A wasm32-emscripten package carries every program's
.wasm.The third finding (
-o dist/pack/emptiesdist/) did not reproduce on a copy of this project. Before each pack,dist/bare/markerwas written, and it was still there after each of these runs ofmcpp pack --release --all-programs -o dist/pack/:--target x86_64-linux-musl;x86_64-windows-gnu,i686-dos-musl,x86_64-openkal,x86_64-uefiandwasm32-emscripten, run one after another.--pkg-format webis a provided format and was not configured in the copy, so it was not measured. This issue stays open for the third finding; the exact sequence of commands that emptieddist/barewould locate it.speak-agent commentedon Nov 24, 2026
mcpp 2026.11.24.1 (#1012) fixes a related defect found while measuring the third finding:
-o <directory>/with a provided format (--pkg-format web) wrote the distributable alone, soindex.htmlarrived without the.jsand.wasmit loads. It now writes the distributable with the outputs it reads beside it, at their relative places, and leaves the directory's other contents.The third finding (
-o dist/pack/emptiesdist/) is still not reproduced; in a clean install of 2026.11.24.1,dist/bare/markersurvivesmcpp pack --release -o dist/pack/. This issue stays open for it; the exact command sequence that emptieddist/barewould locate it.