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 916FD7FA80 for ; Sat, 24 Oct 2015 14:51:12 +0200 (CEST) IronPort-PHdr: 9a23:dllf8RU1+orffANWCS5lGhWT4ZbV8LGtZVwlr6E/grcLSJyIuqrYZxKGt8tkgFKBZ4jH8fUM07OQ6PC9HzRYqb+681k8M7V0HycfjssXmwFySOWkMmbcaMDQUiohAc5ZX0Vk9XzoeWJcGcL5ekGA6ibqtW1aJBzzOEJPK/jvHcaK1oLsh730o8WbSj4LrQT+SIs6FA+xowTVu5teqqpZAYF19CH0pGBVcf9d32JiKAHbtR/94sCt4MwrqHwI6LoJvvRNWqTifqk+UacQTHF/azh0t4XXskzqSQKO4DMySGQNmRoAVwHB5RD8dpnrszDxtqxzwn/edYfNSr07RS6l9+MjbR7jiC4KM3RxpGTWgcx5gaYduxWsqABlxJb8YYeJOf44daTYK5dSD2FIW8IUUy1aHqu9aZEOBqwPJ6wQ+4L0ol9LqRqlGSGtAvnuw3lGnCml87c91rENGB/H0EQJG9YVt2zM5IH5Lq5XV+2q14HNwCnKdO9f0jS744/NJENy6cqQVK59JJKCgXIkEBnI2xDJ8dTo 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@outmail149055.authsmtp.co.uk 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.149.55; 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.149.55 as permitted sender) identity=mailfrom; client-ip=62.13.149.55; 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@outmail149055.authsmtp.co.uk) identity=helo; client-ip=62.13.149.55; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="dra-news@metastack.com"; x-sender="postmaster@outmail149055.authsmtp.co.uk"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0DaAABLfitWmTeVDT5dgwqBdalABpZVg0aCVwKBLDsRAQEBAQEBAQEQAQEBAQEICwsHIS6CK4IHAQEBAwEDN0QLAgEIGAoUBQsyFwENAQEEARqIIAkDxTgBAQgBAQEBAQEBARuGMIVFhFw4gxqBFAWWNo0iBpwpN4JTHYE/hwSBBgEBAQ X-IPAS-Result: A0DaAABLfitWmTeVDT5dgwqBdalABpZVg0aCVwKBLDsRAQEBAQEBAQEQAQEBAQEICwsHIS6CK4IHAQEBAwEDN0QLAgEIGAoUBQsyFwENAQEEARqIIAkDxTgBAQgBAQEBAQEBARuGMIVFhFw4gxqBFAWWNo0iBpwpN4JTHYE/hwSBBgEBAQ X-IronPort-AV: E=Sophos;i="5.20,192,1444687200"; d="scan'208";a="184295557" Received: from outmail149055.authsmtp.co.uk ([62.13.149.55]) by mail2-smtp-roc.national.inria.fr with ESMTP; 24 Oct 2015 14:51:11 +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 t9OCpAgA091952; Sat, 24 Oct 2015 13:51:10 +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 t9OCpAMC096185; Sat, 24 Oct 2015 13:51:10 +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 t9OCp9fX020977 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=FAIL); Sat, 24 Oct 2015 13:51:09 +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 13:51:09 +0100 From: David Allsopp To: Alain Frisch , "Soegtrop, Michael" , "caml-list@inria.fr" Thread-Topic: [Caml-list] flexdll circular dependency on ocamlc: Impossible to built ocaml for mingw without using some prebuilt binaries? Thread-Index: AdEOQWsyPDiuTuX3RGe00BbDnTwYuQAC4y2AAAMYX1A= Date: Sat, 24 Oct 2015 12:51:09 +0000 Message-ID: References: <0F7D3B1B3C4B894D824F5B822E3E5A172CE331EE@IRSMSX102.ger.corp.intel.com> <562B75D7.1000900@frisch.fr> In-Reply-To: <562B75D7.1000900@frisch.fr> 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: 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: e6df2cef-7a4d-11e5-829e-00151795d556 X-AuthReport-Spam: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-AuthRoute: OCd1ZAARAlZZVg1f DC4bFwdFRBksPQFF ChxFJgxfNl8UURhQ KkJXbgESJgdAAnZS R3kJW1VRQFxyU2Z0 YQtRIwdcYVRPXwB0 UklLXFNTEBpqBAMB SFoXLWoyBng1eHd2 ZE5nEHlSW0w0IEAp FEwHQDsbYjZkPH0e URVdagtWeVZXfh9E b1F4XXZZZGABKBgV TUcAFDk0OXBbKT9J d0kDKV8CTUIPVjU9 XRsfGTw1VUEIXyg1 IxEgIU9UG0BZNU47 NF8qCxo5NgcVERZf FUVAYmdFIBELWisv EUtdVkcbFHVTRj0U BxwuLQAAHT1OWi1F GANYUBAJBGteVyxF AC5HXycwDVw1b0gr NC0FMAwqTHXP 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 on ocamlc: Impossible to built ocaml for mingw without using some prebuilt binaries? Alain Frisch wrote: > On 24/10/2015 11:50, Soegtrop, Michael wrote: > > Also I wonder why flexdll/flexlink is required. The documentation of > > flexdll states: > > > > Windows DLL cannot refer to symbols defined in the main application or > > in previously loaded DLLs. > > > > In my experience this is not true. At least when using MSVC one can > > declare functions in the main executable as DLL-export. Then when > > linking the main executable an import library is created in the same > > way as when building a DLL by the linker. The DLL can then link to > > this import library and can access the functions in the main > executable. >=20 > Dynlink follows a different model: dynlinked units are not tied to a > specific main executable. A myplugin.cmxs can be dynamically linked by > any application that provides the required interfaces. Wouldn't that still be true with the .def/.a approach, though? > As for the dependency between OCaml and flexdll: the simplest approach is > to consider flexdll as any other external tool required to build OCaml (do > you recompile "gcc", "make", etc from sources?). It just happens to be > implemented in OCaml. Alternatively, you could create a bytecode version > of flexlink, which would only require ocamlrun. It's not about *do* you, it's *can* you! Ignoring the fact that these days = I think gcc has to be built with gcc, historically all those tools (gcc, ma= ke, etc.) could be built using *someone else's* C compiler and make impleme= ntation and then bootstrapped to create a "pure" one. There is no other imp= lementation of flexlink (or ocaml) to achieve that, which is what makes cla= ssing flexlink (rather than the core of FlexDLL) as "external" taste weird,= even if only in a philosophical manner. David=20