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 mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by sympa.inria.fr (Postfix) with ESMTPS id 550E47FA80 for ; Sat, 24 Oct 2015 13:46:44 +0200 (CEST) IronPort-PHdr: 9a23:LguPTR3MXL8lPZMZsmDT+DRfVm0co7zxezQtwd8ZsekUI/ad9pjvdHbS+e9qxAeQG96LtrQc06L/iOPJZy8p2d65qncMcZhBBVcuqP49uEgeOvODElDxN/XwbiY3T4xoXV5h+GynYwAOQJ6tL2PbrnD61zMOABK3bVMzfbSoXNaKx+2MlMmMuLTrKz1SgzS8Zb4gZD6Xli728vcsvI15N6wqwQHIqHYbM85fxGdvOE7B102kvpT41NdZ/i9Ro/Ms8dJbGeW/JvxgDO8QMDNzeVsy6cL3rx7bCUOq53AcW2gS2FIcBgnO7Bj3WtHqtSb1qvB6wAGbO9H7SfY/XjH0q+8hQxbtjGIDNiUl2GDRkM15yqxB6lr1rBV6x8vQYZqJHPt4ZKLUO90AEzlvRMFUAgBIHIKwJ6ILC/EGJf4Q+4Xnrh4IoASlLQyhGOr01jZDhTn92qhsgLdpKh3PwAF1R4FGi3/Tttigcf5KCe0= Authentication-Results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=dra-news@metastack.com; spf=Pass smtp.mailfrom=dra-news@metastack.com; spf=None smtp.helo=postmaster@outmail148099.authsmtp.net Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of dra-news@metastack.com) identity=pra; client-ip=62.13.148.99; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="dra-news@metastack.com"; x-sender="dra-news@metastack.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail3-smtp-sop.national.inria.fr: domain of dra-news@metastack.com designates 62.13.148.99 as permitted sender) identity=mailfrom; client-ip=62.13.148.99; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="dra-news@metastack.com"; x-sender="dra-news@metastack.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@outmail148099.authsmtp.net) identity=helo; client-ip=62.13.148.99; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="dra-news@metastack.com"; x-sender="postmaster@outmail148099.authsmtp.net"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0BgAABrbitWnGOUDT5dgmkhgQBvBqlABpRtAQ0jgTcjhUA6AoEsOBQBAQEBAQEBARABAQEBAQgLCQkhLoIrggcBAQEEAyocQAIBCBABBAEBCx0HMhQJCAEBBAESCIgpAwnFNgEBAQEBAQEBAQEBAQEBAQEBAQEBARiGMIVFhFwtAQkBBoMUgRQFkmKDVIUciAYGnCkfAQGCaYFccgWGDYEGAQEB X-IPAS-Result: A0BgAABrbitWnGOUDT5dgmkhgQBvBqlABpRtAQ0jgTcjhUA6AoEsOBQBAQEBAQEBARABAQEBAQgLCQkhLoIrggcBAQEEAyocQAIBCBABBAEBCx0HMhQJCAEBBAESCIgpAwnFNgEBAQEBAQEBAQEBAQEBAQEBAQEBARiGMIVFhFwtAQkBBoMUgRQFkmKDVIUciAYGnCkfAQGCaYFccgWGDYEGAQEB X-IronPort-AV: E=Sophos;i="5.20,192,1444687200"; d="scan'208,217";a="151631784" Received: from outmail148099.authsmtp.net ([62.13.148.99]) by mail3-smtp-sop.national.inria.fr with ESMTP; 24 Oct 2015 13:46:43 +0200 Received: from mail-c232.authsmtp.com (mail-c232.authsmtp.com [62.13.128.232]) by punt23.authsmtp.com (8.14.2/8.14.2/) with ESMTP id t9OBkgFx091967; Sat, 24 Oct 2015 12:46:42 +0100 (BST) Received: from romulus.metastack.com (114.212-105-213.static.virginmediabusiness.co.uk [213.105.212.114]) (authenticated bits=0) by mail.authsmtp.com (8.14.2/8.14.2/) with ESMTP id t9OBkgtk095965; Sat, 24 Oct 2015 12:46:42 +0100 (BST) Received: from remus.metastack.local (remus.metastack.com [172.16.0.1]) by romulus.metastack.com (8.14.2/8.14.2) with ESMTP id t9OBkfHW020702 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=FAIL); Sat, 24 Oct 2015 12:46:41 +0100 Received: from Remus.metastack.local ([fe80::547c:3c42:e1da:eda2]) by Remus.metastack.local ([fe80::547c:3c42:e1da:eda2%10]) with mapi id 14.03.0248.002; Sat, 24 Oct 2015 12:46:41 +0100 From: David Allsopp To: "Soegtrop, Michael" , "caml-list@inria.fr" Thread-Topic: ocamlfind on mingw: .exe extensions missing in findlib.conf Thread-Index: AdEORB0xDUcuDxv2Sl2I+Al9AnlCFQADT0bA Date: Sat, 24 Oct 2015 11:46:39 +0000 Message-ID: References: <0F7D3B1B3C4B894D824F5B822E3E5A172CE332DA@IRSMSX102.ger.corp.intel.com> In-Reply-To: <0F7D3B1B3C4B894D824F5B822E3E5A172CE332DA@IRSMSX102.ger.corp.intel.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.16.0.18] Content-Type: multipart/alternative; boundary="_000_E51C5B015DBD1348A1D85763337FB6D9E9FB6A0FRemusmetastackl_" MIME-Version: 1.0 Organization: MetaStack Solutions Ltd. X-Scanned-By: MIMEDefang 2.65 on 172.16.0.20 X-Server-Quench: e4ff306f-7a44-11e5-829e-00151795d556 X-AuthReport-Spam: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-AuthRoute: OCd1ZAARAlZZVg1f DC4bFwdFRBksPQFF ChxFJgxfNl8UURhQ KkJXbgASJgdAAnZS R3kJW1VRQFxzU2dz YQ5TIwdcYVRPXwB0 UklLXFNTEBpqBAMB SFoXLWspIEEdeHd1 bEBnEHJaXkV8OxN5 FBhXFWtQeGAxbGQC UUENch5ccgofYx9F a1V+U3oINWACYDQC Ml17ODs4ODFRKSJZ CgYLZVcTR0kUTHZ6 SgAPVTg/AUADXCQ0 KQduL18HB0cXPQ0z NxMvWFQUNx4YTAZZ GU8l X-Authentic-SMTP: 61633634383431.1037:706 X-AuthFastPath: 0 (Was 255) X-AuthSMTP-Origin: 213.105.212.114/25 X-AuthVirus-Status: No virus detected - but ensure you scan with your own anti-virus system. Subject: RE: [Caml-list] ocamlfind on mingw: .exe extensions missing in findlib.conf --_000_E51C5B015DBD1348A1D85763337FB6D9E9FB6A0FRemusmetastackl_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable You don't need .exe in findlib.conf. However, you're building with mingw64 = - there's a bug in findlib which has been fixed (https://github.com/whitequ= ark/ocaml-findlib/commit/1152683d21216fdac7b1a5c3927e5cc25626e9cd) but is n= ot included in the currently released version. From: caml-list-request@inria.fr [mailto:caml-list-request@inria.fr] On Beh= alf Of Soegtrop, Michael Sent: 24 October 2015 11:22 To: caml-list@inria.fr Subject: [Caml-list] ocamlfind on mingw: .exe extensions missing in findlib= .conf Dear Ocaml users, I found that ocamlfind (findlib) builds fine for mingw on Cygwin, but it do= esn't work. The issue is that the .exe extensions are missing in the findli= b.conf file. This has the effect that most calls to ocamlfind end up in an = error message like: $ ocamlfind ocamlc Uncaught exception: Unix.Unix_error(20, "create_process", "ocamlc.opt") This is easy to fix with a text editor or sed. A more generic fix would be = to use whereis/which/where to find ocamlc and friends but nothing is really= satisfactory $ whereis ocamlc.opt ocamlc: /cygdrive/d/bin/ocamlmgw64/bin/ocamlc.exe Finds ocamlc instead of omcalc.opt $ which ocamlc.opt /cygdrive/d/bin/ocamlmgw64/bin/ocamlc.opt Doesn't show the extension $ where ocamlc.opt D:\bin\ocamlmgw64\bin\ocamlc.opt.exe Works but is a windows command. Does someone have an idea how to get the executable names in an elegant and= platform independent way? Best regards, Michael Intel Deutschland GmbH Registered Address: Am Campeon 10-12, 85579 Neubiberg, Germany Tel: +49 89 99 8853-0, www.intel.de Managing Directors: Christin Eisenschmid, Prof. Dr. Hermann Eul Chairperson of the Supervisory Board: Tiffany Doon Silva Registered Office: Munich Commercial Register: Amtsgericht Muenchen HRB 186928 --_000_E51C5B015DBD1348A1D85763337FB6D9E9FB6A0FRemusmetastackl_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

