From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id 01B7F7EE25 for ; Tue, 11 Jun 2013 17:18:33 +0200 (CEST) X-IronPort-AV: E=Sophos;i="4.87,845,1363129200"; d="scan'208";a="21357338" Received: from wifi-eduroam-160217.inria.fr ([128.93.160.217]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/AES128-SHA; 11 Jun 2013 17:18:32 +0200 Mime-Version: 1.0 (Apple Message framework v1283) Content-Type: text/plain; charset=us-ascii From: Damien Doligez In-Reply-To: Date: Tue, 11 Jun 2013 17:18:32 +0200 Cc: caml users , cygwin@cygwin.com Content-Transfer-Encoding: quoted-printable Message-Id: <44D879F2-2796-44F5-A4D9-841AAAA5C4A5@inria.fr> References: To: Per Larsson X-Mailer: Apple Mail (2.1283) Subject: Re: [Caml-list] problems linking with ocamlopt 4.00.1 Hi, On 2013-06-09, at 17:49, Per Larsson wrote: > I get the following error message when trying to link with the native com= piler: >=20 > 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 >=20 > 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 p= ackage loader. Maybe I'm doing something wrong? Is there some new library w= ith must be loaded from version 4.0 This ___chkstk_ms business is inserted by gcc and should be part of the C r= untime library. Which version of gcc do you have? On cygwin, OCaml needs gc= c version 4.7.2 because of an unknown problem with the gcc-4.5.3-3 package. -- Damien