Skip to content
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

ocamlmklib uses hardcoded path to ocamlc and ocamlopt (Windows native) #4783

Closed
vicuna opened this issue May 2, 2009 · 2 comments
Closed
Labels

Comments

@vicuna
Copy link

vicuna commented May 2, 2009

Original bug ID: 4783
Reporter: @ygrek
Status: closed (set by @xavierleroy on 2010-01-04T16:37:45Z)
Resolution: fixed
Priority: normal
Severity: major
Version: 3.11.0
Fixed in version: 3.11.2+dev
Category: ~DO NOT USE (was: OCaml general)
Monitored by: @Chris00

Bug description

ocamlmklib tries to invoke ocamlc as C:\ocamlms\bin\ocamlc which is not where ocaml is installed.

I think it would be better to invoke simply "ocamlc" (as it already calls flexlink without a full path) relying on PATH environment variable, and if one needs specific path -- use -ocamlc option.

The same goes for ocamlopt.

@vicuna
Copy link
Author

vicuna commented Dec 28, 2009

Comment author: @Chris00

For the mingw port, the path is C:\ocamlmgw\bin\ocamlc — the same goes for ocamlopt.
The fact that this is hardcoded is not so much a problem than the fact that it is NOT the default path of the OCaml installer! Of course one can use the -ocamlc (resp. -ocamlopt) options but this should not be necessary (and libraries makefiles do not usually do that).

@vicuna
Copy link
Author

vicuna commented Jan 4, 2010

Comment author: @xavierleroy

Tentative fix in 3.11 branch (do not use absolute paths when running under Win32). Will go in 3.11.2.

@vicuna vicuna closed this as completed Jan 4, 2010
@vicuna vicuna added the bug label Mar 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant