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 -where on MinGW produces wrong path #4575
Comments
Comment author: @ygrek Search for "program files" in ocamlbuild.exe - it has '\r' character in path (hence console output). Tracking source leads to my_std.ml String.chomp Taking into account Mac OS too, maybe something like this will do : open String let chomp s = let test s s1 = print_endline (if s1 = chomp s then "ok" else "failed") let _ = |
Comment author: ertai Thanks for pointing out the bug in chomp. I've applied your change to the CVS tree, let me now if it fixes the whole problem with -where on MinGW |
Comment author: @ygrek I don't use mingw. But this issue was present on msvc build too (though it showed only as console output otherwise everything worked ok). So I grabbed cvs and built with msvc. Unfortunately the resulting ocamlbuild couldn't run because of AV in ocamlrun. It is built without symbols so I couldn't debug it. But at least the offending string in ocamlbuild.exe doesn't contain \r character. |
Comment author: @ygrek Rebuilt with pdb and found that it picked dlls from OCAMLLIB (for 3.10) hence crash. ocamlbuild.exe -where |
Comment author: hansr Tested against version 3.11+dev19 Private_abbrevs+natdynlink+lazy_patterns+fscanf debug (2008-10-06) in bash: in cmd: (Though, it has some problems running /cygdrive/c/ocamlmgw/bin/ocamlbuild.exe So that problem seems to be fixed with that patch. Thanks, Hans Ole |
Original bug ID: 4575
Reporter: hansr
Assigned to: ertai
Status: closed (set by @xavierleroy on 2010-04-29T12:31:20Z)
Resolution: fixed
Priority: normal
Severity: minor
Version: 3.10.2
Category: -for ocamlbuild use https://github.com/ocaml/ocamlbuild/issues
Bug description
$ ocamlbuild -classic-display -no-log
Failure: Cannot find "ocamlbuildlib.cmxa" in ocamlbuild -where directory.
$ ocamlbuild -where
/ocamlbuildFiles\Objective Caml\lib
Seems to overwrite the path instead of appending to it.
Workaround:
ocamlbuild -install-lib-dir C:\Programfiler\Objective Caml\lib\ocamlbuild ...
This seems to have been noticed in version 3.10.0 as well
http://caml.inria.fr/pub/ml-archives/caml-list/2000/09/4b40f92c435feedad2c78316cb97ac12.en.html
but I could not find it reported as a bug.
Hans Ole
The text was updated successfully, but these errors were encountered: