From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by yquem.inria.fr (Postfix) with ESMTP id F3001BC57 for ; Thu, 15 Apr 2010 22:06:04 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av8BAA4Ox0tKfVK0kWdsb2JhbACPdIFWihoIFQEBAQEJCQwHDySuQIFxhiAuiE0BAQMFhQkEgyQ X-IronPort-AV: E=Sophos;i="4.52,214,1270418400"; d="scan'208";a="48974763" Received: from mail-wy0-f180.google.com ([74.125.82.180]) by mail2-smtp-roc.national.inria.fr with ESMTP; 15 Apr 2010 22:06:04 +0200 Received: by wyf22 with SMTP id 22so832115wyf.39 for ; Thu, 15 Apr 2010 13:06:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:received:message-id:subject:from:to:content-type; bh=Z/17FTZX8BsRNznvLXlMv7CuUOso34WM7yIGfQP5lKc=; b=oxep8GUG8XK8H4PtHIfzX17omEWlaSksX9RkxR8rZ2pfFIpKepKx3vgBYemDKlaZTx bMqwWxlCdhk+GYDhfUDw2oA1hFRjMrZqGnqI7W8Squn9hpHlYi0Dc3dfmEwqvmygHouP 2tcQvY1ieiWH+feK7Iz1yuFcUWWUvwVY9m/bw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=IMg8/ETR/BMny0VS0La4bPHoGl2kBDtCrr8pEc0Nnlm+ATHeQws5mvKloYWyQtg1l4 +t+QkD62NG/hgfs7KLKie5c1P3rI/CnWOKzfdoEDrWGO5HSwqeLJ53+80c27Uj6iOloA jqgEb8H9NiOER8VEv6xbmNu5Q19buZl1L1HrU= MIME-Version: 1.0 Received: by 10.216.89.143 with HTTP; Thu, 15 Apr 2010 13:06:03 -0700 (PDT) In-Reply-To: References: Date: Fri, 16 Apr 2010 00:06:03 +0400 Received: by 10.216.161.84 with SMTP id v62mr601915wek.58.1271361963256; Thu, 15 Apr 2010 13:06:03 -0700 (PDT) Message-ID: Subject: Re: [Caml-list] Statically linked win32 libcamlrun.lib? From: Dmitry Bely To: caml-list@yquem.inria.fr Content-Type: text/plain; charset=ISO-8859-1 X-Spam: no; 0.00; statically:01 libcamlrun:01 lib:01 statically:01 libcamlrun:01 lib:01 nodefaultlib:01 runtime:01 makefile:01 makefile:01 ocamlrun:01 ocamlc:01 -nostdlib:01 stdlib:01 -warn-error:01 On Thu, Apr 15, 2010 at 11:16 PM, Lally Singh wrote: > On Thu, Apr 15, 2010 at 2:59 AM, Dmitry Bely wrote: >> On Thu, Apr 15, 2010 at 3:39 AM, Lally Singh wrote: >> >>> Is it possible to statically link libcamlrun.lib, so it'll work with >>> libcmtd.lib instead of msvcrt.dll? I've tried: >>> >>> FLEXLINK=flexlink -merge-manifest -link /nodefaultlib:msvcrt.lib -link >>> libcmtd.lib >> >> Please don't use "brute force" methods. If you need statically linked >> MSVC runtime, just replace /MD with /MT (or /MTd) in config/Makefile. > > Thanks, I've tried this instead, and I can't get through make -f > Makefile.nt bootstrap without: > ../../boot/ocamlrun ../../ocamlc -nostdlib -I ../../stdlib -w s -c > -warn-error A -g -I ../win32unix bigarray.mli > File "bigarray.mli", line 384, characters 4-19: > Error: Unbound type constructor Unix.file_descr > make[2]: *** [bigarray.cmi] Error 2 > > I guess using the flexlink hack just moved whatever underlying problem > I'm having to a later stage. Why boostrap? Does simple "make -f Makefile.nt world" succeeds? Please use the clean distribution with minimal changes in config/Makefile; I suspect you have already broken something during your experiments. - Dmitry Bely