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 mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id 8BA027FEEB for ; Sun, 26 Jun 2016 20:04:07 +0200 (CEST) IronPort-PHdr: 9a23:Y+8SiBR6TROyGgNrRQrJZ/5uqtpsv+yvbD5Q0YIujvd0So/mwa65ZxWN2/xhgRfzUJnB7Loc0qyN4vimADRLuM3Q+Fk5M7V0HycfjssXmwFySOWkMmbcaMDQUiohAc5ZX0Vk9XzoeWJcGcL5ekGA6ibqtW1aJBzzOEJPK/jvHcaK1oLshrj0osWYOl4ZzBOGIppKZC2sqgvQssREyaBDEY0WjiXzn31TZu5NznlpL1/A1zz158O34YIxu38I46Fp34d6XK77Z6U1S6BDRHRjajhtpZ6jiR6WBzCI63QASGIO1lJtAgPF5Rz+FN+ltyrxtuNw3G+BOsD5UaozQRyj6btmTFnjjyJRc3Zz+2jSjol0jblHiBOnvR12hYDOKsnBP/N7eubZfMgGbWtHRMdYESJbVNCSdYwKWsYII+dU56D5o0AJtQP2UQW2DabpxyBTrnr7waQhz+0qEkfN2wl2TIFGi2jdsNigbPRaauuy1qSdiGybN/4= Authentication-Results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=dra-news@metastack.com; spf=Pass smtp.mailfrom=dra-news@metastack.com; spf=None smtp.helo=postmaster@outmail148108.authsmtp.net Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of dra-news@metastack.com) identity=pra; client-ip=62.13.148.108; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="dra-news@metastack.com"; x-sender="dra-news@metastack.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail2-smtp-roc.national.inria.fr: domain of dra-news@metastack.com designates 62.13.148.108 as permitted sender) identity=mailfrom; client-ip=62.13.148.108; receiver=mail2-smtp-roc.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 (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@outmail148108.authsmtp.net) identity=helo; client-ip=62.13.148.108; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="dra-news@metastack.com"; x-sender="postmaster@outmail148108.authsmtp.net"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0CZAACgGHBXfWyUDT5bgxGBA30GpUcBAQEGllAihXYCgSQ7EQEBAQEBAQEBEQEBCxQJUIIyghoBAQEDAQM3RAsCAQgYChQQMiUCBAEaiCAJAwEJxyYBAQEHAQEBAQEBARsFhWCEEoEDhEKDKoIvAQSZAYYIiC8KjxqPfzSCW4E1bohZfwEBAQ X-IPAS-Result: A0CZAACgGHBXfWyUDT5bgxGBA30GpUcBAQEGllAihXYCgSQ7EQEBAQEBAQEBEQEBCxQJUIIyghoBAQEDAQM3RAsCAQgYChQQMiUCBAEaiCAJAwEJxyYBAQEHAQEBAQEBARsFhWCEEoEDhEKDKoIvAQSZAYYIiC8KjxqPfzSCW4E1bohZfwEBAQ X-IronPort-AV: E=Sophos;i="5.26,532,1459807200"; d="scan'208";a="224185229" Received: from outmail148108.authsmtp.net ([62.13.148.108]) by mail2-smtp-roc.national.inria.fr with ESMTP; 26 Jun 2016 20:04:06 +0200 Received: from mail-c232.authsmtp.com (mail-c232.authsmtp.com [62.13.128.232]) by punt24.authsmtp.com (8.14.2/8.14.2/) with ESMTP id u5QI46lD014293; Sun, 26 Jun 2016 19:04:06 +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 u5QI44pI062729 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 26 Jun 2016 19:04:04 +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 u5QI43nb029150 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO); Sun, 26 Jun 2016 19:04:03 +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.0279.002; Sun, 26 Jun 2016 19:04:03 +0100 From: David Allsopp To: "Soegtrop, Michael" , "caml-list@inria.fr" Thread-Topic: Flexdll circular dependency fix uses system provided flexdll.h [was: opam-cross-windows] Thread-Index: AdHO6zYKgQgikXKpQ+GZmI1MmdjVEAAEC4CgAABn19AAAO7vIAAByBBgAAHntPAAHlelAAAJ3IMAAAeAmIAAAWp58A== Date: Sun, 26 Jun 2016 18:04:01 +0000 Message-ID: References: <0F7D3B1B3C4B894D824F5B822E3E5A172CF1B3BA@IRSMSX102.ger.corp.intel.com> <0F7D3B1B3C4B894D824F5B822E3E5A172CF1B41D@IRSMSX102.ger.corp.intel.com> <0F7D3B1B3C4B894D824F5B822E3E5A172CF1B4AC@IRSMSX102.ger.corp.intel.com> <0F7D3B1B3C4B894D824F5B822E3E5A172CF1B59F@IRSMSX102.ger.corp.intel.com> <0F7D3B1B3C4B894D824F5B822E3E5A172CF1B5FB@IRSMSX102.ger.corp.intel.com> In-Reply-To: <0F7D3B1B3C4B894D824F5B822E3E5A172CF1B5FB@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.29] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Organization: MetaStack Solutions Ltd. X-Scanned-By: MIMEDefang 2.65 on 172.16.0.20 X-Server-Quench: 5ec8071f-3bc8-11e6-829e-00151795d556 X-AuthReport-Spam: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-AuthRoute: OCd1ZAARAlZZVg1f DC4bFwdFRBksPQFF ChxFJgxfNl8UURhQ KkJXbgASJgdCAnNE XXkJW1VSQFx4U2Nx YQpUIwdcYVRPXwB0 UklLXFNTEBpqBAMA SFsbM2B2c0U/eHhy YkRrEHdTXEA0cBMu Sk5TFDsbZjUzYH0e URVeagtWeVZXfh9E b1F4XXZZZGABKBgV TUcdOz0hMTFbYC9U WAoQKVsICUoGBjM6 Sx0EFiRnE0wVDzgo IgduMU8HAEsUel0o NkUgVV8UexEWBx1S G0ULAE0RFEYIXHhj ChtTWAsVCjpGWmJD AxskJQBTN1QI 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] Flexdll circular dependency fix uses system provided flexdll.h [was: opam-cross-windows] Michael Soegtrop wrote: > > This isn't a great way - better is to override the detection of > > FLEXDIR a few lines later (the FLEXDIR:=3D line): >=20 > > sed -I "s|FLEXDIR:=3D.*|FLEXDIR=3D|" config/Makefile >=20 > I thought about this, but I wonder if this would use the correct > flexdll.h, but still the wrong flexlink. I thought it would be safer to > point it to the right flexlink and derive the flexdll.h location from > there. If it's working correctly, each individual Makefile.nt selects flexlink bas= ed on the presence of flexdll/Makefile (e.g. https://github.com/ocaml/ocaml= /blob/trunk/Makefile.nt#L24-L30). I think what's happened here is a piece o= f laziness/regression, because it's hard for config/Makefile to know what l= evel it's been included at (the use of ROOTDIR, for example in https://gith= ub.com/ocaml/ocaml/blob/trunk/otherlibs/Makefile#L18, is not consistent acr= oss the entire build tree). However, I was going to verify that it never picks up the wrong one by putt= ing a dummy flexlink.exe into PATH which simply does `exit 2`. > The mingw cross compiler + standard library builds fine, but then when I > use it, it doesn't find pervasives, although the pervasives.cmx is in the > folder ocamlc -config says it should be. I guess something went wrong with > the flexlink process. Is there some way to see from ocamlc - config if > flexlink support is there? Or is there another way to check if flexlink is > the problem? They should be identical, but possibly worth checking ocamlopt -config, rat= her than ocamlc -config. Being unable to find a .cmx is unlikely to be a fl= exlink problem (flexlink handles .o files, not .cmx). Running ocamlopt -verbose allows you to see the flexlink command invocation= and, IIRC, adding -ccopt -v should cause flexlink to display the commands = it's running too. David