Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0005150OCamlCamlp4public2010-09-18 21:252013-10-07 16:17
Reporterspiralvoice 
Assigned Toxclerc 
PrioritynormalSeverityminorReproducibilityalways
StatusassignedResolutionopen 
PlatformOSOS Version
Product Version3.12.0 
Target VersionlaterFixed in Version 
Summary0005150: MinGW/msys: Camlp4 crashes
Description$ camlp4
Fatal error: cannot load shared library dllunix
Reason: Cannot resolve WSAGetLastError@0
Additional InformationHi, I know MinGW/msys is not really supported but nonetheless I gave the new MinGW environment a try (gcc-4.5.0, binutils 2.20.51.20100613).
To compile the attached patch was needed to add "L/mingw/lib" at various places, it produced working ocamlc and ocamlopt.opt

$ ocamlopt.opt -v
The Objective Caml native-code compiler, version 3.12.0
Standard library directory: c:/GNU/ocaml3120/lib

$ ocamlc -v
The Objective Caml compiler, version 3.12.0
Standard library directory: c:/GNU/ocaml3120/lib

Can you give me a hint please what to do with camlp4? I already tried this without success:

--- ocaml-3.12.0.org//myocamlbuild.ml 2010-06-08 11:50:56.000000000 +0200
+++ ocaml-3.12.0/myocamlbuild.ml 2010-09-18 19:52:48.000000000 +0200
@@ -744,7 +744,7 @@
     begin fun _ _ ->
       Cmd(S[ocamlc; A"-I"; P dynlink_dir; A "dynlink.cma"; include_unix; unix_cma;
             T(tags_of_pathname byte++"ocaml"++"link"++"byte");
- P camlp4lib_cma; A"-linkall"; atomize cmos; A"-o"; Px (add_exe byte)])
+ P camlp4lib_cma; A"-cclib"; A"-L/mingw/lib"; A"-cclib"; A"-lws2_32"; A"-linkall"; atomize cmos; A"-o"; Px (add_exe byte)])
     end;
   rule native
     ~deps:(camlp4lib_cmxa :: camlp4lib_lib :: (cmxs @ objs @ dep_unix_native @ dep_dynlink_native))
Tagspatch
Attached Filesdiff file icon ocaml3120_mingw.diff [^] (4,459 bytes) 2010-09-18 21:25 [Show Content]

- Relationships

-  Notes
(0007968)
hongboz (developer)
2012-08-22 12:38

IMHO, the dependency on unix is really non necessary. Only Unix.isatty is used for the auto-printer

- Issue History
Date Modified Username Field Change
2010-09-18 21:25 spiralvoice New Issue
2010-09-18 21:25 spiralvoice Status new => assigned
2010-09-18 21:25 spiralvoice Assigned To => ertai
2010-09-18 21:25 spiralvoice File Added: ocaml3120_mingw.diff
2011-10-26 08:44 ertai Assigned To ertai => xclerc
2012-07-06 16:06 doligez Target Version => 4.01.0+dev
2012-07-31 13:36 doligez Target Version 4.01.0+dev => 4.00.1+dev
2012-08-22 12:38 hongboz Note Added: 0007968
2012-09-06 19:15 frisch Target Version 4.00.1+dev => 4.00.2+dev
2013-06-12 17:17 frisch Severity crash => minor
2013-06-12 17:17 frisch Target Version 4.00.2+dev => later
2013-10-07 16:17 doligez Tag Attached: patch


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker