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 B9E897FEFE for ; Sat, 25 Jun 2016 18:52:41 +0200 (CEST) IronPort-PHdr: 9a23:W6QeHRPxoId1bfM/YCYl6mtUPXoX/o7sNwtQ0KIMzox0Kf/6rarrMEGX3/hxlliBBdydsKMczbKH+Pm4AyQp2tWoiDg6aptCVhsI2409vjcLJ4q7M3D9N+PgdCcgHc5PBxdP9nC/NlVJSo6lPwWB6kO74TNaIBjjLw09fr2zQd+KyZzmnLnqodX6WEZhvHKFe7R8LRG7/036l/I9ps9cEJs30QbDuXBSeu5blitCLFOXmAvgtI/rpMYwuwwZgf8q9tZBXKPmZOx4COUAVHV1e1wysYfQshTMURGI/j9Ud2QdkhNFB0KNuBT7VZf4vy+8re1w1zWAOtXeTLYoVDDk5KBuHlugwiwOMjp89GDMluRxirhaqVSvvVY3l4XdZYXQMPtlYovce8kbTCxPRJACeTZGB9aQZpUOA6IoOeJDqJHl7w8CtxL7AwSzH8vqxyNBnWP/1q582OMkR1KVlDc8Fs4D5SyH5O7+M70fBKXslPHF 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@outmail148099.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.99; 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.99 as permitted sender) identity=mailfrom; client-ip=62.13.148.99; 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@outmail148099.authsmtp.net) identity=helo; client-ip=62.13.148.99; receiver=mail2-smtp-roc.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: A0AAAABktm5Xl2OUDT5cgxGBA30GpUgGlFWBeySFdAKBIjoSAQEBAQEBAQERAQEBAQEIFgdQgjKCGgEBAQMBAzdECwIBCBgKFBAyFwENAQEEARqIIAkDAQnHMQEBAQcBAQEBAQEBGwWFYIUVhEKDKoIvAQSZAYYIiC8KjxqPfyUFgkMigTVuAQGIR38BAQE X-IPAS-Result: A0AAAABktm5Xl2OUDT5cgxGBA30GpUgGlFWBeySFdAKBIjoSAQEBAQEBAQERAQEBAQEIFgdQgjKCGgEBAQMBAzdECwIBCBgKFBAyFwENAQEEARqIIAkDAQnHMQEBAQcBAQEBAQEBGwWFYIUVhEKDKoIvAQSZAYYIiC8KjxqPfyUFgkMigTVuAQGIR38BAQE X-IronPort-AV: E=Sophos;i="5.26,527,1459807200"; d="scan'208";a="224078088" Received: from outmail148099.authsmtp.net ([62.13.148.99]) by mail2-smtp-roc.national.inria.fr with ESMTP; 25 Jun 2016 18:52:40 +0200 Received: from mail-c232.authsmtp.com (mail-c232.authsmtp.com [62.13.128.232]) by punt22.authsmtp.com (8.14.2/8.14.2/) with ESMTP id u5PGqd0v092891; Sat, 25 Jun 2016 17:52:39 +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 u5PGqbNa037765 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 25 Jun 2016 17:52:38 +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 u5PGqaBu026007 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO); Sat, 25 Jun 2016 17:52:37 +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; Sat, 25 Jun 2016 17:52:36 +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+GZmI1MmdjVEAAEC4CgAABn19AAAO7vIA== Date: Sat, 25 Jun 2016 16:52:36 +0000 Message-ID: References: <0F7D3B1B3C4B894D824F5B822E3E5A172CF1B3BA@IRSMSX102.ger.corp.intel.com> <0F7D3B1B3C4B894D824F5B822E3E5A172CF1B41D@IRSMSX102.ger.corp.intel.com> In-Reply-To: <0F7D3B1B3C4B894D824F5B822E3E5A172CF1B41D@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: 394e92db-3af5-11e6-829e-00151795d556 X-AuthReport-Spam: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-AuthRoute: OCd1ZAARAlZZVg1f DC4bFwdFRBksPQFF ChxFJgxfNl8UURhQ KkJXbgASJgdBAnNE XXkJW1VSQFx2U2Z3 YQlZIwdcYVRPXwB0 UklLXFNTEBpqBAMA SFsbMm4zJXsXeH13 YkBnEHdcX0Y0dk95 F0dWQT8bZjY2bX0e 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: > Dear David, >=20 > > I'm not convinced this is a fundamental flaw - I think it more likely > > that you have an existing flexlink in PATH, which will cause > > config/Makefile to pick up the wrong include directory. I think it > > likely if you study the failing command during make -f Makefile.nt opt > you will see a -I pointing to your PATH'd flexlink.exe directory. >=20 > I have no system installation of flexdll. The compilation fails in my > case, because there is no flexdll.h at all, except the one in the flexdll > folder of ocaml. The only -I option when win32.c is compiled in asmrun is > -I../byterun. Something weird is going on - you should not be seeing that! As https://git= hub.com/ocaml/ocaml/blob/trunk/asmrun/Makefile.nt#L71-L74 states, there sho= uld definitely not be -I../byterun and there should be $(IFLEXDIR) which, a= s long as no system flexlink.exe is found, should be -I../flexdll. What's your precise sequence of commands (right from untarring or git clone= )? Is this from a git clone or a released tarball? > Does the flexdll make in ocamlc a local build of flexdll, or does it > install flexdll somewhere globally? In the first case I think a - > I../flexdll is missing, in the second case I guess I might miss some > install prefixes. >=20 > > A git clone of trunk will use the version of flexdll configured at the > time - that's how git submodules > work (because it stores a commit SHA, > not a branch). >=20 > Does this also work if I get the ocaml sources as a tar ball rather than > via a git clone? No, you'd need either to get a specific sources tarball or checkout the cor= rect commit after cloning the *flexdll* repository. I agree that in future = it should state the version - however, it doesn't at the moment because you= need "0.35" (i.e. master) which isn't actually released (hence the instruc= tion to use a git clone). Relatedly, my work packaging it all up with native Windows OPAM does instal= l the version of flexdll which was current at the time of release (see http= s://github.com/dra27/opam-repository/blob/next-windows/packages/ocaml/ocaml= .4.03.0/opam#L7 vs https://github.com/dra27/opam-repository/blob/next-windo= ws/packages/ocaml/ocaml.4.02.0/opam#L7, for example) David