From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id q3CEQMPH007933 for ; Thu, 12 Apr 2012 16:26:23 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AiQBAPfkhk/RVdQ2kGdsb2JhbABDuWsIIgEBAQEJCQ0HFAQjggkBAQEDARICLAEbHQEDAQsGBQQHOyIBEQEFARwGEyKHXQEDBgWgKQqMIIJyhR0KGScNV4EOAQULkXMElWyOVj2EDA X-IronPort-AV: E=Sophos;i="4.75,410,1330902000"; d="scan'208";a="139993384" Received: from mail-vb0-f54.google.com ([209.85.212.54]) by mail4-smtp-sop.national.inria.fr with ESMTP/TLS/RC4-SHA; 12 Apr 2012 16:26:17 +0200 Received: by vbmv11 with SMTP id v11so2700665vbm.27 for ; Thu, 12 Apr 2012 07:26:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=L271zZ9Czcv7N0rnOLZQX6iti+daagM8EDkYzBtMzak=; b=mXDyrmwcU00tnxHar5V0j4/uI7YcNgXId+0zY/LfV4Lvfi8SZCQLEndZ6HcP/CkY/a d/rw4huHhGAS51wcqQLarKXZIzS8WUsx7BO8qWItRvtnYYHGnWX+u4zqs8Iz2/xD9Sxz OxDcsd3RbkiWR2DkA3CJF90K5oA6i6629j1fUpKHJcYx1bfinPr0RSUI7CA7VP28wQlv 0FjrdMhN32cjzbn8fLEqMt/EypnTg2Q9lVRCLb/vvCclgYKbr+VUyapGuKRhfm002W6v 6j8mtIQBNM3H2BvXLIH79W5z2fMiyCmfDSkwzuF72hEFx0sGrXaz1edVQz3J5EQOzfqO nugw== Received: by 10.52.178.129 with SMTP id cy1mr1118835vdc.8.1334240776376; Thu, 12 Apr 2012 07:26:16 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.31.136 with HTTP; Thu, 12 Apr 2012 07:25:56 -0700 (PDT) In-Reply-To: <4F86D859.6020308@glondu.net> References: <4F86D859.6020308@glondu.net> From: Philippe Veber Date: Thu, 12 Apr 2012 16:25:56 +0200 Message-ID: To: =?ISO-8859-1?Q?St=E9phane_Glondu?= Cc: caml users Content-Type: multipart/alternative; boundary=bcaec5196a5985525204bd7c235c X-Validation-by: philippe.veber@gmail.com Subject: Re: [Caml-list] Current SVN head and findlib. --bcaec5196a5985525204bd7c235c Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 2012/4/12 St=E9phane Glondu > Le 12/04/2012 14:30, Philippe Veber a =E9crit : > > While playing with the upcoming features of our favorite compiler, I > > found that the current trunk and version/4.00 branch do not work well > > with findlib (version 1.2.8). I report it here so others might confirm > > (or not) what I say. > > > > OCaml version 4.01.0+dev1_2012-03-31 > > > > # #use "topfind";; > > - : unit =3D () > > File "/home/pveber/usr/ocamlbrew/ocaml-svn/trunk/lib/ocaml/topfind", > > line 37, characters 0-22: > > Error: Unbound module Topfind > > > > What is really surprising is that the toplevel doesn't complain if I > > copy/paste the contents of topfind directly in the compiler: > > [...] > > It works if you execute (replace /usr/lib/ocaml by `ocamlc -where`) > > #directory "/usr/lib/ocaml/findlib";; > > before calling > > #use "topfind";; > Indeed, it works fine with that trick. Thanks ! > > The #directory is present in /usr/lib/ocaml/topfind, but it seems that > now, they don't have immediate effect. > Yes, that is a really surprising issue for me. Thanks again, ph. --bcaec5196a5985525204bd7c235c Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

2012/4/12 St=E9phane Glondu <steph@glondu.net>
Le 12/04/2012 14:30, Philippe Veber a =E9crit :
> While playing with the upcoming features of our favo= rite compiler, I
> found that the current trunk and version/4.00 branch do not work well<= br> > with findlib (version 1.2.8). I report it here so others might confirm=
> (or not) what I say.
>
> =A0 =A0 =A0 =A0 OCaml version 4.01.0+dev1_2012-03-31
>
> # #use "topfind";;
> - : unit =3D ()
> File "/home/pveber/usr/ocamlbrew/ocaml-svn/trunk/lib/ocaml/topfin= d",
> line 37, characters 0-22:
> Error: Unbound module Topfind
>
> What is really surprising is that the toplevel doesn't complain if= I
> copy/paste the contents of topfind directly in the compiler:
> [...]

It works if you execute (replace /usr/lib/ocaml by `ocamlc -where`)

=A0#directory "/usr/lib/ocaml/findlib";;

before calling

=A0#use "topfind";;
Indeed, it works fine w= ith that trick. Thanks !
=A0

The #directory is present in /usr/lib/ocaml/topfind, but it seems that
now, they don't have immediate effect.
Yes, that i= s a really surprising issue for me.=A0

Thanks again,
=A0 ph.
=

--bcaec5196a5985525204bd7c235c--