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 2036B7FEEB for ; Sun, 26 Jun 2016 17:17:45 +0200 (CEST) IronPort-PHdr: 9a23:cJ0xDBH72XqmdZ+I16rKXp1GYnF86YWxBRYc798ds5kLTJ74pM2wAkXT6L1XgUPTWs2DsrQf2rKQ6virADVdqb+681k6OKRWUBEEjchE1ycBO+WiTXPBEfjxciYhF95DXlI2t1uyMExSBdqsLwaK+i760zceF13FOBZvIaytQ8iJ3pzxjrj5osSOKyxzxxOFKYtoKxu3qQiD/uI3uqBFbpgL9x3Sv3FTcP5Xz247bXianhL7+9vitMU7q3cYk7sb+sVBSaT3ebgjBfwdVWx+cjN92Mq+/yLEQAST/HwEFi0zkxFICgXBplmuW5b6siL3sqxm3ySVIdfxVZg1Xyiv6+FgTxq+zG9NPDc89CTTi9dspKNduhOo4RJlicaAa4iQML96f7jBVdIcX2tIGMhLAX9vGIS5OqcGEesNdc9cq5L6v0NG+RekDEyqCfz04jpFmnbtwaQx0KIqFgSQj19oJM4HrHmB9Ia9D6wVS+3gifCQlTg= 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@outmail148111.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.111; 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.111 as permitted sender) identity=mailfrom; client-ip=62.13.148.111; 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@outmail148111.authsmtp.net) identity=helo; client-ip=62.13.148.111; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="dra-news@metastack.com"; x-sender="postmaster@outmail148111.authsmtp.net"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0CwAQCa8G9XfW+UDT5bgxGBA30GpUcBAQEGllAihXYCgSI8EAEBAQEBAQEBEQEBCxQJUIIyghoBAQEDAQM3RAsCAQgYChQQMhcBDQIEARoTiA0JAwEJxyQBAQEHAQEBAQEBHAWFYIQSgQOEQoMqgi8FjXuLBoYIiC8KjxqPfzWCJxwXgTVuiFl/AQEB X-IPAS-Result: A0CwAQCa8G9XfW+UDT5bgxGBA30GpUcBAQEGllAihXYCgSI8EAEBAQEBAQEBEQEBCxQJUIIyghoBAQEDAQM3RAsCAQgYChQQMhcBDQIEARoTiA0JAwEJxyQBAQEHAQEBAQEBHAWFYIQSgQOEQoMqgi8FjXuLBoYIiC8KjxqPfzWCJxwXgTVuiFl/AQEB X-IronPort-AV: E=Sophos;i="5.26,531,1459807200"; d="scan'208";a="224163541" Received: from outmail148111.authsmtp.net ([62.13.148.111]) by mail2-smtp-roc.national.inria.fr with ESMTP; 26 Jun 2016 17:17:43 +0200 Received: from mail-c247.authsmtp.com (mail-c247.authsmtp.com [62.13.128.247]) by punt22.authsmtp.com (8.14.2/8.14.2/) with ESMTP id u5QFHhFp034012; Sun, 26 Jun 2016 16:17:43 +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 u5QFHf2M068335 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 26 Jun 2016 16:17: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 u5QFHeT0028401 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO); Sun, 26 Jun 2016 16:17: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.0279.002; Sun, 26 Jun 2016 16:17:40 +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+GZmI1MmdjVEAAEC4CgAABn19AAAO7vIAAByBBgAAHntPAAHlelAAAJ3IMA Date: Sun, 26 Jun 2016 15:17:40 +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> In-Reply-To: <0F7D3B1B3C4B894D824F5B822E3E5A172CF1B59F@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: 20bda79c-3bb1-11e6-bcde-0015176ca198 X-AuthReport-Spam: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-AuthRoute: OCd1ZAARAlZZVg1f DC4bFwdFRBksPQFF ChxFJgxfNl8UURhQ KkJXbgASJgdCAnNE XXkJW1VSQFx3U2Jy YQ5TIwdcYVRPXwB0 UklLXFNTEBpqBAMA SFsbM28KIQc7eHh4 ZkVnEHhTX0I0d0Yv Fh9THD4bZjUyaX0e URVealEHJFZXfh9E b1F4UiBcYGwPKBgV TUcdOz0hMTFbYC9U WAoQKVsICUoGBjM6 Sx0EFiRnE0wVDzgo IgduMU8HAEsUel0o NkUgVV8UexEWBx1S G0ULAE0RFEYIXHhj ChtTWAsVCjpGWmJD AxskJQBTN1QI X-Authentic-SMTP: 61633634383431.1038: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 > > Indeed - it means you *do* have a system installation of flexdll! >=20 > You are right: >=20 > $ which flexlink > /usr/bin/flexlink >=20 > $ find /usr -name "flexdll.h" > /usr/include/flexdll.h >=20 > I was just checking the flexdll.h, and it is at a place where the mingw > gcc doesn't find it, but of cause flexlink itself is in the path, so it is > found by the cross build and messes it up. >=20 > The following "fixes" it: >=20 > sed -i "s|FLEXLINK_CMD=3Dflexlink|FLEXLINK_CMD=3D../flexdll/flexlink|" > config/Makefile This isn't a great way - better is to override the detection of FLEXDIR a f= ew lines later (the FLEXDIR:=3D line): sed -I "s|FLEXDIR:=3D.*|FLEXDIR=3D|" config/Makefile > I think the makefile should be made such, that the build local flexlink is > prefered, if it is there. Actually, I reviewed the original PR (https://github.com/ocaml/ocaml/pull/3= 88) and contrary to what I'd said previously, I think this is a bug. The so= lution, however, is to ensure that IFLEXDIR is better set-up if the submodu= le has been initialised (see, in particular, https://github.com/ocaml/ocaml= /blob/trunk/Makefile.nt#L24-L30). I'll have a proper look and open a PR. > One more question: how is this supposed to work with a native Cygwin > build? For doing my initial native Cygwin build of ocaml, which I then use > to build opam, I use a normal configure make process, but I do it twice > and build flexlink in between. I didn't find a way to convince configure > that flexlink is there, when it isn't, and obviously I need to do > configure before I do make. Also a make flexlink results in a "nothing to > do" after configure. >=20 > ./configure -no-shared-libs > make world.opt > make install > < make + install flexlink > > ./configure > make world > make opt > make opt.opt > make install >=20 > Thanks for the help! The bootstrapping stuff is for the native ports only - it was far too much = (risky) work to put it into the Unix Makefiles as well (I also, even with t= he recent change of licence to LGPL, have no interest in the Cygwin port of= OCaml, I'm afraid!) My hope was that when I (or someone else) finally unify the two build proce= sses so that the native Windows ports begin with ./configure that Cygwin wo= uld pick-up the bootstrapping of flexdll "for free", but for now it would i= nvolve maintaining the changes on two separate build paths, which runs a hi= gh risk of bitrot... David