Artifacts Associated With Ticket be40b736
Ticket change [d1e82f889c] (rid 251573) by oehhar on 2026-02-17 18:23:55:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-fossil-wiki"
- comment initialized to:
When building with present cygwin, the cygwin version of rmdir and mkdir are used. This causes the following error, as the parameters are different: <verbatim> /usr/bin/rmdir: `/S': Permission denied /usr/bin/rmdir: `/Q': No such file or directory /usr/bin/rmdir: `C:\\test\\fossil\\tk\\6a9bae5e-demo-dist-nmake\\win\\Release_AMD64_VC1944\\libtk.vfs\\tk_library\\demos': Directory not empty NMAKE : fatal error U1077: "rmdir /S /Q "C:\test\fossil\tk\6a9bae5e-demo-dist-nmake\win\Release_AMD64_VC1944\libtk.vfs\tk_library\demos"": Rückgabe-Code "0x1"</verbatim> This happened in this [https://core.tcl-lang.org/tk/info/6a9bae5e8da5cdbe|tk bug 6a9bae5e]. It must be fixed here, as the rules.vc of TCL is used also for Tk. A local copy is ignored, if TCL has one. Csaba proposed the following fix: <verbatim> 1. makefile.vc includes rules-ext.vc, which in turn includes rules.vc. The latter defines RMDIR and MKDIR as follows: RMDIR = rmdir /S /Q ... MKDIR = mkdir This is dangerous, because rmdir and mkdir are not only Window (originally DOS) commands, but they are also present in cygwin and msys/mingw, being that these emulate a part of a Unix environment. And the cygwin commands seem to have precedence over the commands of the same name of Windows. IMHO, the above definitions should be replaced with RMDIR = rd /S /Q ... MKDIR = md This would be better because rd and md are not present in cygwin and msys/mingw, thus no command-related ambiguities could happen any longer. </verbatim> THanks for all, Harald
- foundin initialized to: "main"
- is_private initialized to: "0"
- login: "oehhar"
- priority initialized to: "5 Medium"
- private_contact initialized to: "0f366eb3e9e2fcab52b8ebacd197db9047186a5f"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "oehhar"
- subsystem initialized to: "53. Configuration and Build Tools"
- title initialized to:
nmake: rmdir and mkdir are picked from cygwin if available
- type initialized to: "Bug"
Ticket change [781e23184a] (rid 251575) by oehhar on 2026-02-17 18:34:30:
- icomment:
Csabas fix is now in [b1c564e37d], branch [be40b736-nmake-rmdir-cygwin-mixup]. For me, it solves the issue. Any objections to merge to 8.6,9.0, main branches? Thanks, Harald
- login: "oehhar"
- mimetype: "text/x-fossil-wiki"
- username: "oehhar"
- icomment:
Ticket change [3993145073] (rid 251581) by jan.nijtmans on 2026-02-18 08:19:51:
- assignee changed to: "hoehlmann"
- closedate changed to: "2461089.84711921"
- closer changed to: "jan.nijtmans"
- icomment:
> Any objections to merge to 8.6,9.0, main branches? [1a9be588232b2144]
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- status changed to: "Closed"