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 816867F0F9 for ; Tue, 24 Nov 2015 17:58:12 +0100 (CET) IronPort-PHdr: 9a23:rnh0GhRUMrFyCAsPjrzTTJKHRNpsv+yvbD5Q0YIujvd0So/mwa64YRON2/xhgRfzUJnB7Loc0qyN4/2mBjJLuMvJmUtBWaIPfidNsd8RkQ0kDZzNImzAB9muURYHGt9fXkRu5XCxPBsdMs//Y1rPvi/6tmZKSV3BPAZ4bt74BpTVx5zukbviptuMPU4R2XKUWvBbElaflU3prM4YgI9veO4a6yDihT92QdlQ3n5iPlmJnhzxtY+a9Z9n9DlM6bp6r5YTGfayQ6NtRrVdCHEiMnsprJngvBzHCA+O/Wc0U2MMkxMODRKTvz/gWZKkmzH/v2l57waHvMv7RK18DT246q5mTFnnlSoBOjck2GzRkYl0naVd5hy78U8si7XIaZ2YYaItNpjWeskXEDJM 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: A0B8AACzllRWnN6nTYxehA5vwRwjhy88EAEBAQEBAQEBEAEBAQEBCAsJCSEugi2CMQ8BBUA2AgUWCwILAwIBAgFLDQgBAYgqDZ4ij3CQXoEBkkaBRAWWUIEAhCSkVgI4ggFRgV1yhSsBAQE X-IPAS-Result: A0B8AACzllRWnN6nTYxehA5vwRwjhy88EAEBAQEBAQEBEAEBAQEBCAsJCSEugi2CMQ8BBUA2AgUWCwILAwIBAgFLDQgBAYgqDZ4ij3CQXoEBkkaBRAWWUIEAhCSkVgI4ggFRgV1yhSsBAQE X-IronPort-AV: E=Sophos;i="5.20,338,1444687200"; d="scan'208";a="154984917" Received: from labbe.ens-lyon.fr ([140.77.167.222]) by mail3-smtp-sop.national.inria.fr with ESMTP; 24 Nov 2015 17:58:11 +0100 Received: from localhost (localhost [127.0.0.1]) by labbe.ens-lyon.fr (Postfix) with ESMTP id E7F4C320843 for ; Tue, 24 Nov 2015 17:58:11 +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 7xFu84Yp2K3y for ; Tue, 24 Nov 2015 17:58:08 +0100 (CET) Received: from kingston.cl.cam.ac.uk (kingston.cl.cam.ac.uk [128.232.64.15]) (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 678E43203A2 for ; Tue, 24 Nov 2015 17:58:08 +0100 (CET) To: caml-list From: =?UTF-8?Q?Arma=c3=abl_Gu=c3=a9neau?= Message-ID: <5654971F.2070006@ens-lyon.fr> Date: Tue, 24 Nov 2015 16:58:07 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Subject: [Caml-list] Custom toplevel and ocamlbuild Hi list, I was trying to build a custom toplevel, bundled with my custom modules, and encountered a few issues. Following the last advice given by gasche on this reddit post https://www.reddit.com/r/ocaml/comments/3qjs1q/utop_is_a_much_better_toplevel_than_ocaml_if_you/cwisrrj I copy-pasted the files from examples/custom-utop, added a foo.ml file containing "let x = 3", and added "Foo" at the end of myutop.mltop. Then, if I compile the custom toplevel using the provided Makefile (which simply uses ocamlbuild and the builtin rule for .mltop files, I guess), the toplevel produced does not have access to the Foo module. However, if I manually build using ocamlfind ocamlmktop: ocamlfind ocamlmktop -o myutop -thread -linkpkg -package utop foo.cmo myutop_main.cmo this time, it works, and `myutop` has access to Foo. Is the default ocamlbuild rule for building .mltop files missing some option? Am I doing something wrong? — Armaël