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 417747FA80 for ; Sat, 24 Oct 2015 12:21:45 +0200 (CEST) IronPort-PHdr: 9a23:1sgAJhzaGCZ/gD7XCy+O+j09IxM/srCxBDY+r6Qd0ewRIJqq85mqBkHD//Il1AaPBtWGraocw8Pt8IneGkU4qa6bt34DdJEeHzQksu4x2zIaPcieFEfgJ+TrZSFpVO5LVVti4m3peRMNQJW2WVTerzWI4CIIHV2nbEwudrmzQtaapv/0/t7x0qWbWx9Piju5bOE6BzSNhiKViPMrh5B/IL060BrDrygAUe1XwWR1OQDbxE6ktY/jtKJkpm5bsvclsspBSrnSfqIiTLUeAi5sezQ+7cjv8B3CVhen530GU2xQnAAeUCbf6xSvFKz2vyTmrO1lnGG/PMb2RL0wE3z26qZgSBbljGEcMDM27HvQkuRxir5WpFSqoBkpkN2cW52cKPcrJvCVRtgdX2cUBss= Authentication-Results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=michael.soegtrop@intel.com; spf=Pass smtp.mailfrom=michael.soegtrop@intel.com; spf=None smtp.helo=postmaster@mga14.intel.com Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of michael.soegtrop@intel.com) identity=pra; client-ip=192.55.52.115; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="michael.soegtrop@intel.com"; x-sender="michael.soegtrop@intel.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail3-smtp-sop.national.inria.fr: domain of michael.soegtrop@intel.com designates 192.55.52.115 as permitted sender) identity=mailfrom; client-ip=192.55.52.115; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="michael.soegtrop@intel.com"; x-sender="michael.soegtrop@intel.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@mga14.intel.com) identity=helo; client-ip=192.55.52.115; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="michael.soegtrop@intel.com"; x-sender="postmaster@mga14.intel.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0BLAABuWitWnHM0N8BdgmmBIW8GvjMBDSOBNxcBAYYEAoEsOBQBAQEBAQEBARABAQEBAQYNCQkhIwuCK4IJBS0cQgEYElYmAQQbiCcBoyuiKS2GeYlYgmYMQx2BFAWSYoNUAalQHwEBgmmBXHKGEoEGAQEB X-IPAS-Result: A0BLAABuWitWnHM0N8BdgmmBIW8GvjMBDSOBNxcBAYYEAoEsOBQBAQEBAQEBARABAQEBAQYNCQkhIwuCK4IJBS0cQgEYElYmAQQbiCcBoyuiKS2GeYlYgmYMQx2BFAWSYoNUAalQHwEBgmmBXHKGEoEGAQEB X-IronPort-AV: E=Sophos;i="5.20,192,1444687200"; d="scan'208,217";a="151627661" Received: from mga14.intel.com ([192.55.52.115]) by mail3-smtp-sop.national.inria.fr with ESMTP; 24 Oct 2015 12:21:43 +0200 Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga103.fm.intel.com with ESMTP; 24 Oct 2015 03:21:41 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,192,1444719600"; d="scan'208,217";a="834468238" Received: from irsmsx106.ger.corp.intel.com ([163.33.3.31]) by fmsmga002.fm.intel.com with ESMTP; 24 Oct 2015 03:21:40 -0700 Received: from irsmsx102.ger.corp.intel.com ([169.254.2.98]) by IRSMSX106.ger.corp.intel.com ([169.254.8.229]) with mapi id 14.03.0248.002; Sat, 24 Oct 2015 11:21:40 +0100 From: "Soegtrop, Michael" To: "caml-list@inria.fr" Thread-Topic: ocamlfind on mingw: .exe extensions missing in findlib.conf Thread-Index: AdEORB0xDUcuDxv2Sl2I+Al9AnlCFQ== Date: Sat, 24 Oct 2015 10:21:39 +0000 Message-ID: <0F7D3B1B3C4B894D824F5B822E3E5A172CE332DA@IRSMSX102.ger.corp.intel.com> Accept-Language: de-DE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [163.33.239.182] Content-Type: multipart/alternative; boundary="_000_0F7D3B1B3C4B894D824F5B822E3E5A172CE332DAIRSMSX102gercor_" MIME-Version: 1.0 Subject: [Caml-list] ocamlfind on mingw: .exe extensions missing in findlib.conf --_000_0F7D3B1B3C4B894D824F5B822E3E5A172CE332DAIRSMSX102gercor_ Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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_0F7D3B1B3C4B894D824F5B822E3E5A172CE332DAIRSMSX102gercor_ Content-Type: text/html; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable

Dear Ocaml users,

 

I found that ocamlfind (findlib) builds fine for min= gw on Cygwin, but it doesn’t work. The issue is that the .exe extensi= ons are missing in the findlib.conf file. This has the effect that most cal= ls 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 mor= e generic fix would be to use whereis/which/where to find ocamlc and friend= s but nothing is really satisfactory

 

$ whereis ocamlc.opt=

ocamlc: /cygdrive/d/bin/o= camlmgw64/bin/ocamlc.exe

 

Finds ocamlc instead of omcalc.opt

 

$ which ocamlc.opt

/cygdrive/d/bin/ocamlmgw6= 4/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_0F7D3B1B3C4B894D824F5B822E3E5A172CE332DAIRSMSX102gercor_--