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 mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by yquem.inria.fr (Postfix) with ESMTP id 4A501BC57 for ; Wed, 7 Jul 2010 20:53:38 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AuQEACZqNEzV+668/2dsb2JhbACDHZA0jTKvY5FCgSmDCXIEg3iGfg X-IronPort-AV: E=Sophos;i="4.53,554,1272837600"; d="scan'208";a="62900835" Received: from rastageeks.org (HELO mail.rastageeks.org) ([213.251.174.188]) by mail1-smtp-roc.national.inria.fr with ESMTP/TLS/ADH-AES256-SHA; 07 Jul 2010 20:53:38 +0200 Received: from leonard.localnet (unknown [129.81.171.38]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.rastageeks.org (Postfix) with ESMTPSA id 325953B957 for ; Wed, 7 Jul 2010 21:03:02 +0200 (CEST) From: Romain Beauxis To: caml-list@yquem.inria.fr Subject: Re: [Caml-list] OCaml 3.12.0+beta1 on Cygwin 1.7.5 Date: Wed, 7 Jul 2010 13:54:00 -0500 User-Agent: KMail/1.13.3 (Linux/2.6.32-4-amd64; KDE/4.4.4; x86_64; ; ) References: In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <201007071354.00604.toots@rastageeks.org> X-Spam: no; 0.00; ocaml:01 cygwin:01 ocaml:01 cygwin:01 makefile:01 -ldl:01 usr:01 lib:01 bug:01 mingw:01 mingw:01 git:98 git:98 config:01 caml-list:01 Hi ! Le mardi 6 juillet 2010 16:36:05, Taylor Venable a =C3=A9crit : > Hi there, I'm thinking of writing some programs in OCaml to assist a > custom build infrastructure (currently 95% Tcl, 5% external Lua > programs) that we use at work. Since we build on Windows, Mac, and > Linux I have to make sure that whatever I end up writing works in all > three. I haven't written much OCaml in my life, and the little that I > did was probably five years ago, but any tools I write will have to be > usable for a while. So I tried compiling OCaml 3.12.0+beta1 in Cygwin > 1.7.5 -- the information I found about it seemed to imply that it > should work. I put flexdll in the PATH and I was able to use the > configure script and "make world.opt" with only a single problem: > there were lots of linker errors when it came to building > tools/objinfo_helper.exe, symbols like _lbasename, _sch_istable, and > _objalloc_free could not be found. [I'd paste the full error but I > forgot to email it to my private address today and the machine is in > corporate lockdown mode, so I can't access it right now, but I can > obtain it tomorrow at work if anybody would like to see the full > message.] The way to fix it, for me anyway, was to modify the > definition of LIBBFD_LINK in config/Makefile (which started out as > "-lbfd -ldl") to append to it "-lintl -lz /usr/lib/libiberty.a"; and > after that everything worked. I don't know if that constitutes a > problem with the configure script or just something about how my > Cygwin is installed, but I wanted to mention it somewhere in case it > was a bug. I have no clue about cygwin, but there is a branch of the mingw32-ocaml=20 crosscompiler package for Debian where ocaml 3.12.1 is ported and that=20 is waiting for some testings: http://git.debian.org/?p=3Dpkg-ocaml-maint/packages/mingw32-ocaml.git;a= =3Dshortlog;h=3Drefs/heads/3.12.0%2Bbeta1 Maybe this can be useful to you ? Romain