caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] problems linking with ocamlopt 4.00.1
@ 2013-06-09 15:49 Per Larsson
  2013-06-09 20:39 ` ygrek
  2013-06-11 15:18 ` Damien Doligez
  0 siblings, 2 replies; 3+ messages in thread
From: Per Larsson @ 2013-06-09 15:49 UTC (permalink / raw)
  To: caml-list

Hi all,

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

Per

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Caml-list] problems linking with ocamlopt 4.00.1
  2013-06-09 15:49 [Caml-list] problems linking with ocamlopt 4.00.1 Per Larsson
@ 2013-06-09 20:39 ` ygrek
  2013-06-11 15:18 ` Damien Doligez
  1 sibling, 0 replies; 3+ messages in thread
From: ygrek @ 2013-06-09 20:39 UTC (permalink / raw)
  To: caml-list

On Sun, 9 Jun 2013 15:49:22 +0000
Per Larsson <per.larsson@prover.com> wrote:

> ** Cannot resolve symbols for /usr/lib/ocaml/libasmrun.a(sys.o):
>  ___chkstk_ms
> File "caml_startup", line 1:
> Error: Error during linking

My guess is that you are linking with the version of C runtime different from
the one used when building ocaml binaries (probably different stack protection options).

-- 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Caml-list] problems linking with ocamlopt 4.00.1
  2013-06-09 15:49 [Caml-list] problems linking with ocamlopt 4.00.1 Per Larsson
  2013-06-09 20:39 ` ygrek
@ 2013-06-11 15:18 ` Damien Doligez
  1 sibling, 0 replies; 3+ messages in thread
From: Damien Doligez @ 2013-06-11 15:18 UTC (permalink / raw)
  To: Per Larsson; +Cc: caml users, cygwin

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-06-11 15:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-09 15:49 [Caml-list] problems linking with ocamlopt 4.00.1 Per Larsson
2013-06-09 20:39 ` ygrek
2013-06-11 15:18 ` Damien Doligez

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