|
2026-02-18
| ||
| 08:19 | • Closed ticket [be40b73615]: nmake: rmdir and mkdir are picked from cygwin if ava... artifact: 3993145073 user: jan.nijtmans | |
| 08:09 | Fix [be40b73615] nmake: rmdir and mkdir are picked from cygwin if available check-in: 1a9be58823 user: jan.nijtmans tags: trunk, main | |
| 08:07 | Fix [be40b73615] nmake: rmdir and mkdir are picked from cygwin if available check-in: a7d930aef9 user: jan.nijtmans tags: core-9-0-branch | |
| 07:56 | [be40b73615] nmake: rmdir and mkdir are picked from cygwin if available check-in: c46a5a0e43 user: jan.nijtmans tags: core-8-6-branch | |
|
2026-02-17
| ||
| 18:34 | • Ticket [be40b73615] nmake: rmdir and mkdir are picked from cygwin if available</... artifact: 781e23184a user: oehhar | |
| 18:30 | [be40b736] nmake picks Cygwin rmdir. Patch by Csaba (thanks) closed check-in: b1c564e37d user: oehhar tags: be40b736-nmake-rmdir-cygwin-mixup | |
| 18:23 | • New ticket [be40b73615] nmake: rmdir and mkdir are picked from cygwin if availab... artifact: d1e82f889c user: oehhar | |
nmake: rmdir and mkdir are picked from cygwin if available
Closed / Fixedbe40b7361535190a04dedc5a301f49459c50b623Created 288 days agoUpdated 288 days ago
Descriptionwiki2026-02-17 18:23:55
When building with present cygwin, the cygwin version of rmdir and mkdir are used. This causes the following error, as the parameters are different:
/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"
This happened in this 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:
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.
THanks for all, Harald
Referenced by3
1a9be58823Fix [be40b73615] nmake: rmdir and mkdir are picked from cygwin if available check-in2026-02-18 08:09:02a7d930aef9Fix [be40b73615] nmake: rmdir and mkdir are picked from cygwin if available check-in2026-02-18 08:07:06c46a5a0e43[be40b73615] nmake: rmdir and mkdir are picked from cygwin if available check-in2026-02-18 07:56:44
oehharwiki2026-02-17 18:34:30
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
jan.nijtmanswiki2026-02-18 08:19:51
> Any objections to merge to 8.6,9.0, main branches?
Log in (anonymous is fine) to add a comment.