You don’t need .exe in findlib.conf. However, = you’re building with mingw64 – there’s a bug in findlib w= hich has been fixed (https://github.com/whiteq= uark/ocaml-findlib/commit/1152683d21216fdac7b1a5c3927e5cc25626e9cd) but is not included in the currently released version.

 

From: caml-list-request@inria.fr [mailto:caml-list-request@= inria.fr] On Behalf Of Soegtrop, Michael
Sent: 24 October 2015 11:22
To: caml-list@inria.fr
Subject: [Caml-list] ocamlfind on mingw: .exe extensions missing in = findlib.conf

 

Dear Ocaml users,

 

I found that ocamlfind (findlib= ) builds fine for mingw on Cygwin, but it doesn’t work. The issue is = that the .exe extensions are missing in the findlib.conf file. This has the= effect that most calls to ocamlfind end up in an error message like:

 

$ = ocamlfind ocamlc

Un= caught exception: Unix.Unix_error(20, "create_process", "oca= mlc.opt")

 

This is easy to fix with a text= editor or sed. A more generic fix would be to use whereis/which/where to f= ind ocamlc and friends but nothing is really satisfactory=

 

$ = whereis ocamlc.opt

oc= amlc: /cygdrive/d/bin/ocamlmgw64/bin/ocamlc.exe

 

Finds ocamlc instead of omcalc.= opt

 

$ = which ocamlc.opt

/c= ygdrive/d/bin/ocamlmgw64/bin/ocamlc.opt

 

Doesn’t show the extensio= n

 

$ = where ocamlc.opt

D:\bi= n\ocamlmgw64\bin\ocamlc.opt.exe

 

Works but is a windows command.=

 

Does someone have an idea how t= o get the executable names in an elegant and platform independent way?=

 

Best regards,=

 

Michael

 

Intel Deutschland GmbH
Registered Address: Am Campeon 10-12, 85579 Neubiberg, Germany
Tel: +49 89 99 8853-0, www.intel.de=
Managing Directors: Christin Eisenschmid, Prof. Dr. Hermann Eul
Chairperson of the Supervisory Board: Tiffany Doon Silva
Registered Office: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928

--_000_E51C5B015DBD1348A1D85763337FB6D9E9FB6A0FRemusmetastackl_--