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 182A2BC57 for ; Wed, 14 Apr 2010 18:46:57 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AioDANqOxUvRVd2vkGdsb2JhbACPboFSig0IFQEBAQEJCQwHEQMfqkaBcIVtLohNAQEDBYUIBA X-IronPort-AV: E=Sophos;i="4.52,205,1270418400"; d="scan'208";a="48902189" Received: from mail-qy0-f175.google.com ([209.85.221.175]) by mail2-smtp-roc.national.inria.fr with ESMTP; 14 Apr 2010 18:46:56 +0200 Received: by qyk5 with SMTP id 5so462616qyk.3 for ; Wed, 14 Apr 2010 09:46:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:received:message-id :subject:from:to:content-type; bh=x4a6qeXbU5Ga+0BqhW+JBpKin4v/iWBC1P/hDkebtBs=; b=Wukh3NgW0fdQQM7bVM1kNecAVewH0qr2qf8KAzUqaSdOPOzuCNt7dM4OH2qOl9ec9D C7L7/KnxLQkt2/HKoIK6M4vo/ntoDgtuEqEiJDiFV9cUhnqThulPoSGGWDuvgP+hgTHT D6cCgQGUEdRcfwOP9FmcfX8Jc8lyvT6pTS+y4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=P6trusyITt389aA8sk8V66358jisjKCNduOGV7wD20P3Vmaym/KCRnRHtKyJq/TzSF GjWmXaFcrqRuQsyPZa1rk09z50hgq23f4517GQBQed+UA+ql8yOFuaAIkS/A6G7vPKwK DWT1USg0MbgIxJQJE6NftqJHF+47sTXgYH2CM= MIME-Version: 1.0 Received: by 10.229.89.149 with HTTP; Wed, 14 Apr 2010 09:46:55 -0700 (PDT) Date: Wed, 14 Apr 2010 12:46:55 -0400 Received: by 10.229.215.72 with SMTP id hd8mr7812222qcb.43.1271263615594; Wed, 14 Apr 2010 09:46:55 -0700 (PDT) Message-ID: Subject: Building ocaml on Win32 using VS 2008 From: Lally Singh To: caml-list@yquem.inria.fr Content-Type: text/plain; charset=ISO-8859-1 X-Spam: no; 0.00; ocaml:01 ocaml:01 libcamlrun:01 runtime:01 pctype:01 cygwin:01 gcc:01 ocamlyacc:01 ocamlyacc:01 stdlib:01 makefile:01 compiler:01 ocamlc:01 cygwin:01 ocaml-:01 Hello, Has anyone had any success building ocaml on Win32 using VS 2008? The normal ocaml/win32 distribution's libcamlrun.a wants some symbols no longer available on the newer runtime libraries (e.g. __pctype and __alloca). I wiped my old cygwin install (which included, amongst other things, ocaml and gcc), and made a minimal bash/sed/make/diffutils one, and ran make under the Visual Studio 2008 Command Prompt. With some path adjustment for flexlink, I can get as far as this: cp yacc/ocamlyacc.exe boot/ocamlyacc.exe cd stdlib ; make -f Makefile.nt COMPILER=../boot/ocamlc all make[1]: Entering directory `/c/real_cygwin/home/lsingh9/src/ocaml-3.11.2/stdlib' ../boot/ocamlrun ../boot/ocamlc -g -warn-error A -nostdlib `./Compflags pervasives.cmi` -c pervasives.mli Fatal error: unknown C primitive `caml_alloc_dummy' make[1]: *** [pervasives.cmi] Error 2 make[1]: Leaving directory `/c/real_cygwin/home/lsingh9/src/ocaml-3.11.2/stdlib' Which leaves me rather confused. Does anyone know what I'm doing wrong? Thanks in advance, -Lally