New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ocamlbuild -clean says directory is not empty #7009
Comments
Comment author: @gasche But is the |
Comment author: william yes, the directory is empty ! |
Comment author: william I made some more tests. the problems appears with version 4.02.3 (compared to 4.02.1), but only on debian 8 jessie platform through SSH staying on local debian 7 wheezy platform, no matter 4.02.1 or 4.02.3, it works |
Comment author: william even more funny, |
Comment author: daweil The bug is a REGRESSION and so, it would be nice if it is fixed in next Ocaml release. On windows, the message is ocamlbuild -clean |
Comment author: @gasche When you mean "on windows", are you still in a NFS-mounted system, or is this reproducible under any Windows filesystem? Does the Windows run also ends up with an empty _build, or is _log still present? The windows error message is more informative, it looks like some file description still open is blocking deletion. We should investigate (bisect?) what change created the issue. If this is reproducible enough on your end, would you be able to bisect from the git repository? From the root ocaml repository on trunk, |
Comment author: daweil On windows, we're using the mingw port, i.e. native 32 bit code build on cygwin with the i686-mingw32-w64 cross-compiler (cf http://protz.github.io/ocaml-installer/). The error message indicates the ocamlbuild is writing on the _build/_log file et trying to remove the -build directory in the same time. |
Comment author: @xavierleroy I suspect SVN commit r15973, which was trying to fix #6652. Index: main.ml--- main.ml (revision 15972) let clean () =
|
Comment author: @damiendoligez ocamlbuild is now a separate project that lives on GitHub. |
Original bug ID: 7009
Reporter: william
Status: resolved (set by @damiendoligez on 2017-02-24T10:45:45Z)
Resolution: suspended
Priority: normal
Severity: minor
OS: Linux
Target version: later
Category: -for ocamlbuild use https://github.com/ocaml/ocamlbuild/issues
Monitored by: @glondu
Bug description
the command "ocamlbuild -clean" do not work. Here is the output :
rm: impossible de supprimer « /home/william/project/_build »: Le dossier n'est pas vide
Command exited with code 1.
Failure:
Error during command "rm -Rf /home/william/project/_build": My_std.Exit_with_code(10).
Compilation unsuccessful after building 0 targets (0 cached) in 00:00:00.
Additional information
This error appeared with ocamlbuild 4.02.3, but it is working with 4.02.1.
Also, I am not expert on the system I am using, but it could be related to NFS, and I am connecting through SSH to another computer in a local network.
The text was updated successfully, but these errors were encountered: