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

Windows: 'make install' fails when 'make opt' has not been run #5577

Closed
vicuna opened this issue Apr 6, 2012 · 2 comments
Closed

Windows: 'make install' fails when 'make opt' has not been run #5577

vicuna opened this issue Apr 6, 2012 · 2 comments

Comments

@vicuna
Copy link

vicuna commented Apr 6, 2012

Original bug ID: 5577
Reporter: @alainfrisch
Status: closed (set by @xavierleroy on 2015-12-11T18:04:27Z)
Resolution: not a bug
Priority: normal
Severity: minor
OS: Windows
Category: configure and build/install

Bug description

OCaml Makefile.nt fails upon 'make install' if the native compiler has not been built.

Under Unix, the Makefile tests for the presence of ocamlopt and calls the installopt target only if it exists. Is there a reason not to do the same under Windows?

@vicuna
Copy link
Author

vicuna commented Apr 6, 2012

Comment author: @xavierleroy

A simple reason: under Windows, ocamlopt is always built; under Unix, it's not always built because it's not supported on every platform that ocamlrun/ocamlc run on.

@vicuna
Copy link
Author

vicuna commented Apr 10, 2012

Comment author: @alainfrisch

under Windows, ocamlopt is always built

ocamlopt can always be built, but there could be cases where the user wants to build and install only the bytecode tools. I propose one of the following actions (by increasing order of preference):

  • Adapt Makefile.nt so as to force building the the native code version with the bytecode one (i.e. merge 'make opt' -- and also 'make opt.opt'? -- and 'make world').

  • Adapt README.win32 to indicate clearly that 'make opt' has to be executed before 'make install'. Or at least document the 'make installbyt' target.

  • Adapt Makefile.nt to do the same as under Unix, so as to allow more flexibility.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant