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 7D6097FBF0 for ; Fri, 18 Dec 2015 17:14:41 +0100 (CET) IronPort-PHdr: 9a23:obehkRCWbF+JczwDxzceUyQJP3N1i/DPJgcQr6AfoPdwSP74rsbcNUDSrc9gkEXOFd2CrakU1ayO6+jJYi8p39WoiDg6aptCVhsI2409vjcLJ4q7M3D9N+PgdCcgHc5PBxdP9nC/NlVJSo6lPwWB6kO74TNaIBjjLw09fr2zQd6MyZzvn8mJuLTtICxwzAKnZr1zKBjk5S7wjeIxxbVYF6Aq1xHSqWFJcekFjUlhJFaUggqurpzopM0roGxsvKcq/stEFKH7ZLgQTLpCDT1gPXpmytfssEzqVw6GZX8rfXiXlBdBHkCR5Qv/V5r19CTnu+xw0TSyMMvtCLQlXjLk4b09G0ygszsOKzNsqDKfscd3lq8O+B8= Authentication-Results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=armael.gueneau@ens-lyon.fr; spf=Pass smtp.mailfrom=armael.gueneau@ens-lyon.fr; spf=None smtp.helo=postmaster@labbe.ens-lyon.fr Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of armael.gueneau@ens-lyon.fr) identity=pra; client-ip=140.77.167.222; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="armael.gueneau@ens-lyon.fr"; x-sender="armael.gueneau@ens-lyon.fr"; x-conformance=sidf_compatible Received-SPF: Pass (mail3-smtp-sop.national.inria.fr: domain of armael.gueneau@ens-lyon.fr designates 140.77.167.222 as permitted sender) identity=mailfrom; client-ip=140.77.167.222; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="armael.gueneau@ens-lyon.fr"; x-sender="armael.gueneau@ens-lyon.fr"; 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@labbe.ens-lyon.fr) identity=helo; client-ip=140.77.167.222; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="armael.gueneau@ens-lyon.fr"; x-sender="postmaster@labbe.ens-lyon.fr"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0A5AABlMHRWnN6nTYxehAxtAb1jgWIXAQuHJjoSAQEBAQEBAQEQAQEBAQEGDQkJIS6CLYIxVSAdFgsCCwMCAQIBWAgBAYgrBAqbco9wkgqQe4IWDC4TgTYFln+FO4o0hwGUAQIpCoF7DDsWB4FXcQGFEAEBAQ X-IPAS-Result: A0A5AABlMHRWnN6nTYxehAxtAb1jgWIXAQuHJjoSAQEBAQEBAQEQAQEBAQEGDQkJIS6CLYIxVSAdFgsCCwMCAQIBWAgBAYgrBAqbco9wkgqQe4IWDC4TgTYFln+FO4o0hwGUAQIpCoF7DDsWB4FXcQGFEAEBAQ X-IronPort-AV: E=Sophos;i="5.20,446,1444687200"; d="scan'208,217";a="157632430" Received: from labbe.ens-lyon.fr ([140.77.167.222]) by mail3-smtp-sop.national.inria.fr with ESMTP; 18 Dec 2015 17:14:30 +0100 Received: from localhost (localhost [127.0.0.1]) by labbe.ens-lyon.fr (Postfix) with ESMTP id C2266320BDB for ; Fri, 18 Dec 2015 17:14:30 +0100 (CET) X-Virus-Scanned: by amavisd-new-2.10.1 (20141025) (Debian) at ens-lyon.fr Received: from labbe.ens-lyon.fr ([127.0.0.1]) by localhost (labbe.ens-lyon.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JYvC_gqbZ1ni for ; Fri, 18 Dec 2015 17:14:30 +0100 (CET) Received: from [192.168.0.13] (rab81-1-78-217-174-105.fbx.proxad.net [78.217.174.105]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by labbe.ens-lyon.fr (Postfix) with ESMTPSA id CD4533209DF for ; Fri, 18 Dec 2015 17:14:29 +0100 (CET) From: =?UTF-8?Q?Arma=c3=abl_Gu=c3=a9neau?= To: caml-list@inria.fr Message-ID: <567430DC.6020009@ens-lyon.fr> Date: Fri, 18 Dec 2015 17:14:20 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="------------060607010306000302050208" Subject: [Caml-list] OCamldoc plugins & ocamlbuild This is a multi-part message in MIME format. --------------060607010306000302050208 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Hi list, I'm wondering how one should compile ocamldoc custom generators using ocamlbuild. First, the ocamlbuild manual (https://github.com/gasche/manual-ocamlbuild/blob/master/manual.md#basic-tags-) says that the [use_ocamldoc] tag is deprecated; and that a corresponding ocamlfind package should be used instead. Is there such a package for ocamldoc? I did not found one. Then, I did not manage to build the plugin into .cma/.cmxs files directly using ocamlbuild. My command line was something along these lines: ocamlbuild -use-ocamlfind -tag use_ocamldoc -package compiler-libs plugin.cmxs When trying to build plugin.cma/plugin.cmxs, ocamlbuild complained that "Cannot find file ocamldoc.cma/ocamldoc.cmxa" (respectively). However, I can build plugin.cmo/plugin.cmx using the same command line, then create the .cma/.cmxs manually using ocamlc/ocamlopt - which I ended up doing. Is there a better way to do so? If the whole process can be improved (how?), I would be happy to write the required patches/documentation. — Armaël --------------060607010306000302050208 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit Hi list,

I'm wondering how one should compile ocamldoc custom generators using
ocamlbuild.

First, the ocamlbuild manual
(https://github.com/gasche/manual-ocamlbuild/blob/master/manual.md#basic-tags-)
says that the [use_ocamldoc] tag is deprecated; and that a corresponding
ocamlfind package should be used instead. Is there such a package for ocamldoc?
I did not found one.

Then, I did not manage to build the plugin into .cma/.cmxs files directly using
ocamlbuild. My command line was something along these lines:

   ocamlbuild -use-ocamlfind -tag use_ocamldoc -package compiler-libs plugin.cmxs

When trying to build plugin.cma/plugin.cmxs, ocamlbuild complained that "Cannot
find file ocamldoc.cma/ocamldoc.cmxa" (respectively). However, I can build
plugin.cmo/plugin.cmx using the same command line, then create the .cma/.cmxs
manually using ocamlc/ocamlopt - which I ended up doing.

Is there a better way to do so? If the whole process can be improved (how?), I
would be happy to write the required patches/documentation.

— Armaël

--------------060607010306000302050208--