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

Current CVS cannot be build under Windows #4785

Closed
vicuna opened this issue May 3, 2009 · 0 comments
Closed

Current CVS cannot be build under Windows #4785

vicuna opened this issue May 3, 2009 · 0 comments
Labels

Comments

@vicuna
Copy link

vicuna commented May 3, 2009

Original bug ID: 4785
Reporter: @db4
Assigned to: @zoggy
Status: closed (set by @damiendoligez on 2009-05-20T12:05:05Z)
Resolution: fixed
Priority: normal
Severity: minor
Version: 3.11.0
Fixed in version: 3.11.1+dev
Category: ~DO NOT USE (was: OCaml general)
Has duplicate: #4798

Bug description

opt.opt target fails:

make -f Makefile.nt opt.opt
(...)
cd ocamldoc ; /usr/bin/make -f Makefile.nt opt.opt
make[1]: Entering directory /cygdrive/d/Work/ocaml/ocaml-3.11.1-cvs-03.05.09/ocamldoc' ../boot/ocamlrun ../ocamlopt -o ocamldoc.opt (...) File "_none_", line 1, characters 0-1: Error: No implementations provided for the following modules: Dynlink referenced from odoc.cmx make[1]: *** [ocamldoc.opt] Error 2 make[1]: Leaving directory /cygdrive/d/Work/ocaml/ocaml-3.11.1-cvs-03.05.09/ocamldoc'
make: *** [ocamldoc.opt] Error 2

The fix is trivial:

--- ocamldoc/Makefile.nt.orig 2009-05-03 15:10:39.218750000 +0400
+++ ocamldoc/Makefile.nt 2009-05-03 16:48:04.471475900 +0400
@@ -190,7 +190,7 @@
$(OCAMLDOC): $(EXECMOFILES)
$(OCAMLC) -o $@ -linkall unix.cma str.cma dynlink.cma $(LINKFLAGS) $(OCAMLCMOFILES) $(EXECMOFILES)
$(OCAMLDOC_OPT): $(EXECMXFILES)

  • $(OCAMLOPT) -o $@ unix.cmxa str.cmxa $(LINKFLAGS) $(OCAMLCMXFILES) $(EXECMXFILES)
  • $(OCAMLOPT) -o $@ unix.cmxa str.cmxa dynlink.cmxa $(LINKFLAGS) $(OCAMLCMXFILES) $(EXECMXFILES)

$(OCAMLDOC_LIBCMA): $(LIBCMOFILES)
$(OCAMLC) -a -o $@ $(LINKFLAGS) $(OCAMLCMOFILES) $(LIBCMOFILES)

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