Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0005577OCamlconfigure and build/installpublic2012-04-06 16:032015-12-11 19:04
Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionno change required 
PlatformOSWindowsOS Version
Product Version 
Target VersionFixed in Version 
Summary0005577: Windows: 'make install' fails when 'make opt' has not been run
DescriptionOCaml 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?
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
xleroy (administrator)
2012-04-06 16:16

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.
frisch (developer)
2012-04-10 10:17

> 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.

- Issue History
Date Modified Username Field Change
2012-04-06 16:03 frisch New Issue
2012-04-06 16:16 xleroy Note Added: 0007288
2012-04-06 16:16 xleroy Status new => resolved
2012-04-06 16:16 xleroy Resolution open => no change required
2012-04-10 10:17 frisch Note Added: 0007304
2015-12-11 19:04 xleroy Status resolved => closed
2017-02-23 16:38 doligez Category OCaml internal build/install (Makefiles, configure) => configure and build/install

Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker