-
Notifications
You must be signed in to change notification settings - Fork 81
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
Windows/Cygwin: hygienic check fails for some packages #316
Comments
opam-repository-mingw has a patch for ocamlbuild apparently. |
@kit-ty-kate You pointed to the right location. Actually I had a mix-up of different versions. Anyway, here is the (corrected) list of ocamlbuild version & observed issue:
So, it looks like the patch from |
To my knowledge, no one has done the work of submitting the patch upstream (here) yet, and (hopefully) explaining what it does. |
@kkirstein if you were interested in getting some of this patch merged, I think that would be very nice! There are some parts that were not intended for upstreaming (they are redundant with other code, etc., not written with maintenability in mind), some parts that could be simplified, some parts whose purpose/effect is unclear, etc. (And of course no tests :-) I think someone would need to split it into separate commits that make sense individually (instead of mixing unrelated things together), and submit PRs. I'm happy to help by reviewing the PRs then, but given that I don't have a Windows machine I cannot help with the testing. |
Note: another route for you would be of course to submit an ocamlbuild.14.1 package in opam-repository-mingw, with the same patch as before (I would guess that the rebase would be very easy). That would not help for future versions of reduce the maintenance burden, but it's certainly a good short-term step you could take, hopefully in parallel to my suggestion above. (For the record, the OCaml Foundation offered funding to fdopen, the author and maintainer of opam-repository-mingw, to keep maintaining the patches and work on upstreaming them in their respective projects, but fdopen's opinion at the time (in addition to a lack of time available to work on this) was that it's less necessary nowadays because more recent packages, in particular those using dune, work fine under Windows, so the repository is getting less and less relevant. That sounds like a reasonable position to me, but I'm not familiar with the Windows situation.) |
@gasche I would agree with fdopen that we should keep the number of packages in the mingw repo with special patches small and concentrate of merging Windows-related patches to the upstream repos. Anyway, I will have a closer look at fixing the hygienic/path issue, but I am not sure I can provide something in the near future. |
A more general question: What is the roadmap for |
Right now |
So far I still use it in my packages to build my distributions via |
It looks like an old issue has popped up again in
ocamlbuild
0.14.1
.For some packages on Windows/Cygwin (Mingw toolchain), the hygienic check fails, e.g., for
mtime
1.3.0
:I am not sure whether the first error message on not finding the build folder is a serious failure.
Executing
sanitize.sh
does not help, I guessopam install mtime
regenerates the object files every time.Observed on Windows 10, Cygwin/Mingw (Ocaml for Windows) for OCaml
4.13.1+mingw64
.My current workaround is downgrading
ocamlbuild
to0.14.0
.The text was updated successfully, but these errors were encountered: