caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Matthieu Dubuget <matthieu.dubuget@gmail.com>
To: caml-list@inria.fr
Subject: Strange compilation problem
Date: Wed, 11 Feb 2009 10:28:08 +0100	[thread overview]
Message-ID: <49929A28.8070708@gmail.com> (raw)

This command line fails during the linking stage:

> ocamlfind opt -linkpkg -package miniscan test.ml -o test.exe
> ** Fatal error: Cannot find file "libmingw32"
> File "caml_startup", line 1, characters 0-1:
> Error: Error during linking

Since this seems to be a problem with my "miniscan" findlib package,
I gather some information and by-pass it

> $ ocamlfind query miniscan
> C:/cygwin/home/matt/ocamlmgw/lib/site-lib/miniscan
 
> $ cat C:/cygwin/home/matt/ocamlmgw/lib/site-lib/miniscan/META
> description = "Binding Miniscan"
> archive(byte) = "miniscan.cma"
> archive(native) = "miniscan.cmxa"
> requires = "mtsvrac,ojson,log,dsn153,okenveloppe,traite"

and this command line works, and produces a working test.exe file:

> ocamlfind opt -linkpkg -package
mtsvrac,ojson,log,dsn153,okenveloppe,traite -I
c:/cygwin/home/matt/ocamlmgw/lib/site-lib/miniscan miniscan.cmxa test.ml
-o test.exe

Any idea what the problem could be? Or what I should check next?

Salutations

Matt


             reply	other threads:[~2009-02-11  9:28 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-11  9:28 Matthieu Dubuget [this message]
2009-02-11 12:05 ` Matthieu Dubuget
2009-02-11 14:30 ` Matthieu Dubuget
     [not found]   ` <BB046CA812535C45BD0029AA9D04BA7905ECDCCB@KL-SRV57.lmsintl.com>
2009-02-11 14:51     ` [Caml-list] " Matthieu Dubuget
     [not found]       ` <BB046CA812535C45BD0029AA9D04BA7905ECDCD6@KL-SRV57.lmsintl.com>
2009-02-11 15:15         ` [Caml-list] Re: Strange compilation problem (flexlink trying to deal with windows and cygwin shell limitations) Matthieu Dubuget
2009-02-11 16:30     ` [Caml-list] Re: Strange compilation problem -> solved Matthieu Dubuget
2009-02-11 17:19       ` Alain Frisch

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=49929A28.8070708@gmail.com \
    --to=matthieu.dubuget@gmail.com \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).