From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: ** X-Spam-Status: No, score=2.2 required=5.0 tests=AWL,DNS_FROM_RFC_POST, SPF_NEUTRAL autolearn=disabled version=3.1.3 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 F16A4BB84 for ; Wed, 11 Feb 2009 16:15:21 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AnIBANx5kknRVdsVkGdsb2JhbACUBz8BAQEBCQkMBxEDrlMIgQCPdAEDAQOEFwaCNoEn X-IronPort-AV: E=Sophos;i="4.38,192,1233529200"; d="scan'208";a="23922138" Received: from mail-ew0-f21.google.com ([209.85.219.21]) by mail1-smtp-roc.national.inria.fr with ESMTP; 11 Feb 2009 16:15:21 +0100 Received: by ewy14 with SMTP id 14so326552ewy.9 for ; Wed, 11 Feb 2009 07:15:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:reply-to :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=0edx/4arKPzOBKd7/S5eHJXg3v+ExNzHhYS90JS5uhc=; b=Vp3nnMZc98Hk3EWV5YBVHYIrghnoIGZTCWeOm1g/yAGs04C8BAikiiaXY5dpA7QL8x nA79/iTRypZPxzPOEARAurNyr0s09ZwSCEEDHKSATt7L7m5eVQI6XtT07KMvZWpM6xz3 fs/qt2O3unannH+1m8f0ekOdWslZmR8hOnx2k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; b=M6Wc+cccc5Rjz3J14TSFj6y7Oqeiwio4mOgYBWjgrQ4KNAW857YE0gsQ7ay1L2vYH4 4vwe74S0EiGcjDYORWMNpGZu79jVutAhKwfcrHHMymwFlNm4fk9VE1owJsK43/q+jfKe hqqqjFjjXy2f8kYsPtQ+e49RuwMYW7y5ibELI= Received: by 10.210.90.10 with SMTP id n10mr5807763ebb.98.1234365321393; Wed, 11 Feb 2009 07:15:21 -0800 (PST) Received: from ?192.168.0.102? (papillon.metalscan.fr [212.73.210.234]) by mx.google.com with ESMTPS id 28sm4237657eye.49.2009.02.11.07.15.20 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 11 Feb 2009 07:15:21 -0800 (PST) Message-ID: <4992EB87.1000901@gmail.com> Date: Wed, 11 Feb 2009 16:15:19 +0100 From: Matthieu Dubuget Reply-To: matthieu.dubuget@gmail.com User-Agent: Thunderbird 2.0.0.19 (X11/20090105) MIME-Version: 1.0 To: caml-list@inria.fr Subject: Re: [Caml-list] Re: Strange compilation problem (flexlink trying to deal with windows and cygwin shell limitations) References: <49929A28.8070708@gmail.com> <4992E0F9.6050300@gmail.com> <4992E5DB.2090302@gmail.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam: no; 0.00; matthieu:01 dubuget:01 matthieu:01 dubuget:01 compilation:01 cygwin:01 usr:01 lib:01 -cclib:01 usr:01 lib:01 failwith:01 site-lib:01 caml-list:01 api:02 Christoph Bauer a =C3=A9crit : > I added -L$(cygpath -m /usr/lib/w32api) somewhere in the command lin wh= ile linking. > Does this help? (Maybe as -cclib -L$(cygpath -m /usr/lib/w32api)) > > Regards, > > Christoph Bauer > =20 No :-/ But I think I understood the problem. flexlink tries a lot of paths. And if the file is not found, a cygpath conversion is tried before a second search. This cygpath conversion is done through a file redirection. > let get_output cmd =3D > let fn =3D Filename.temp_file "flexdll" "" in > if (Sys.command (cmd ^ " > " ^ fn) < 0) > then failwith ("Cannot run " ^ cmd); > let r =3D read_file fn in > Sys.remove fn; > r In my case fn is void, and cmd is=E2=80=A6 long. String.length cmd gives 8406 ie > 8k I'm pretty sure that I could have my app. compiled by using a site-lib directory near the root of the filesystem. Salutations Matt