caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Damien Doligez <damien.doligez@inria.fr>
To: Per Larsson <per.larsson@prover.com>
Cc: caml users <caml-list@inria.fr>, cygwin@cygwin.com
Subject: Re: [Caml-list] problems linking with ocamlopt 4.00.1
Date: Tue, 11 Jun 2013 17:18:32 +0200	[thread overview]
Message-ID: <44D879F2-2796-44F5-A4D9-841AAAA5C4A5@inria.fr> (raw)
In-Reply-To: <A1D1AF6E2FD8704CBBA2F43BE6EB1188018FABE897@gaia>

Hi,

On 2013-06-09, at 17:49, Per Larsson wrote:

> I get the following error message when trying to link with the native compiler:
> 
> ocamlopt -o mlok2hll-1 -warn-error +A -annot str.cmxa util.cmx error.cmx id.cmx mlok.cmx parse.cmx lex.cmx hll.cmx compile.cmx main.cmx
> ** Cannot resolve symbols for /usr/lib/ocaml/libasmrun.a(freelist.o):
> ___chkstk_ms
> ** Cannot resolve symbols for /usr/lib/ocaml/libasmrun.a(md5.o):
> ___chkstk_ms
> ** Cannot resolve symbols for /usr/lib/ocaml/libasmrun.a(sys.o):
> ___chkstk_ms
> File "caml_startup", line 1:
> Error: Error during linking
> 
> There is nothing special with the inputs above, I get the same error with other tested ocaml projects. I've used the ocaml package from the cygwin package loader. Maybe I'm doing something wrong? Is there some new library with must be loaded from version 4.0

This ___chkstk_ms business is inserted by gcc and should be part of the C runtime library. Which version of gcc do you have? On cygwin, OCaml needs gcc version 4.7.2 because of an unknown problem with the gcc-4.5.3-3 package.

-- Damien


      parent reply	other threads:[~2013-06-11 15:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-09 15:49 Per Larsson
2013-06-09 20:39 ` ygrek
2013-06-11 15:18 ` Damien Doligez [this message]

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=44D879F2-2796-44F5-A4D9-841AAAA5C4A5@inria.fr \
    --to=damien.doligez@inria.fr \
    --cc=caml-list@inria.fr \
    --cc=cygwin@cygwin.com \
    --cc=per.larsson@prover.com \
    /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).