From vb@luminar.eu.org Mon Jul 01 12:29:54 2013
Received: from ppsw-33.csi.cam.ac.uk ([131.111.8.133])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1UtcIs-0006Hu-6e (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <vb@luminar.eu.org>); Mon, 01 Jul 2013 12:29:54 +0100
X-Cam-SpamDetails: score -0.0 from SpamAssassin-3.3.2-1498070 
	* -0.0 RP_MATCHES_RCVD Envelope sender domain matches handover relay
	*      domain
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from luminar.eu.org ([94.23.24.152]:42121)
	by ppsw-33.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.147]:25)
	with esmtp id 1UtcIr-0000Lc-gU (Exim 4.80_167-5a66dd3) for
	cl-mirage@lists.cam.ac.uk
	(return-path <vb@luminar.eu.org>); Mon, 01 Jul 2013 12:29:54 +0100
Received: from [IPv6:::1] (localhost.localdomain [127.0.0.1])
	by luminar.eu.org (Postfix) with ESMTP id B5A6C619C0
	for <cl-mirage@lists.cam.ac.uk>; Mon,  1 Jul 2013 13:29:52 +0200 (CEST)
Message-ID: <51D16830.6020104@luminar.eu.org>
Date: Mon, 01 Jul 2013 12:29:52 +0100
From: Vincent Bernardoff <vb@luminar.eu.org>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:17.0) Gecko/20130625 Thunderbird/17.0.7
MIME-Version: 1.0
To: cl-mirage@lists.cam.ac.uk
Subject: Re: mirage-platform commit on June 26
References: <CANeYhgGBGzUXcZwN=wB-zXrMo21trsiaN8KnXbAWcta1GYyVAw@mail.gmail.com>
	<51CD92AC.7070608@luminar.eu.org> <51D01FC2.3090208@luminar.eu.org>
	<CANeYhgHjSa2h1-VUT9ra+6PwZRP8+aG+64Y+Bjdu=s=rObkhCA@mail.gmail.com>
In-Reply-To: <CANeYhgHjSa2h1-VUT9ra+6PwZRP8+aG+64Y+Bjdu=s=rObkhCA@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Mon, 01 Jul 2013 11:29:54 -0000
Content-Length: 1697
Lines: 53

On 30/06/2013 17:47, Balraj Singh wrote:
> Hi Vincent,
>
> I'm still using ocamlbuild.  From the mirage-net/direct directory I simply
> call "ocamlbuild tests/iperf_self/iperf_self.xen".  But for ocamlbuild to
> work right I make the following change to myocamlbuild.ml:
>
> --- a/myocamlbuild.ml
> +++ b/myocamlbuild.ml
> @@ -63,7 +63,7 @@ module Configure = struct
>     (* Flags for building and using syntax extensions *)
>     let ppflags () =
>       (* Syntax extensions for the libraries being built *)
> -    flag ["ocaml"; "pp"; "use_syntax"] & S [config_sh "syntax.deps"];
> +    flag ["ocaml"; "pp"(*; "use_syntax"*)] & S [config_sh "syntax.deps"];
>       (* Include the camlp4 flags to build an extension *)
>       flag ["ocaml"; "pp"; "build_syntax"] & S [config_sh "syntax.build"];
>       flag ["ocaml"; "pp"; "build_syntax_r"] & S [config_sh
> "syntax.build.r"];
>
>
> I then simply use the cfg file in the tests directory.  Apologies if this
> is unclear and non-standard, I will try to get this working with mirari
> etc, soon.
>
> Balraj

Hey Balraj,

No problem.

I've ported the test to mirari:

See git://github.com/vbmithr/mirage-skeleton.git

In directory tcp
Just do make

On my machine, I can correctly build the kernel, but when I am running 
it, it is immediately crashing. Tell me how it works for you.

I'm going to try to compile under standard released versions of 
mirage/mirage-net. Hope we'll fix this! I'm quite happy about my various 
mirage refactorings, it would be a pity that I've really broken something..

Cheers,

Vincent


PS: I have updated all mirage-skeleton. Now the Makefiles correctly 
detect the backend, (either mirage-xen or mirage-unix).


From anil@recoil.org Mon Jul 01 12:39:54 2013
Received: from ppsw-mx-f.csi.cam.ac.uk ([131.111.8.149]
	helo=ppsw-42.csi.cam.ac.uk)
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1UtcSY-0006an-3a (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Mon, 01 Jul 2013 12:39:54 +0100
X-Cam-SpamDetails: score 0.0 from SpamAssassin-3.3.2-1498070
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from recoil.dh.bytemark.co.uk ([89.16.177.154]:27161
	helo=dark.recoil.org)
	by ppsw-42.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.149]:25)
	with smtp id 1UtcSX-000126-72 (Exim 4.80_167-5a66dd3) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Mon, 01 Jul 2013 12:39:54 +0100
Received: (qmail 11772 invoked by uid 634); 1 Jul 2013 11:39:52 -0000
X-Spam-Level: *
X-Spam-Status: No, hits=-1.0 required=5.0
	tests=ALL_TRUSTED
X-Spam-Check-By: dark.recoil.org
Received: from host81-149-102-120.in-addr.btopenworld.com (HELO clink-4.home)
	(81.149.102.120)
	(smtp-auth username remote@recoil.org, mechanism cram-md5)
	by dark.recoil.org (qpsmtpd/0.84) with ESMTPA;
	Mon, 01 Jul 2013 12:39:52 +0100
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\))
Subject: Re: mirage-platform commit on June 26
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <51D16830.6020104@luminar.eu.org>
Date: Mon, 1 Jul 2013 12:39:50 +0100
Content-Transfer-Encoding: quoted-printable
Message-Id: <B69F49D7-ED05-471D-8BF7-14C1F43816C7@recoil.org>
References: <CANeYhgGBGzUXcZwN=wB-zXrMo21trsiaN8KnXbAWcta1GYyVAw@mail.gmail.com>
	<51CD92AC.7070608@luminar.eu.org> <51D01FC2.3090208@luminar.eu.org>
	<CANeYhgHjSa2h1-VUT9ra+6PwZRP8+aG+64Y+Bjdu=s=rObkhCA@mail.gmail.com>
	<51D16830.6020104@luminar.eu.org>
To: Vincent Bernardoff <vb@luminar.eu.org>
X-Mailer: Apple Mail (2.1503)
X-Virus-Checked: Checked by ClamAV on dark.recoil.org
Cc: cl-mirage@lists.cam.ac.uk
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Mon, 01 Jul 2013 11:39:54 -0000
Content-Length: 2029
Lines: 71

I can't seem to reproduce Balraj's failure on my Ubuntu laptop.  I'll =
try
on my Debian box later on this afternoon.

-anil

On 1 Jul 2013, at 12:29, Vincent Bernardoff <vb@luminar.eu.org> wrote:

> On 30/06/2013 17:47, Balraj Singh wrote:
>> Hi Vincent,
>>=20
>> I'm still using ocamlbuild.  =46rom the mirage-net/direct directory I =
simply
>> call "ocamlbuild tests/iperf_self/iperf_self.xen".  But for =
ocamlbuild to
>> work right I make the following change to myocamlbuild.ml:
>>=20
>> --- a/myocamlbuild.ml
>> +++ b/myocamlbuild.ml
>> @@ -63,7 +63,7 @@ module Configure =3D struct
>>    (* Flags for building and using syntax extensions *)
>>    let ppflags () =3D
>>      (* Syntax extensions for the libraries being built *)
>> -    flag ["ocaml"; "pp"; "use_syntax"] & S [config_sh =
"syntax.deps"];
>> +    flag ["ocaml"; "pp"(*; "use_syntax"*)] & S [config_sh =
"syntax.deps"];
>>      (* Include the camlp4 flags to build an extension *)
>>      flag ["ocaml"; "pp"; "build_syntax"] & S [config_sh =
"syntax.build"];
>>      flag ["ocaml"; "pp"; "build_syntax_r"] & S [config_sh
>> "syntax.build.r"];
>>=20
>>=20
>> I then simply use the cfg file in the tests directory.  Apologies if =
this
>> is unclear and non-standard, I will try to get this working with =
mirari
>> etc, soon.
>>=20
>> Balraj
>=20
> Hey Balraj,
>=20
> No problem.
>=20
> I've ported the test to mirari:
>=20
> See git://github.com/vbmithr/mirage-skeleton.git
>=20
> In directory tcp
> Just do make
>=20
> On my machine, I can correctly build the kernel, but when I am running =
it, it is immediately crashing. Tell me how it works for you.
>=20
> I'm going to try to compile under standard released versions of =
mirage/mirage-net. Hope we'll fix this! I'm quite happy about my various =
mirage refactorings, it would be a pity that I've really broken =
something..
>=20
> Cheers,
>=20
> Vincent
>=20
>=20
> PS: I have updated all mirage-skeleton. Now the Makefiles correctly =
detect the backend, (either mirage-xen or mirage-unix).
>=20



From balraj885@gmail.com Tue Jul 02 15:14:32 2013
Received: from ppsw-mx-f.csi.cam.ac.uk ([131.111.8.149]
	helo=ppsw-42.csi.cam.ac.uk)
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1Uu1Lk-0000I8-Db (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <balraj885@gmail.com>); Tue, 02 Jul 2013 15:14:32 +0100
X-Cam-SpamDetails: score -0.3 from SpamAssassin-3.3.2-1498303 
	* -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/,
	low *      trust
	*      [209.85.216.49 listed in list.dnswl.dnsbl.ja.net]
	* 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail
	provider *       (balraj885[at]gmail.com)
	* 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends
	in *      digit (balraj885[at]gmail.com)
	*  0.0 HTML_MESSAGE BODY: HTML included in message
	*  0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily
	*      valid
	*  0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from mail-qa0-f49.google.com ([209.85.216.49]:47440)
	by ppsw-42.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.149]:25)
	with esmtp id 1Uu1Li-00088e-9C (Exim 4.80_167-5a66dd3) for
	cl-mirage@lists.cam.ac.uk
	(return-path <balraj885@gmail.com>); Tue, 02 Jul 2013 15:14:32 +0100
Received: by mail-qa0-f49.google.com with SMTP id hu16so2833133qab.8
	for <cl-mirage@lists.cam.ac.uk>; Tue, 02 Jul 2013 07:14:30 -0700 (PDT)
MIME-Version: 1.0
X-Received: by 10.49.83.73 with SMTP id o9mr28007039qey.71.1372774470164; Tue,
	02 Jul 2013 07:14:30 -0700 (PDT)
Sender: balraj885@gmail.com
Received: by 10.49.52.198 with HTTP; Tue, 2 Jul 2013 07:14:30 -0700 (PDT)
In-Reply-To: <B69F49D7-ED05-471D-8BF7-14C1F43816C7@recoil.org>
References: <CANeYhgGBGzUXcZwN=wB-zXrMo21trsiaN8KnXbAWcta1GYyVAw@mail.gmail.com>
	<51CD92AC.7070608@luminar.eu.org> <51D01FC2.3090208@luminar.eu.org>
	<CANeYhgHjSa2h1-VUT9ra+6PwZRP8+aG+64Y+Bjdu=s=rObkhCA@mail.gmail.com>
	<51D16830.6020104@luminar.eu.org>
	<B69F49D7-ED05-471D-8BF7-14C1F43816C7@recoil.org>
Date: Tue, 2 Jul 2013 15:14:30 +0100
X-Google-Sender-Auth: KNmXOKahNcSae5xsQfriH23gB14
Message-ID: <CANeYhgHekM-XbFQ-8qgAyChfLkOvwoitreHJQdJtx7XqFPFj7w@mail.gmail.com>
Subject: Re: mirage-platform commit on June 26
From: Balraj Singh <balrajsingh@ieee.org>
To: Anil Madhavapeddy <anil@recoil.org>
Content-Type: multipart/alternative; boundary=047d7b6da1c4a6a95a04e087f66e
Cc: Mirage List <cl-mirage@lists.cam.ac.uk>,
	Vincent Bernardoff <vb@luminar.eu.org>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Tue, 02 Jul 2013 14:14:32 -0000
Content-Length: 7682
Lines: 203

--047d7b6da1c4a6a95a04e087f66e
Content-Type: text/plain; charset=ISO-8859-1

Hi Vincent,

Thx for porting to mirari.  I see how it is done now.

I tried the mirage-skeleton version (B=--xen make).  A few things:

In the .conf file I had to change ip-use-dhcp to false.  Then with all the
latest versions I see the same behavior - no packets make it back to the
VIF.  If I revert your commit on June 26, I see arp pkts on the bridge as
expected and I see them on the VIF as well.  However for some reason the
mirage-skeleton version brings up all my VIFs with IP 10.0.0.2, instead of
the ones I have used in the test (10.100.100.101 and 10.100.100.102).  If I
can make it come up with the my IP addrs (or at least different IP addrs),
then I think it will work as expected.

I am not sure why it crashes for you.  That's worrying.

Balraj



On Mon, Jul 1, 2013 at 12:39 PM, Anil Madhavapeddy <anil@recoil.org> wrote:

> I can't seem to reproduce Balraj's failure on my Ubuntu laptop.  I'll try
> on my Debian box later on this afternoon.
>
> -anil
>
> On 1 Jul 2013, at 12:29, Vincent Bernardoff <vb@luminar.eu.org> wrote:
>
> > On 30/06/2013 17:47, Balraj Singh wrote:
> >> Hi Vincent,
> >>
> >> I'm still using ocamlbuild.  From the mirage-net/direct directory I
> simply
> >> call "ocamlbuild tests/iperf_self/iperf_self.xen".  But for ocamlbuild
> to
> >> work right I make the following change to myocamlbuild.ml:
> >>
> >> --- a/myocamlbuild.ml
> >> +++ b/myocamlbuild.ml
> >> @@ -63,7 +63,7 @@ module Configure = struct
> >>    (* Flags for building and using syntax extensions *)
> >>    let ppflags () =
> >>      (* Syntax extensions for the libraries being built *)
> >> -    flag ["ocaml"; "pp"; "use_syntax"] & S [config_sh "syntax.deps"];
> >> +    flag ["ocaml"; "pp"(*; "use_syntax"*)] & S [config_sh
> "syntax.deps"];
> >>      (* Include the camlp4 flags to build an extension *)
> >>      flag ["ocaml"; "pp"; "build_syntax"] & S [config_sh
> "syntax.build"];
> >>      flag ["ocaml"; "pp"; "build_syntax_r"] & S [config_sh
> >> "syntax.build.r"];
> >>
> >>
> >> I then simply use the cfg file in the tests directory.  Apologies if
> this
> >> is unclear and non-standard, I will try to get this working with mirari
> >> etc, soon.
> >>
> >> Balraj
> >
> > Hey Balraj,
> >
> > No problem.
> >
> > I've ported the test to mirari:
> >
> > See git://github.com/vbmithr/mirage-skeleton.git
> >
> > In directory tcp
> > Just do make
> >
> > On my machine, I can correctly build the kernel, but when I am running
> it, it is immediately crashing. Tell me how it works for you.
> >
> > I'm going to try to compile under standard released versions of
> mirage/mirage-net. Hope we'll fix this! I'm quite happy about my various
> mirage refactorings, it would be a pity that I've really broken something..
> >
> > Cheers,
> >
> > Vincent
> >
> >
> > PS: I have updated all mirage-skeleton. Now the Makefiles correctly
> detect the backend, (either mirage-xen or mirage-unix).
> >
>
>
>

--047d7b6da1c4a6a95a04e087f66e
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hi Vincent,<div><br></div><div style>Thx for porting to mi=
rari. =A0I see how it is done now. =A0</div><div style><br></div><div style=
>I tried the mirage-skeleton version (B=3D--xen make). =A0A few things:</di=
v><div style>
<br></div><div style>In the .conf file I had to change ip-use-dhcp to false=
. =A0Then with all the latest versions I see the same behavior - no packets=
 make it back to the VIF. =A0If I revert your commit on June 26, I see arp =
pkts on the bridge as expected and I see them on the VIF as well. =A0Howeve=
r for some reason the mirage-skeleton version brings up all my VIFs with IP=
 10.0.0.2, instead of the ones I have used in the test (10.100.100.101 and =
10.100.100.102). =A0If I can make it come up with the my IP addrs (or at le=
ast different IP addrs), then I think it will work as expected.</div>
<div style><br></div><div style>I am not sure why it crashes for you. =A0Th=
at&#39;s worrying.</div><div style><br></div><div style>Balraj</div><div st=
yle><br></div></div><div class=3D"gmail_extra"><br><br><div class=3D"gmail_=
quote">
On Mon, Jul 1, 2013 at 12:39 PM, Anil Madhavapeddy <span dir=3D"ltr">&lt;<a=
 href=3D"mailto:anil@recoil.org" target=3D"_blank">anil@recoil.org</a>&gt;<=
/span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8=
ex;border-left:1px #ccc solid;padding-left:1ex">
I can&#39;t seem to reproduce Balraj&#39;s failure on my Ubuntu laptop. =A0=
I&#39;ll try<br>
on my Debian box later on this afternoon.<br>
<span class=3D"HOEnZb"><font color=3D"#888888"><br>
-anil<br>
</font></span><div class=3D"HOEnZb"><div class=3D"h5"><br>
On 1 Jul 2013, at 12:29, Vincent Bernardoff &lt;<a href=3D"mailto:vb@lumina=
r.eu.org">vb@luminar.eu.org</a>&gt; wrote:<br>
<br>
&gt; On 30/06/2013 17:47, Balraj Singh wrote:<br>
&gt;&gt; Hi Vincent,<br>
&gt;&gt;<br>
&gt;&gt; I&#39;m still using ocamlbuild. =A0From the mirage-net/direct dire=
ctory I simply<br>
&gt;&gt; call &quot;ocamlbuild tests/iperf_self/iperf_self.xen&quot;. =A0Bu=
t for ocamlbuild to<br>
&gt;&gt; work right I make the following change to <a href=3D"http://myocam=
lbuild.ml" target=3D"_blank">myocamlbuild.ml</a>:<br>
&gt;&gt;<br>
&gt;&gt; --- a/<a href=3D"http://myocamlbuild.ml" target=3D"_blank">myocaml=
build.ml</a><br>
&gt;&gt; +++ b/<a href=3D"http://myocamlbuild.ml" target=3D"_blank">myocaml=
build.ml</a><br>
&gt;&gt; @@ -63,7 +63,7 @@ module Configure =3D struct<br>
&gt;&gt; =A0 =A0(* Flags for building and using syntax extensions *)<br>
&gt;&gt; =A0 =A0let ppflags () =3D<br>
&gt;&gt; =A0 =A0 =A0(* Syntax extensions for the libraries being built *)<b=
r>
&gt;&gt; - =A0 =A0flag [&quot;ocaml&quot;; &quot;pp&quot;; &quot;use_syntax=
&quot;] &amp; S [config_sh &quot;syntax.deps&quot;];<br>
&gt;&gt; + =A0 =A0flag [&quot;ocaml&quot;; &quot;pp&quot;(*; &quot;use_synt=
ax&quot;*)] &amp; S [config_sh &quot;syntax.deps&quot;];<br>
&gt;&gt; =A0 =A0 =A0(* Include the camlp4 flags to build an extension *)<br=
>
&gt;&gt; =A0 =A0 =A0flag [&quot;ocaml&quot;; &quot;pp&quot;; &quot;build_sy=
ntax&quot;] &amp; S [config_sh &quot;syntax.build&quot;];<br>
&gt;&gt; =A0 =A0 =A0flag [&quot;ocaml&quot;; &quot;pp&quot;; &quot;build_sy=
ntax_r&quot;] &amp; S [config_sh<br>
&gt;&gt; &quot;syntax.build.r&quot;];<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; I then simply use the cfg file in the tests directory. =A0Apologie=
s if this<br>
&gt;&gt; is unclear and non-standard, I will try to get this working with m=
irari<br>
&gt;&gt; etc, soon.<br>
&gt;&gt;<br>
&gt;&gt; Balraj<br>
&gt;<br>
&gt; Hey Balraj,<br>
&gt;<br>
&gt; No problem.<br>
&gt;<br>
&gt; I&#39;ve ported the test to mirari:<br>
&gt;<br>
&gt; See git://<a href=3D"http://github.com/vbmithr/mirage-skeleton.git" ta=
rget=3D"_blank">github.com/vbmithr/mirage-skeleton.git</a><br>
&gt;<br>
&gt; In directory tcp<br>
&gt; Just do make<br>
&gt;<br>
&gt; On my machine, I can correctly build the kernel, but when I am running=
 it, it is immediately crashing. Tell me how it works for you.<br>
&gt;<br>
&gt; I&#39;m going to try to compile under standard released versions of mi=
rage/mirage-net. Hope we&#39;ll fix this! I&#39;m quite happy about my vari=
ous mirage refactorings, it would be a pity that I&#39;ve really broken som=
ething..<br>

&gt;<br>
&gt; Cheers,<br>
&gt;<br>
&gt; Vincent<br>
&gt;<br>
&gt;<br>
&gt; PS: I have updated all mirage-skeleton. Now the Makefiles correctly de=
tect the backend, (either mirage-xen or mirage-unix).<br>
&gt;<br>
<br>
<br>
</div></div></blockquote></div><br></div>

--047d7b6da1c4a6a95a04e087f66e--


From vb@luminar.eu.org Tue Jul 02 15:24:07 2013
Received: from ppsw-52.csi.cam.ac.uk ([131.111.8.152])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1Uu1V1-0000cx-1s (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <vb@luminar.eu.org>); Tue, 02 Jul 2013 15:24:07 +0100
X-Cam-SpamDetails: score -0.0 from SpamAssassin-3.3.2-1498303 
	* -0.0 RP_MATCHES_RCVD Envelope sender domain matches handover relay
	*      domain
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from luminar.eu.org ([94.23.24.152]:58356)
	by ppsw-52.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.148]:25)
	with esmtp id 1Uu1V0-0006L4-F2 (Exim 4.80_167-5a66dd3) for
	cl-mirage@lists.cam.ac.uk
	(return-path <vb@luminar.eu.org>); Tue, 02 Jul 2013 15:24:07 +0100
Received: from [IPv6:::1] (localhost.localdomain [127.0.0.1])
	by luminar.eu.org (Postfix) with ESMTP id 2C6386182C;
	Tue,  2 Jul 2013 16:24:06 +0200 (CEST)
Message-ID: <51D2E286.3070209@luminar.eu.org>
Date: Tue, 02 Jul 2013 15:24:06 +0100
From: Vincent Bernardoff <vb@luminar.eu.org>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:17.0) Gecko/20130625 Thunderbird/17.0.7
MIME-Version: 1.0
To: Balraj Singh <balrajsingh@ieee.org>
Subject: Re: mirage-platform commit on June 26
References: <CANeYhgGBGzUXcZwN=wB-zXrMo21trsiaN8KnXbAWcta1GYyVAw@mail.gmail.com>
	<51CD92AC.7070608@luminar.eu.org> <51D01FC2.3090208@luminar.eu.org>
	<CANeYhgHjSa2h1-VUT9ra+6PwZRP8+aG+64Y+Bjdu=s=rObkhCA@mail.gmail.com>
	<51D16830.6020104@luminar.eu.org>
	<B69F49D7-ED05-471D-8BF7-14C1F43816C7@recoil.org>
	<CANeYhgHekM-XbFQ-8qgAyChfLkOvwoitreHJQdJtx7XqFPFj7w@mail.gmail.com>
In-Reply-To: <CANeYhgHekM-XbFQ-8qgAyChfLkOvwoitreHJQdJtx7XqFPFj7w@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Cc: Mirage List <cl-mirage@lists.cam.ac.uk>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Tue, 02 Jul 2013 14:24:07 -0000
Content-Length: 1537
Lines: 48

On 02/07/2013 15:14, Balraj Singh wrote:
> Hi Vincent,
>
> Thx for porting to mirari.  I see how it is done now.
>
> I tried the mirage-skeleton version (B=--xen make).  A few things:
>
> In the .conf file I had to change ip-use-dhcp to false.  Then with all the
> latest versions I see the same behavior - no packets make it back to the
> VIF.  If I revert your commit on June 26, I see arp pkts on the bridge as
> expected and I see them on the VIF as well.

With my updated version of mirage-skeleton yesterday, now B=--xen is 
totally uneeded but that was probably OK.

just do make, and you can even run it directly with mirari run --xen !

However for some reason the
> mirage-skeleton version brings up all my VIFs with IP 10.0.0.2, instead of
> the ones I have used in the test (10.100.100.101 and 10.100.100.102).  If I
> can make it come up with the my IP addrs (or at least different IP addrs),
> then I think it will work as expected.

HA ! That look like a problem. Are you really using the mirage backend ? 
Under UNIX, indeed, all the VIFs are brought up with 10.0.0.2 by default 
(unless specified otherwise in the .conf file used by mirari), and 
mirari sets the tap device IP to be 10.0.0.1.

Can you confirm that you are indeed using Xen ?

But yeah I'm quite relieved that the problem seem to be that.
I'll investigate.


>
> I am not sure why it crashes for you.  That's worrying.
>
> Balraj
>

Yeah I think there is a big problem with my machine, or something like 
that. I'll ask Dave to help.


Cheers,

Vincent


From vb@luminar.eu.org Tue Jul 02 16:06:11 2013
Received: from ppsw-mx-f.csi.cam.ac.uk ([131.111.8.149]
	helo=ppsw-42.csi.cam.ac.uk)
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1Uu29j-00026I-8x (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <vb@luminar.eu.org>); Tue, 02 Jul 2013 16:06:11 +0100
X-Cam-SpamDetails: score -0.0 from SpamAssassin-3.3.2-1498303 
	* -0.0 RP_MATCHES_RCVD Envelope sender domain matches handover relay
	*      domain
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from luminar.eu.org ([94.23.24.152]:36983)
	by ppsw-42.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.149]:25)
	with esmtp id 1Uu29i-0002zm-9G (Exim 4.80_167-5a66dd3) for
	cl-mirage@lists.cam.ac.uk
	(return-path <vb@luminar.eu.org>); Tue, 02 Jul 2013 16:06:11 +0100
Received: from [IPv6:::1] (localhost.localdomain [127.0.0.1])
	by luminar.eu.org (Postfix) with ESMTP id 93423617E0;
	Tue,  2 Jul 2013 17:06:10 +0200 (CEST)
Message-ID: <51D2EC62.2040001@luminar.eu.org>
Date: Tue, 02 Jul 2013 16:06:10 +0100
From: Vincent Bernardoff <vb@luminar.eu.org>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:17.0) Gecko/20130625 Thunderbird/17.0.7
MIME-Version: 1.0
To: Balraj Singh <balrajsingh@ieee.org>
Subject: Re: mirage-platform commit on June 26
References: <CANeYhgGBGzUXcZwN=wB-zXrMo21trsiaN8KnXbAWcta1GYyVAw@mail.gmail.com>
	<51CD92AC.7070608@luminar.eu.org> <51D01FC2.3090208@luminar.eu.org>
	<CANeYhgHjSa2h1-VUT9ra+6PwZRP8+aG+64Y+Bjdu=s=rObkhCA@mail.gmail.com>
	<51D16830.6020104@luminar.eu.org>
	<B69F49D7-ED05-471D-8BF7-14C1F43816C7@recoil.org>
	<CANeYhgHekM-XbFQ-8qgAyChfLkOvwoitreHJQdJtx7XqFPFj7w@mail.gmail.com>
In-Reply-To: <CANeYhgHekM-XbFQ-8qgAyChfLkOvwoitreHJQdJtx7XqFPFj7w@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Cc: Mirage List <cl-mirage@lists.cam.ac.uk>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Tue, 02 Jul 2013 15:06:11 -0000
Content-Length: 1254
Lines: 27

On 02/07/2013 15:14, Balraj Singh wrote:
> In the .conf file I had to change ip-use-dhcp to false.  Then with all the
> latest versions I see the same behavior - no packets make it back to the
> VIF.  If I revert your commit on June 26, I see arp pkts on the bridge as
> expected and I see them on the VIF as well.  However for some reason the
> mirage-skeleton version brings up all my VIFs with IP 10.0.0.2, instead of
> the ones I have used in the test (10.100.100.101 and 10.100.100.102).  If I
> can make it come up with the my IP addrs (or at least different IP addrs),
> then I think it will work as expected.

Actually mirari has not yet the ability of configuring different 
interfaces: As a result, any Xen kernel created with mirari will put the 
same configuration on any number of vifs, which is a big problem in this 
case. I'm going to think about how to fix that ASAP for mirari (support 
multiple interfaces). Then I'll try your test on the UNIX-direct and Xen 
backends (whenever I'll fix Xen).

In the meantime, please someone test to compile a  Xen kernel using the 
last code (use the opam-repo-dev from the mirage github account).

Balraj just pushed some code to fix mirage-net. I'm going to pull that I 
think.

Cheers,

Vincent


From vb@luminar.eu.org Tue Jul 02 18:46:03 2013
Received: from ppsw-mx-f.csi.cam.ac.uk ([131.111.8.149]
	helo=ppsw-42.csi.cam.ac.uk)
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1Uu4eR-0003QR-11 (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <vb@luminar.eu.org>); Tue, 02 Jul 2013 18:46:03 +0100
X-Cam-SpamDetails: score -0.0 from SpamAssassin-3.3.2-1498303 
	* -0.0 RP_MATCHES_RCVD Envelope sender domain matches handover relay
	*      domain
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from luminar.eu.org ([94.23.24.152]:59188)
	by ppsw-42.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.149]:25)
	with esmtp id 1Uu4eL-00036k-8V (Exim 4.80_167-5a66dd3) for
	cl-mirage@lists.cam.ac.uk
	(return-path <vb@luminar.eu.org>); Tue, 02 Jul 2013 18:46:03 +0100
Received: from [IPv6:::1] (localhost.localdomain [127.0.0.1])
	by luminar.eu.org (Postfix) with ESMTP id 5BF2561827
	for <cl-mirage@lists.cam.ac.uk>; Tue,  2 Jul 2013 19:45:57 +0200 (CEST)
Message-ID: <51D311D5.2000603@luminar.eu.org>
Date: Tue, 02 Jul 2013 18:45:57 +0100
From: Vincent Bernardoff <vb@luminar.eu.org>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:17.0) Gecko/20130625 Thunderbird/17.0.7
MIME-Version: 1.0
To: cl-mirage@lists.cam.ac.uk
Subject: Re: mirage-platform commit on June 26
References: <CANeYhgGBGzUXcZwN=wB-zXrMo21trsiaN8KnXbAWcta1GYyVAw@mail.gmail.com>
	<51CD92AC.7070608@luminar.eu.org> <51D01FC2.3090208@luminar.eu.org>
	<CANeYhgHjSa2h1-VUT9ra+6PwZRP8+aG+64Y+Bjdu=s=rObkhCA@mail.gmail.com>
	<51D16830.6020104@luminar.eu.org>
	<B69F49D7-ED05-471D-8BF7-14C1F43816C7@recoil.org>
	<CANeYhgHekM-XbFQ-8qgAyChfLkOvwoitreHJQdJtx7XqFPFj7w@mail.gmail.com>
	<51D2EC62.2040001@luminar.eu.org>
In-Reply-To: <51D2EC62.2040001@luminar.eu.org>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Tue, 02 Jul 2013 17:46:03 -0000
Content-Length: 543
Lines: 18

On 02/07/2013 16:06, Vincent Bernardoff wrote:
>
> In the meantime, please someone test to compile a  Xen kernel using the
> last code (use the opam-repo-dev from the mirage github account).
>
> Balraj just pushed some code to fix mirage-net. I'm going to pull that I
> think.

I've reviewed and pulled his changes in. Now everything compiles 
correctly, and on trivial tests everything is working fine. I'm now 
going to checkout Balraj bug ASAP (first on UNIX-direct, since Xen is 
broken for me right now), then on Xen.

Cheers,

Vincent



From anil@recoil.org Wed Jul 03 11:31:47 2013
Received: from ppsw-32.csi.cam.ac.uk ([131.111.8.132])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1UuKLj-0006L0-7a (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Wed, 03 Jul 2013 11:31:47 +0100
X-Cam-SpamDetails: score 0.0 from SpamAssassin-3.3.2-1498840
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from recoil.dh.bytemark.co.uk ([89.16.177.154]:5232
	helo=dark.recoil.org)
	by ppsw-32.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.146]:25)
	with smtp id 1UuKLi-0001E6-28 (Exim 4.80_167-5a66dd3) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Wed, 03 Jul 2013 11:31:47 +0100
Received: (qmail 2702 invoked by uid 634); 3 Jul 2013 10:31:46 -0000
X-Spam-Level: *
X-Spam-Status: No, hits=-1.0 required=5.0
	tests=ALL_TRUSTED
X-Spam-Check-By: dark.recoil.org
Received: from host81-149-102-120.in-addr.btopenworld.com (HELO clink-4.home)
	(81.149.102.120)
	(smtp-auth username remote@recoil.org, mechanism cram-md5)
	by dark.recoil.org (qpsmtpd/0.84) with ESMTPA;
	Wed, 03 Jul 2013 11:31:46 +0100
From: Anil Madhavapeddy <anil@recoil.org>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Subject: Github Releases, with excellent timing
Message-Id: <58149577-C2E3-46FA-9015-77897051CE08@recoil.org>
Date: Wed, 3 Jul 2013 11:31:47 +0100
To: "cl-mirage@lists.cam.ac.uk List" <cl-mirage@lists.cam.ac.uk>
Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\))
X-Mailer: Apple Mail (2.1503)
X-Virus-Checked: Checked by ClamAV on dark.recoil.org
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Wed, 03 Jul 2013 10:31:47 -0000
Content-Length: 319
Lines: 9

Github just announced their new Release workflow, which looks excellent.
https://github.com/blog/1547-release-your-software

Unfortunately no API yet, but it looks like it'll fit in great with our =
tagging system.  Once they release an API, we should be able to cut OPAM =
packages with a single CLI command.

-anil=


From balraj885@gmail.com Wed Jul 03 13:32:00 2013
Received: from ppsw-52.csi.cam.ac.uk ([131.111.8.152])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1UuME4-00030i-Ik (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <balraj885@gmail.com>); Wed, 03 Jul 2013 13:32:00 +0100
X-Cam-SpamDetails: score -0.3 from SpamAssassin-3.3.2-1498840 
	* -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/,
	low *      trust
	*      [209.85.216.171 listed in list.dnswl.dnsbl.ja.net]
	* 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail
	provider *       (balraj885[at]gmail.com)
	* 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends
	in *      digit (balraj885[at]gmail.com)
	*  0.0 HTML_MESSAGE BODY: HTML included in message
	*  0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily
	*      valid
	*  0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from mail-qc0-f171.google.com ([209.85.216.171]:47127)
	by ppsw-52.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.148]:25)
	with esmtp id 1UuME3-0005rZ-ES (Exim 4.80_167-5a66dd3) for
	cl-mirage@lists.cam.ac.uk
	(return-path <balraj885@gmail.com>); Wed, 03 Jul 2013 13:32:00 +0100
Received: by mail-qc0-f171.google.com with SMTP id n1so38426qcw.2
	for <cl-mirage@lists.cam.ac.uk>; Wed, 03 Jul 2013 05:31:58 -0700 (PDT)
MIME-Version: 1.0
X-Received: by 10.49.83.197 with SMTP id s5mr930322qey.22.1372854718775; Wed,
	03 Jul 2013 05:31:58 -0700 (PDT)
Sender: balraj885@gmail.com
Received: by 10.49.52.198 with HTTP; Wed, 3 Jul 2013 05:31:58 -0700 (PDT)
In-Reply-To: <51D311D5.2000603@luminar.eu.org>
References: <CANeYhgGBGzUXcZwN=wB-zXrMo21trsiaN8KnXbAWcta1GYyVAw@mail.gmail.com>
	<51CD92AC.7070608@luminar.eu.org> <51D01FC2.3090208@luminar.eu.org>
	<CANeYhgHjSa2h1-VUT9ra+6PwZRP8+aG+64Y+Bjdu=s=rObkhCA@mail.gmail.com>
	<51D16830.6020104@luminar.eu.org>
	<B69F49D7-ED05-471D-8BF7-14C1F43816C7@recoil.org>
	<CANeYhgHekM-XbFQ-8qgAyChfLkOvwoitreHJQdJtx7XqFPFj7w@mail.gmail.com>
	<51D2EC62.2040001@luminar.eu.org> <51D311D5.2000603@luminar.eu.org>
Date: Wed, 3 Jul 2013 13:31:58 +0100
X-Google-Sender-Auth: DLbqfeBa8EKMPLps8F8zZY9GTg4
Message-ID: <CANeYhgECYhb7TavDkxvB=By1i5sFG4Pt9D0hpahjokp+nomVuw@mail.gmail.com>
Subject: Re: mirage-platform commit on June 26
From: Balraj Singh <balrajsingh@ieee.org>
To: Vincent Bernardoff <vb@luminar.eu.org>
Content-Type: multipart/alternative; boundary=047d7b6d9720d74a4504e09aa519
Cc: Mirage List <cl-mirage@lists.cam.ac.uk>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Wed, 03 Jul 2013 12:32:00 -0000
Content-Length: 2524
Lines: 78

--047d7b6d9720d74a4504e09aa519
Content-Type: text/plain; charset=ISO-8859-1

That makes sense, if mirari sets up one VIF then the test will not work of
course.  Thanks for looking into the bug, I've never tried it on
UNIX-direct yet but should work I think.

Thanks,

Balraj


On Tue, Jul 2, 2013 at 6:45 PM, Vincent Bernardoff <vb@luminar.eu.org>wrote:

> On 02/07/2013 16:06, Vincent Bernardoff wrote:
>
>>
>> In the meantime, please someone test to compile a  Xen kernel using the
>> last code (use the opam-repo-dev from the mirage github account).
>>
>> Balraj just pushed some code to fix mirage-net. I'm going to pull that I
>> think.
>>
>
> I've reviewed and pulled his changes in. Now everything compiles
> correctly, and on trivial tests everything is working fine. I'm now going
> to checkout Balraj bug ASAP (first on UNIX-direct, since Xen is broken for
> me right now), then on Xen.
>
> Cheers,
>
> Vincent
>
>
>

--047d7b6d9720d74a4504e09aa519
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">That makes sense, if mirari sets up one VIF then the test =
will not work of course. =A0Thanks for looking into the bug, I&#39;ve never=
 tried it on UNIX-direct yet but should work I think.<div><br></div><div st=
yle>
Thanks,</div><div style><br></div><div style>Balraj</div></div><div class=
=3D"gmail_extra"><br><br><div class=3D"gmail_quote">On Tue, Jul 2, 2013 at =
6:45 PM, Vincent Bernardoff <span dir=3D"ltr">&lt;<a href=3D"mailto:vb@lumi=
nar.eu.org" target=3D"_blank">vb@luminar.eu.org</a>&gt;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><div class=3D"im">On 02/07/2013 16:06, Vince=
nt Bernardoff wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">
<br>
In the meantime, please someone test to compile a =A0Xen kernel using the<b=
r>
last code (use the opam-repo-dev from the mirage github account).<br>
<br>
Balraj just pushed some code to fix mirage-net. I&#39;m going to pull that =
I<br>
think.<br>
</blockquote>
<br></div>
I&#39;ve reviewed and pulled his changes in. Now everything compiles correc=
tly, and on trivial tests everything is working fine. I&#39;m now going to =
checkout Balraj bug ASAP (first on UNIX-direct, since Xen is broken for me =
right now), then on Xen.<br>

<br>
Cheers,<br>
<br>
Vincent<br>
<br>
<br>
</blockquote></div><br></div>

--047d7b6d9720d74a4504e09aa519--


From daniel.buenzli@erratique.ch Wed Jul 03 14:08:42 2013
Received: from ppsw-mx-f.csi.cam.ac.uk ([131.111.8.149]
	helo=ppsw-42.csi.cam.ac.uk)
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1UuMna-0004Fn-53 (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <daniel.buenzli@erratique.ch>);
	Wed, 03 Jul 2013 14:08:42 +0100
X-Cam-SpamDetails: score 0.0 from SpamAssassin-3.3.2-1498840
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from mail6.webfaction.com ([74.55.86.74]:42890
	helo=smtp.webfaction.com)
	by ppsw-42.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.149]:25)
	with esmtp id 1UuMnZ-0005ey-6r (Exim 4.80_167-5a66dd3) for
	cl-mirage@lists.cam.ac.uk
	(return-path <daniel.buenzli@erratique.ch>);
	Wed, 03 Jul 2013 14:08:42 +0100
Received: from [192.168.1.126]
	(cpc3-cmbg9-0-0-cust324.5-4.cable.virginmedia.com [81.103.21.69])
	by smtp.webfaction.com (Postfix) with ESMTP id D69C921ACEB2;
	Wed,  3 Jul 2013 13:08:39 +0000 (UTC)
Date: Wed, 3 Jul 2013 14:08:38 +0100
From: =?utf-8?Q?Daniel_B=C3=BCnzli?= <daniel.buenzli@erratique.ch>
To: Anil Madhavapeddy <anil@recoil.org>
Message-ID: <3EF2B73CADFD4E4192C955A26D6F1564@erratique.ch>
In-Reply-To: <58149577-C2E3-46FA-9015-77897051CE08@recoil.org>
References: <58149577-C2E3-46FA-9015-77897051CE08@recoil.org>
Subject: Re: Github Releases, with excellent timing
X-Mailer: sparrow 1.6.4 (build 1178)
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Cc: "=?utf-8?Q?cl-mirage=40lists.cam.ac.uk_List?=" <cl-mirage@lists.cam.ac.uk>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Wed, 03 Jul 2013 13:08:42 -0000
Content-Length: 1152
Lines: 31

Le mercredi, 3 juillet 2013 =C3=A0 11:31, Anil Madhavapeddy a =C3=A9crit =
:
> Github just announced their new Release workflow, which looks excellent=
.
> https://github.com/blog/1547-release-your-software


It may work for you but that doesn't look different from the ability that=
 was already existing to be able to download the checkout associated to a=
 tag. They just renamed the =22tags=22 tab in =22releases=22 (which is co=
mpletely stupid from a git semantics point of view, a tag is not necessar=
ily a release) and added a way to attach text and files to a tag.

=46or me, as long as you cannot perform arbitrary transformation on the t=
ree checkout to transform it into the released tree, this is going to be =
useless. I actually hate the fact that this cannot be disabled if you try=
 to download what they now call a =22release=22 for this specific package=
:
 =20
https://github.com/dbuenzli/uunf/releases

you are not going to get functioning software --- for a release of uunf d=
ata structures need to be computed from the Unicode character database an=
d added to the source as constants. =20

I want tools, not toys.

Daniel




From anil@recoil.org Wed Jul 03 14:14:43 2013
Received: from ppsw-33.csi.cam.ac.uk ([131.111.8.133])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1UuMtP-0004Tg-1r (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Wed, 03 Jul 2013 14:14:43 +0100
X-Cam-SpamDetails: score 0.0 from SpamAssassin-3.3.2-1498840
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from recoil.dh.bytemark.co.uk ([89.16.177.154]:4081
	helo=dark.recoil.org)
	by ppsw-33.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.147]:25)
	with smtp id 1UuMtO-0004mW-hY (Exim 4.80_167-5a66dd3) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Wed, 03 Jul 2013 14:14:43 +0100
Received: (qmail 27980 invoked by uid 634); 3 Jul 2013 13:14:41 -0000
X-Spam-Level: *
X-Spam-Status: No, hits=-1.0 required=5.0
	tests=ALL_TRUSTED
X-Spam-Check-By: dark.recoil.org
Received: from no-dns-yet.demon.co.uk (HELO [192.168.14.11]) (62.49.66.12)
	(smtp-auth username remote@recoil.org, mechanism cram-md5)
	by dark.recoil.org (qpsmtpd/0.84) with ESMTPA;
	Wed, 03 Jul 2013 14:14:41 +0100
Content-Type: text/plain; charset=iso-8859-1
Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\))
Subject: Re: Github Releases, with excellent timing
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <3EF2B73CADFD4E4192C955A26D6F1564@erratique.ch>
Date: Wed, 3 Jul 2013 14:14:40 +0100
Content-Transfer-Encoding: quoted-printable
Message-Id: <6F0F33A1-3519-4DCE-9B4B-EC38A10976A0@recoil.org>
References: <58149577-C2E3-46FA-9015-77897051CE08@recoil.org>
	<3EF2B73CADFD4E4192C955A26D6F1564@erratique.ch>
To: =?iso-8859-1?Q?Daniel_B=FCnzli?= <daniel.buenzli@erratique.ch>
X-Mailer: Apple Mail (2.1503)
X-Virus-Checked: Checked by ClamAV on dark.recoil.org
Cc: "cl-mirage@lists.cam.ac.uk List" <cl-mirage@lists.cam.ac.uk>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Wed, 03 Jul 2013 13:14:43 -0000
Content-Length: 1433
Lines: 37

On 3 Jul 2013, at 14:08, Daniel B=FCnzli <daniel.buenzli@erratique.ch> =
wrote:

> Le mercredi, 3 juillet 2013 =E0 11:31, Anil Madhavapeddy a =E9crit :
>> Github just announced their new Release workflow, which looks =
excellent.
>> https://github.com/blog/1547-release-your-software
>=20
>=20
> It may work for you but that doesn't look different from the ability =
that was already existing to be able to download the checkout associated =
to a tag. They just renamed the "tags" tab in "releases" (which is =
completely stupid from a git semantics point of view, a tag is not =
necessarily a release) and added a way to attach text and files to a =
tag.
>=20
> For me, as long as you cannot perform arbitrary transformation on the =
tree checkout to transform it into the released tree, this is going to =
be useless. I actually hate the fact that this cannot be disabled if you =
try to download what they now call a "release" for this specific =
package:

It looks like you can attach arbitrary files to the release -- which =
have the transforms (setup.ml, utf files, etc).  Isn't that enough?

See:
> You can also attach binary assets (such as compiled executables, =
minified scripts, documentation) to a release. Once published, the =
release details and assets are available to anyone that can view the =
repository.

So you just need to mark the source asset differently from the tagged =
pristine source tarball.

-anil



From daniel.buenzli@erratique.ch Wed Jul 03 14:54:07 2013
Received: from ppsw-32.csi.cam.ac.uk ([131.111.8.132])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1UuNVX-00060W-0V (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <daniel.buenzli@erratique.ch>);
	Wed, 03 Jul 2013 14:54:07 +0100
X-Cam-SpamDetails: score 0.0 from SpamAssassin-3.3.2-1498840
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from mail6.webfaction.com ([74.55.86.74]:53578
	helo=smtp.webfaction.com)
	by ppsw-32.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.146]:25)
	with esmtp id 1UuNVW-0004qy-1q (Exim 4.80_167-5a66dd3) for
	cl-mirage@lists.cam.ac.uk
	(return-path <daniel.buenzli@erratique.ch>);
	Wed, 03 Jul 2013 14:54:07 +0100
Received: from [192.168.1.126]
	(cpc3-cmbg9-0-0-cust324.5-4.cable.virginmedia.com [81.103.21.69])
	by smtp.webfaction.com (Postfix) with ESMTP id 2C19721AD629;
	Wed,  3 Jul 2013 13:52:21 +0000 (UTC)
Date: Wed, 3 Jul 2013 14:52:21 +0100
From: =?utf-8?Q?Daniel_B=C3=BCnzli?= <daniel.buenzli@erratique.ch>
To: Anil Madhavapeddy <anil@recoil.org>
Message-ID: <45D8F98CC82F478DB31DF1349B0E3237@erratique.ch>
In-Reply-To: <6F0F33A1-3519-4DCE-9B4B-EC38A10976A0@recoil.org>
References: <58149577-C2E3-46FA-9015-77897051CE08@recoil.org>
	<3EF2B73CADFD4E4192C955A26D6F1564@erratique.ch>
	<6F0F33A1-3519-4DCE-9B4B-EC38A10976A0@recoil.org>
Subject: Re: Github Releases, with excellent timing
X-Mailer: sparrow 1.6.4 (build 1178)
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Cc: "=?utf-8?Q?cl-mirage=40lists.cam.ac.uk_List?=" <cl-mirage@lists.cam.ac.uk>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Wed, 03 Jul 2013 13:54:07 -0000
Content-Length: 1562
Lines: 34

Le mercredi, 3 juillet 2013 =C3=A0 14:14, Anil Madhavapeddy a =C3=A9crit =
:
> It looks like you can attach arbitrary files to the release -- which ha=
ve the transforms (setup.ml, utf files, etc). Isn't that enough=3F

I don't know there are not enough details in that page for me to know if =
that would be workable, but I doubt it. I transform all my source files t=
o tag them with the version number of the release and I'm not going to dr=
ag and drop files in a web ui interface.

There is also a big drawback to their approach. You no longer have a CHAN=
GES files that is part of your repo. It eschews the idea that a release t=
arball is a somehow self-contained (re)presentation of your project. Your=
 release notes are no longer with your project but in github's infrastruc=
ture, you may be fine with that, I'm not (remember that ten years ago mos=
t free software was published on a different system, I don't see why this=
 may not change again).  =20

I think they really missed something on that one. They managed to make RE=
ADME's something that automatically adds to the presentation of your repo=
. They could have done the same thing by telling us that if our CHANGES f=
iles have a particular structure they would make something useful with it=
 (e.g. match version tags and associate the corresponding release notes t=
ext to the release tags). But maybe I'm old fashioned.

Best,

Daniel

P.S. By the way opam really needs a way to show things like release notes=
 and readmes associated to a package along with the documentation. =20




From anil@recoil.org Wed Jul 03 15:27:07 2013
Received: from ppsw-33.csi.cam.ac.uk ([131.111.8.133])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1UuO1T-0007K2-0Q (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Wed, 03 Jul 2013 15:27:07 +0100
X-Cam-SpamDetails: score 0.0 from SpamAssassin-3.3.2-1498840
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from recoil.dh.bytemark.co.uk ([89.16.177.154]:40088
	helo=dark.recoil.org)
	by ppsw-33.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.147]:25)
	with smtp id 1UuO1S-0003KK-gG (Exim 4.80_167-5a66dd3) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Wed, 03 Jul 2013 15:27:07 +0100
Received: (qmail 17600 invoked by uid 634); 3 Jul 2013 14:27:05 -0000
X-Spam-Level: *
X-Spam-Status: No, hits=-1.0 required=5.0
	tests=ALL_TRUSTED
X-Spam-Check-By: dark.recoil.org
Received: from no-dns-yet.demon.co.uk (HELO [192.168.14.11]) (62.49.66.12)
	(smtp-auth username remote@recoil.org, mechanism cram-md5)
	by dark.recoil.org (qpsmtpd/0.84) with ESMTPA;
	Wed, 03 Jul 2013 15:27:04 +0100
Content-Type: text/plain; charset=iso-8859-1
Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\))
Subject: Re: Github Releases, with excellent timing
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <45D8F98CC82F478DB31DF1349B0E3237@erratique.ch>
Date: Wed, 3 Jul 2013 15:27:03 +0100
Content-Transfer-Encoding: quoted-printable
Message-Id: <17CACD37-2D8D-433E-86D3-C0DB2D02E5DB@recoil.org>
References: <58149577-C2E3-46FA-9015-77897051CE08@recoil.org>
	<3EF2B73CADFD4E4192C955A26D6F1564@erratique.ch>
	<6F0F33A1-3519-4DCE-9B4B-EC38A10976A0@recoil.org>
	<45D8F98CC82F478DB31DF1349B0E3237@erratique.ch>
To: =?iso-8859-1?Q?Daniel_B=FCnzli?= <daniel.buenzli@erratique.ch>
X-Mailer: Apple Mail (2.1503)
X-Virus-Checked: Checked by ClamAV on dark.recoil.org
Cc: "cl-mirage@lists.cam.ac.uk List" <cl-mirage@lists.cam.ac.uk>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Wed, 03 Jul 2013 14:27:07 -0000
Content-Length: 2453
Lines: 54

On 3 Jul 2013, at 14:52, Daniel B=FCnzli <daniel.buenzli@erratique.ch> =
wrote:

> Le mercredi, 3 juillet 2013 =E0 14:14, Anil Madhavapeddy a =E9crit :
>> It looks like you can attach arbitrary files to the release -- which =
have the transforms (setup.ml, utf files, etc). Isn't that enough?
>=20
> I don't know there are not enough details in that page for me to know =
if that would be workable, but I doubt it. I transform all my source =
files to tag them with the version number of the release and I'm not =
going to drag and drop files in a web ui interface.
>=20
> There is also a big drawback to their approach. You no longer have a =
CHANGES files that is part of your repo. It eschews the idea that a =
release tarball is a somehow self-contained (re)presentation of your =
project. Your release notes are no longer with your project but in =
github's infrastructure, you may be fine with that, I'm not (remember =
that ten years ago most free software was published on a different =
system, I don't see why this may not change again).  =20

None of these seem like substantive blockers.  A quick online hunt shows =
that they're planning to extend the API to add Releases when it's =
stable.  An API would let us easily automate including the CHANGES file =
in the release tag, as well as auto-generating the release tarballs with =
the autogen files.  For now, I've experimentally released ocaml-cow to =
see what it looks like:

https://github.com/mirage/ocaml-cow/releases

> I think they really missed something on that one. They managed to make =
README's something that automatically adds to the presentation of your =
repo. They could have done the same thing by telling us that if our =
CHANGES files have a particular structure they would make something =
useful with it (e.g. match version tags and associate the corresponding =
release notes text to the release tags). But maybe I'm old fashioned.

They can still do that. They've clearly just released the base feature =
first, which seems quite reasonable.

> Best,
>=20
> Daniel
>=20
> P.S. By the way opam really needs a way to show things like release =
notes and readmes associated to a package along with the documentation. =20=


This can be done with external tools, which I've started at
https://github.com/avsm/opam-repo-tools/
but won't have time to finish for a while.  I'll probably extend it as =
soon as the Release API is out, as that'll save some time.

-anil=


From thomas.gazagnaire@gmail.com Wed Jul 03 17:51:05 2013
Received: from ppsw-mx-f.csi.cam.ac.uk ([131.111.8.149]
	helo=ppsw-42.csi.cam.ac.uk)
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1UuQGn-0003tC-RY (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <thomas.gazagnaire@gmail.com>);
	Wed, 03 Jul 2013 17:51:05 +0100
X-Cam-SpamDetails: score -0.6 from SpamAssassin-3.3.2-1498840 
	* -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/,
	low *      trust
	*      [74.125.82.182 listed in list.dnswl.dnsbl.ja.net]
	* 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail
	provider *       (thomas.gazagnaire[at]gmail.com)
	*  0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily
	*      valid
	*  0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from mail-we0-f182.google.com ([74.125.82.182]:34180)
	by ppsw-42.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.149]:25)
	with esmtp id 1UuQGm-0003vW-9F (Exim 4.80_167-5a66dd3) for
	cl-mirage@lists.cam.ac.uk
	(return-path <thomas.gazagnaire@gmail.com>);
	Wed, 03 Jul 2013 17:51:05 +0100
Received: by mail-we0-f182.google.com with SMTP id p60so327117wes.13
	for <cl-mirage@lists.cam.ac.uk>; Wed, 03 Jul 2013 09:51:04 -0700 (PDT)
X-Received: by 10.194.249.129 with SMTP id yu1mr1215174wjc.10.1372870264700;
	Wed, 03 Jul 2013 09:51:04 -0700 (PDT)
Received: from [192.168.0.12] (gou06-3-88-170-165-56.fbx.proxad.net.
	[88.170.165.56])
	by mx.google.com with ESMTPSA id d8sm29959403wiz.0.2013.07.03.09.51.03
	for <cl-mirage@lists.cam.ac.uk>
	(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
	Wed, 03 Jul 2013 09:51:04 -0700 (PDT)
Sender: Thomas Gazagnaire <thomas.gazagnaire@gmail.com>
From: Thomas Gazagnaire <thomas@gazagnaire.org>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Subject: conflict-free replicated data-types
Date: Wed, 3 Jul 2013 18:51:01 +0200
Message-Id: <E2D3E869-9268-4FE5-A47C-3F45B5615968@gazagnaire.org>
To: Mirage List <cl-mirage@lists.cam.ac.uk>
Mime-Version: 1.0 (Apple Message framework v1085)
X-Mailer: Apple Mail (2.1085)
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Wed, 03 Jul 2013 16:51:05 -0000
Content-Length: 1795
Lines: 40

For those who are interested, I've quickly hacked an implementation of =
http://hal.inria.fr/inria-00609399/

This is available in https://github.com/samoht/ocaml-crdt

The idea is to create new datatypes on top of Lamport's vector clocks =
that you can easily use in distributed settings because they are =
conflict-free (reminder: a vector clock is an array of integer, with =
size =3D number of actor, and where actor $i$ can only increment the =
cell number $i$: they are used to get some distributed timestamp and to =
be able to order events in a distributed run). For instance, you can =
have a distributed counter, that each actor can increment concurrently, =
and whose global state is the sum of local increments. These structures =
are sent between actors and can be synchronized easily.

What I've implemented:
- a distributed additive counter: it is just a vector clock, and it =
global state is the sum of its components
- a distributed counter: it is 2 distributed additive counters, one for =
the number of incrs, one for the number of decrs, and the global state =
is the difference of global state of these two counters
- a distributed set: you have one distributive counter per elements, and =
you can check whether an element is in a set if the global value of the =
counter is greater than 0
- a distributed map: you have one distributive set to test membership, =
and one normal map to carry the contents <- this is a bit broken =
currently, I might change that later

Currenlty, the only missing bits is a nice way to exchange distributed =
datastructes between actors. I'm using Obj.magic in =
https://github.com/samoht/ocaml-crdt/blob/master/test/main.ml, I would =
be quite happy to find an other nicer solution (but I have none in mind =
currently).

Best,
Thomas





From raphlalou@gmail.com Thu Jul 04 08:33:01 2013
Received: from ppsw-52.csi.cam.ac.uk ([131.111.8.152])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1Uue2H-0007Pr-3G (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <raphlalou@gmail.com>); Thu, 04 Jul 2013 08:33:01 +0100
X-Cam-SpamDetails: score 0.6 from SpamAssassin-3.3.2-1499267 
	* -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/,
	low *      trust
	*      [209.85.223.169 listed in list.dnswl.dnsbl.ja.net]
	* 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail
	provider *       (raphlalou[at]gmail.com)
	*  0.0 DKIM_ADSP_CUSTOM_MED No valid author signature, adsp_override is
	*      CUSTOM_MED
	*  0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily
	*      valid
	*  0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid
	*  1.2 NML_ADSP_CUSTOM_MED ADSP custom_med hit, and not from a mailing
	*      list
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from mail-ie0-f169.google.com ([209.85.223.169]:56483)
	by ppsw-52.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.148]:25)
	with esmtp id 1Uue2G-0006WI-E4 (Exim 4.80_167-5a66dd3) for
	cl-mirage@lists.cam.ac.uk
	(return-path <raphlalou@gmail.com>); Thu, 04 Jul 2013 08:33:01 +0100
Received: by mail-ie0-f169.google.com with SMTP id 10so2624470ied.14
	for <cl-mirage@lists.cam.ac.uk>; Thu, 04 Jul 2013 00:32:59 -0700 (PDT)
MIME-Version: 1.0
X-Received: by 10.50.103.3 with SMTP id fs3mr2422296igb.39.1372923179573; Thu,
	04 Jul 2013 00:32:59 -0700 (PDT)
Received: by 10.42.192.74 with HTTP; Thu, 4 Jul 2013 00:32:59 -0700 (PDT)
In-Reply-To: <E2D3E869-9268-4FE5-A47C-3F45B5615968@gazagnaire.org>
References: <E2D3E869-9268-4FE5-A47C-3F45B5615968@gazagnaire.org>
Date: Thu, 4 Jul 2013 08:32:59 +0100
Message-ID: <CAAmHUAk+W-7kAwjBNxGeQX816d-mbdS9x1Q_D=oNDWFrF8Z1tw@mail.gmail.com>
Subject: Re: conflict-free replicated data-types
From: =?UTF-8?Q?Rapha=C3=ABl_Proust?= <raphlalou@gmail.com>
To: Thomas Gazagnaire <thomas@gazagnaire.org>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Cc: Mirage List <cl-mirage@lists.cam.ac.uk>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Thu, 04 Jul 2013 07:33:01 -0000
Content-Length: 1964
Lines: 85

On Wed, Jul 3, 2013 at 5:51 PM, Thomas Gazagnaire <thomas@gazagnaire.org> w=
rote:
> Currenlty, the only missing bits is a nice way to exchange distributed da=
tastructes between actors. I'm using Obj.magic in https://github.com/samoht=
/ocaml-crdt/blob/master/test/main.ml, I would be quite happy to find an oth=
er nicer solution (but I have none in mind currently).


What about adding a functor layer? I haven't run the code, but I think
the idea would work. Here is the gist (I can try to run it later and
send a PR on github if it works).


replace ACTOR by:

module type ACTOR =3D sig
	include COMPARABLE
	val me: t
	val pack: t -> common
	val unpack: common -> t
	type common
end

And Make in CRDT.Clock by:

module MakeMake (C : sig type t end) (A : ACTOR with type common :=3D
C.t) =3D struct
	...
end


Then the tests can be rewritten as:

module Common =3D struct type t =3D string end

module Foo =3D struct
  include MyString
  let me =3D "foo"
  let pack x =3D x
  let unpack x =3D x
end

module Bar =3D struct
  include MyString
  let me =3D "bar"
  let pack x =3D x
  let unpack x =3D x
end

module ClockTest =3D struct

  let name =3D "clock"

  module Foo =3D CRDT.Clock.MakeMake (Common) (Foo)
  module Bar =3D CRDT.Clock.MakeMake (Common) (Bar)

  let run () =3D
    let foo =3D Foo.empty in
    let bar =3D Bar.empty in
    let foo1 =3D Foo.incr (Foo.incr foo) in
    let bar1 =3D Bar.incr bar in
    let foo2 =3D Foo.merge foo1 (Foo.unpack (Bar.pack bar1)) in
    let bar2 =3D Bar.incr (Bar.incr bar1) in
    let bar3 =3D Bar.merge bar2 (Bar.unpack (Foo.pack foo2)) in
    let foo3 =3D Foo.merge foo2 (Foo.unpack (Bar.pack bar2)) in

    test name Foo.contents Foo.to_string int [
      ("foo1", foo1, 2);
      ("foo2", foo2, 2);
      ("foo3", foo3, 2);
    ];
    test name Bar.contents Bar.to_string int [
      ("bar1", bar1, 1);
      ("bar2", bar2, 3);
      ("bar3", bar3, 3);
    ]

end



--=20
______________
Rapha=C3=ABl Proust


From anil@recoil.org Thu Jul 04 09:35:40 2013
Received: from ppsw-33.csi.cam.ac.uk ([131.111.8.133])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1Uuf0u-0001Vm-4g (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Thu, 04 Jul 2013 09:35:40 +0100
X-Cam-SpamDetails: score 0.0 from SpamAssassin-3.3.2-1499267
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from recoil.dh.bytemark.co.uk ([89.16.177.154]:4470
	helo=dark.recoil.org)
	by ppsw-33.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.147]:25)
	with smtp id 1Uuf0t-0000ES-hh (Exim 4.80_167-5a66dd3) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Thu, 04 Jul 2013 09:35:40 +0100
Received: (qmail 19896 invoked by uid 634); 4 Jul 2013 08:35:38 -0000
X-Spam-Level: **
X-Spam-Status: No, hits=2.6 required=5.0
	tests=ALL_TRUSTED,FS_REPLICA
X-Spam-Check-By: dark.recoil.org
Received: from host81-149-102-120.in-addr.btopenworld.com (HELO clink-4.home)
	(81.149.102.120)
	(smtp-auth username remote@recoil.org, mechanism cram-md5)
	by dark.recoil.org (qpsmtpd/0.84) with ESMTPA;
	Thu, 04 Jul 2013 09:35:38 +0100
Content-Type: text/plain; charset=iso-8859-1
Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\))
Subject: Re: conflict-free replicated data-types
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <CAAmHUAk+W-7kAwjBNxGeQX816d-mbdS9x1Q_D=oNDWFrF8Z1tw@mail.gmail.com>
Date: Thu, 4 Jul 2013 09:35:36 +0100
Content-Transfer-Encoding: quoted-printable
Message-Id: <543AA0EA-FFC1-4E13-8808-356CDECAE3E3@recoil.org>
References: <E2D3E869-9268-4FE5-A47C-3F45B5615968@gazagnaire.org>
	<CAAmHUAk+W-7kAwjBNxGeQX816d-mbdS9x1Q_D=oNDWFrF8Z1tw@mail.gmail.com>
To: =?iso-8859-1?Q?Rapha=EBl_Proust?= <raphlalou@gmail.com>
X-Mailer: Apple Mail (2.1503)
X-Virus-Checked: Checked by ClamAV on dark.recoil.org
Cc: Thomas Gazagnaire <thomas@gazagnaire.org>,
	Mirage List <cl-mirage@lists.cam.ac.uk>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Thu, 04 Jul 2013 08:35:40 -0000
Content-Length: 2497
Lines: 103

On 4 Jul 2013, at 08:32, Rapha=EBl Proust <raphlalou@gmail.com> wrote:

> On Wed, Jul 3, 2013 at 5:51 PM, Thomas Gazagnaire =
<thomas@gazagnaire.org> wrote:
>> Currenlty, the only missing bits is a nice way to exchange =
distributed datastructes between actors. I'm using Obj.magic in =
https://github.com/samoht/ocaml-crdt/blob/master/test/main.ml, I would =
be quite happy to find an other nicer solution (but I have none in mind =
currently).
>=20
>=20
> What about adding a functor layer? I haven't run the code, but I think
> the idea would work. Here is the gist (I can try to run it later and
> send a PR on github if it works).

A functor layer would also let us build faster, non-distributed =
equivalents
for cases where there is a more consistent connection between actors =
(e.g.
running within the same process).  But that might require FCM rather =
than
functors to decide how to do the dispatch.

-anil



>=20
>=20
> replace ACTOR by:
>=20
> module type ACTOR =3D sig
> 	include COMPARABLE
> 	val me: t
> 	val pack: t -> common
> 	val unpack: common -> t
> 	type common
> end
>=20
> And Make in CRDT.Clock by:
>=20
> module MakeMake (C : sig type t end) (A : ACTOR with type common :=3D
> C.t) =3D struct
> 	...
> end
>=20
>=20
> Then the tests can be rewritten as:
>=20
> module Common =3D struct type t =3D string end
>=20
> module Foo =3D struct
>  include MyString
>  let me =3D "foo"
>  let pack x =3D x
>  let unpack x =3D x
> end
>=20
> module Bar =3D struct
>  include MyString
>  let me =3D "bar"
>  let pack x =3D x
>  let unpack x =3D x
> end
>=20
> module ClockTest =3D struct
>=20
>  let name =3D "clock"
>=20
>  module Foo =3D CRDT.Clock.MakeMake (Common) (Foo)
>  module Bar =3D CRDT.Clock.MakeMake (Common) (Bar)
>=20
>  let run () =3D
>    let foo =3D Foo.empty in
>    let bar =3D Bar.empty in
>    let foo1 =3D Foo.incr (Foo.incr foo) in
>    let bar1 =3D Bar.incr bar in
>    let foo2 =3D Foo.merge foo1 (Foo.unpack (Bar.pack bar1)) in
>    let bar2 =3D Bar.incr (Bar.incr bar1) in
>    let bar3 =3D Bar.merge bar2 (Bar.unpack (Foo.pack foo2)) in
>    let foo3 =3D Foo.merge foo2 (Foo.unpack (Bar.pack bar2)) in
>=20
>    test name Foo.contents Foo.to_string int [
>      ("foo1", foo1, 2);
>      ("foo2", foo2, 2);
>      ("foo3", foo3, 2);
>    ];
>    test name Bar.contents Bar.to_string int [
>      ("bar1", bar1, 1);
>      ("bar2", bar2, 3);
>      ("bar3", bar3, 3);
>    ]
>=20
> end
>=20
>=20
>=20
> --=20
> ______________
> Rapha=EBl Proust
>=20



From daniel.buenzli@erratique.ch Sun Jul 07 17:04:08 2013
Received: from ppsw-33.csi.cam.ac.uk ([131.111.8.133])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1UvrRY-0001bA-R2 (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <daniel.buenzli@erratique.ch>);
	Sun, 07 Jul 2013 17:04:08 +0100
X-Cam-SpamDetails: score 0.0 from SpamAssassin-3.3.2-1500228
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from mail6.webfaction.com ([74.55.86.74]:53588
	helo=smtp.webfaction.com)
	by ppsw-33.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.147]:25)
	with esmtp id 1UvrRY-0002f7-gB (Exim 4.80_167-5a66dd3) for
	cl-mirage@lists.cam.ac.uk
	(return-path <daniel.buenzli@erratique.ch>);
	Sun, 07 Jul 2013 17:04:08 +0100
Received: from [192.168.1.126]
	(cpc3-cmbg9-0-0-cust324.5-4.cable.virginmedia.com [81.103.21.69])
	by smtp.webfaction.com (Postfix) with ESMTP id 99D1D215E145;
	Sun,  7 Jul 2013 16:04:06 +0000 (UTC)
Date: Sun, 7 Jul 2013 17:04:04 +0100
From: =?utf-8?Q?Daniel_B=C3=BCnzli?= <daniel.buenzli@erratique.ch>
To: Anil Madhavapeddy <anil@recoil.org>
Message-ID: <B7CB666E9B344695BE436EFBB9E1BE6F@erratique.ch>
In-Reply-To: <17CACD37-2D8D-433E-86D3-C0DB2D02E5DB@recoil.org>
References: <58149577-C2E3-46FA-9015-77897051CE08@recoil.org>
	<3EF2B73CADFD4E4192C955A26D6F1564@erratique.ch>
	<6F0F33A1-3519-4DCE-9B4B-EC38A10976A0@recoil.org>
	<45D8F98CC82F478DB31DF1349B0E3237@erratique.ch>
	<17CACD37-2D8D-433E-86D3-C0DB2D02E5DB@recoil.org>
Subject: Re: Github Releases, with excellent timing
X-Mailer: sparrow 1.6.4 (build 1178)
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Cc: opam-devel@lists.ocaml.org,
	"=?utf-8?Q?cl-mirage=40lists.cam.ac.uk_List?=" <cl-mirage@lists.cam.ac.uk>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Sun, 07 Jul 2013 16:04:08 -0000
Content-Length: 1630
Lines: 43

Le mercredi, 3 juillet 2013 =C3=A0 15:27, Anil Madhavapeddy a =C3=A9crit =
:
> None of these seem like substantive blockers. A quick online hunt shows=
 that they're planning to extend the API to add Releases when it's stable=
. An API would let us easily automate including the CHANGES file in the r=
elease tag, as well as auto-generating the release tarballs with the auto=
gen files. =46or now, I've experimentally released ocaml-cow to see what =
it looks like:

Sure but at that point you actually implemented the damn thing by yoursel=
f, which does indicates that they released a toy=E2=80=A6

Regarding:

> P.S. By the way opam really needs a way to show things like release not=
es and readmes associated to a package along with the documentation.

You said:
> =20
> This can be done with external tools, which I've started at
> https://github.com/avsm/opam-repo-tools/
> but won't have time to finish for a while. I'll probably extend it as s=
oon as the Release API is out, as that'll save some time.

In fact I realize now that opam's .install files do actually work as adve=
rtised. I don't think external tools or the github Release API are needed=
 here (and we want to be able to consult that while being disconnected).

With install files it's easy to add README=7B,.md=7D and CHANGES=7B,.md=7D=
 to the doc directory of the package located in .opam/=24SWITCH/doc/=24PK=
G

So it would just be a matter of looking up if these files exist in that d=
irectory and spit them out, or simply provide some kind of standard invoc=
ation to enable easy access to documentation directory of a package.

Best,

Daniel





From anil@recoil.org Mon Jul 08 14:29:56 2013
Received: from ppsw-mx-f.csi.cam.ac.uk ([131.111.8.149]
	helo=ppsw-42.csi.cam.ac.uk)
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1UwBVs-0003G4-4v (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Mon, 08 Jul 2013 14:29:56 +0100
X-Cam-SpamDetails: score 0.0 from SpamAssassin-3.3.2-1500228
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from recoil.dh.bytemark.co.uk ([89.16.177.154]:10683
	helo=dark.recoil.org)
	by ppsw-42.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.149]:25)
	with smtp id 1UwBVr-0003sz-6u (Exim 4.80_167-5a66dd3) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Mon, 08 Jul 2013 14:29:56 +0100
Received: (qmail 2219 invoked by uid 634); 8 Jul 2013 13:29:54 -0000
X-Spam-Level: *
X-Spam-Status: No, hits=-1.0 required=5.0
	tests=ALL_TRUSTED
X-Spam-Check-By: dark.recoil.org
Received: from volstagg-0.srg.cl.cam.ac.uk (HELO clink-4.office)
	(128.232.32.232)
	(smtp-auth username remote@recoil.org, mechanism cram-md5)
	by dark.recoil.org (qpsmtpd/0.84) with ESMTPA;
	Mon, 08 Jul 2013 14:29:54 +0100
Content-Type: text/plain; charset=windows-1252
Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\))
Subject: Re: Github Releases, with excellent timing
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <B7CB666E9B344695BE436EFBB9E1BE6F@erratique.ch>
Date: Mon, 8 Jul 2013 14:29:52 +0100
Content-Transfer-Encoding: quoted-printable
Message-Id: <48E9C037-E2C8-4610-A2BE-52D91CE51E99@recoil.org>
References: <58149577-C2E3-46FA-9015-77897051CE08@recoil.org>
	<3EF2B73CADFD4E4192C955A26D6F1564@erratique.ch>
	<6F0F33A1-3519-4DCE-9B4B-EC38A10976A0@recoil.org>
	<45D8F98CC82F478DB31DF1349B0E3237@erratique.ch>
	<17CACD37-2D8D-433E-86D3-C0DB2D02E5DB@recoil.org>
	<B7CB666E9B344695BE436EFBB9E1BE6F@erratique.ch>
To: =?windows-1252?Q?Daniel_B=FCnzli?= <daniel.buenzli@erratique.ch>
X-Mailer: Apple Mail (2.1503)
X-Virus-Checked: Checked by ClamAV on dark.recoil.org
Cc: opam-devel@lists.ocaml.org,
	"cl-mirage@lists.cam.ac.uk List" <cl-mirage@lists.cam.ac.uk>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Mon, 08 Jul 2013 13:29:56 -0000
Content-Length: 1568
Lines: 37

On 7 Jul 2013, at 17:04, Daniel B=FCnzli <daniel.buenzli@erratique.ch> =
wrote:

> Le mercredi, 3 juillet 2013 =E0 15:27, Anil Madhavapeddy a =E9crit :
>> None of these seem like substantive blockers. A quick online hunt =
shows that they're planning to extend the API to add Releases when it's =
stable. An API would let us easily automate including the CHANGES file =
in the release tag, as well as auto-generating the release tarballs with =
the autogen files. For now, I've experimentally released ocaml-cow to =
see what it looks like:
>=20
> Sure but at that point you actually implemented the damn thing by =
yourself, which does indicates that they released a toy=85

To reiterate: it now has the facility for binary downloads, which they =
yanked about 12 months ago due to scaling issues.  You couldn't do that =
before, and you can do so now (albeit manually).

>=20
> In fact I realize now that opam's .install files do actually work as =
advertised. I don't think external tools or the github Release API are =
needed here (and we want to be able to consult that while being =
disconnected).
>=20
> With install files it's easy to add README{,.md} and CHANGES{,.md} to =
the doc directory of the package located in .opam/$SWITCH/doc/$PKG
>=20
> So it would just be a matter of looking up if these files exist in =
that directory and spit them out, or simply provide some kind of =
standard invocation to enable easy access to documentation directory of =
a package.

Yep, I agree with this.  Do you write your META files by hand at the =
moment?

-anil=


From daniel.buenzli@erratique.ch Mon Jul 08 15:16:29 2013
Received: from ppsw-33.csi.cam.ac.uk ([131.111.8.133])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1UwCEv-0004m6-4g (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <daniel.buenzli@erratique.ch>);
	Mon, 08 Jul 2013 15:16:29 +0100
X-Cam-SpamDetails: score 0.0 from SpamAssassin-3.3.2-1500228
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from mail6.webfaction.com ([74.55.86.74]:56388
	helo=smtp.webfaction.com)
	by ppsw-33.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.147]:25)
	with esmtp id 1UwCEu-0006jP-iK (Exim 4.80_167-5a66dd3) for
	cl-mirage@lists.cam.ac.uk
	(return-path <daniel.buenzli@erratique.ch>);
	Mon, 08 Jul 2013 15:16:29 +0100
Received: from [192.168.1.126]
	(cpc3-cmbg9-0-0-cust324.5-4.cable.virginmedia.com [81.103.21.69])
	by smtp.webfaction.com (Postfix) with ESMTP id 7DBDB21AF159;
	Mon,  8 Jul 2013 14:16:27 +0000 (UTC)
Date: Mon, 8 Jul 2013 15:16:25 +0100
From: =?utf-8?Q?Daniel_B=C3=BCnzli?= <daniel.buenzli@erratique.ch>
To: Anil Madhavapeddy <anil@recoil.org>
Message-ID: <DDF7FB5EAF6A400E9E5AC3BA94EE628B@erratique.ch>
In-Reply-To: <48E9C037-E2C8-4610-A2BE-52D91CE51E99@recoil.org>
References: <58149577-C2E3-46FA-9015-77897051CE08@recoil.org>
	<3EF2B73CADFD4E4192C955A26D6F1564@erratique.ch>
	<6F0F33A1-3519-4DCE-9B4B-EC38A10976A0@recoil.org>
	<45D8F98CC82F478DB31DF1349B0E3237@erratique.ch>
	<17CACD37-2D8D-433E-86D3-C0DB2D02E5DB@recoil.org>
	<B7CB666E9B344695BE436EFBB9E1BE6F@erratique.ch>
	<48E9C037-E2C8-4610-A2BE-52D91CE51E99@recoil.org>
Subject: Re: Github Releases, with excellent timing
X-Mailer: sparrow 1.6.4 (build 1178)
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Cc: opam-devel@lists.ocaml.org,
	"=?utf-8?Q?cl-mirage=40lists.cam.ac.uk_List?=" <cl-mirage@lists.cam.ac.uk>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Mon, 08 Jul 2013 14:16:29 -0000
Content-Length: 509
Lines: 19

Le lundi, 8 juillet 2013 =C3=A0 14:29, Anil Madhavapeddy a =C3=A9crit :
> To reiterate: it now has the facility for binary downloads, which they =
yanked about 12 months ago due to scaling issues. You couldn't do that be=
fore, and you can do so now (albeit manually).

Ok, didn't get the binary thing was the point. =20
 =20
> Yep, I agree with this. Do you write your META files by hand at the mom=
ent=3F

Yes, since last night I do that again (see the other thread on opam-devel=
). =20

Best,

Daniel




From jamesjb@gmail.com Mon Jul 08 22:10:50 2013
Received: from ppsw-52.csi.cam.ac.uk ([131.111.8.152])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1UwIhu-0004ui-Bj (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <jamesjb@gmail.com>); Mon, 08 Jul 2013 22:10:50 +0100
X-Cam-SpamDetails: score 0.6 from SpamAssassin-3.3.2-1500228 
	* -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/,
	low *      trust
	*      [209.85.220.179 listed in list.dnswl.dnsbl.ja.net]
	* 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail
	provider *       (jamesjb[at]gmail.com)
	*  0.0 DKIM_ADSP_CUSTOM_MED No valid author signature, adsp_override is
	*      CUSTOM_MED
	*  0.0 HTML_MESSAGE BODY: HTML included in message
	*  0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily
	*      valid
	*  0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid
	*  1.2 NML_ADSP_CUSTOM_MED ADSP custom_med hit, and not from a mailing
	*      list
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from mail-vc0-f179.google.com ([209.85.220.179]:65048)
	by ppsw-52.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.148]:25)
	with esmtp id 1UwIht-00063B-Eu (Exim 4.80_167-5a66dd3) for
	cl-mirage@lists.cam.ac.uk
	(return-path <jamesjb@gmail.com>); Mon, 08 Jul 2013 22:10:50 +0100
Received: by mail-vc0-f179.google.com with SMTP id hz11so3761436vcb.38
	for <cl-mirage@lists.cam.ac.uk>; Mon, 08 Jul 2013 14:10:49 -0700 (PDT)
MIME-Version: 1.0
X-Received: by 10.220.6.135 with SMTP id 7mr14794578vcz.72.1373317848942; Mon,
	08 Jul 2013 14:10:48 -0700 (PDT)
Received: by 10.58.68.129 with HTTP; Mon, 8 Jul 2013 14:10:48 -0700 (PDT)
Date: Mon, 8 Jul 2013 14:10:48 -0700
Message-ID: <CAODgTdNK89XwBHcZL5i2vMdWVqFJNJEKjOnAOSWgewX2uZqx0g@mail.gmail.com>
Subject: Mirage Xenstore Stub Domain
From: James Bielman <jamesjb@gmail.com>
To: cl-mirage@lists.cam.ac.uk
Content-Type: multipart/alternative; boundary=089e0158a9248ccce604e1067ad8
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Mon, 08 Jul 2013 21:10:50 -0000
Content-Length: 2045
Lines: 53

--089e0158a9248ccce604e1067ad8
Content-Type: text/plain; charset=ISO-8859-1

Hi all,

I am attempting to build the Mirage Xenstore stub domain by following these
instructions on the Mirage blog:

  http://www.openmirage.org/blog/xenstore-stub-domain

However, I'm running into some trouble---it looks like the interfaces for
shared memory rings and grant tables have changed since the
"xs_transport_domain" module was written.  I'm using Mirage as installed
from "opam" and the "ocaml-xenstore-xen" module from the Git repository at:

   git://github.com/djs55/ocaml-xenstore-xen

Is there is an updated repository elsewhere that works with the latest
Mirage?  If not, I may take a stab at bringing it up to date, and would
appreciate any insight available on gotchas I might run into.

Thanks,
James

--089e0158a9248ccce604e1067ad8
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div style>Hi all,</div><div style><br></div><div style>I =
am attempting to build the Mirage Xenstore stub domain by following these i=
nstructions on the Mirage blog:<br></div>
<br>
=A0 <a href=3D"http://www.openmirage.org/blog/xenstore-stub-domain">http://=
www.openmirage.org/blog/xenstore-stub-domain</a><br>
<br>
However, I&#39;m running into some trouble---it looks like the interfaces f=
or shared memory rings and grant tables have changed since=20
the &quot;xs_transport_domain&quot; module was written.=A0 I&#39;m using Mi=
rage as=20
installed from &quot;opam&quot; and the &quot;ocaml-xenstore-xen&quot; modu=
le from the Git=20
repository at:<br>
<br>
=A0=A0 git://<a href=3D"http://github.com/djs55/ocaml-xenstore-xen">github.=
com/djs55/ocaml-xenstore-xen</a><br>
<br>
Is there is an updated repository elsewhere that works with the latest Mira=
ge? =A0If not, I may take a stab at bringing it up to date, and would appre=
ciate any insight available on gotchas I might run into.<br><div><br></div>
<div>Thanks,</div><div>James</div><div><br></div></div>

--089e0158a9248ccce604e1067ad8--


From scott.dj@gmail.com Mon Jul 08 23:10:38 2013
Received: from ppsw-33.csi.cam.ac.uk ([131.111.8.133])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1UwJdm-0005Y8-O3 (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <scott.dj@gmail.com>); Mon, 08 Jul 2013 23:10:38 +0100
X-Cam-SpamDetails: score 0.6 from SpamAssassin-3.3.2-1500228 
	* -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/,
	low *      trust
	*      [209.85.160.42 listed in list.dnswl.dnsbl.ja.net]
	* 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail
	provider *       (scott.dj[at]gmail.com)
	*  0.0 DKIM_ADSP_CUSTOM_MED No valid author signature, adsp_override is
	*      CUSTOM_MED
	*  0.0 HTML_MESSAGE BODY: HTML included in message
	*  0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily
	*      valid
	*  0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid
	*  1.2 NML_ADSP_CUSTOM_MED ADSP custom_med hit, and not from a mailing
	*      list
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from mail-pb0-f42.google.com ([209.85.160.42]:52579)
	by ppsw-33.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.147]:25)
	with esmtp id 1UwJdl-0002n7-io (Exim 4.80_167-5a66dd3) for
	cl-mirage@lists.cam.ac.uk
	(return-path <scott.dj@gmail.com>); Mon, 08 Jul 2013 23:10:38 +0100
Received: by mail-pb0-f42.google.com with SMTP id un1so4790173pbc.29
	for <cl-mirage@lists.cam.ac.uk>; Mon, 08 Jul 2013 15:10:36 -0700 (PDT)
MIME-Version: 1.0
X-Received: by 10.66.164.232 with SMTP id yt8mr25162032pab.21.1373321436919;
	Mon, 08 Jul 2013 15:10:36 -0700 (PDT)
Received: by 10.70.34.143 with HTTP; Mon, 8 Jul 2013 15:10:36 -0700 (PDT)
In-Reply-To: <CAODgTdNK89XwBHcZL5i2vMdWVqFJNJEKjOnAOSWgewX2uZqx0g@mail.gmail.com>
References: <CAODgTdNK89XwBHcZL5i2vMdWVqFJNJEKjOnAOSWgewX2uZqx0g@mail.gmail.com>
Date: Mon, 8 Jul 2013 23:10:36 +0100
Message-ID: <CAG_esB2QKbWzj1FL8pzwh95H7iWv22rEWSv-xyahSErCWuA2sg@mail.gmail.com>
Subject: Re: Mirage Xenstore Stub Domain
From: David Scott <scott.dj@gmail.com>
To: James Bielman <jamesjb@gmail.com>
Content-Type: multipart/alternative; boundary=047d7b86f24869025c04e1075030
Cc: Mirage List <cl-mirage@lists.cam.ac.uk>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Mon, 08 Jul 2013 22:10:38 -0000
Content-Length: 5001
Lines: 118

--047d7b86f24869025c04e1075030
Content-Type: text/plain; charset=ISO-8859-1

Hi James,

I think you're right -- some key interfaces have changed. Since some of the
changes are fairly fresh in my memory, I did a first pass at fixing the
code.

The blog post is a bit out of date now. The best way to start is to:

opam init
opam switch 4.00.1
opam remote add xapi-project git://github.com/xapi-project/opam-repo-dev
opam remote add mirage git://github.com/mirage/opam-repo-dev
opam install mirage-xen xenstore

and then clone the repo and build in the 'xen' directory. For me the files
compile but fail to link. The next thing to do is to investigate using the
'mirari' tool to link a xen kernel, like the other examples in the
mirage/mirage-skeleton repo. This is fallout from the recent (very good
IMHO) change to avoid using a special 'opam compiler switch' to install
mirage kernels. You can now use a regular (unpatched) compiler and link in
the 'mirage-xen' package.

Sorry for the build breakage!

Cheers
Dave


On Mon, Jul 8, 2013 at 10:10 PM, James Bielman <jamesjb@gmail.com> wrote:

> Hi all,
>
> I am attempting to build the Mirage Xenstore stub domain by following
> these instructions on the Mirage blog:
>
>   http://www.openmirage.org/blog/xenstore-stub-domain
>
> However, I'm running into some trouble---it looks like the interfaces for
> shared memory rings and grant tables have changed since the
> "xs_transport_domain" module was written.  I'm using Mirage as installed
> from "opam" and the "ocaml-xenstore-xen" module from the Git repository at:
>
>    git://github.com/djs55/ocaml-xenstore-xen
>
> Is there is an updated repository elsewhere that works with the latest
> Mirage?  If not, I may take a stab at bringing it up to date, and would
> appreciate any insight available on gotchas I might run into.
>
> Thanks,
> James
>
>


-- 
Dave Scott

--047d7b86f24869025c04e1075030
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hi James,<div><br></div><div style>I think you&#39;re righ=
t -- some key interfaces have changed. Since some of the changes are fairly=
 fresh in my memory, I did a first pass at fixing the code.</div><div style=
>
<br></div><div style>The blog post is a bit out of date now. The best way t=
o start is to:</div><div style><br></div><div style>opam init</div><div sty=
le>opam switch 4.00.1</div><div style>opam remote add xapi-project git://<a=
 href=3D"http://github.com/xapi-project/opam-repo-dev">github.com/xapi-proj=
ect/opam-repo-dev</a></div>
<div style>opam remote add mirage git://<a href=3D"http://github.com/mirage=
/opam-repo-dev">github.com/mirage/opam-repo-dev</a></div><div style>opam in=
stall mirage-xen xenstore</div><div style><br></div><div style>and then clo=
ne the repo and build in the &#39;xen&#39; directory. For me the files comp=
ile but fail to link. The next thing to do is to investigate using the &#39=
;mirari&#39; tool to link a xen kernel, like the other examples in the mira=
ge/mirage-skeleton repo. This is fallout from the recent (very good IMHO) c=
hange to avoid using a special &#39;opam compiler switch&#39; to install mi=
rage kernels. You can now use a regular (unpatched) compiler and link in th=
e &#39;mirage-xen&#39; package.</div>
<div style><br></div><div style>Sorry for the build breakage!</div><div sty=
le><br></div><div style>Cheers</div><div style>Dave</div></div><div class=
=3D"gmail_extra"><br><br><div class=3D"gmail_quote">On Mon, Jul 8, 2013 at =
10:10 PM, James Bielman <span dir=3D"ltr">&lt;<a href=3D"mailto:jamesjb@gma=
il.com" target=3D"_blank">jamesjb@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><div dir=3D"ltr"><div>Hi all,</div><div><br>=
</div><div>I am attempting to build the Mirage Xenstore stub domain by foll=
owing these instructions on the Mirage blog:<br>
</div>
<br>
=A0 <a href=3D"http://www.openmirage.org/blog/xenstore-stub-domain" target=
=3D"_blank">http://www.openmirage.org/blog/xenstore-stub-domain</a><br>
<br>
However, I&#39;m running into some trouble---it looks like the interfaces f=
or shared memory rings and grant tables have changed since=20
the &quot;xs_transport_domain&quot; module was written.=A0 I&#39;m using Mi=
rage as=20
installed from &quot;opam&quot; and the &quot;ocaml-xenstore-xen&quot; modu=
le from the Git=20
repository at:<br>
<br>
=A0=A0 git://<a href=3D"http://github.com/djs55/ocaml-xenstore-xen" target=
=3D"_blank">github.com/djs55/ocaml-xenstore-xen</a><br>
<br>
Is there is an updated repository elsewhere that works with the latest Mira=
ge? =A0If not, I may take a stab at bringing it up to date, and would appre=
ciate any insight available on gotchas I might run into.<br><div><br></div>

<div>Thanks,</div><div>James</div><div><br></div></div>
</blockquote></div><br><br clear=3D"all"><div><br></div>-- <br>Dave Scott
</div>

--047d7b86f24869025c04e1075030--


From jamesjb@gmail.com Tue Jul 09 00:25:19 2013
Received: from ppsw-mx-f.csi.cam.ac.uk ([131.111.8.149]
	helo=ppsw-42.csi.cam.ac.uk)
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1UwKo3-0006NW-5h (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <jamesjb@gmail.com>); Tue, 09 Jul 2013 00:25:19 +0100
X-Cam-SpamDetails: score 0.6 from SpamAssassin-3.3.2-1500228 
	* -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/,
	low *      trust
	*      [209.85.220.180 listed in list.dnswl.dnsbl.ja.net]
	* 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail
	provider *       (jamesjb[at]gmail.com)
	*  0.0 DKIM_ADSP_CUSTOM_MED No valid author signature, adsp_override is
	*      CUSTOM_MED
	*  0.0 HTML_MESSAGE BODY: HTML included in message
	*  0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily
	*      valid
	*  0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid
	*  1.2 NML_ADSP_CUSTOM_MED ADSP custom_med hit, and not from a mailing
	*      list
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from mail-vc0-f180.google.com ([209.85.220.180]:60477)
	by ppsw-42.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.149]:25)
	with esmtp id 1UwKo2-0002y1-7j (Exim 4.80_167-5a66dd3) for
	cl-mirage@lists.cam.ac.uk
	(return-path <jamesjb@gmail.com>); Tue, 09 Jul 2013 00:25:19 +0100
Received: by mail-vc0-f180.google.com with SMTP id gf11so3805095vcb.25
	for <cl-mirage@lists.cam.ac.uk>; Mon, 08 Jul 2013 16:25:17 -0700 (PDT)
MIME-Version: 1.0
X-Received: by 10.58.40.16 with SMTP id t16mr15241698vek.64.1373325917669;
	Mon, 08 Jul 2013 16:25:17 -0700 (PDT)
Received: by 10.58.68.129 with HTTP; Mon, 8 Jul 2013 16:25:17 -0700 (PDT)
In-Reply-To: <CAG_esB2QKbWzj1FL8pzwh95H7iWv22rEWSv-xyahSErCWuA2sg@mail.gmail.com>
References: <CAODgTdNK89XwBHcZL5i2vMdWVqFJNJEKjOnAOSWgewX2uZqx0g@mail.gmail.com>
	<CAG_esB2QKbWzj1FL8pzwh95H7iWv22rEWSv-xyahSErCWuA2sg@mail.gmail.com>
Date: Mon, 8 Jul 2013 16:25:17 -0700
Message-ID: <CAODgTdMRoYOA3kNffRU7JkejPVarebPrR_mWvq4wuKcqWKTbyw@mail.gmail.com>
Subject: Re: Mirage Xenstore Stub Domain
From: James Bielman <jamesjb@gmail.com>
To: David Scott <scott.dj@gmail.com>
Content-Type: multipart/alternative; boundary=089e013a15ba7bd2e804e1085b7c
Cc: Mirage List <cl-mirage@lists.cam.ac.uk>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Mon, 08 Jul 2013 23:25:19 -0000
Content-Length: 5883
Lines: 142

--089e013a15ba7bd2e804e1085b7c
Content-Type: text/plain; charset=ISO-8859-1

Thanks! It builds for me now after following your process and hacking up a
quick and dirty mirari config file.

Cheers,
James


On Mon, Jul 8, 2013 at 3:10 PM, David Scott <scott.dj@gmail.com> wrote:

> Hi James,
>
> I think you're right -- some key interfaces have changed. Since some of
> the changes are fairly fresh in my memory, I did a first pass at fixing the
> code.
>
> The blog post is a bit out of date now. The best way to start is to:
>
> opam init
> opam switch 4.00.1
> opam remote add xapi-project git://github.com/xapi-project/opam-repo-dev
> opam remote add mirage git://github.com/mirage/opam-repo-dev
> opam install mirage-xen xenstore
>
> and then clone the repo and build in the 'xen' directory. For me the files
> compile but fail to link. The next thing to do is to investigate using the
> 'mirari' tool to link a xen kernel, like the other examples in the
> mirage/mirage-skeleton repo. This is fallout from the recent (very good
> IMHO) change to avoid using a special 'opam compiler switch' to install
> mirage kernels. You can now use a regular (unpatched) compiler and link in
> the 'mirage-xen' package.
>
> Sorry for the build breakage!
>
> Cheers
> Dave
>
>
> On Mon, Jul 8, 2013 at 10:10 PM, James Bielman <jamesjb@gmail.com> wrote:
>
>> Hi all,
>>
>> I am attempting to build the Mirage Xenstore stub domain by following
>> these instructions on the Mirage blog:
>>
>>   http://www.openmirage.org/blog/xenstore-stub-domain
>>
>> However, I'm running into some trouble---it looks like the interfaces for
>> shared memory rings and grant tables have changed since the
>> "xs_transport_domain" module was written.  I'm using Mirage as installed
>> from "opam" and the "ocaml-xenstore-xen" module from the Git repository at:
>>
>>    git://github.com/djs55/ocaml-xenstore-xen
>>
>> Is there is an updated repository elsewhere that works with the latest
>> Mirage?  If not, I may take a stab at bringing it up to date, and would
>> appreciate any insight available on gotchas I might run into.
>>
>> Thanks,
>> James
>>
>>
>
>
> --
> Dave Scott
>

--089e013a15ba7bd2e804e1085b7c
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Thanks! It builds for me now after following your process =
and hacking up a quick and dirty mirari config file.<div><br></div><div>Che=
ers,</div><div>James</div></div><div class=3D"gmail_extra"><br><br><div cla=
ss=3D"gmail_quote">
On Mon, Jul 8, 2013 at 3:10 PM, David Scott <span dir=3D"ltr">&lt;<a href=
=3D"mailto:scott.dj@gmail.com" target=3D"_blank">scott.dj@gmail.com</a>&gt;=
</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .=
8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir=3D"ltr">Hi James,<div><br></div><div>I think you&#39;re right -- s=
ome key interfaces have changed. Since some of the changes are fairly fresh=
 in my memory, I did a first pass at fixing the code.</div><div>
<br></div><div>The blog post is a bit out of date now. The best way to star=
t is to:</div><div><br></div><div>opam init</div><div>opam switch 4.00.1</d=
iv><div>opam remote add xapi-project git://<a href=3D"http://github.com/xap=
i-project/opam-repo-dev" target=3D"_blank">github.com/xapi-project/opam-rep=
o-dev</a></div>

<div>opam remote add mirage git://<a href=3D"http://github.com/mirage/opam-=
repo-dev" target=3D"_blank">github.com/mirage/opam-repo-dev</a></div><div>o=
pam install mirage-xen xenstore</div><div><br></div><div>and then clone the=
 repo and build in the &#39;xen&#39; directory. For me the files compile bu=
t fail to link. The next thing to do is to investigate using the &#39;mirar=
i&#39; tool to link a xen kernel, like the other examples in the mirage/mir=
age-skeleton repo. This is fallout from the recent (very good IMHO) change =
to avoid using a special &#39;opam compiler switch&#39; to install mirage k=
ernels. You can now use a regular (unpatched) compiler and link in the &#39=
;mirage-xen&#39; package.</div>

<div><br></div><div>Sorry for the build breakage!</div><div><br></div><div>=
Cheers</div><div>Dave</div></div><div class=3D"gmail_extra"><div><div class=
=3D"h5"><br><br><div class=3D"gmail_quote">On Mon, Jul 8, 2013 at 10:10 PM,=
 James Bielman <span dir=3D"ltr">&lt;<a href=3D"mailto:jamesjb@gmail.com" t=
arget=3D"_blank">jamesjb@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><div dir=3D"ltr"><div>Hi all,</div><div><br>=
</div><div>I am attempting to build the Mirage Xenstore stub domain by foll=
owing these instructions on the Mirage blog:<br>

</div>
<br>
=A0 <a href=3D"http://www.openmirage.org/blog/xenstore-stub-domain" target=
=3D"_blank">http://www.openmirage.org/blog/xenstore-stub-domain</a><br>
<br>
However, I&#39;m running into some trouble---it looks like the interfaces f=
or shared memory rings and grant tables have changed since=20
the &quot;xs_transport_domain&quot; module was written.=A0 I&#39;m using Mi=
rage as=20
installed from &quot;opam&quot; and the &quot;ocaml-xenstore-xen&quot; modu=
le from the Git=20
repository at:<br>
<br>
=A0=A0 git://<a href=3D"http://github.com/djs55/ocaml-xenstore-xen" target=
=3D"_blank">github.com/djs55/ocaml-xenstore-xen</a><br>
<br>
Is there is an updated repository elsewhere that works with the latest Mira=
ge? =A0If not, I may take a stab at bringing it up to date, and would appre=
ciate any insight available on gotchas I might run into.<br><div><br></div>


<div>Thanks,</div><div>James</div><div><br></div></div>
</blockquote></div><br><br clear=3D"all"><div><br></div></div></div><span c=
lass=3D"HOEnZb"><font color=3D"#888888">-- <br>Dave Scott
</font></span></div>
</blockquote></div><br></div>

--089e013a15ba7bd2e804e1085b7c--


From Dave.Scott@eu.citrix.com Tue Jul 09 10:42:24 2013
Received: from ppsw-32.csi.cam.ac.uk ([131.111.8.132])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1UwURE-0001wB-6m (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk (return-path <Dave.Scott@eu.citrix.com>);
	Tue, 09 Jul 2013 10:42:24 +0100
X-Cam-SpamDetails: score -0.3 from SpamAssassin-3.3.2-1500228 
	* -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/,
	no *      trust
	*      [46.33.159.39 listed in list.dnswl.dnsbl.ja.net]
	* -0.3 RP_MATCHES_RCVD Envelope sender domain matches handover relay
	*      domain
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from smtp.eu.citrix.com ([46.33.159.39]:20896)
	by ppsw-32.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.146]:25)
	with esmtp id 1UwURD-0002y3-22 (Exim 4.80_167-5a66dd3) for
	cl-mirage@lists.cam.ac.uk (return-path <Dave.Scott@eu.citrix.com>);
	Tue, 09 Jul 2013 10:42:24 +0100
X-IronPort-AV: E=Sophos;i="4.87,1027,1363132800"; d="scan'208";a="6483449"
Received: from lonpex01cl01.citrite.net ([10.30.203.101])
	by LONPIPO01.EU.CITRIX.COM with ESMTP/TLS/AES128-SHA;
	09 Jul 2013 09:42:24 +0000
Received: from LONPEX01CL03.citrite.net ([169.254.3.204]) by
	LONPEX01CL01.citrite.net ([10.30.203.101]) with mapi id 14.02.0342.004;
	Tue, 9 Jul 2013 10:42:22 +0100
From: Dave Scott <Dave.Scott@eu.citrix.com>
To: "cl-mirage@lists.cam.ac.uk" <cl-mirage@lists.cam.ac.uk>
Subject: mirage weekly call: today (tuesday) 4pm BST
Thread-Topic: mirage weekly call: today (tuesday) 4pm BST
Thread-Index: Ac58iJcn7wOrFRIdRkSlXLeGsnnrHg==
Date: Tue, 9 Jul 2013 09:42:22 +0000
Message-ID: <6FB4516F0E9B0F43B54F88D855ABB790B2ADE3@LONPEX01CL03.citrite.net>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [10.30.203.1]
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Tue, 09 Jul 2013 09:42:24 -0000
Content-Length: 588
Lines: 25

Hi,

Don't forget the Mirage weekly call today is at 4pm BST.

There are only four^H^H^H^Hthree weeks left until OSCON and the Mirage 1.0 =
release!

1.  Please join my meeting.
https://www1.gotomeeting.com/join/591890401

2.  Use your microphone and speakers (VoIP) - a headset is recommended.  Or=
, call in using your telephone.

United Kingdom (toll-free): 0 808 168 0209 United Kingdom: +44 (0) 207 151 =
1817

United States (toll-free): 1 877 309 2070 United States: +1 (626) 521-0017

Access Code: 591-890-401
Audio PIN: Shown after joining the meeting

Meeting ID: 591-890-401




From anil@recoil.org Tue Jul 09 15:10:04 2013
Received: from ppsw-32.csi.cam.ac.uk ([131.111.8.132])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1UwYcG-0002Cw-E7 (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Tue, 09 Jul 2013 15:10:04 +0100
X-Cam-SpamDetails: score 0.0 from SpamAssassin-3.3.2-1500228
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from recoil.dh.bytemark.co.uk ([89.16.177.154]:35747
	helo=dark.recoil.org)
	by ppsw-32.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.146]:25)
	with smtp id 1UwYcF-0004eV-1W (Exim 4.80_167-5a66dd3) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Tue, 09 Jul 2013 15:10:04 +0100
Received: (qmail 20103 invoked by uid 634); 9 Jul 2013 14:10:03 -0000
X-Spam-Level: *
X-Spam-Status: No, hits=-1.0 required=5.0
	tests=ALL_TRUSTED
X-Spam-Check-By: dark.recoil.org
Received: from host81-149-212-230.in-addr.btopenworld.com (HELO [10.10.42.24])
	(81.149.212.230)
	(smtp-auth username remote@recoil.org, mechanism cram-md5)
	by dark.recoil.org (qpsmtpd/0.84) with ESMTPA;
	Tue, 09 Jul 2013 15:10:02 +0100
From: Anil Madhavapeddy <anil@recoil.org>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Subject: ANN: mirage-0.9.2 released
Message-Id: <D3F4BC66-0D4C-477C-A658-F67060D3473B@recoil.org>
Date: Tue, 9 Jul 2013 15:10:01 +0100
To: "cl-mirage@lists.cam.ac.uk List" <cl-mirage@lists.cam.ac.uk>
Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\))
X-Mailer: Apple Mail (2.1503)
X-Virus-Checked: Checked by ClamAV on dark.recoil.org
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Tue, 09 Jul 2013 14:10:04 -0000
Content-Length: 1424
Lines: 33

I've just pushed a series of releases to OPAM, containing numerous fixes =
from Vincent, Balraj, Dave and myself.  The changelogs are below:

Mirage-Platform: =
https://github.com/mirage/mirage-platform/releases/v0.9.2
* [xen] Add Netif test to wait for a fixed number of ring slots > 0
* [xen] Add Evtchn.close to Xen backend.
* [xen] Disable tree-loop-distribute-patterns to workaround crash with
  gcc-4.8.  Temporary fix until we isolate the bug.
* [xen] Improved the interface of Io_page, implement some missing bits
  in Gnt.
* [xen] Several modules now have an interface similar to the one in
  the libxc bindings for OCaml. This makes it possible to write one
  application that can be compiled for the UNIX or the Xen backend.

Mirage-FS: https://github.com/mirage/mirage-fs/releases/v0.6.0
* Adapt output to mirage-platform-0.9.2 Io_page API.

Mirage-Net: https://github.com/mirage/mirage-net/releases/v0.9.2
* Improve TCP state machine for connection teardown.
* Limit fragment number to 8, and coalesce buffers if it goes higher.
* Adapt to mirage-platform-0.9.2 API changes.

Mirari: https://github.com/mirage/mirari/releases/v0.9.4
* build using ocamlbuild rather than depending on obuild.
* [xen] generate a symbol that can be used to produce stack traces with =
xenctx.
* mirari run --socket just runs the unikernel.
* mirari run --xen creates a xl config file and do a xl create -c =
unikernel.xl.

-anil=


From Richard.Mortier@nottingham.ac.uk Wed Jul 10 11:56:30 2013
Received: from ppsw-mx-f.csi.cam.ac.uk ([131.111.8.149]
	helo=ppsw-42.csi.cam.ac.uk)
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1Uws4U-0003Oz-PD (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <Richard.Mortier@nottingham.ac.uk>);
	Wed, 10 Jul 2013 11:56:30 +0100
X-Cam-SpamDetails: score 0.0 from SpamAssassin-3.3.2-1500228 
	* 0.0 MIME_QP_LONG_LINE RAW: Quoted-printable line longer than 76 chars
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from engine01-20433-1.icritical.com ([93.95.15.169]:49654)
	by ppsw-42.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.149]:25)
	with smtp id 1Uws4U-0006Gi-6s (Exim 4.80_167-5a66dd3) for
	cl-mirage@lists.cam.ac.uk
	(return-path <Richard.Mortier@nottingham.ac.uk>);
	Wed, 10 Jul 2013 11:56:30 +0100
Received: (qmail 14153 invoked from network); 10 Jul 2013 10:56:44 -0000
Received: from localhost (127.0.0.1)
	by engine01-20433-1.icritical.com with SMTP; 10 Jul 2013 10:56:44 -0000
Received: from engine01-20433-1.icritical.com ([127.0.0.1])
	by localhost (engine01-20433-1.icritical.com [127.0.0.1]) (amavisd-new,
	port 10024) with SMTP id 13952-04 for <cl-mirage@lists.cam.ac.uk>;
	Wed, 10 Jul 2013 11:56:41 +0100 (BST)
Received: (qmail 11042 invoked by uid 599); 10 Jul 2013 10:53:34 -0000
Received: from unknown (HELO smtp4.nottingham.ac.uk) (128.243.220.65)
	by engine01-20433-1.icritical.com (qpsmtpd/0.28) with ESMTP;
	Wed, 10 Jul 2013 11:53:34 +0100
Received: from uiwexhub01.ad.nottingham.ac.uk ([128.243.15.133])
	by smtp4.nottingham.ac.uk with esmtps (TLSv1:AES128-SHA:128)
	(Exim 4.77) (envelope-from <Richard.Mortier@nottingham.ac.uk>)
	id 1Uws1i-0002dB-6R
	for cl-mirage@lists.cam.ac.uk; Wed, 10 Jul 2013 11:53:38 +0100
From: Richard Mortier <Richard.Mortier@nottingham.ac.uk>
To: "cl-mirage@lists.cam.ac.uk List" <cl-mirage@lists.cam.ac.uk>
Date: Wed, 10 Jul 2013 11:53:36 +0100
Subject: mirage/nixos
Thread-Topic: mirage/nixos
Thread-Index: Ac59W7sBK/dhLrTNQjSiScsklYdl6Q==
Message-ID: <813DB360-328B-4BEF-AFD6-F952D85BC512@nottingham.ac.uk>
Accept-Language: en-US, en-GB
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US, en-GB
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Virus-Scanned: by iCritical at engine01-20433-1.icritical.com
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Wed, 10 Jul 2013 10:56:30 -0000
Content-Length: 1964
Lines: 42

all;

been fiddling about with this for a while, and have now got to the stage wh=
ere i can install opam, mirari, mirage-www, etc on nixos, and run the mirag=
e website via mir-www. =20

all done using nixops (used to be called charon -- the nix deployment syste=
m) and virtualbox on osx; i'll hopefully try pushing the image to ec2 at so=
me point as that's supposed to be pretty straightforward too. i would expec=
t that doing similar things on linux either with virtualbox or with a local=
 install of nix should be straightforward though.

i don't yet have this as automated as i'd like: there are some path impurit=
ies in various opam packages (ocamlfind and lwt in particular) which mean s=
everal environment variables need setting appropriately. i haven't managed =
to encode that kind of thing in the nix derivations yet -- so the process i=
s to install nixops, to create the VM image, and then to login and run opam=
 by hand. i will also try to sort that out soon.

a Makefile encoding most of this, plus a README, is at <https://github.com/=
mor1/mirage-nixos>

i may not get back to this before monday now (exams to set, conext reviews =
to do, ashes test match to go to ;)

--=20
Cheers,

R.




This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.

This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system, you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.






From anil@recoil.org Thu Jul 11 10:15:01 2013
Received: from ppsw-33.csi.cam.ac.uk ([131.111.8.133])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1UxCxp-0005Vs-Cq (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Thu, 11 Jul 2013 10:15:01 +0100
X-Cam-SpamDetails: score 0.0 from SpamAssassin-3.3.2-1500228
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from recoil.dh.bytemark.co.uk ([89.16.177.154]:3307
	helo=dark.recoil.org)
	by ppsw-33.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.147]:25)
	with smtp id 1UxCxo-00087h-g6 (Exim 4.80_167-5a66dd3) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Thu, 11 Jul 2013 10:15:01 +0100
Received: (qmail 15598 invoked by uid 634); 11 Jul 2013 09:14:59 -0000
X-Spam-Level: *
X-Spam-Status: No, hits=-1.0 required=5.0
	tests=ALL_TRUSTED
X-Spam-Check-By: dark.recoil.org
Received: from host81-149-102-120.in-addr.btopenworld.com (HELO clink-4.home)
	(81.149.102.120)
	(smtp-auth username remote@recoil.org, mechanism cram-md5)
	by dark.recoil.org (qpsmtpd/0.84) with ESMTPA;
	Thu, 11 Jul 2013 10:14:59 +0100
From: Anil Madhavapeddy <anil@recoil.org>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Subject: 9th July call: prep for OSCON
Message-Id: <4ABE57DF-2574-47B9-A81C-94D7A6A88857@recoil.org>
Date: Thu, 11 Jul 2013 10:14:57 +0100
To: "cl-mirage@lists.cam.ac.uk List" <cl-mirage@lists.cam.ac.uk>
Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\))
X-Mailer: Apple Mail (2.1503)
X-Virus-Checked: Checked by ClamAV on dark.recoil.org
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Thu, 11 Jul 2013 09:15:01 -0000
Content-Length: 902
Lines: 26

=46rom the last Mirage call, actions:

- Anil: to prepare a 4.00.1 and 4.01.00 set of PPAs in Ubuntu, including =
OPAM.  This should be everything needed to do a binary installation =
quickly out of the box to install Mirage libs, with fast clone.

- Jon/Vincent: Status of Vchan -- a CLI tool + lib to send RPCs back and =
forth from dom0 to a Mirage kernel listening on a vchan interface would =
be useful for logging without net.

- Dave: Working on first cut of a reveal.js presentation that can be =
open-sourced.

- Dave: instructions for the blkback stub domain.

- Mort: NixOS blog post?

- all: there's a critical bug that's causing network interfaces to block =
for long periods of time, possibly just as simple as a missed event.  =
It's stopping website updates for the moment.  Vincent's looking at this =
-- it's very likely just a small regression from the recent net changes.

-anil




From vb@luminar.eu.org Thu Jul 11 21:33:42 2013
Received: from ppsw-52.csi.cam.ac.uk ([131.111.8.152])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1UxNYc-0005Av-7o (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <vb@luminar.eu.org>); Thu, 11 Jul 2013 21:33:42 +0100
X-Cam-SpamDetails: score -0.3 from SpamAssassin-3.3.2-1500228 
	* -0.3 RP_MATCHES_RCVD Envelope sender domain matches handover relay
	*      domain
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from luminar.eu.org ([94.23.24.152]:57905)
	by ppsw-52.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.148]:25)
	with esmtp id 1UxNYb-0007cM-Fg (Exim 4.80_167-5a66dd3) for
	cl-mirage@lists.cam.ac.uk
	(return-path <vb@luminar.eu.org>); Thu, 11 Jul 2013 21:33:42 +0100
Received: from [10.80.2.33] (firewall.ctxuk.citrix.com [46.33.159.2])
	(using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by luminar.eu.org (Postfix) with ESMTPSA id 61619611C8
	for <cl-mirage@lists.cam.ac.uk>; Thu, 11 Jul 2013 22:33:41 +0200 (CEST)
Message-ID: <51DF16A4.9050507@luminar.eu.org>
Date: Thu, 11 Jul 2013 21:33:40 +0100
From: Vincent Bernardoff <vb@luminar.eu.org>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:17.0) Gecko/20130625 Thunderbird/17.0.7
MIME-Version: 1.0
To: Mirage List <cl-mirage@lists.cam.ac.uk>
Subject: Fixed Mirage
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Thu, 11 Jul 2013 20:33:42 -0000
Content-Length: 701
Lines: 22

Dear all,

I have pushed patches to resp. mirage-platform and mirage-net that fixes 
the DHCP bug (and should fix Balraj issues as well).

The bug was caused by my modification of Io_page: I replaced the 
function get_n that was allocating n Bigarrays of size one page by a 
function that was allocating one Bigarray of size n pages. I guess that 
the entire Bigarray was garbage collected when the first of its page was 
not referenced anymore, and that was causing the issue.

Balraj, please could you run your tests with this new version, and tell 
me if it works for you ?

At least it fixes DHCP completely.

I broke the UNIX backend temporarily, I will fix it tomorrow.

Good evening,

Vincent


From anil@recoil.org Thu Jul 11 23:15:48 2013
Received: from ppsw-52.csi.cam.ac.uk ([131.111.8.152])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1UxP9Q-0005sw-7n (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Thu, 11 Jul 2013 23:15:48 +0100
X-Cam-SpamDetails: score 0.0 from SpamAssassin-3.3.2-1500228
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from recoil.dh.bytemark.co.uk ([89.16.177.154]:8506
	helo=dark.recoil.org)
	by ppsw-52.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.148]:25)
	with smtp id 1UxP9P-0005iu-EY (Exim 4.80_167-5a66dd3) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Thu, 11 Jul 2013 23:15:48 +0100
Received: (qmail 30107 invoked by uid 634); 11 Jul 2013 22:15:46 -0000
X-Spam-Level: *
X-Spam-Status: No, hits=-1.0 required=5.0
	tests=ALL_TRUSTED
X-Spam-Check-By: dark.recoil.org
Received: from cpc7-cmbg14-2-0-cust238.5-4.cable.virginmedia.com (HELO
	[192.168.1.48]) (86.30.244.239)
	(smtp-auth username remote@recoil.org, mechanism cram-md5)
	by dark.recoil.org (qpsmtpd/0.84) with ESMTPA;
	Thu, 11 Jul 2013 23:15:45 +0100
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\))
Subject: Re: Fixed Mirage
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <51DF16A4.9050507@luminar.eu.org>
Date: Thu, 11 Jul 2013 23:15:43 +0100
Content-Transfer-Encoding: quoted-printable
Message-Id: <DB109C25-66D4-466B-9122-79E3887B4425@recoil.org>
References: <51DF16A4.9050507@luminar.eu.org>
To: Vincent Bernardoff <vb@luminar.eu.org>
X-Mailer: Apple Mail (2.1503)
X-Virus-Checked: Checked by ClamAV on dark.recoil.org
Cc: Mirage List <cl-mirage@lists.cam.ac.uk>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Thu, 11 Jul 2013 22:15:48 -0000
Content-Length: 2315
Lines: 62

Awesome! I'm pulling to trunk now and trying this out, as I could =
reproduce the hanging bug before on a static IP.

I noticed this:
=
https://github.com/mirage/mirage-platform/commit/d22f60048890e0b253788a554=
d6ce00021f76f4e

Doesn't this totally nullify the point of Console.log_s blocking?  With =
the switch to Lwt.async, multiple log_s calls can now interleave and =
corrupt the console ring (whereas previously they would be synchronous). =
 This would require a mutex around the console ring to be totally safe =
(and Console.log exists for when you want to be non-blocking).

And just a minor thing in the same commit, but the change to "if num > =
0" in refill_requests also causes one less event notification, and so =
isn't quite a noop.  That's worth making a separate commit from the =
interface adaptation also.

A good general workflow for making changes is:

- make many commits and one pull request, and then merge it if you don't =
want code review (e.g. an urgent fix).  This gives everyone watching the =
repo an explicit mail about the series.

- even if you make a lot of changes in one go, split up the commits by =
using "git add -p" to break up a patch into smaller patches =
interactively.

- you will love the smaller commits later on when you are tracking down =
a bug, since you can use "git bisect" and some shell scripts to =
automatically narrow it down to one commit in many cases.  This requires =
slightly more automated unit tests for us.

-anil

On 11 Jul 2013, at 21:33, Vincent Bernardoff <vb@luminar.eu.org> wrote:

> Dear all,
>=20
> I have pushed patches to resp. mirage-platform and mirage-net that =
fixes the DHCP bug (and should fix Balraj issues as well).
>=20
> The bug was caused by my modification of Io_page: I replaced the =
function get_n that was allocating n Bigarrays of size one page by a =
function that was allocating one Bigarray of size n pages. I guess that =
the entire Bigarray was garbage collected when the first of its page was =
not referenced anymore, and that was causing the issue.
>=20
> Balraj, please could you run your tests with this new version, and =
tell me if it works for you ?
>=20
> At least it fixes DHCP completely.
>=20
> I broke the UNIX backend temporarily, I will fix it tomorrow.
>=20
> Good evening,
>=20
> Vincent
>=20



From anil@recoil.org Thu Jul 11 23:48:11 2013
Received: from ppsw-52.csi.cam.ac.uk ([131.111.8.152])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1UxPel-00068j-2p (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Thu, 11 Jul 2013 23:48:11 +0100
X-Cam-SpamDetails: score 0.0 from SpamAssassin-3.3.2-1500228
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from recoil.dh.bytemark.co.uk ([89.16.177.154]:1503
	helo=dark.recoil.org)
	by ppsw-52.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.148]:25)
	with smtp id 1UxPek-00049R-Dv (Exim 4.80_167-5a66dd3) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Thu, 11 Jul 2013 23:48:11 +0100
Received: (qmail 31259 invoked by uid 634); 11 Jul 2013 22:48:10 -0000
X-Spam-Level: *
X-Spam-Status: No, hits=-1.0 required=5.0
	tests=ALL_TRUSTED
X-Spam-Check-By: dark.recoil.org
Received: from cpc7-cmbg14-2-0-cust238.5-4.cable.virginmedia.com (HELO
	[192.168.1.48]) (86.30.244.239)
	(smtp-auth username remote@recoil.org, mechanism cram-md5)
	by dark.recoil.org (qpsmtpd/0.84) with ESMTPA;
	Thu, 11 Jul 2013 23:48:09 +0100
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\))
Subject: Re: Fixed Mirage
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <DB109C25-66D4-466B-9122-79E3887B4425@recoil.org>
Date: Thu, 11 Jul 2013 23:48:07 +0100
Content-Transfer-Encoding: quoted-printable
Message-Id: <1B5107A8-59D0-450B-AB2C-0BAB23A6B517@recoil.org>
References: <51DF16A4.9050507@luminar.eu.org>
	<DB109C25-66D4-466B-9122-79E3887B4425@recoil.org>
To: Vincent Bernardoff <vb@luminar.eu.org>
X-Mailer: Apple Mail (2.1503)
X-Virus-Checked: Checked by ClamAV on dark.recoil.org
Cc: Mirage List <cl-mirage@lists.cam.ac.uk>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Thu, 11 Jul 2013 22:48:11 -0000
Content-Length: 2983
Lines: 83

Hm, this is still pretty broken and crashes immediately on boot with =
master/:

=
https://github.com/mirage/mirage-platform/commit/ab88ef636fe3ff06c8638d5ea=
765ad25bf9610e2

Why did you remove the zeroing of the Io_pages?  That breaks everything =
and the domain crashes as soon as any shared rings are used, since there =
is garbage on the ring at start.  I added a memset(block, 0, len) into =
alloc_pages, and the domain now boots ok, but I still see a lot of =
packet loss.  Investigating...

-anil

On 11 Jul 2013, at 23:15, Anil Madhavapeddy <anil@recoil.org> wrote:

> Awesome! I'm pulling to trunk now and trying this out, as I could =
reproduce the hanging bug before on a static IP.
>=20
> I noticed this:
> =
https://github.com/mirage/mirage-platform/commit/d22f60048890e0b253788a554=
d6ce00021f76f4e
>=20
> Doesn't this totally nullify the point of Console.log_s blocking?  =
With the switch to Lwt.async, multiple log_s calls can now interleave =
and corrupt the console ring (whereas previously they would be =
synchronous).  This would require a mutex around the console ring to be =
totally safe (and Console.log exists for when you want to be =
non-blocking).
>=20
> And just a minor thing in the same commit, but the change to "if num > =
0" in refill_requests also causes one less event notification, and so =
isn't quite a noop.  That's worth making a separate commit from the =
interface adaptation also.
>=20
> A good general workflow for making changes is:
>=20
> - make many commits and one pull request, and then merge it if you =
don't want code review (e.g. an urgent fix).  This gives everyone =
watching the repo an explicit mail about the series.
>=20
> - even if you make a lot of changes in one go, split up the commits by =
using "git add -p" to break up a patch into smaller patches =
interactively.
>=20
> - you will love the smaller commits later on when you are tracking =
down a bug, since you can use "git bisect" and some shell scripts to =
automatically narrow it down to one commit in many cases.  This requires =
slightly more automated unit tests for us.
>=20
> -anil
>=20
> On 11 Jul 2013, at 21:33, Vincent Bernardoff <vb@luminar.eu.org> =
wrote:
>=20
>> Dear all,
>>=20
>> I have pushed patches to resp. mirage-platform and mirage-net that =
fixes the DHCP bug (and should fix Balraj issues as well).
>>=20
>> The bug was caused by my modification of Io_page: I replaced the =
function get_n that was allocating n Bigarrays of size one page by a =
function that was allocating one Bigarray of size n pages. I guess that =
the entire Bigarray was garbage collected when the first of its page was =
not referenced anymore, and that was causing the issue.
>>=20
>> Balraj, please could you run your tests with this new version, and =
tell me if it works for you ?
>>=20
>> At least it fixes DHCP completely.
>>=20
>> I broke the UNIX backend temporarily, I will fix it tomorrow.
>>=20
>> Good evening,
>>=20
>> Vincent
>>=20
>=20
>=20



From vb@luminar.eu.org Fri Jul 12 00:50:43 2013
Received: from ppsw-mx-f.csi.cam.ac.uk ([131.111.8.149]
	helo=ppsw-42.csi.cam.ac.uk)
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1UxQdH-0007Fd-Ng (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <vb@luminar.eu.org>); Fri, 12 Jul 2013 00:50:43 +0100
X-Cam-SpamDetails: score -0.3 from SpamAssassin-3.3.2-1500228 
	* -0.3 RP_MATCHES_RCVD Envelope sender domain matches handover relay
	*      domain
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from luminar.eu.org ([94.23.24.152]:51375)
	by ppsw-42.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.149]:25)
	with esmtp id 1UxQdG-0006yr-7w (Exim 4.80_167-5a66dd3) for
	cl-mirage@lists.cam.ac.uk
	(return-path <vb@luminar.eu.org>); Fri, 12 Jul 2013 00:50:43 +0100
Received: from [192.168.0.135]
	(cpc23-cmbg15-2-0-cust116.5-4.cable.virginmedia.com [86.27.178.117])
	(using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by luminar.eu.org (Postfix) with ESMTPSA id 3979D61213
	for <cl-mirage@lists.cam.ac.uk>; Fri, 12 Jul 2013 01:50:42 +0200 (CEST)
Message-ID: <51DF44D1.2020606@luminar.eu.org>
Date: Fri, 12 Jul 2013 00:50:41 +0100
From: "Vincent B." <vb@luminar.eu.org>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:17.0) Gecko/20130514 Thunderbird/17.0.6
MIME-Version: 1.0
To: cl-mirage@lists.cam.ac.uk
Subject: Re: Fixed Mirage
References: <51DF16A4.9050507@luminar.eu.org>
	<DB109C25-66D4-466B-9122-79E3887B4425@recoil.org>
In-Reply-To: <DB109C25-66D4-466B-9122-79E3887B4425@recoil.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Thu, 11 Jul 2013 23:50:43 -0000
Content-Length: 1977
Lines: 35

On 11/07/2013 23:15, Anil Madhavapeddy wrote:
> Awesome! I'm pulling to trunk now and trying this out, as I could reproduce the hanging bug before on a static IP.
>
> I noticed this:
> https://github.com/mirage/mirage-platform/commit/d22f60048890e0b253788a554d6ce00021f76f4e
>
> Doesn't this totally nullify the point of Console.log_s blocking?  With the switch to Lwt.async, multiple log_s calls can now interleave and corrupt the console ring (whereas previously they would be synchronous).  This would require a mutex around the console ring to be totally safe (and Console.log exists for when you want to be non-blocking).

Agreed, I did not think about that, you're right. This should be reverted.

> And just a minor thing in the same commit, but the change to "if num > 0" in refill_requests also causes one less event notification, and so isn't quite a noop.  That's worth making a separate commit from the interface adaptation also.

Yeah, I agree but at the same time, if num > 0 is currently a hack to 
cope with the fact that event channels are currently activated all the 
time. So it is fine for now to not notify anything when actually nothing 
happened.
>
> A good general workflow for making changes is:
>
> - make many commits and one pull request, and then merge it if you don't want code review (e.g. an urgent fix).  This gives everyone watching the repo an explicit mail about the series.

I did not think about it. I'll do it next time.

>
> - even if you make a lot of changes in one go, split up the commits by using "git add -p" to break up a patch into smaller patches interactively.

Yeah, I'm doing it most of the time, I've been messy this time, was 
stressed about this bug :)

>
> - you will love the smaller commits later on when you are tracking down a bug, since you can use "git bisect" and some shell scripts to automatically narrow it down to one commit in many cases.  This requires slightly more automated unit tests for us.
>
> -anil



From vb@luminar.eu.org Fri Jul 12 00:56:38 2013
Received: from ppsw-32.csi.cam.ac.uk ([131.111.8.132])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1UxQj0-0007I3-9I (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <vb@luminar.eu.org>); Fri, 12 Jul 2013 00:56:38 +0100
X-Cam-SpamDetails: score -0.3 from SpamAssassin-3.3.2-1500228 
	* -0.3 RP_MATCHES_RCVD Envelope sender domain matches handover relay
	*      domain
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from luminar.eu.org ([94.23.24.152]:56662)
	by ppsw-32.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.146]:25)
	with esmtp id 1UxQiz-0005YD-2Q (Exim 4.80_167-5a66dd3) for
	cl-mirage@lists.cam.ac.uk
	(return-path <vb@luminar.eu.org>); Fri, 12 Jul 2013 00:56:38 +0100
Received: from [192.168.0.135]
	(cpc23-cmbg15-2-0-cust116.5-4.cable.virginmedia.com [86.27.178.117])
	(using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by luminar.eu.org (Postfix) with ESMTPSA id 8347861213
	for <cl-mirage@lists.cam.ac.uk>; Fri, 12 Jul 2013 01:56:37 +0200 (CEST)
Message-ID: <51DF4635.5000108@luminar.eu.org>
Date: Fri, 12 Jul 2013 00:56:37 +0100
From: "Vincent B." <vb@luminar.eu.org>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:17.0) Gecko/20130514 Thunderbird/17.0.6
MIME-Version: 1.0
To: cl-mirage@lists.cam.ac.uk
Subject: Re: Fixed Mirage
References: <51DF16A4.9050507@luminar.eu.org>
	<DB109C25-66D4-466B-9122-79E3887B4425@recoil.org>
	<1B5107A8-59D0-450B-AB2C-0BAB23A6B517@recoil.org>
In-Reply-To: <1B5107A8-59D0-450B-AB2C-0BAB23A6B517@recoil.org>
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 8bit
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Thu, 11 Jul 2013 23:56:38 -0000
Content-Length: 1050
Lines: 26

On 11/07/2013 23:48, Anil Madhavapeddy wrote:
> Hm, this is still pretty broken and crashes immediately on boot with
> master/:
>
> https://github.com/mirage/mirage-platform/commit/ab88ef636fe3ff06c8638d5ea765ad25bf9610e2

Whas crashes exactly ? the basic example with DHCP was working well for
me when I commited those changes…

> Why did you remove the zeroing of the Io_pages?  That breaks
> everything and the domain crashes as so> on as any shared rings are
> used, since there is garbage on the ring at start.  I added a
> memset(block, 0, len) into alloc_pages, and the domain now boots ok,
> but I still see a lot of packet loss.  Investigating...

But I added the zeroing in the first place!!! Previously there was no 
zeroing at all, I then added it but removed it after I observed that the 
pages returned by memalign were actually always zeroed.

I had the impression that Xen would always zero the pages in order for 
domains not to be able to see other domains memory…

I'm a bit confused by what's happening I have to admit!

Vincent


From anil@recoil.org Fri Jul 12 01:05:33 2013
Received: from ppsw-52.csi.cam.ac.uk ([131.111.8.152])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1UxQrd-0007OZ-QM (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Fri, 12 Jul 2013 01:05:33 +0100
X-Cam-SpamDetails: score 0.0 from SpamAssassin-3.3.2-1500228
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from recoil.dh.bytemark.co.uk ([89.16.177.154]:6944
	helo=dark.recoil.org)
	by ppsw-52.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.148]:25)
	with smtp id 1UxQrc-0002Ul-F5 (Exim 4.80_167-5a66dd3) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Fri, 12 Jul 2013 01:05:33 +0100
Received: (qmail 6032 invoked by uid 634); 12 Jul 2013 00:05:32 -0000
X-Spam-Level: *
X-Spam-Status: No, hits=-1.0 required=5.0
	tests=ALL_TRUSTED
X-Spam-Check-By: dark.recoil.org
Received: from cpc7-cmbg14-2-0-cust238.5-4.cable.virginmedia.com (HELO
	[192.168.1.48]) (86.30.244.239)
	(smtp-auth username remote@recoil.org, mechanism cram-md5)
	by dark.recoil.org (qpsmtpd/0.84) with ESMTPA;
	Fri, 12 Jul 2013 01:05:30 +0100
Content-Type: text/plain; charset=windows-1252
Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\))
Subject: Re: Fixed Mirage
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <51DF4635.5000108@luminar.eu.org>
Date: Fri, 12 Jul 2013 01:05:28 +0100
Content-Transfer-Encoding: quoted-printable
Message-Id: <56641954-6224-4181-B517-3411C1F8EF97@recoil.org>
References: <51DF16A4.9050507@luminar.eu.org>
	<DB109C25-66D4-466B-9122-79E3887B4425@recoil.org>
	<1B5107A8-59D0-450B-AB2C-0BAB23A6B517@recoil.org>
	<51DF4635.5000108@luminar.eu.org>
To: "Vincent B." <vb@luminar.eu.org>
X-Mailer: Apple Mail (2.1503)
X-Virus-Checked: Checked by ClamAV on dark.recoil.org
Cc: cl-mirage@lists.cam.ac.uk
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Fri, 12 Jul 2013 00:05:33 -0000
Content-Length: 1937
Lines: 53


On 12 Jul 2013, at 00:56, "Vincent B." <vb@luminar.eu.org> wrote:
> On 11/07/2013 23:48, Anil Madhavapeddy wrote:
>> Hm, this is still pretty broken and crashes immediately on boot with
>> master/:
>>=20
>> =
https://github.com/mirage/mirage-platform/commit/ab88ef636fe3ff06c8638d5ea=
765ad25bf9610e2
>=20
> Whas crashes exactly ? the basic example with DHCP was working well =
for
> me when I commited those changes=85

Are you sure you tested with the changes you committed or with a =
slightly earlier version?

>> Why did you remove the zeroing of the Io_pages?  That breaks
>> everything and the domain crashes as so> on as any shared rings are
>> used, since there is garbage on the ring at start.  I added a
>> memset(block, 0, len) into alloc_pages, and the domain now boots ok,
>> but I still see a lot of packet loss.  Investigating...
>=20
> But I added the zeroing in the first place!!! Previously there was no =
zeroing at all, I then added it but removed it after I observed that the =
pages returned by memalign were actually always zeroed.

The bug is in a changeset marked "cosmetics" :-)
=
https://github.com/mirage/mirage-platform/commit/41f26e337beeb6799f9e04c30=
4480ecca98f0fef

You removed this hunk from allocate_ring:

-  for i =3D 0 to Cstruct.len x - 1 do
-    Cstruct.set_uint8 x i 0
-  done;

which zeros the ring, and Io_pages are also no longer zeroed since you =
reverted that earlier.  One or the other is needed.  I'd prefer that =
pages not be zeroed by default, since only the rings really need it.

> I had the impression that Xen would always zero the pages in order for =
domains not to be able to see other domains memory=85

Right, Xen does that with physical memory, but remember that we have a =
memory slab allocator ("alloc_page" from the xen/runtime/kernel) that is =
recycling the OS pages for the OCaml runtime to use.  That will only =
zero pages out if you specifically do so.

-anil



From vb@luminar.eu.org Fri Jul 12 01:12:40 2013
Received: from ppsw-52.csi.cam.ac.uk ([131.111.8.152])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1UxQyW-0007WV-8T (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <vb@luminar.eu.org>); Fri, 12 Jul 2013 01:12:40 +0100
X-Cam-SpamDetails: score -0.3 from SpamAssassin-3.3.2-1500228 
	* -0.3 RP_MATCHES_RCVD Envelope sender domain matches handover relay
	*      domain
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from luminar.eu.org ([94.23.24.152]:52782)
	by ppsw-52.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.148]:25)
	with esmtp id 1UxQyV-0003hR-Ea (Exim 4.80_167-5a66dd3) for
	cl-mirage@lists.cam.ac.uk
	(return-path <vb@luminar.eu.org>); Fri, 12 Jul 2013 01:12:40 +0100
Received: from [192.168.0.135]
	(cpc23-cmbg15-2-0-cust116.5-4.cable.virginmedia.com [86.27.178.117])
	(using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by luminar.eu.org (Postfix) with ESMTPSA id 4C24F61213
	for <cl-mirage@lists.cam.ac.uk>; Fri, 12 Jul 2013 02:12:39 +0200 (CEST)
Message-ID: <51DF49F6.1080702@luminar.eu.org>
Date: Fri, 12 Jul 2013 01:12:38 +0100
From: "Vincent B." <vb@luminar.eu.org>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:17.0) Gecko/20130514 Thunderbird/17.0.6
MIME-Version: 1.0
To: cl-mirage@lists.cam.ac.uk
Subject: Re: Fixed Mirage
References: <51DF16A4.9050507@luminar.eu.org>
	<DB109C25-66D4-466B-9122-79E3887B4425@recoil.org>
	<1B5107A8-59D0-450B-AB2C-0BAB23A6B517@recoil.org>
	<51DF4635.5000108@luminar.eu.org>
	<56641954-6224-4181-B517-3411C1F8EF97@recoil.org>
In-Reply-To: <56641954-6224-4181-B517-3411C1F8EF97@recoil.org>
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 8bit
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Fri, 12 Jul 2013 00:12:40 -0000
Content-Length: 2130
Lines: 40

On 12/07/2013 01:05, Anil Madhavapeddy wrote:
> On 12 Jul 2013, at 00:56, "Vincent B."<vb@luminar.eu.org>  wrote:
>> >On 11/07/2013 23:48, Anil Madhavapeddy wrote:
>>> >>Hm, this is still pretty broken and crashes immediately on boot with
>>> >>master/:
>>> >>
>>> >>https://github.com/mirage/mirage-platform/commit/ab88ef636fe3ff06c8638d5ea765ad25bf9610e2
>> >
>> >Whas crashes exactly ? the basic example with DHCP was working well for
>> >me when I commited those changes…
> Are you sure you tested with the changes you committed or with a slightly earlier version?

Yeah, almost certain.

>>> >>Why did you remove the zeroing of the Io_pages?  That breaks
>>> >>everything and the domain crashes as so> on as any shared rings are
>>> >>used, since there is garbage on the ring at start.  I added a
>>> >>memset(block, 0, len) into alloc_pages, and the domain now boots ok,
>>> >>but I still see a lot of packet loss.  Investigating...
>> >
>> >But I added the zeroing in the first place!!! Previously there was no zeroing at all, I then added it but removed it after I observed that the pages returned by memalign were actually always zeroed.
> The bug is in a changeset marked "cosmetics" :-)
> https://github.com/mirage/mirage-platform/commit/41f26e337beeb6799f9e04c304480ecca98f0fef
>
> You removed this hunk from allocate_ring:
>
> -  for i = 0 to Cstruct.len x - 1 do
> -    Cstruct.set_uint8 x i 0
> -  done;
>
> which zeros the ring, and Io_pages are also no longer zeroed since you reverted that earlier.  One or the other is needed.  I'd prefer that pages not be zeroed by default, since only the rings really need it.
>
>> >I had the impression that Xen would always zero the pages in order for domains not to be able to see other domains memory…
> Right, Xen does that with physical memory, but remember that we have a memory slab allocator ("alloc_page" from the xen/runtime/kernel) that is recycling the OS pages for the OCaml runtime to use.  That will only zero pages out if you specifically do so.

Oh I see. I again I did not see that clearly. Yeah, I should definitely 
not have removed this hunk…

Vincent


From anil@recoil.org Fri Jul 12 15:34:51 2013
Received: from ppsw-32.csi.cam.ac.uk ([131.111.8.132])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1UxeQt-00030D-UO (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Fri, 12 Jul 2013 15:34:51 +0100
X-Cam-SpamDetails: score 0.0 from SpamAssassin-3.3.2-1500228
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from recoil.dh.bytemark.co.uk ([89.16.177.154]:36683
	helo=dark.recoil.org)
	by ppsw-32.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.146]:25)
	with smtp id 1UxeQt-0003JU-12 (Exim 4.80_167-5a66dd3) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Fri, 12 Jul 2013 15:34:51 +0100
Received: (qmail 7303 invoked by uid 634); 12 Jul 2013 14:34:50 -0000
X-Spam-Level: *
X-Spam-Status: No, hits=-1.0 required=5.0
	tests=ALL_TRUSTED
X-Spam-Check-By: dark.recoil.org
Received: from volstagg-0.srg.cl.cam.ac.uk (HELO clink-4.office)
	(128.232.32.232)
	(smtp-auth username remote@recoil.org, mechanism cram-md5)
	by dark.recoil.org (qpsmtpd/0.84) with ESMTPA;
	Fri, 12 Jul 2013 15:34:47 +0100
Content-Type: text/plain; charset=windows-1252
Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\))
Subject: Re: Fixed Mirage
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <51DF49F6.1080702@luminar.eu.org>
Date: Fri, 12 Jul 2013 15:34:45 +0100
Content-Transfer-Encoding: quoted-printable
Message-Id: <2D6A246D-1DDB-467E-B8B7-5CBB9662610A@recoil.org>
References: <51DF16A4.9050507@luminar.eu.org>
	<DB109C25-66D4-466B-9122-79E3887B4425@recoil.org>
	<1B5107A8-59D0-450B-AB2C-0BAB23A6B517@recoil.org>
	<51DF4635.5000108@luminar.eu.org>
	<56641954-6224-4181-B517-3411C1F8EF97@recoil.org>
	<51DF49F6.1080702@luminar.eu.org>
To: "Vincent B." <vb@luminar.eu.org>
X-Mailer: Apple Mail (2.1503)
X-Virus-Checked: Checked by ClamAV on dark.recoil.org
Cc: cl-mirage@lists.cam.ac.uk
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Fri, 12 Jul 2013 14:34:52 -0000
Content-Length: 1156
Lines: 36

On 12 Jul 2013, at 01:12, "Vincent B." <vb@luminar.eu.org> wrote:

> On 12/07/2013 01:05, Anil Madhavapeddy wrote:
>> On 12 Jul 2013, at 00:56, "Vincent B."<vb@luminar.eu.org>  wrote:
>>> >On 11/07/2013 23:48, Anil Madhavapeddy wrote:
>>>> >>Hm, this is still pretty broken and crashes immediately on boot =
with
>>>> >>master/:
>>>> >>
>>>> =
>>https://github.com/mirage/mirage-platform/commit/ab88ef636fe3ff06c8638d5=
ea765ad25bf9610e2
>>> >
>>> >Whas crashes exactly ? the basic example with DHCP was working well =
for
>>> >me when I commited those changes=85
>> Are you sure you tested with the changes you committed or with a =
slightly earlier version?
>=20
> Yeah, almost certain.

This turns to be an odd issue with Xen 4.1 -- the domain wedges rarely =
(but non-reproducibly) somewhere in the udev scripts, and can be =
unblocked with a bit of random pinging (which presumably triggers ARPs =
elsewhere).

However, with the current state of affairs, this means that
http://xen.openmirage.org is live again with the latest codebase!

(There's some tidying up and reverting to do before cutting another =
release, but it should be soon).

-anil




From jdy22@cam.ac.uk Sat Jul 13 01:55:56 2013
Received: from ppsw-33.csi.cam.ac.uk ([131.111.8.133])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1Uxo7w-0002du-4m (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <jdy22@cam.ac.uk>); Sat, 13 Jul 2013 01:55:56 +0100
X-Cam-AntiVirus: no malware found
X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/
Received: from mail-we0-f177.google.com ([74.125.82.177]:42417)
	by ppsw-33.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.157]:587)
	with esmtpsa (PLAIN:jdy22) (TLSv1:RC4-SHA:128)
	id 1Uxo7w-0007RM-gJ (Exim 4.80_167-5a66dd3) for
	cl-mirage@lists.cam.ac.uk
	(return-path <jdy22@cam.ac.uk>); Sat, 13 Jul 2013 01:55:56 +0100
Received: by mail-we0-f177.google.com with SMTP id m19so8549206wev.36
	for <cl-mirage@lists.cam.ac.uk>; Fri, 12 Jul 2013 17:55:55 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=google.com; s=20120113;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type;
	bh=W79E1zVJaMTuRhDqjG9uoPypzfC1HjnvSXh/wDJOwv0=;
	b=oj9DSU8i/lQlhDPg3HdG0rBYqE45pMnAj9YRAReZs60mTLYUM2eQA6Q33e28vJkTgZ
	SUr/9pRSMg5TXBDPLXsTd8A/ysCrVakMKRCOfZRhJgTdbY/Fni4ObcIEuXj3MnqbBYQ/
	NJAhTw1ws/6EmX5bsJIIU4sj4NXc5zszNK5Z07gUDFfNpjSdXKT6D3Q1uy0KN4QCaAlQ
	0gpJMNQ/qydDM++YBb/AQnioMbqWljMfc2//WeessaEzkJgjrwGatQ0o0gmJndz8QIUc
	kEqUxG8KMYwSZi9OdGbQacFIM7GNDRhYDpl4w0UyOD7uZTeAt6v0UJxTnhmDLnx7/e6a
	6evQ==
MIME-Version: 1.0
X-Received: by 10.180.13.166 with SMTP id i6mr3090686wic.9.1373676955963; Fri,
	12 Jul 2013 17:55:55 -0700 (PDT)
Received: by 10.217.110.200 with HTTP; Fri, 12 Jul 2013 17:55:55 -0700 (PDT)
In-Reply-To: <CAAxsn=GfW0+1ZxUzTBFgnFQ97uEseB2B8a-w89rBzpyYAa1TEg@mail.gmail.com>
References: <CAAxsn=E2BwkYmM0mAgpQTW_BSHRY_8O=bx1Eg9v0N1nTDtOjgw@mail.gmail.com>
	<CAAxsn=GfW0+1ZxUzTBFgnFQ97uEseB2B8a-w89rBzpyYAa1TEg@mail.gmail.com>
Date: Sat, 13 Jul 2013 01:55:55 +0100
Message-ID: <CAAxsn=G-NOdssGXtFYR6xjfjj5BpV_oXa5S3j0ha2g57kaNBtw@mail.gmail.com>
Subject: OCaml compiler hacking session
From: Jeremy Yallop <jdy22@cam.ac.uk>
To: "cl-mirage@lists.cam.ac.uk List" <cl-mirage@lists.cam.ac.uk>
Content-Type: text/plain; charset=UTF-8
Cc: Leo White <lpw25@cam.ac.uk>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Sat, 13 Jul 2013 00:55:56 -0000
Content-Length: 1080
Lines: 27

We're organising an OCaml compiler-hacking session!

Where: Room FW11, Computer Laboratory, Madingley Road
           Directions to the building: http://www.cl.cam.ac.uk/directions/
           Room plan:
http://www.cl.cam.ac.uk/research/dtg/openroommap/static/?s=FW11&labels=1

When: 6pm, Tuesday 30th July

Who: anyone interested in improving OCaml.  Knowledge of OCaml
programming will obviously be helpful, but prior experience of working
on OCaml internals isn't necessary.

What: fixing bugs, implementing new features, learning about OCaml internals

We're defining "compiler" pretty broadly, to include anything that's
part of the standard distribution, which means at least the standard
library, runtime, tools (ocamldep, ocamllex, ocamlyacc, etc.), camlp4,
ocamlbuild, the documentation, and the compiler itself.  We'll have
suggestions for mini-projects for various levels of experience, but
feel free to come along and work on whatever you fancy.

We'll also be ordering pizza, so if you want to be counted for food
you should aim to arrive by 6.30pm.

Jeremy and Leo


From anil@recoil.org Sun Jul 14 13:00:28 2013
Received: from ppsw-mx-f.csi.cam.ac.uk ([131.111.8.149]
	helo=ppsw-42.csi.cam.ac.uk)
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1UyKya-00077l-SS (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Sun, 14 Jul 2013 13:00:28 +0100
X-Cam-SpamDetails: score 0.0 from SpamAssassin-3.3.2-1502764
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from recoil.dh.bytemark.co.uk ([89.16.177.154]:4596
	helo=dark.recoil.org)
	by ppsw-42.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.149]:25)
	with smtp id 1UyKya-0005Nn-7b (Exim 4.80_167-5a66dd3) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Sun, 14 Jul 2013 13:00:28 +0100
Received: (qmail 21183 invoked by uid 634); 14 Jul 2013 12:00:27 -0000
X-Spam-Level: *
X-Spam-Status: No, hits=-1.0 required=5.0
	tests=ALL_TRUSTED
X-Spam-Check-By: dark.recoil.org
Received: from cpc7-cmbg14-2-0-cust238.5-4.cable.virginmedia.com (HELO
	[192.168.1.99]) (86.30.244.239)
	(smtp-auth username remote@recoil.org, mechanism cram-md5)
	by dark.recoil.org (qpsmtpd/0.84) with ESMTPA;
	Sun, 14 Jul 2013 13:00:27 +0100
From: Anil Madhavapeddy <anil@recoil.org>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Subject: OPAM+Ubuntu test PPA
Message-Id: <D2A49680-5CBF-4BA1-B5F9-03EC3DDBB0E7@recoil.org>
Date: Sun, 14 Jul 2013 13:00:26 +0100
To: "cl-mirage@lists.cam.ac.uk List" <cl-mirage@lists.cam.ac.uk>
Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\))
X-Mailer: Apple Mail (2.1503)
X-Virus-Checked: Checked by ClamAV on dark.recoil.org
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Sun, 14 Jul 2013 12:00:29 -0000
Content-Length: 559
Lines: 16

Does anyone have an Ubuntu Raring box that they can test out a Ubuntu =
PPA on for me?  I've packaged up OCaml-4.1 and OPAM-1.0 (with the =
intention of bringing it up to OPAM 1.1 soon).

https://launchpad.net/~avsm/+archive/ppa-opam-unstable

This lets you install the latest compiler and OPAM and "fast clone" =
(since it'll be the system compiler).  If that all works, then I can =
bump Mirage up to use 4.1 and the newer ocamlbuild next week.

In theory, these should work on Debian, but I haven't had a chance to =
try them properly yet.

cheers,
Anil=


From anil@recoil.org Sun Jul 14 13:01:21 2013
Received: from ppsw-mx-f.csi.cam.ac.uk ([131.111.8.149]
	helo=ppsw-42.csi.cam.ac.uk)
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1UyKzR-00078N-GX (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Sun, 14 Jul 2013 13:01:21 +0100
X-Cam-SpamDetails: score 0.0 from SpamAssassin-3.3.2-1502764
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from recoil.dh.bytemark.co.uk ([89.16.177.154]:11210
	helo=dark.recoil.org)
	by ppsw-42.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.149]:25)
	with smtp id 1UyKzQ-0005YZ-9O (Exim 4.80_167-5a66dd3) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Sun, 14 Jul 2013 13:01:21 +0100
Received: (qmail 20937 invoked by uid 634); 14 Jul 2013 12:01:20 -0000
X-Spam-Level: *
X-Spam-Status: No, hits=-1.0 required=5.0
	tests=ALL_TRUSTED
X-Spam-Check-By: dark.recoil.org
Received: from cpc7-cmbg14-2-0-cust238.5-4.cable.virginmedia.com (HELO
	[192.168.1.99]) (86.30.244.239)
	(smtp-auth username remote@recoil.org, mechanism cram-md5)
	by dark.recoil.org (qpsmtpd/0.84) with ESMTPA;
	Sun, 14 Jul 2013 13:01:20 +0100
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\))
Subject: Re: OPAM+Ubuntu test PPA
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <D2A49680-5CBF-4BA1-B5F9-03EC3DDBB0E7@recoil.org>
Date: Sun, 14 Jul 2013 13:01:21 +0100
Content-Transfer-Encoding: quoted-printable
Message-Id: <3FEF6EE0-35A7-4582-809C-A0AFB57548BF@recoil.org>
References: <D2A49680-5CBF-4BA1-B5F9-03EC3DDBB0E7@recoil.org>
To: "cl-mirage@lists.cam.ac.uk List" <cl-mirage@lists.cam.ac.uk>
X-Mailer: Apple Mail (2.1503)
X-Virus-Checked: Checked by ClamAV on dark.recoil.org
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Sun, 14 Jul 2013 12:01:21 -0000
Content-Length: 779
Lines: 25

Incidentally, I've also left an OCaml-4.00 and OPAM-1.0 "stable" repo =
at:
https://launchpad.net/~avsm/+archive/ppa

-a

On 14 Jul 2013, at 13:00, Anil Madhavapeddy <anil@recoil.org> wrote:

> Does anyone have an Ubuntu Raring box that they can test out a Ubuntu =
PPA on for me?  I've packaged up OCaml-4.1 and OPAM-1.0 (with the =
intention of bringing it up to OPAM 1.1 soon).
>=20
> https://launchpad.net/~avsm/+archive/ppa-opam-unstable
>=20
> This lets you install the latest compiler and OPAM and "fast clone" =
(since it'll be the system compiler).  If that all works, then I can =
bump Mirage up to use 4.1 and the newer ocamlbuild next week.
>=20
> In theory, these should work on Debian, but I haven't had a chance to =
try them properly yet.
>=20
> cheers,
> Anil



From scott.dj@gmail.com Sun Jul 14 13:47:32 2013
Received: from ppsw-52.csi.cam.ac.uk ([131.111.8.152])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1UyLi8-0007Sp-CI (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <scott.dj@gmail.com>); Sun, 14 Jul 2013 13:47:32 +0100
X-Cam-SpamScore: s
X-Cam-SpamDetails: score 1.3 from SpamAssassin-3.3.2-1502764 
	* -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/,
	no *      trust
	*      [209.85.192.176 listed in list.dnswl.dnsbl.ja.net]
	* 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail
	provider *       (scott.dj[at]gmail.com)
	*  0.0 DKIM_ADSP_CUSTOM_MED No valid author signature, adsp_override is
	*      CUSTOM_MED
	*  0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily
	*      valid
	*  0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid
	*  1.2 NML_ADSP_CUSTOM_MED ADSP custom_med hit, and not from a mailing
	*      list
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from mail-pd0-f176.google.com ([209.85.192.176]:59602)
	by ppsw-52.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.148]:25)
	with esmtp id 1UyLi7-0007Ay-DQ (Exim 4.80_167-5a66dd3) for
	cl-mirage@lists.cam.ac.uk
	(return-path <scott.dj@gmail.com>); Sun, 14 Jul 2013 13:47:32 +0100
Received: by mail-pd0-f176.google.com with SMTP id t12so9895708pdi.21
	for <cl-mirage@lists.cam.ac.uk>; Sun, 14 Jul 2013 05:47:30 -0700 (PDT)
X-Received: by 10.68.106.67 with SMTP id gs3mr49755241pbb.126.1373806050141;
	Sun, 14 Jul 2013 05:47:30 -0700 (PDT)
References: <D2A49680-5CBF-4BA1-B5F9-03EC3DDBB0E7@recoil.org>
From: David Scott <scott.dj@gmail.com>
Mime-Version: 1.0 (1.0)
In-Reply-To: <D2A49680-5CBF-4BA1-B5F9-03EC3DDBB0E7@recoil.org>
Date: Sun, 14 Jul 2013 13:47:29 +0100
Message-ID: <-2889814563385868015@unknownmsgid>
Subject: Re: OPAM+Ubuntu test PPA
To: Anil Madhavapeddy <anil@recoil.org>
Content-Type: text/plain; charset=ISO-8859-1
Cc: "cl-mirage@lists.cam.ac.uk List" <cl-mirage@lists.cam.ac.uk>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Sun, 14 Jul 2013 12:47:32 -0000
Content-Length: 702
Lines: 16

My primary desktop is Raring atm-- I can try these later today...


On 14 Jul 2013, at 13:00, Anil Madhavapeddy <anil@recoil.org> wrote:

> Does anyone have an Ubuntu Raring box that they can test out a Ubuntu PPA on for me?  I've packaged up OCaml-4.1 and OPAM-1.0 (with the intention of bringing it up to OPAM 1.1 soon).
>
> https://launchpad.net/~avsm/+archive/ppa-opam-unstable
>
> This lets you install the latest compiler and OPAM and "fast clone" (since it'll be the system compiler).  If that all works, then I can bump Mirage up to use 4.1 and the newer ocamlbuild next week.
>
> In theory, these should work on Debian, but I haven't had a chance to try them properly yet.
>
> cheers,
> Anil


From scott.dj@gmail.com Sun Jul 14 21:15:55 2013
Received: from ppsw-32.csi.cam.ac.uk ([131.111.8.132])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1UySi3-0003ih-20 (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <scott.dj@gmail.com>); Sun, 14 Jul 2013 21:15:55 +0100
X-Cam-SpamDetails: score 0.6 from SpamAssassin-3.3.2-1502764 
	* -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/,
	low *      trust
	*      [209.85.220.53 listed in list.dnswl.dnsbl.ja.net]
	* 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail
	provider *       (scott.dj[at]gmail.com)
	*  0.0 DKIM_ADSP_CUSTOM_MED No valid author signature, adsp_override is
	*      CUSTOM_MED
	*  0.0 HTML_MESSAGE BODY: HTML included in message
	*  0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily
	*      valid
	*  0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid
	*  1.2 NML_ADSP_CUSTOM_MED ADSP custom_med hit, and not from a mailing
	*      list
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from mail-pa0-f53.google.com ([209.85.220.53]:53526)
	by ppsw-32.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.146]:25)
	with esmtp id 1UySi1-00088m-2C (Exim 4.80_167-5a66dd3) for
	cl-mirage@lists.cam.ac.uk
	(return-path <scott.dj@gmail.com>); Sun, 14 Jul 2013 21:15:55 +0100
Received: by mail-pa0-f53.google.com with SMTP id tj12so10545307pac.26
	for <cl-mirage@lists.cam.ac.uk>; Sun, 14 Jul 2013 13:15:52 -0700 (PDT)
MIME-Version: 1.0
X-Received: by 10.68.171.162 with SMTP id av2mr50403513pbc.104.1373832952240; 
	Sun, 14 Jul 2013 13:15:52 -0700 (PDT)
Received: by 10.70.34.143 with HTTP; Sun, 14 Jul 2013 13:15:52 -0700 (PDT)
In-Reply-To: <-2889814563385868015@unknownmsgid>
References: <D2A49680-5CBF-4BA1-B5F9-03EC3DDBB0E7@recoil.org>
	<-2889814563385868015@unknownmsgid>
Date: Sun, 14 Jul 2013 21:15:52 +0100
Message-ID: <CAG_esB0nm5jNY28yhwsXj0OVgRpyA69ys0mAQCT_ov=sEpwg3g@mail.gmail.com>
Subject: Re: OPAM+Ubuntu test PPA
From: David Scott <scott.dj@gmail.com>
To: Anil Madhavapeddy <anil@recoil.org>
Content-Type: multipart/alternative; boundary=047d7b6d8d8419603b04e17e69bc
Cc: "cl-mirage@lists.cam.ac.uk List" <cl-mirage@lists.cam.ac.uk>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Sun, 14 Jul 2013 20:15:55 -0000
Content-Length: 2945
Lines: 85

--047d7b6d8d8419603b04e17e69bc
Content-Type: text/plain; charset=ISO-8859-1

The unstable packages seem to be working fine for me so far -- I've been
building mirage userspace stuff with no problem.

Thanks for making the packages!



On Sun, Jul 14, 2013 at 1:47 PM, David Scott <scott.dj@gmail.com> wrote:

> My primary desktop is Raring atm-- I can try these later today...
>
>
> On 14 Jul 2013, at 13:00, Anil Madhavapeddy <anil@recoil.org> wrote:
>
> > Does anyone have an Ubuntu Raring box that they can test out a Ubuntu
> PPA on for me?  I've packaged up OCaml-4.1 and OPAM-1.0 (with the intention
> of bringing it up to OPAM 1.1 soon).
> >
> > https://launchpad.net/~avsm/+archive/ppa-opam-unstable
> >
> > This lets you install the latest compiler and OPAM and "fast clone"
> (since it'll be the system compiler).  If that all works, then I can bump
> Mirage up to use 4.1 and the newer ocamlbuild next week.
> >
> > In theory, these should work on Debian, but I haven't had a chance to
> try them properly yet.
> >
> > cheers,
> > Anil
>



-- 
Dave Scott

--047d7b6d8d8419603b04e17e69bc
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">The unstable packages seem to be working fine for me so fa=
r -- I&#39;ve been building mirage userspace stuff with no problem.<div><br=
></div><div style>Thanks for making the packages!</div><div style><br></div=
>
</div><div class=3D"gmail_extra"><br><br><div class=3D"gmail_quote">On Sun,=
 Jul 14, 2013 at 1:47 PM, David Scott <span dir=3D"ltr">&lt;<a href=3D"mail=
to:scott.dj@gmail.com" target=3D"_blank">scott.dj@gmail.com</a>&gt;</span> =
wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">My primary desktop is Raring atm-- I can try=
 these later today...<br>
<div class=3D"im HOEnZb"><br>
<br>
On 14 Jul 2013, at 13:00, Anil Madhavapeddy &lt;<a href=3D"mailto:anil@reco=
il.org">anil@recoil.org</a>&gt; wrote:<br>
<br>
</div><div class=3D"HOEnZb"><div class=3D"h5">&gt; Does anyone have an Ubun=
tu Raring box that they can test out a Ubuntu PPA on for me? =A0I&#39;ve pa=
ckaged up OCaml-4.1 and OPAM-1.0 (with the intention of bringing it up to O=
PAM 1.1 soon).<br>

&gt;<br>
&gt; <a href=3D"https://launchpad.net/~avsm/+archive/ppa-opam-unstable" tar=
get=3D"_blank">https://launchpad.net/~avsm/+archive/ppa-opam-unstable</a><b=
r>
&gt;<br>
&gt; This lets you install the latest compiler and OPAM and &quot;fast clon=
e&quot; (since it&#39;ll be the system compiler). =A0If that all works, the=
n I can bump Mirage up to use 4.1 and the newer ocamlbuild next week.<br>

&gt;<br>
&gt; In theory, these should work on Debian, but I haven&#39;t had a chance=
 to try them properly yet.<br>
&gt;<br>
&gt; cheers,<br>
&gt; Anil<br>
</div></div></blockquote></div><br><br clear=3D"all"><div><br></div>-- <br>=
Dave Scott
</div>

--047d7b6d8d8419603b04e17e69bc--


From hohoangphi@gmail.com Sun Jul 14 21:57:18 2013
Received: from ppsw-mx-f.csi.cam.ac.uk ([131.111.8.149]
	helo=ppsw-42.csi.cam.ac.uk)
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1UyTM6-0003wn-AF (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <hohoangphi@gmail.com>); Sun, 14 Jul 2013 21:57:18 +0100
X-Cam-SpamDetails: score 0.6 from SpamAssassin-3.3.2-1502764 
	* -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/,
	low *      trust
	*      [209.85.219.49 listed in list.dnswl.dnsbl.ja.net]
	* 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail
	provider *       (hohoangphi[at]gmail.com)
	*  0.0 DKIM_ADSP_CUSTOM_MED No valid author signature, adsp_override is
	*      CUSTOM_MED
	*  0.0 HTML_MESSAGE BODY: HTML included in message
	*  0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily
	*      valid
	*  0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid
	*  1.2 NML_ADSP_CUSTOM_MED ADSP custom_med hit, and not from a mailing
	*      list
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from mail-oa0-f49.google.com ([209.85.219.49]:46167)
	by ppsw-42.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.149]:25)
	with esmtp id 1UyTM5-0006qd-8K (Exim 4.80_167-5a66dd3) for
	cl-mirage@lists.cam.ac.uk
	(return-path <hohoangphi@gmail.com>); Sun, 14 Jul 2013 21:57:18 +0100
Received: by mail-oa0-f49.google.com with SMTP id n9so14809553oag.22
	for <cl-mirage@lists.cam.ac.uk>; Sun, 14 Jul 2013 13:57:16 -0700 (PDT)
MIME-Version: 1.0
X-Received: by 10.60.96.170 with SMTP id dt10mr41395768oeb.81.1373835436680;
	Sun, 14 Jul 2013 13:57:16 -0700 (PDT)
Received: by 10.76.79.202 with HTTP; Sun, 14 Jul 2013 13:57:16 -0700 (PDT)
In-Reply-To: <CAG_esB0nm5jNY28yhwsXj0OVgRpyA69ys0mAQCT_ov=sEpwg3g@mail.gmail.com>
References: <D2A49680-5CBF-4BA1-B5F9-03EC3DDBB0E7@recoil.org>
	<-2889814563385868015@unknownmsgid>
	<CAG_esB0nm5jNY28yhwsXj0OVgRpyA69ys0mAQCT_ov=sEpwg3g@mail.gmail.com>
Date: Sun, 14 Jul 2013 16:57:16 -0400
Message-ID: <CALZQg1ZTHYCkEHmzTcTO9rJMxj31ZKzoWt=bxtdT=sMbVdts_Q@mail.gmail.com>
Subject: Re: OPAM+Ubuntu test PPA
From: Phiho Hoang <hohoangphi@gmail.com>
To: David Scott <scott.dj@gmail.com>
Content-Type: multipart/alternative; boundary=089e01228cf62eeeb104e17efd5a
Cc: "cl-mirage@lists.cam.ac.uk List" <cl-mirage@lists.cam.ac.uk>,
	Anil Madhavapeddy <anil@recoil.org>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Sun, 14 Jul 2013 20:57:18 -0000
Content-Length: 5242
Lines: 134

--089e01228cf62eeeb104e17efd5a
Content-Type: text/plain; charset=ISO-8859-1

Greetings,

> Incidentally, I've also left an OCaml-4.00 and OPAM-1.0 "stable" repo at:
> https://launchpad.net/~avsm/+archive/ppa

I got 'ocaml' and 'opam' from this repo.

How can I start to learn about 'mirage' using a Ubuntu VM, what do I need
to install?

It is much appreciated if someone can share a link.

Regards,

PhiHo



On Sun, Jul 14, 2013 at 4:15 PM, David Scott <scott.dj@gmail.com> wrote:

> The unstable packages seem to be working fine for me so far -- I've been
> building mirage userspace stuff with no problem.
>
> Thanks for making the packages!
>
>
>
> On Sun, Jul 14, 2013 at 1:47 PM, David Scott <scott.dj@gmail.com> wrote:
>
>> My primary desktop is Raring atm-- I can try these later today...
>>
>>
>> On 14 Jul 2013, at 13:00, Anil Madhavapeddy <anil@recoil.org> wrote:
>>
>> > Does anyone have an Ubuntu Raring box that they can test out a Ubuntu
>> PPA on for me?  I've packaged up OCaml-4.1 and OPAM-1.0 (with the intention
>> of bringing it up to OPAM 1.1 soon).
>> >
>> > https://launchpad.net/~avsm/+archive/ppa-opam-unstable
>> >
>> > This lets you install the latest compiler and OPAM and "fast clone"
>> (since it'll be the system compiler).  If that all works, then I can bump
>> Mirage up to use 4.1 and the newer ocamlbuild next week.
>> >
>> > In theory, these should work on Debian, but I haven't had a chance to
>> try them properly yet.
>> >
>> > cheers,
>> > Anil
>>
>
>
>
> --
> Dave Scott
>

--089e01228cf62eeeb104e17efd5a
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Greetings,<div><br></div><div><span style=3D"font-family:a=
rial,sans-serif;font-size:13px">&gt; Incidentally, I&#39;ve also left an OC=
aml-4.00 and OPAM-1.0 &quot;stable&quot; repo at:</span><br style=3D"font-f=
amily:arial,sans-serif;font-size:13px">
&gt;=A0<a href=3D"https://launchpad.net/~avsm/+archive/ppa" target=3D"_blan=
k" style=3D"font-family:arial,sans-serif;font-size:13px">https://launchpad.=
net/~avsm/+archive/ppa</a><div class=3D"" style=3D"font-family:arial,sans-s=
erif;font-size:13px">
<div id=3D":12" class=3D"" tabindex=3D"0"><br></div><div id=3D":12" class=
=3D"" tabindex=3D"0">I got &#39;ocaml&#39; and &#39;opam&#39;<img class=3D"=
" src=3D"https://mail.google.com/mail/ca/u/0/images/cleardot.gif" style=3D"=
">=A0from this repo.</div>
<div id=3D":12" class=3D"" tabindex=3D"0"><br></div><div id=3D":12" class=
=3D"" tabindex=3D"0">How can I start to learn about &#39;mirage&#39; using =
a Ubuntu VM, what do I need to install?</div><div id=3D":12" class=3D"" tab=
index=3D"0"><br>
</div><div id=3D":12" class=3D"" tabindex=3D"0">It is much appreciated if s=
omeone can share a link.</div><div id=3D":12" class=3D"" tabindex=3D"0"><br=
></div><div id=3D":12" class=3D"" tabindex=3D"0">Regards,</div><div id=3D":=
12" class=3D"" tabindex=3D"0">
<br></div><div id=3D":12" class=3D"" tabindex=3D"0">PhiHo</div><div id=3D":=
12" class=3D"" tabindex=3D"0"><br></div></div></div></div><div class=3D"gma=
il_extra"><br><br><div class=3D"gmail_quote">On Sun, Jul 14, 2013 at 4:15 P=
M, David Scott <span dir=3D"ltr">&lt;<a href=3D"mailto:scott.dj@gmail.com" =
target=3D"_blank">scott.dj@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><div dir=3D"ltr">The unstable packages seem =
to be working fine for me so far -- I&#39;ve been building mirage userspace=
 stuff with no problem.<div>
<br></div><div>Thanks for making the packages!</div><div><br></div>
</div><div class=3D"gmail_extra"><div><div class=3D"h5"><br><br><div class=
=3D"gmail_quote">On Sun, Jul 14, 2013 at 1:47 PM, David Scott <span dir=3D"=
ltr">&lt;<a href=3D"mailto:scott.dj@gmail.com" target=3D"_blank">scott.dj@g=
mail.com</a>&gt;</span> wrote:<br>

<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">My primary desktop is Raring atm-- I can try=
 these later today...<br>
<div><br>
<br>
On 14 Jul 2013, at 13:00, Anil Madhavapeddy &lt;<a href=3D"mailto:anil@reco=
il.org" target=3D"_blank">anil@recoil.org</a>&gt; wrote:<br>
<br>
</div><div><div>&gt; Does anyone have an Ubuntu Raring box that they can te=
st out a Ubuntu PPA on for me? =A0I&#39;ve packaged up OCaml-4.1 and OPAM-1=
.0 (with the intention of bringing it up to OPAM 1.1 soon).<br>

&gt;<br>
&gt; <a href=3D"https://launchpad.net/~avsm/+archive/ppa-opam-unstable" tar=
get=3D"_blank">https://launchpad.net/~avsm/+archive/ppa-opam-unstable</a><b=
r>
&gt;<br>
&gt; This lets you install the latest compiler and OPAM and &quot;fast clon=
e&quot; (since it&#39;ll be the system compiler). =A0If that all works, the=
n I can bump Mirage up to use 4.1 and the newer ocamlbuild next week.<br>


&gt;<br>
&gt; In theory, these should work on Debian, but I haven&#39;t had a chance=
 to try them properly yet.<br>
&gt;<br>
&gt; cheers,<br>
&gt; Anil<br>
</div></div></blockquote></div><br><br clear=3D"all"><div><br></div></div><=
/div><span class=3D"HOEnZb"><font color=3D"#888888">-- <br>Dave Scott
</font></span></div>
</blockquote></div><br></div>

--089e01228cf62eeeb104e17efd5a--


From pgj@caesar.elte.hu Sun Jul 14 22:08:02 2013
Received: from ppsw-mx-f.csi.cam.ac.uk ([131.111.8.149]
	helo=ppsw-42.csi.cam.ac.uk)
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1UyTWU-00043L-GV (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <pgj@caesar.elte.hu>); Sun, 14 Jul 2013 22:08:02 +0100
X-Cam-SpamDetails: score -1.1 from SpamAssassin-3.3.2-1502764 
	* -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/,
	low *      trust
	*      [157.181.151.9 listed in list.dnswl.dnsbl.ja.net]
	* -0.4 RP_MATCHES_RCVD Envelope sender domain matches handover relay
	*      domain
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from mx2.mail.elte.hu ([157.181.151.9]:58534)
	by ppsw-42.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.149]:25)
	with esmtp id 1UyTWT-0000Vn-9D (Exim 4.80_167-5a66dd3) for
	cl-mirage@lists.cam.ac.uk
	(return-path <pgj@caesar.elte.hu>); Sun, 14 Jul 2013 22:08:02 +0100
Received: from login01.caesar.elte.hu ([157.181.151.130])
	by mx2.mail.elte.hu with esmtp (Exim) id 1UyTWM-000138-A1
	from <pgj@caesar.elte.hu>; Sun, 14 Jul 2013 23:08:01 +0200
Received: (Authenticated sender: pgj)
	by login01.caesar.elte.hu with local (Exim 4.72)
	(envelope-from <pgj@caesar.elte.hu>)
	id 1UyTWL-0002Xa-Hx; Sun, 14 Jul 2013 23:07:53 +0200
Date: Sun, 14 Jul 2013 23:07:53 +0200
From: PALI Gabor Janos <pgj@elte.hu>
To: Phiho Hoang <hohoangphi@gmail.com>
Subject: Re: OPAM+Ubuntu test PPA
Message-ID: <20130714210752.GA8321@caesar.elte.hu>
References: <D2A49680-5CBF-4BA1-B5F9-03EC3DDBB0E7@recoil.org>
	<-2889814563385868015@unknownmsgid>
	<CAG_esB0nm5jNY28yhwsXj0OVgRpyA69ys0mAQCT_ov=sEpwg3g@mail.gmail.com>
	<CALZQg1ZTHYCkEHmzTcTO9rJMxj31ZKzoWt=bxtdT=sMbVdts_Q@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <CALZQg1ZTHYCkEHmzTcTO9rJMxj31ZKzoWt=bxtdT=sMbVdts_Q@mail.gmail.com>
User-Agent: Mutt/1.5.20 (2009-06-14)
Sender: Pali Gabor Janos <pgj@login01.caesar.elte.hu>
X-ELTE-SpamScore: -2.0
X-ELTE-SpamLevel: 
X-ELTE-SpamCheck: no
X-ELTE-SpamVersion: ELTE 2.0 
X-ELTE-SpamCheck-Details: score=-2.0 required=5.9 tests=BAYES_00 autolearn=no
	SpamAssassin version=3.3.1
	-2.0 BAYES_00               BODY: Bayes spam probability is 0 to 1%
	[score: 0.0000]
Cc: "cl-mirage@lists.cam.ac.uk List" <cl-mirage@lists.cam.ac.uk>,
	David Scott <scott.dj@gmail.com>, Anil Madhavapeddy <anil@recoil.org>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Sun, 14 Jul 2013 21:08:02 -0000
Content-Length: 520
Lines: 19

On Sun, Jul 14, 2013 at 04:57:16PM -0400, Phiho Hoang wrote:
> How can I start to learn about 'mirage' using a Ubuntu VM, what do I need
> to install?

That should be simply just:

$ opam init
$ opam remote add mirage-dev git://github.com/mirage/opam-repo-dev
$ eval `opam config -env`
$ opam install mirari
$ git clone git://github.com/mirage/mirage-www
$ cd mirage-www
$ make
$ make run

> It is much appreciated if someone can share a link.

This information is from the web site: http://openmirage.org/wiki/install


From anil@recoil.org Sun Jul 14 22:54:53 2013
Received: from ppsw-33.csi.cam.ac.uk ([131.111.8.133])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1UyUFp-0004S5-Tm (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Sun, 14 Jul 2013 22:54:53 +0100
X-Cam-SpamDetails: score 0.0 from SpamAssassin-3.3.2-1502764
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from recoil.dh.bytemark.co.uk ([89.16.177.154]:6956
	helo=dark.recoil.org)
	by ppsw-33.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.147]:25)
	with smtp id 1UyUFp-0002PI-hq (Exim 4.80_167-5a66dd3) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Sun, 14 Jul 2013 22:54:53 +0100
Received: (qmail 18424 invoked by uid 634); 14 Jul 2013 21:54:53 -0000
X-Spam-Level: *
X-Spam-Status: No, hits=-1.0 required=5.0
	tests=ALL_TRUSTED
X-Spam-Check-By: dark.recoil.org
Received: from cpc7-cmbg14-2-0-cust238.5-4.cable.virginmedia.com (HELO
	[192.168.1.84]) (86.30.244.239)
	(smtp-auth username remote@recoil.org, mechanism cram-md5)
	by dark.recoil.org (qpsmtpd/0.84) with ESMTPA;
	Sun, 14 Jul 2013 22:54:53 +0100
From: Anil Madhavapeddy <anil@recoil.org>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Subject: Switch to pull requests for all mirage/ commits
Message-Id: <D9C84988-A32A-42CD-84F5-F8CDB5E10388@recoil.org>
Date: Sun, 14 Jul 2013 22:54:51 +0100
To: "cl-mirage@lists.cam.ac.uk List" <cl-mirage@lists.cam.ac.uk>
Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\))
X-Mailer: Apple Mail (2.1503)
X-Virus-Checked: Checked by ClamAV on dark.recoil.org
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Sun, 14 Jul 2013 21:54:54 -0000
Content-Length: 514
Lines: 12

As we stabilise the trees for OSCON, would everyone with developer =
access to the Mirage organisation please switch to issuing pull requests =
for changes?  You can merge them yourself if you're absolutely sure that =
the fix is correct, but otherwise leave them open for me or Dave to look =
at.

The pull request model is good in normal development anyway, as it sends =
out an email to the rest of the committers.  Thomas and I do this in =
opam-repository and don't directly push there, for example.

-anil=


From hohoangphi@gmail.com Sun Jul 14 23:21:42 2013
Received: from ppsw-52.csi.cam.ac.uk ([131.111.8.152])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1UyUfm-0004jP-6w (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <hohoangphi@gmail.com>); Sun, 14 Jul 2013 23:21:42 +0100
X-Cam-SpamDetails: score 0.6 from SpamAssassin-3.3.2-1502764 
	* -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/,
	low *      trust
	*      [209.85.219.44 listed in list.dnswl.dnsbl.ja.net]
	* 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail
	provider *       (hohoangphi[at]gmail.com)
	*  0.0 DKIM_ADSP_CUSTOM_MED No valid author signature, adsp_override is
	*      CUSTOM_MED
	*  0.0 HTML_MESSAGE BODY: HTML included in message
	*  0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily
	*      valid
	*  0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid
	*  1.2 NML_ADSP_CUSTOM_MED ADSP custom_med hit, and not from a mailing
	*      list
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from mail-oa0-f44.google.com ([209.85.219.44]:55032)
	by ppsw-52.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.148]:25)
	with esmtp id 1UyUfl-0000LI-EB (Exim 4.80_167-5a66dd3) for
	cl-mirage@lists.cam.ac.uk
	(return-path <hohoangphi@gmail.com>); Sun, 14 Jul 2013 23:21:42 +0100
Received: by mail-oa0-f44.google.com with SMTP id l10so15049979oag.31
	for <cl-mirage@lists.cam.ac.uk>; Sun, 14 Jul 2013 15:21:40 -0700 (PDT)
MIME-Version: 1.0
X-Received: by 10.60.56.82 with SMTP id y18mr42149313oep.86.1373840500488;
	Sun, 14 Jul 2013 15:21:40 -0700 (PDT)
Received: by 10.76.79.202 with HTTP; Sun, 14 Jul 2013 15:21:40 -0700 (PDT)
In-Reply-To: <20130714210752.GA8321@caesar.elte.hu>
References: <D2A49680-5CBF-4BA1-B5F9-03EC3DDBB0E7@recoil.org>
	<-2889814563385868015@unknownmsgid>
	<CAG_esB0nm5jNY28yhwsXj0OVgRpyA69ys0mAQCT_ov=sEpwg3g@mail.gmail.com>
	<CALZQg1ZTHYCkEHmzTcTO9rJMxj31ZKzoWt=bxtdT=sMbVdts_Q@mail.gmail.com>
	<20130714210752.GA8321@caesar.elte.hu>
Date: Sun, 14 Jul 2013 18:21:40 -0400
Message-ID: <CALZQg1ZayoG_r3EwyRAiv_cv3gCPG19DieLViuet9ed73SPf3g@mail.gmail.com>
Subject: Re: OPAM+Ubuntu test PPA
From: Phiho Hoang <hohoangphi@gmail.com>
To: PALI Gabor Janos <pgj@elte.hu>
Content-Type: multipart/alternative; boundary=001a11c20b9402816404e1802b10
Cc: "cl-mirage@lists.cam.ac.uk List" <cl-mirage@lists.cam.ac.uk>,
	David Scott <scott.dj@gmail.com>, Anil Madhavapeddy <anil@recoil.org>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Sun, 14 Jul 2013 22:21:42 -0000
Content-Length: 5629
Lines: 153

--001a11c20b9402816404e1802b10
Content-Type: text/plain; charset=ISO-8859-1

Hi,

Thank you for the information.

I got an error while doing:

$ opam install mirari

This following also failed:

$ sudo apt-get install  ocamlopt

Please find appended the console output.

Regards,

PhiHo

$ opam install mirari
...
...

==== ERROR [while installing obuild.0.0.2] ====
# opam-version    1.0.0
# os              linux
# command         ./bootstrap
# path            /home/phiho/.opam/system/build/obuild.0.0.2
# exit-code       127
# env-file
 /home/phiho/.opam/system/build/obuild.0.0.2/obuild-ffb3fd.env
# stdout-file
/home/phiho/.opam/system/build/obuild.0.0.2/obuild-ffb3fd.out
# stderr-file
/home/phiho/.opam/system/build/obuild.0.0.2/obuild-ffb3fd.err
### stdout ###
COMPILING fugue
### stderr ###
./bootstrap: line 23: ocamlopt.opt: command not found

'opam install mirari' failed.


$ sudo apt-get install  ocamlopt
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package ocamlopt

$ opam install ocamlopt
ocamlopt is not a valid versioned package name
'opam install ocamlopt' failed.



On Sun, Jul 14, 2013 at 5:07 PM, PALI Gabor Janos <pgj@elte.hu> wrote:

> On Sun, Jul 14, 2013 at 04:57:16PM -0400, Phiho Hoang wrote:
> > How can I start to learn about 'mirage' using a Ubuntu VM, what do I need
> > to install?
>
> That should be simply just:
>
> $ opam init
> $ opam remote add mirage-dev git://github.com/mirage/opam-repo-dev
> $ eval `opam config -env`
> $ opam install mirari
> $ git clone git://github.com/mirage/mirage-www
> $ cd mirage-www
> $ make
> $ make run
>
> > It is much appreciated if someone can share a link.
>
> This information is from the web site: http://openmirage.org/wiki/install
>

--001a11c20b9402816404e1802b10
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Hi,</div><div><br></div><div>Thank you for the inform=
ation.</div><div><br></div><div>I got an error while doing:</div><div><span=
 style=3D"font-family:arial,sans-serif;font-size:13px"><br></span></div><di=
v>
<span style=3D"font-family:arial,sans-serif;font-size:13px">$ opam install =
mirari</span><br></div><div><span style=3D"font-family:arial,sans-serif;fon=
t-size:13px"><br></span></div><div><span style=3D"font-family:arial,sans-se=
rif;font-size:13px">This following also failed:</span></div>
<div><span style=3D"font-family:arial,sans-serif;font-size:13px"><br></span=
></div><div>$ sudo apt-get install =A0ocamlopt<br></div><div><br></div><div=
>Please find appended the console output.</div><div><br></div><div>Regards,=
</div>
<div><br></div><div>PhiHo</div><div><br></div><div><span style=3D"font-fami=
ly:arial,sans-serif;font-size:13px">$ opam install mirari</span><br></div><=
div><span style=3D"font-family:arial,sans-serif;font-size:13px">...</span><=
/div>
<div><span style=3D"font-family:arial,sans-serif;font-size:13px">...</span>=
</div><div><span style=3D"font-family:arial,sans-serif;font-size:13px"><br>=
</span></div><div>=3D=3D=3D=3D ERROR [while installing obuild.0.0.2] =3D=3D=
=3D=3D</div><div>
# opam-version =A0 =A01.0.0</div><div># os =A0 =A0 =A0 =A0 =A0 =A0 =A0linux=
</div><div># command =A0 =A0 =A0 =A0 ./bootstrap</div><div># path =A0 =A0 =
=A0 =A0 =A0 =A0/home/phiho/.opam/system/build/obuild.0.0.2</div><div># exit=
-code =A0 =A0 =A0 127</div><div># env-file =A0 =A0 =A0 =A0/home/phiho/.opam=
/system/build/obuild.0.0.2/obuild-ffb3fd.env</div>
<div># stdout-file =A0 =A0 /home/phiho/.opam/system/build/obuild.0.0.2/obui=
ld-ffb3fd.out</div><div># stderr-file =A0 =A0 /home/phiho/.opam/system/buil=
d/obuild.0.0.2/obuild-ffb3fd.err</div><div>### stdout ###</div><div>COMPILI=
NG fugue</div>
<div>### stderr ###</div><div>./bootstrap: line 23: ocamlopt.opt: command n=
ot found</div><div><br></div><div>&#39;opam install mirari&#39; failed.</di=
v><div><br></div><div><br></div><div>$ sudo apt-get install =A0ocamlopt</di=
v>
<div>Reading package lists... Done</div><div>Building dependency tree</div>=
<div>Reading state information... Done</div><div>E: Unable to locate packag=
e ocamlopt</div><div><br></div><div><div>$ opam install ocamlopt</div><div>
ocamlopt is not a valid versioned package name</div><div>&#39;opam install =
ocamlopt&#39; failed.</div></div><div><br></div></div><div class=3D"gmail_e=
xtra"><br><br><div class=3D"gmail_quote">On Sun, Jul 14, 2013 at 5:07 PM, P=
ALI Gabor Janos <span dir=3D"ltr">&lt;<a href=3D"mailto:pgj@elte.hu" target=
=3D"_blank">pgj@elte.hu</a>&gt;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><div class=3D"im">On Sun, Jul 14, 2013 at 04=
:57:16PM -0400, Phiho Hoang wrote:<br>
&gt; How can I start to learn about &#39;mirage&#39; using a Ubuntu VM, wha=
t do I need<br>
&gt; to install?<br>
<br>
</div>That should be simply just:<br>
<br>
$ opam init<br>
$ opam remote add mirage-dev git://<a href=3D"http://github.com/mirage/opam=
-repo-dev" target=3D"_blank">github.com/mirage/opam-repo-dev</a><br>
$ eval `opam config -env`<br>
$ opam install mirari<br>
$ git clone git://<a href=3D"http://github.com/mirage/mirage-www" target=3D=
"_blank">github.com/mirage/mirage-www</a><br>
$ cd mirage-www<br>
$ make<br>
$ make run<br>
<div class=3D"im"><br>
&gt; It is much appreciated if someone can share a link.<br>
<br>
</div>This information is from the web site: <a href=3D"http://openmirage.o=
rg/wiki/install" target=3D"_blank">http://openmirage.org/wiki/install</a><b=
r>
</blockquote></div><br></div>

--001a11c20b9402816404e1802b10--


From anil@recoil.org Mon Jul 15 09:01:41 2013
Received: from ppsw-33.csi.cam.ac.uk ([131.111.8.133])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1Uydj3-0005fB-Tq (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Mon, 15 Jul 2013 09:01:41 +0100
X-Cam-SpamDetails: score 0.0 from SpamAssassin-3.3.2-1502947
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from recoil.dh.bytemark.co.uk ([89.16.177.154]:31063
	helo=dark.recoil.org)
	by ppsw-33.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.147]:25)
	with smtp id 1Uydj3-0002ZD-hm (Exim 4.80_167-5a66dd3) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Mon, 15 Jul 2013 09:01:41 +0100
Received: (qmail 18131 invoked by uid 634); 15 Jul 2013 08:01:41 -0000
X-Spam-Level: *
X-Spam-Status: No, hits=-1.0 required=5.0
	tests=ALL_TRUSTED
X-Spam-Check-By: dark.recoil.org
Received: from host81-149-102-120.in-addr.btopenworld.com (HELO clink-4.home)
	(81.149.102.120)
	(smtp-auth username remote@recoil.org, mechanism cram-md5)
	by dark.recoil.org (qpsmtpd/0.84) with ESMTPA;
	Mon, 15 Jul 2013 09:01:41 +0100
From: Anil Madhavapeddy <anil@recoil.org>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Subject: Welcome to Gabor Pali (again!)
Date: Mon, 15 Jul 2013 09:01:36 +0100
Message-Id: <059BA745-30AA-457E-85A7-733AC4DAB740@recoil.org>
To: "cl-mirage@lists.cam.ac.uk List" <cl-mirage@lists.cam.ac.uk>
Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\))
X-Mailer: Apple Mail (2.1503)
X-Virus-Checked: Checked by ClamAV on dark.recoil.org
Cc: Robert Watson <robert.watson@cl.cam.ac.uk>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Mon, 15 Jul 2013 08:01:42 -0000
Content-Length: 783
Lines: 17

I just wanted to welcome Gabor Pali back again this summer to the Mirage =
crew.  He's joining us in the Cambridge Computer Lab to resume hacking =
on the Mirage/kernel-FreeBSD backend which he began last summer, working =
with Robert Watson and myself.

Since his first prototype, we've made much progress on stability and =
packaging of the rest of the Mirage libraries.  We're aiming to upstream =
as much as possible of his work into the main trees this time around, =
and also to evaluate the effects of moving the Mirage stack in/out of =
kernel space (in addition to running as a Xen unikernel and userspace =
application).

This mail is a little belated, as Gabor has already submitted about 5 =
pull requests to fix various OPAM and Mirage issues on FreeBSD :-)=20

-anil=


From hohoangphi@gmail.com Mon Jul 15 20:20:49 2013
Received: from ppsw-52.csi.cam.ac.uk ([131.111.8.152])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1UyoKH-0002Ap-KU (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <hohoangphi@gmail.com>); Mon, 15 Jul 2013 20:20:49 +0100
X-Cam-SpamDetails: score 0.6 from SpamAssassin-3.3.2-1502947 
	* -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/,
	low *      trust
	*      [209.85.219.50 listed in list.dnswl.dnsbl.ja.net]
	* 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail
	provider *       (hohoangphi[at]gmail.com)
	*  0.0 DKIM_ADSP_CUSTOM_MED No valid author signature, adsp_override is
	*      CUSTOM_MED
	*  0.0 HTML_MESSAGE BODY: HTML included in message
	*  0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily
	*      valid
	*  0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid
	*  1.2 NML_ADSP_CUSTOM_MED ADSP custom_med hit, and not from a mailing
	*      list
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from mail-oa0-f50.google.com ([209.85.219.50]:54924)
	by ppsw-52.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.148]:25)
	with esmtp id 1UyoKG-00071h-ET (Exim 4.80_167-5a66dd3) for
	cl-mirage@lists.cam.ac.uk
	(return-path <hohoangphi@gmail.com>); Mon, 15 Jul 2013 20:20:49 +0100
Received: by mail-oa0-f50.google.com with SMTP id k7so16394682oag.9
	for <cl-mirage@lists.cam.ac.uk>; Mon, 15 Jul 2013 12:20:47 -0700 (PDT)
MIME-Version: 1.0
X-Received: by 10.182.79.165 with SMTP id k5mr44843752obx.31.1373916047606;
	Mon, 15 Jul 2013 12:20:47 -0700 (PDT)
Received: by 10.76.79.202 with HTTP; Mon, 15 Jul 2013 12:20:47 -0700 (PDT)
In-Reply-To: <CALZQg1ZayoG_r3EwyRAiv_cv3gCPG19DieLViuet9ed73SPf3g@mail.gmail.com>
References: <D2A49680-5CBF-4BA1-B5F9-03EC3DDBB0E7@recoil.org>
	<-2889814563385868015@unknownmsgid>
	<CAG_esB0nm5jNY28yhwsXj0OVgRpyA69ys0mAQCT_ov=sEpwg3g@mail.gmail.com>
	<CALZQg1ZTHYCkEHmzTcTO9rJMxj31ZKzoWt=bxtdT=sMbVdts_Q@mail.gmail.com>
	<20130714210752.GA8321@caesar.elte.hu>
	<CALZQg1ZayoG_r3EwyRAiv_cv3gCPG19DieLViuet9ed73SPf3g@mail.gmail.com>
Date: Mon, 15 Jul 2013 15:20:47 -0400
Message-ID: <CALZQg1YOVO0yP4NMERHifWGxuU1g8T1Jwb=rofdz3N0fTyNwAQ@mail.gmail.com>
Subject: Re: OPAM+Ubuntu test PPA
From: Phiho Hoang <hohoangphi@gmail.com>
To: PALI Gabor Janos <pgj@elte.hu>
Content-Type: multipart/alternative; boundary=089e01293f86f80a9b04e191c19b
Cc: "cl-mirage@lists.cam.ac.uk List" <cl-mirage@lists.cam.ac.uk>,
	David Scott <scott.dj@gmail.com>, Anil Madhavapeddy <anil@recoil.org>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Mon, 15 Jul 2013 19:20:49 -0000
Content-Length: 7114
Lines: 200

--089e01293f86f80a9b04e191c19b
Content-Type: text/plain; charset=ISO-8859-1

Greetings,

Does any one have any idea what is missing in my environment?

I got OCaml-4.00 and OPAM-1.0 "stable" from repo at:

https://launchpad.net/~avsm/+archive/ppa

Thanks for your help.

Regards,

PhiHo



On Sun, Jul 14, 2013 at 6:21 PM, Phiho Hoang <hohoangphi@gmail.com> wrote:

> Hi,
>
> Thank you for the information.
>
> I got an error while doing:
>
> $ opam install mirari
>
> This following also failed:
>
> $ sudo apt-get install  ocamlopt
>
> Please find appended the console output.
>
> Regards,
>
> PhiHo
>
> $ opam install mirari
> ...
> ...
>
> ==== ERROR [while installing obuild.0.0.2] ====
> # opam-version    1.0.0
> # os              linux
> # command         ./bootstrap
> # path            /home/phiho/.opam/system/build/obuild.0.0.2
> # exit-code       127
> # env-file
>  /home/phiho/.opam/system/build/obuild.0.0.2/obuild-ffb3fd.env
> # stdout-file
> /home/phiho/.opam/system/build/obuild.0.0.2/obuild-ffb3fd.out
> # stderr-file
> /home/phiho/.opam/system/build/obuild.0.0.2/obuild-ffb3fd.err
> ### stdout ###
> COMPILING fugue
> ### stderr ###
> ./bootstrap: line 23: ocamlopt.opt: command not found
>
> 'opam install mirari' failed.
>
>
> $ sudo apt-get install  ocamlopt
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> E: Unable to locate package ocamlopt
>
> $ opam install ocamlopt
> ocamlopt is not a valid versioned package name
> 'opam install ocamlopt' failed.
>
>
>
> On Sun, Jul 14, 2013 at 5:07 PM, PALI Gabor Janos <pgj@elte.hu> wrote:
>
>> On Sun, Jul 14, 2013 at 04:57:16PM -0400, Phiho Hoang wrote:
>> > How can I start to learn about 'mirage' using a Ubuntu VM, what do I
>> need
>> > to install?
>>
>> That should be simply just:
>>
>> $ opam init
>> $ opam remote add mirage-dev git://github.com/mirage/opam-repo-dev
>> $ eval `opam config -env`
>> $ opam install mirari
>> $ git clone git://github.com/mirage/mirage-www
>> $ cd mirage-www
>> $ make
>> $ make run
>>
>> > It is much appreciated if someone can share a link.
>>
>> This information is from the web site: http://openmirage.org/wiki/install
>>
>
>

--089e01293f86f80a9b04e191c19b
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Greetings,<div><br></div><div>Does any one have any idea w=
hat is missing in my environment?</div><div><br></div><div><span style=3D"f=
ont-family:arial,sans-serif;font-size:13px">I got OCaml-4.00 and OPAM-1.0 &=
quot;stable&quot; from repo at:</span></div>
<div><br style=3D"font-family:arial,sans-serif;font-size:13px"><a href=3D"h=
ttps://launchpad.net/~avsm/+archive/ppa" target=3D"_blank" style=3D"font-fa=
mily:arial,sans-serif;font-size:13px">https://launchpad.net/~avsm/+archive/=
ppa</a><br>
</div><div><br></div><div>Thanks for your help.</div><div><br></div><div>Re=
gards,</div><div><br></div><div>PhiHo</div><div><br></div></div><div class=
=3D"gmail_extra"><br><br><div class=3D"gmail_quote">On Sun, Jul 14, 2013 at=
 6:21 PM, Phiho Hoang <span dir=3D"ltr">&lt;<a href=3D"mailto:hohoangphi@gm=
ail.com" target=3D"_blank">hohoangphi@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><div dir=3D"ltr"><div>Hi,</div><div><br></di=
v><div>Thank you for the information.</div><div><br></div><div>I got an err=
or while doing:</div>
<div><span style=3D"font-family:arial,sans-serif;font-size:13px"><br></span=
></div><div>
<span style=3D"font-family:arial,sans-serif;font-size:13px">$ opam install =
mirari</span><br></div><div><span style=3D"font-family:arial,sans-serif;fon=
t-size:13px"><br></span></div><div><span style=3D"font-family:arial,sans-se=
rif;font-size:13px">This following also failed:</span></div>

<div><span style=3D"font-family:arial,sans-serif;font-size:13px"><br></span=
></div><div>$ sudo apt-get install =A0ocamlopt<br></div><div><br></div><div=
>Please find appended the console output.</div><div><br></div><div>Regards,=
</div>

<div><br></div><div>PhiHo</div><div><br></div><div><span style=3D"font-fami=
ly:arial,sans-serif;font-size:13px">$ opam install mirari</span><br></div><=
div><span style=3D"font-family:arial,sans-serif;font-size:13px">...</span><=
/div>

<div><span style=3D"font-family:arial,sans-serif;font-size:13px">...</span>=
</div><div><span style=3D"font-family:arial,sans-serif;font-size:13px"><br>=
</span></div><div>=3D=3D=3D=3D ERROR [while installing obuild.0.0.2] =3D=3D=
=3D=3D</div><div>

# opam-version =A0 =A01.0.0</div><div># os =A0 =A0 =A0 =A0 =A0 =A0 =A0linux=
</div><div># command =A0 =A0 =A0 =A0 ./bootstrap</div><div># path =A0 =A0 =
=A0 =A0 =A0 =A0/home/phiho/.opam/system/build/obuild.0.0.2</div><div># exit=
-code =A0 =A0 =A0 127</div><div># env-file =A0 =A0 =A0 =A0/home/phiho/.opam=
/system/build/obuild.0.0.2/obuild-ffb3fd.env</div>

<div># stdout-file =A0 =A0 /home/phiho/.opam/system/build/obuild.0.0.2/obui=
ld-ffb3fd.out</div><div># stderr-file =A0 =A0 /home/phiho/.opam/system/buil=
d/obuild.0.0.2/obuild-ffb3fd.err</div><div>### stdout ###</div><div>COMPILI=
NG fugue</div>

<div>### stderr ###</div><div>./bootstrap: line 23: ocamlopt.opt: command n=
ot found</div><div><br></div><div>&#39;opam install mirari&#39; failed.</di=
v><div><br></div><div><br></div><div>$ sudo apt-get install =A0ocamlopt</di=
v>

<div>Reading package lists... Done</div><div>Building dependency tree</div>=
<div>Reading state information... Done</div><div>E: Unable to locate packag=
e ocamlopt</div><div><br></div><div><div>$ opam install ocamlopt</div>
<div>
ocamlopt is not a valid versioned package name</div><div>&#39;opam install =
ocamlopt&#39; failed.</div></div><div><br></div></div><div class=3D"HOEnZb"=
><div class=3D"h5"><div class=3D"gmail_extra"><br><br><div class=3D"gmail_q=
uote">
On Sun, Jul 14, 2013 at 5:07 PM, PALI Gabor Janos <span dir=3D"ltr">&lt;<a =
href=3D"mailto:pgj@elte.hu" target=3D"_blank">pgj@elte.hu</a>&gt;</span> wr=
ote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><div>On Sun, Jul 14, 2013 at 04:57:16PM -040=
0, Phiho Hoang wrote:<br>
&gt; How can I start to learn about &#39;mirage&#39; using a Ubuntu VM, wha=
t do I need<br>
&gt; to install?<br>
<br>
</div>That should be simply just:<br>
<br>
$ opam init<br>
$ opam remote add mirage-dev git://<a href=3D"http://github.com/mirage/opam=
-repo-dev" target=3D"_blank">github.com/mirage/opam-repo-dev</a><br>
$ eval `opam config -env`<br>
$ opam install mirari<br>
$ git clone git://<a href=3D"http://github.com/mirage/mirage-www" target=3D=
"_blank">github.com/mirage/mirage-www</a><br>
$ cd mirage-www<br>
$ make<br>
$ make run<br>
<div><br>
&gt; It is much appreciated if someone can share a link.<br>
<br>
</div>This information is from the web site: <a href=3D"http://openmirage.o=
rg/wiki/install" target=3D"_blank">http://openmirage.org/wiki/install</a><b=
r>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>

--089e01293f86f80a9b04e191c19b--


From anil@recoil.org Mon Jul 15 21:54:26 2013
Received: from ppsw-52.csi.cam.ac.uk ([131.111.8.152])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1Uypms-0003AP-12 (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Mon, 15 Jul 2013 21:54:26 +0100
X-Cam-SpamDetails: score 0.0 from SpamAssassin-3.3.2-1502947 
	*  0.0 HTML_MESSAGE BODY: HTML included in message
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from recoil.dh.bytemark.co.uk ([89.16.177.154]:20251
	helo=dark.recoil.org)
	by ppsw-52.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.148]:25)
	with smtp id 1Uypmq-0005Fl-FP (Exim 4.80_167-5a66dd3) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Mon, 15 Jul 2013 21:54:26 +0100
Received: (qmail 28260 invoked by uid 634); 15 Jul 2013 20:54:24 -0000
X-Spam-Level: *
X-Spam-Status: No, hits=-1.0 required=5.0
	tests=ALL_TRUSTED,HTML_MESSAGE
X-Spam-Check-By: dark.recoil.org
Received: from cpc7-cmbg14-2-0-cust238.5-4.cable.virginmedia.com (HELO
	[192.168.1.125]) (86.30.244.239)
	(smtp-auth username remote@recoil.org, mechanism cram-md5)
	by dark.recoil.org (qpsmtpd/0.84) with ESMTPA;
	Mon, 15 Jul 2013 21:54:23 +0100
Content-Type: multipart/alternative;
	boundary="Apple-Mail=_E4C87673-C485-4406-8459-91FA79D0F7CD"
Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\))
Subject: Re: OPAM+Ubuntu test PPA
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <CALZQg1YOVO0yP4NMERHifWGxuU1g8T1Jwb=rofdz3N0fTyNwAQ@mail.gmail.com>
Date: Mon, 15 Jul 2013 21:54:22 +0100
Message-Id: <4949C24E-7937-443E-BD4C-E3C718F00BEB@recoil.org>
References: <D2A49680-5CBF-4BA1-B5F9-03EC3DDBB0E7@recoil.org>
	<-2889814563385868015@unknownmsgid>
	<CAG_esB0nm5jNY28yhwsXj0OVgRpyA69ys0mAQCT_ov=sEpwg3g@mail.gmail.com>
	<CALZQg1ZTHYCkEHmzTcTO9rJMxj31ZKzoWt=bxtdT=sMbVdts_Q@mail.gmail.com>
	<20130714210752.GA8321@caesar.elte.hu>
	<CALZQg1ZayoG_r3EwyRAiv_cv3gCPG19DieLViuet9ed73SPf3g@mail.gmail.com>
	<CALZQg1YOVO0yP4NMERHifWGxuU1g8T1Jwb=rofdz3N0fTyNwAQ@mail.gmail.com>
To: Phiho Hoang <hohoangphi@gmail.com>
X-Mailer: Apple Mail (2.1503)
X-Virus-Checked: Checked by ClamAV on dark.recoil.org
Cc: PALI Gabor Janos <pgj@elte.hu>, David Scott <scott.dj@gmail.com>,
	"cl-mirage@lists.cam.ac.uk List" <cl-mirage@lists.cam.ac.uk>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Mon, 15 Jul 2013 20:54:26 -0000
Content-Length: 8186
Lines: 165


--Apple-Mail=_E4C87673-C485-4406-8459-91FA79D0F7CD
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=iso-8859-1

Read the output:
### stderr ###
./bootstrap: line 23: ocamlopt.opt: command not found

You need to install the native version of the OCaml compilers (the =
ocaml-native-compilers package).

-anil

On 15 Jul 2013, at 20:20, Phiho Hoang <hohoangphi@gmail.com> wrote:

> Greetings,
>=20
> Does any one have any idea what is missing in my environment?
>=20
> I got OCaml-4.00 and OPAM-1.0 "stable" from repo at:
>=20
> https://launchpad.net/~avsm/+archive/ppa
>=20
> Thanks for your help.
>=20
> Regards,
>=20
> PhiHo
>=20
>=20
>=20
> On Sun, Jul 14, 2013 at 6:21 PM, Phiho Hoang <hohoangphi@gmail.com> =
wrote:
> Hi,
>=20
> Thank you for the information.
>=20
> I got an error while doing:
>=20
> $ opam install mirari
>=20
> This following also failed:
>=20
> $ sudo apt-get install  ocamlopt
>=20
> Please find appended the console output.
>=20
> Regards,
>=20
> PhiHo
>=20
> $ opam install mirari
> ...
> ...
>=20
> =3D=3D=3D=3D ERROR [while installing obuild.0.0.2] =3D=3D=3D=3D
> # opam-version    1.0.0
> # os              linux
> # command         ./bootstrap
> # path            /home/phiho/.opam/system/build/obuild.0.0.2
> # exit-code       127
> # env-file        =
/home/phiho/.opam/system/build/obuild.0.0.2/obuild-ffb3fd.env
> # stdout-file     =
/home/phiho/.opam/system/build/obuild.0.0.2/obuild-ffb3fd.out
> # stderr-file     =
/home/phiho/.opam/system/build/obuild.0.0.2/obuild-ffb3fd.err
> ### stdout ###
> COMPILING fugue
> ### stderr ###
> ./bootstrap: line 23: ocamlopt.opt: command not found
>=20
> 'opam install mirari' failed.
>=20
>=20
> $ sudo apt-get install  ocamlopt
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> E: Unable to locate package ocamlopt
>=20
> $ opam install ocamlopt
> ocamlopt is not a valid versioned package name
> 'opam install ocamlopt' failed.
>=20
>=20
>=20
> On Sun, Jul 14, 2013 at 5:07 PM, PALI Gabor Janos <pgj@elte.hu> wrote:
> On Sun, Jul 14, 2013 at 04:57:16PM -0400, Phiho Hoang wrote:
> > How can I start to learn about 'mirage' using a Ubuntu VM, what do I =
need
> > to install?
>=20
> That should be simply just:
>=20
> $ opam init
> $ opam remote add mirage-dev git://github.com/mirage/opam-repo-dev
> $ eval `opam config -env`
> $ opam install mirari
> $ git clone git://github.com/mirage/mirage-www
> $ cd mirage-www
> $ make
> $ make run
>=20
> > It is much appreciated if someone can share a link.
>=20
> This information is from the web site: =
http://openmirage.org/wiki/install
>=20
>=20


--Apple-Mail=_E4C87673-C485-4406-8459-91FA79D0F7CD
Content-Transfer-Encoding: 7bit
Content-Type: text/html;
	charset=iso-8859-1

<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Read the output:</div><div>### stderr ###</div><div>./bootstrap: line 23: ocamlopt.opt: command not found</div><div><br></div><div>You need to install the native version of the OCaml compilers (the ocaml-native-compilers package).</div><div><br></div><div>-anil</div><div><br></div><div><div>On 15 Jul 2013, at 20:20, Phiho Hoang &lt;<a href="mailto:hohoangphi@gmail.com">hohoangphi@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Greetings,<div><br></div><div>Does any one have any idea what is missing in my environment?</div><div><br></div><div><span style="font-family:arial,sans-serif;font-size:13px">I got OCaml-4.00 and OPAM-1.0 "stable" from repo at:</span></div>
<div><br style="font-family:arial,sans-serif;font-size:13px"><a href="https://launchpad.net/~avsm/+archive/ppa" target="_blank" style="font-family:arial,sans-serif;font-size:13px">https://launchpad.net/~avsm/+archive/ppa</a><br>
</div><div><br></div><div>Thanks for your help.</div><div><br></div><div>Regards,</div><div><br></div><div>PhiHo</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Jul 14, 2013 at 6:21 PM, Phiho Hoang <span dir="ltr">&lt;<a href="mailto:hohoangphi@gmail.com" target="_blank">hohoangphi@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi,</div><div><br></div><div>Thank you for the information.</div><div><br></div><div>I got an error while doing:</div>
<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div>
<span style="font-family:arial,sans-serif;font-size:13px">$ opam install mirari</span><br></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">This following also failed:</span></div>

<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div>$ sudo apt-get install &nbsp;ocamlopt<br></div><div><br></div><div>Please find appended the console output.</div><div><br></div><div>Regards,</div>

<div><br></div><div>PhiHo</div><div><br></div><div><span style="font-family:arial,sans-serif;font-size:13px">$ opam install mirari</span><br></div><div><span style="font-family:arial,sans-serif;font-size:13px">...</span></div>

<div><span style="font-family:arial,sans-serif;font-size:13px">...</span></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div>==== ERROR [while installing obuild.0.0.2] ====</div><div>

# opam-version &nbsp; &nbsp;1.0.0</div><div># os &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;linux</div><div># command &nbsp; &nbsp; &nbsp; &nbsp; ./bootstrap</div><div># path &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;/home/phiho/.opam/system/build/obuild.0.0.2</div><div># exit-code &nbsp; &nbsp; &nbsp; 127</div><div># env-file &nbsp; &nbsp; &nbsp; &nbsp;/home/phiho/.opam/system/build/obuild.0.0.2/obuild-ffb3fd.env</div>

<div># stdout-file &nbsp; &nbsp; /home/phiho/.opam/system/build/obuild.0.0.2/obuild-ffb3fd.out</div><div># stderr-file &nbsp; &nbsp; /home/phiho/.opam/system/build/obuild.0.0.2/obuild-ffb3fd.err</div><div>### stdout ###</div><div>COMPILING fugue</div>

<div>### stderr ###</div><div>./bootstrap: line 23: ocamlopt.opt: command not found</div><div><br></div><div>'opam install mirari' failed.</div><div><br></div><div><br></div><div>$ sudo apt-get install &nbsp;ocamlopt</div>

<div>Reading package lists... Done</div><div>Building dependency tree</div><div>Reading state information... Done</div><div>E: Unable to locate package ocamlopt</div><div><br></div><div><div>$ opam install ocamlopt</div>
<div>
ocamlopt is not a valid versioned package name</div><div>'opam install ocamlopt' failed.</div></div><div><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">
On Sun, Jul 14, 2013 at 5:07 PM, PALI Gabor Janos <span dir="ltr">&lt;<a href="mailto:pgj@elte.hu" target="_blank">pgj@elte.hu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>On Sun, Jul 14, 2013 at 04:57:16PM -0400, Phiho Hoang wrote:<br>
&gt; How can I start to learn about 'mirage' using a Ubuntu VM, what do I need<br>
&gt; to install?<br>
<br>
</div>That should be simply just:<br>
<br>
$ opam init<br>
$ opam remote add mirage-dev git://<a href="http://github.com/mirage/opam-repo-dev" target="_blank">github.com/mirage/opam-repo-dev</a><br>
$ eval `opam config -env`<br>
$ opam install mirari<br>
$ git clone git://<a href="http://github.com/mirage/mirage-www" target="_blank">github.com/mirage/mirage-www</a><br>
$ cd mirage-www<br>
$ make<br>
$ make run<br>
<div><br>
&gt; It is much appreciated if someone can share a link.<br>
<br>
</div>This information is from the web site: <a href="http://openmirage.org/wiki/install" target="_blank">http://openmirage.org/wiki/install</a><br>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</blockquote></div><br></body></html>
--Apple-Mail=_E4C87673-C485-4406-8459-91FA79D0F7CD--


From jamesjb@gmail.com Mon Jul 15 22:59:33 2013
Received: from ppsw-33.csi.cam.ac.uk ([131.111.8.133])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1Uyqnt-0003n6-EX (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <jamesjb@gmail.com>); Mon, 15 Jul 2013 22:59:33 +0100
X-Cam-SpamDetails: score 0.6 from SpamAssassin-3.3.2-1502947 
	* -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/,
	low *      trust
	*      [209.85.212.41 listed in list.dnswl.dnsbl.ja.net]
	* 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail
	provider *       (jamesjb[at]gmail.com)
	*  0.0 DKIM_ADSP_CUSTOM_MED No valid author signature, adsp_override is
	*      CUSTOM_MED
	*  0.0 HTML_MESSAGE BODY: HTML included in message
	*  0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily
	*      valid
	*  0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid
	*  1.2 NML_ADSP_CUSTOM_MED ADSP custom_med hit, and not from a mailing
	*      list
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from mail-vb0-f41.google.com ([209.85.212.41]:48771)
	by ppsw-33.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.147]:25)
	with esmtp id 1Uyqns-0005Ri-ht (Exim 4.80_167-5a66dd3) for
	cl-mirage@lists.cam.ac.uk
	(return-path <jamesjb@gmail.com>); Mon, 15 Jul 2013 22:59:33 +0100
Received: by mail-vb0-f41.google.com with SMTP id p13so3524838vbe.14
	for <cl-mirage@lists.cam.ac.uk>; Mon, 15 Jul 2013 14:59:31 -0700 (PDT)
MIME-Version: 1.0
X-Received: by 10.221.21.74 with SMTP id qr10mr28834482vcb.25.1373925571853;
	Mon, 15 Jul 2013 14:59:31 -0700 (PDT)
Received: by 10.58.68.129 with HTTP; Mon, 15 Jul 2013 14:59:31 -0700 (PDT)
In-Reply-To: <CAODgTdMRoYOA3kNffRU7JkejPVarebPrR_mWvq4wuKcqWKTbyw@mail.gmail.com>
References: <CAODgTdNK89XwBHcZL5i2vMdWVqFJNJEKjOnAOSWgewX2uZqx0g@mail.gmail.com>
	<CAG_esB2QKbWzj1FL8pzwh95H7iWv22rEWSv-xyahSErCWuA2sg@mail.gmail.com>
	<CAODgTdMRoYOA3kNffRU7JkejPVarebPrR_mWvq4wuKcqWKTbyw@mail.gmail.com>
Date: Mon, 15 Jul 2013 14:59:31 -0700
Message-ID: <CAODgTdMctDb3SdG3vRcQ5bL1nqpB485zK7U9RfDR-i4iT9J1ow@mail.gmail.com>
Subject: Re: Mirage Xenstore Stub Domain
From: James Bielman <jamesjb@gmail.com>
To: David Scott <scott.dj@gmail.com>
Content-Type: multipart/alternative; boundary=001a1133a182a880dc04e193f987
Cc: Mirage List <cl-mirage@lists.cam.ac.uk>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Mon, 15 Jul 2013 21:59:33 -0000
Content-Length: 7971
Lines: 187

--001a1133a182a880dc04e193f987
Content-Type: text/plain; charset=ISO-8859-1

I've hit another snag with the Xenstore stub domain.  I've built
"ocaml-xenstore-xen" with Mirari, and I'm launching it early in the dom0
boot process with "init-xenstore-domain".  The xenstore kernel seems to
hang with 100% CPU usage trying to write to the console (which makes some
sense to me, since nothing is reading from the ring buffer yet).  My guess
is that the loop in "OS.Console.write_all" is the culprit---if I stub this
function out to return zero, it starts up and works just fine.

I've been trying to figure out if this is a bootstrapping issue that's
somewhat unavoidable or a bug, but I don't yet have enough of a handle on
how LWT works to be sure.

James



On Mon, Jul 8, 2013 at 4:25 PM, James Bielman <jamesjb@gmail.com> wrote:

> Thanks! It builds for me now after following your process and hacking up a
> quick and dirty mirari config file.
>
> Cheers,
> James
>
>
> On Mon, Jul 8, 2013 at 3:10 PM, David Scott <scott.dj@gmail.com> wrote:
>
>> Hi James,
>>
>> I think you're right -- some key interfaces have changed. Since some of
>> the changes are fairly fresh in my memory, I did a first pass at fixing the
>> code.
>>
>> The blog post is a bit out of date now. The best way to start is to:
>>
>> opam init
>> opam switch 4.00.1
>> opam remote add xapi-project git://github.com/xapi-project/opam-repo-dev
>> opam remote add mirage git://github.com/mirage/opam-repo-dev
>> opam install mirage-xen xenstore
>>
>> and then clone the repo and build in the 'xen' directory. For me the
>> files compile but fail to link. The next thing to do is to investigate
>> using the 'mirari' tool to link a xen kernel, like the other examples in
>> the mirage/mirage-skeleton repo. This is fallout from the recent (very good
>> IMHO) change to avoid using a special 'opam compiler switch' to install
>> mirage kernels. You can now use a regular (unpatched) compiler and link in
>> the 'mirage-xen' package.
>>
>> Sorry for the build breakage!
>>
>> Cheers
>> Dave
>>
>>
>> On Mon, Jul 8, 2013 at 10:10 PM, James Bielman <jamesjb@gmail.com> wrote:
>>
>>> Hi all,
>>>
>>> I am attempting to build the Mirage Xenstore stub domain by following
>>> these instructions on the Mirage blog:
>>>
>>>   http://www.openmirage.org/blog/xenstore-stub-domain
>>>
>>> However, I'm running into some trouble---it looks like the interfaces
>>> for shared memory rings and grant tables have changed since the
>>> "xs_transport_domain" module was written.  I'm using Mirage as installed
>>> from "opam" and the "ocaml-xenstore-xen" module from the Git repository at:
>>>
>>>    git://github.com/djs55/ocaml-xenstore-xen
>>>
>>> Is there is an updated repository elsewhere that works with the latest
>>> Mirage?  If not, I may take a stab at bringing it up to date, and would
>>> appreciate any insight available on gotchas I might run into.
>>>
>>> Thanks,
>>> James
>>>
>>>
>>
>>
>> --
>> Dave Scott
>>
>
>

--001a1133a182a880dc04e193f987
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>I&#39;ve hit another snag with the Xenstore stub doma=
in. =A0I&#39;ve built &quot;ocaml-xenstore-xen&quot; with Mirari, and I&#39=
;m launching it early in the dom0 boot process with &quot;init-xenstore-dom=
ain&quot;. =A0The xenstore kernel seems to hang with 100% CPU usage trying =
to write to the console (which makes some sense to me, since nothing is rea=
ding from the ring buffer yet). =A0My guess is that the loop in &quot;OS.Co=
nsole.write_all&quot; is the culprit---if I stub this function out to retur=
n zero, it starts up and works just fine.</div>
<div><br></div><div>I&#39;ve been trying to figure out if this is a bootstr=
apping issue that&#39;s somewhat unavoidable or a bug, but I don&#39;t yet =
have enough of a handle on how LWT works to be sure.</div><div><br></div>
<div>James<br></div><div><br></div></div><div class=3D"gmail_extra"><br><br=
><div class=3D"gmail_quote">On Mon, Jul 8, 2013 at 4:25 PM, James Bielman <=
span dir=3D"ltr">&lt;<a href=3D"mailto:jamesjb@gmail.com" target=3D"_blank"=
>jamesjb@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><div dir=3D"ltr">Thanks! It builds for me no=
w after following your process and hacking up a quick and dirty mirari conf=
ig file.<div>
<br></div><div>Cheers,</div><div>James</div></div><div class=3D"HOEnZb"><di=
v class=3D"h5"><div class=3D"gmail_extra"><br><br><div class=3D"gmail_quote=
">
On Mon, Jul 8, 2013 at 3:10 PM, David Scott <span dir=3D"ltr">&lt;<a href=
=3D"mailto:scott.dj@gmail.com" target=3D"_blank">scott.dj@gmail.com</a>&gt;=
</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .=
8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir=3D"ltr">Hi James,<div><br></div><div>I think you&#39;re right -- s=
ome key interfaces have changed. Since some of the changes are fairly fresh=
 in my memory, I did a first pass at fixing the code.</div><div>
<br></div><div>The blog post is a bit out of date now. The best way to star=
t is to:</div><div><br></div><div>opam init</div><div>opam switch 4.00.1</d=
iv><div>opam remote add xapi-project git://<a href=3D"http://github.com/xap=
i-project/opam-repo-dev" target=3D"_blank">github.com/xapi-project/opam-rep=
o-dev</a></div>


<div>opam remote add mirage git://<a href=3D"http://github.com/mirage/opam-=
repo-dev" target=3D"_blank">github.com/mirage/opam-repo-dev</a></div><div>o=
pam install mirage-xen xenstore</div><div><br></div><div>and then clone the=
 repo and build in the &#39;xen&#39; directory. For me the files compile bu=
t fail to link. The next thing to do is to investigate using the &#39;mirar=
i&#39; tool to link a xen kernel, like the other examples in the mirage/mir=
age-skeleton repo. This is fallout from the recent (very good IMHO) change =
to avoid using a special &#39;opam compiler switch&#39; to install mirage k=
ernels. You can now use a regular (unpatched) compiler and link in the &#39=
;mirage-xen&#39; package.</div>


<div><br></div><div>Sorry for the build breakage!</div><div><br></div><div>=
Cheers</div><div>Dave</div></div><div class=3D"gmail_extra"><div><div><br><=
br><div class=3D"gmail_quote">On Mon, Jul 8, 2013 at 10:10 PM, James Bielma=
n <span dir=3D"ltr">&lt;<a href=3D"mailto:jamesjb@gmail.com" target=3D"_bla=
nk">jamesjb@gmail.com</a>&gt;</span> wrote:<br>


<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><div dir=3D"ltr"><div>Hi all,</div><div><br>=
</div><div>I am attempting to build the Mirage Xenstore stub domain by foll=
owing these instructions on the Mirage blog:<br>


</div>
<br>
=A0 <a href=3D"http://www.openmirage.org/blog/xenstore-stub-domain" target=
=3D"_blank">http://www.openmirage.org/blog/xenstore-stub-domain</a><br>
<br>
However, I&#39;m running into some trouble---it looks like the interfaces f=
or shared memory rings and grant tables have changed since=20
the &quot;xs_transport_domain&quot; module was written.=A0 I&#39;m using Mi=
rage as=20
installed from &quot;opam&quot; and the &quot;ocaml-xenstore-xen&quot; modu=
le from the Git=20
repository at:<br>
<br>
=A0=A0 git://<a href=3D"http://github.com/djs55/ocaml-xenstore-xen" target=
=3D"_blank">github.com/djs55/ocaml-xenstore-xen</a><br>
<br>
Is there is an updated repository elsewhere that works with the latest Mira=
ge? =A0If not, I may take a stab at bringing it up to date, and would appre=
ciate any insight available on gotchas I might run into.<br><div><br></div>



<div>Thanks,</div><div>James</div><div><br></div></div>
</blockquote></div><br><br clear=3D"all"><div><br></div></div></div><span><=
font color=3D"#888888">-- <br>Dave Scott
</font></span></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>

--001a1133a182a880dc04e193f987--


From anil@recoil.org Mon Jul 15 23:40:21 2013
Received: from ppsw-mx-f.csi.cam.ac.uk ([131.111.8.149]
	helo=ppsw-42.csi.cam.ac.uk)
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1UyrRN-00043k-D8 (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Mon, 15 Jul 2013 23:40:21 +0100
X-Cam-SpamDetails: score 0.0 from SpamAssassin-3.3.2-1502947
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from recoil.dh.bytemark.co.uk ([89.16.177.154]:31784
	helo=dark.recoil.org)
	by ppsw-42.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.149]:25)
	with smtp id 1UyrRM-0002be-7r (Exim 4.80_167-5a66dd3) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Mon, 15 Jul 2013 23:40:21 +0100
Received: (qmail 23441 invoked by uid 634); 15 Jul 2013 22:40:19 -0000
X-Spam-Level: *
X-Spam-Status: No, hits=-1.0 required=5.0
	tests=ALL_TRUSTED
X-Spam-Check-By: dark.recoil.org
Received: from cpc7-cmbg14-2-0-cust238.5-4.cable.virginmedia.com (HELO
	[192.168.1.125]) (86.30.244.239)
	(smtp-auth username remote@recoil.org, mechanism cram-md5)
	by dark.recoil.org (qpsmtpd/0.84) with ESMTPA;
	Mon, 15 Jul 2013 23:40:18 +0100
Content-Type: text/plain; charset=iso-8859-1
Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\))
Subject: Re: Mirage Xenstore Stub Domain
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <CAODgTdMctDb3SdG3vRcQ5bL1nqpB485zK7U9RfDR-i4iT9J1ow@mail.gmail.com>
Date: Mon, 15 Jul 2013 23:40:17 +0100
Content-Transfer-Encoding: quoted-printable
Message-Id: <70B9EF9B-635E-4FE0-9D8B-0D46C16EF455@recoil.org>
References: <CAODgTdNK89XwBHcZL5i2vMdWVqFJNJEKjOnAOSWgewX2uZqx0g@mail.gmail.com>
	<CAG_esB2QKbWzj1FL8pzwh95H7iWv22rEWSv-xyahSErCWuA2sg@mail.gmail.com>
	<CAODgTdMRoYOA3kNffRU7JkejPVarebPrR_mWvq4wuKcqWKTbyw@mail.gmail.com>
	<CAODgTdMctDb3SdG3vRcQ5bL1nqpB485zK7U9RfDR-i4iT9J1ow@mail.gmail.com>
To: James Bielman <jamesjb@gmail.com>
X-Mailer: Apple Mail (2.1503)
X-Virus-Checked: Checked by ClamAV on dark.recoil.org
Cc: Mirage List <cl-mirage@lists.cam.ac.uk>, David Scott <scott.dj@gmail.com>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Mon, 15 Jul 2013 22:40:21 -0000
Content-Length: 3258
Lines: 99

It would certainly be nicer to arrange for the Xenstore stub domain to =
have access to an emergency console ring in this case.  Is there a =
Xenconsoled stub domain too, Dave, or would this have to be the =
hypervisor console ring?

-anil

On 15 Jul 2013, at 22:59, James Bielman <jamesjb@gmail.com> wrote:

> I've hit another snag with the Xenstore stub domain.  I've built =
"ocaml-xenstore-xen" with Mirari, and I'm launching it early in the dom0 =
boot process with "init-xenstore-domain".  The xenstore kernel seems to =
hang with 100% CPU usage trying to write to the console (which makes =
some sense to me, since nothing is reading from the ring buffer yet).  =
My guess is that the loop in "OS.Console.write_all" is the culprit---if =
I stub this function out to return zero, it starts up and works just =
fine.
>=20
> I've been trying to figure out if this is a bootstrapping issue that's =
somewhat unavoidable or a bug, but I don't yet have enough of a handle =
on how LWT works to be sure.
>=20
> James
>=20
>=20
>=20
> On Mon, Jul 8, 2013 at 4:25 PM, James Bielman <jamesjb@gmail.com> =
wrote:
> Thanks! It builds for me now after following your process and hacking =
up a quick and dirty mirari config file.
>=20
> Cheers,
> James
>=20
>=20
> On Mon, Jul 8, 2013 at 3:10 PM, David Scott <scott.dj@gmail.com> =
wrote:
> Hi James,
>=20
> I think you're right -- some key interfaces have changed. Since some =
of the changes are fairly fresh in my memory, I did a first pass at =
fixing the code.
>=20
> The blog post is a bit out of date now. The best way to start is to:
>=20
> opam init
> opam switch 4.00.1
> opam remote add xapi-project =
git://github.com/xapi-project/opam-repo-dev
> opam remote add mirage git://github.com/mirage/opam-repo-dev
> opam install mirage-xen xenstore
>=20
> and then clone the repo and build in the 'xen' directory. For me the =
files compile but fail to link. The next thing to do is to investigate =
using the 'mirari' tool to link a xen kernel, like the other examples in =
the mirage/mirage-skeleton repo. This is fallout from the recent (very =
good IMHO) change to avoid using a special 'opam compiler switch' to =
install mirage kernels. You can now use a regular (unpatched) compiler =
and link in the 'mirage-xen' package.
>=20
> Sorry for the build breakage!
>=20
> Cheers
> Dave
>=20
>=20
> On Mon, Jul 8, 2013 at 10:10 PM, James Bielman <jamesjb@gmail.com> =
wrote:
> Hi all,
>=20
> I am attempting to build the Mirage Xenstore stub domain by following =
these instructions on the Mirage blog:
>=20
>   http://www.openmirage.org/blog/xenstore-stub-domain
>=20
> However, I'm running into some trouble---it looks like the interfaces =
for shared memory rings and grant tables have changed since the =
"xs_transport_domain" module was written.  I'm using Mirage as installed =
from "opam" and the "ocaml-xenstore-xen" module from the Git  repository =
at:
>=20
>    git://github.com/djs55/ocaml-xenstore-xen
>=20
> Is there is an updated repository elsewhere that works with the latest =
Mirage?  If not, I may take a stab at bringing it up to date, and would =
appreciate any insight available on gotchas I might run into.
>=20
> Thanks,
> James
>=20
>=20
>=20
>=20
> --=20
> Dave Scott
>=20
>=20



From hohoangphi@gmail.com Tue Jul 16 01:21:48 2013
Received: from ppsw-33.csi.cam.ac.uk ([131.111.8.133])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1Uyt1Y-0005if-Kz (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <hohoangphi@gmail.com>); Tue, 16 Jul 2013 01:21:48 +0100
X-Cam-SpamDetails: score 0.6 from SpamAssassin-3.3.2-1502947 
	* -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/,
	low *      trust
	*      [209.85.219.50 listed in list.dnswl.dnsbl.ja.net]
	* 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail
	provider *       (hohoangphi[at]gmail.com)
	*  0.0 DKIM_ADSP_CUSTOM_MED No valid author signature, adsp_override is
	*      CUSTOM_MED
	*  0.0 HTML_MESSAGE BODY: HTML included in message
	*  0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily
	*      valid
	*  0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid
	*  1.2 NML_ADSP_CUSTOM_MED ADSP custom_med hit, and not from a mailing
	*      list
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from mail-oa0-f50.google.com ([209.85.219.50]:51711)
	by ppsw-33.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.147]:25)
	with esmtp id 1Uyt1X-0008W7-h4 (Exim 4.80_167-5a66dd3) for
	cl-mirage@lists.cam.ac.uk
	(return-path <hohoangphi@gmail.com>); Tue, 16 Jul 2013 01:21:48 +0100
Received: by mail-oa0-f50.google.com with SMTP id k7so79033oag.9
	for <cl-mirage@lists.cam.ac.uk>; Mon, 15 Jul 2013 17:21:46 -0700 (PDT)
MIME-Version: 1.0
X-Received: by 10.60.54.39 with SMTP id g7mr44902522oep.18.1373934106348; Mon,
	15 Jul 2013 17:21:46 -0700 (PDT)
Received: by 10.76.79.202 with HTTP; Mon, 15 Jul 2013 17:21:46 -0700 (PDT)
In-Reply-To: <4949C24E-7937-443E-BD4C-E3C718F00BEB@recoil.org>
References: <D2A49680-5CBF-4BA1-B5F9-03EC3DDBB0E7@recoil.org>
	<-2889814563385868015@unknownmsgid>
	<CAG_esB0nm5jNY28yhwsXj0OVgRpyA69ys0mAQCT_ov=sEpwg3g@mail.gmail.com>
	<CALZQg1ZTHYCkEHmzTcTO9rJMxj31ZKzoWt=bxtdT=sMbVdts_Q@mail.gmail.com>
	<20130714210752.GA8321@caesar.elte.hu>
	<CALZQg1ZayoG_r3EwyRAiv_cv3gCPG19DieLViuet9ed73SPf3g@mail.gmail.com>
	<CALZQg1YOVO0yP4NMERHifWGxuU1g8T1Jwb=rofdz3N0fTyNwAQ@mail.gmail.com>
	<4949C24E-7937-443E-BD4C-E3C718F00BEB@recoil.org>
Date: Mon, 15 Jul 2013 20:21:46 -0400
Message-ID: <CALZQg1YnaEhb42jGb11ze406pM6E7nXxRt-fNb_z=e7adrNapA@mail.gmail.com>
Subject: Re: OPAM+Ubuntu test PPA
From: Phiho Hoang <hohoangphi@gmail.com>
To: Anil Madhavapeddy <anil@recoil.org>
Content-Type: multipart/alternative; boundary=089e01161db05a92f204e195f674
Cc: PALI Gabor Janos <pgj@elte.hu>, David Scott <scott.dj@gmail.com>,
	"cl-mirage@lists.cam.ac.uk List" <cl-mirage@lists.cam.ac.uk>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Tue, 16 Jul 2013 00:21:48 -0000
Content-Length: 16511
Lines: 404

--089e01161db05a92f204e195f674
Content-Type: text/plain; charset=ISO-8859-1

Hi,

> You need to install the native version of the OCaml compilers (the
ocaml-native-compilers package).

Thanks for the tip. I've been trying to install ocamlopt package.

I also installed 'camlp4-extra' package and now I got this error  (while
Installing cow.0.6.1):

Camlp4: Uncaught exception: DynLoader.Error ("xmlm.cma", "file not found in
path")

Where can I get this "xmlm.cma", where should it be found?

Please find appended below the full error:

Thanks for your help.

Regards,

PhiHo

=-=-= Installing cow.0.6.1 =-=-=
Downloading http://opam.ocamlpro.com/archives/cow.0.6.1+opam.tar.gz.
Extracting /home/phiho/.opam/archives/cow.0.6.1+opam.tar.gz.
Building cow.0.6.1:
  make all
  make install
Installing cow.0.6.1.
[mirari] Creating ./filesystem_static.ml.
[mirari] + Executing: mir-crunch -o ./filesystem_static.ml -name "static"
./../files
[mirari] Creating ./filesystem_templates.ml.
[mirari] + Executing: mir-crunch -o ./filesystem_templates.ml -name
"templates" ./../tmpl
[mirari] + Executing: obuild configure
Configuring www-0.0.0...
warning: obuild META search paths and ocaml config mismatch

  The ocamlfind configuration file used doesn't list the ocaml standard
library
  as part of his search paths. something fishy is going on
  You can solve the issue by:
  * pointing OCAMLFIND_CONF environment to the right configuration file
  * making sure that the ocamlfind program in your path is the right one
(ocamlfind printconf)

  this is likely to cause various compilation problems
cd src && mirari build www.conf
[mirari] Using specified config file www.conf
[mirari] + Executing: obuild build
Building executable mir-www
warning: obuild META search paths and ocaml config mismatch

  The ocamlfind configuration file used doesn't list the ocaml standard
library
  as part of his search paths. something fishy is going on
  You can solve the issue by:
  * pointing OCAMLFIND_CONF environment to the right configuration file
  * making sure that the ocamlfind program in your path is the right one
(ocamlfind printconf)

  this is likely to cause various compilation problems

Camlp4: Uncaught exception: DynLoader.Error ("xmlm.cma", "file not found in
path")

Preprocessing error on file main.ml
Error while running external preprocessor
Command line: camlp4 -parser o -parser op -printer p -I
/usr/lib/ocaml/camlp4 -parser o -parser op -printer p -I
/home/phiho/.opam/system/lib/ulex pa_ulex.cma -I
/home/phiho/.opam/system/lib/type_conv pa_type_conv.cma -I
/home/phiho/.opam/system/lib/dyntype pa_dyntype.cma -I
/home/phiho/.opam/system/lib/cow xmlm.cma str.cma pa_cow.cma -I
/home/phiho/.opam/system/lib/optcomp optcomp.cma -I
/home/phiho/.opam/system/lib/lwt lwt-syntax-options.cma -I
/home/phiho/.opam/system/lib/lwt lwt-syntax.cma -I
/home/phiho/.opam/system/lib/cstruct cstruct-syntax.cma 'main.ml' >
/tmp/ocamlpp540bdf

[mirari] ERROR: The command "obuild build" exited with code 8.
make: *** [build] Error 1
phiho@mirage:~/mirage-www$





On Mon, Jul 15, 2013 at 4:54 PM, Anil Madhavapeddy <anil@recoil.org> wrote:

> Read the output:
> ### stderr ###
> ./bootstrap: line 23: ocamlopt.opt: command not found
>
> You need to install the native version of the OCaml compilers (the
> ocaml-native-compilers package).
>
> -anil
>
> On 15 Jul 2013, at 20:20, Phiho Hoang <hohoangphi@gmail.com> wrote:
>
> Greetings,
>
> Does any one have any idea what is missing in my environment?
>
> I got OCaml-4.00 and OPAM-1.0 "stable" from repo at:
>
> https://launchpad.net/~avsm/+archive/ppa
>
> Thanks for your help.
>
> Regards,
>
> PhiHo
>
>
>
> On Sun, Jul 14, 2013 at 6:21 PM, Phiho Hoang <hohoangphi@gmail.com> wrote:
>
>> Hi,
>>
>> Thank you for the information.
>>
>> I got an error while doing:
>>
>> $ opam install mirari
>>
>> This following also failed:
>>
>> $ sudo apt-get install  ocamlopt
>>
>> Please find appended the console output.
>>
>> Regards,
>>
>> PhiHo
>>
>> $ opam install mirari
>> ...
>> ...
>>
>> ==== ERROR [while installing obuild.0.0.2] ====
>> # opam-version    1.0.0
>> # os              linux
>> # command         ./bootstrap
>> # path            /home/phiho/.opam/system/build/obuild.0.0.2
>> # exit-code       127
>> # env-file
>>  /home/phiho/.opam/system/build/obuild.0.0.2/obuild-ffb3fd.env
>> # stdout-file
>> /home/phiho/.opam/system/build/obuild.0.0.2/obuild-ffb3fd.out
>> # stderr-file
>> /home/phiho/.opam/system/build/obuild.0.0.2/obuild-ffb3fd.err
>> ### stdout ###
>> COMPILING fugue
>> ### stderr ###
>> ./bootstrap: line 23: ocamlopt.opt: command not found
>>
>> 'opam install mirari' failed.
>>
>>
>> $ sudo apt-get install  ocamlopt
>> Reading package lists... Done
>> Building dependency tree
>> Reading state information... Done
>> E: Unable to locate package ocamlopt
>>
>> $ opam install ocamlopt
>>  ocamlopt is not a valid versioned package name
>> 'opam install ocamlopt' failed.
>>
>>
>>
>> On Sun, Jul 14, 2013 at 5:07 PM, PALI Gabor Janos <pgj@elte.hu> wrote:
>>
>>> On Sun, Jul 14, 2013 at 04:57:16PM -0400, Phiho Hoang wrote:
>>> > How can I start to learn about 'mirage' using a Ubuntu VM, what do I
>>> need
>>> > to install?
>>>
>>> That should be simply just:
>>>
>>> $ opam init
>>> $ opam remote add mirage-dev git://github.com/mirage/opam-repo-dev
>>> $ eval `opam config -env`
>>> $ opam install mirari
>>> $ git clone git://github.com/mirage/mirage-www
>>> $ cd mirage-www
>>> $ make
>>> $ make run
>>>
>>> > It is much appreciated if someone can share a link.
>>>
>>> This information is from the web site:
>>> http://openmirage.org/wiki/install
>>>
>>
>>
>
>

--089e01161db05a92f204e195f674
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hi,<div><br></div><div>&gt;=A0<span style=3D"font-family:a=
rial,sans-serif;font-size:13px">You need to install the native version of t=
he OCaml compilers (the ocaml-native-compilers package).</span></div><div><=
span style=3D"font-family:arial,sans-serif;font-size:13px"><br>
</span></div><div><span style=3D"font-family:arial,sans-serif;font-size:13p=
x">Thanks for the tip. I&#39;ve been trying to install ocamlopt package.</s=
pan></div><div><span style=3D"font-family:arial,sans-serif;font-size:13px">=
<br>
</span></div><div><span style=3D"font-family:arial,sans-serif;font-size:13p=
x">I also installed &#39;</span>camlp4-extra&#39; package and now I got thi=
s error =A0(while Installing cow.0.6.1):</div><div><br></div><div><div>Caml=
p4: Uncaught exception: DynLoader.Error (&quot;xmlm.cma&quot;, &quot;file n=
ot found in path&quot;)</div>
</div><div><br></div><div>Where can I get this &quot;xmlm.cma&quot;, where =
should it be found?</div><div><br></div><div>Please find appended below the=
 full error:</div><div><br></div><div>Thanks for your help.</div><div><br>
</div><div>Regards,</div><div><br></div><div>PhiHo</div><div><br></div><div=
><div>=3D-=3D-=3D Installing cow.0.6.1 =3D-=3D-=3D</div><div>Downloading <a=
 href=3D"http://opam.ocamlpro.com/archives/cow.0.6.1+opam.tar.gz">http://op=
am.ocamlpro.com/archives/cow.0.6.1+opam.tar.gz</a>.</div>
<div>Extracting /home/phiho/.opam/archives/cow.0.6.1+opam.tar.gz.</div><div=
>Building cow.0.6.1:</div><div>=A0 make all</div><div>=A0 make install</div=
><div>Installing cow.0.6.1.</div><div>[mirari] Creating ./<a href=3D"http:/=
/filesystem_static.ml">filesystem_static.ml</a>.</div>
<div>[mirari] + Executing: mir-crunch -o ./<a href=3D"http://filesystem_sta=
tic.ml">filesystem_static.ml</a> -name &quot;static&quot; ./../files</div><=
div>[mirari] Creating ./<a href=3D"http://filesystem_templates.ml">filesyst=
em_templates.ml</a>.</div>
<div>[mirari] + Executing: mir-crunch -o ./<a href=3D"http://filesystem_tem=
plates.ml">filesystem_templates.ml</a> -name &quot;templates&quot; ./../tmp=
l</div><div>[mirari] + Executing: obuild configure</div><div>Configuring ww=
w-0.0.0...</div>
<div>warning: obuild META search paths and ocaml config mismatch</div><div>=
<br></div><div>=A0 The ocamlfind configuration file used doesn&#39;t list t=
he ocaml standard library</div><div>=A0 as part of his search paths. someth=
ing fishy is going on</div>
<div>=A0 You can solve the issue by:</div><div>=A0 * pointing OCAMLFIND_CON=
F environment to the right configuration file</div><div>=A0 * making sure t=
hat the ocamlfind program in your path is the right one (ocamlfind printcon=
f)</div>
<div><br></div><div>=A0 this is likely to cause various compilation problem=
s</div><div>cd src &amp;&amp; mirari build www.conf</div><div>[mirari] Usin=
g specified config file www.conf</div><div>[mirari] + Executing: obuild bui=
ld</div>
<div>Building executable mir-www</div><div>warning: obuild META search path=
s and ocaml config mismatch</div><div><br></div><div>=A0 The ocamlfind conf=
iguration file used doesn&#39;t list the ocaml standard library</div><div>
=A0 as part of his search paths. something fishy is going on</div><div>=A0 =
You can solve the issue by:</div><div>=A0 * pointing OCAMLFIND_CONF environ=
ment to the right configuration file</div><div>=A0 * making sure that the o=
camlfind program in your path is the right one (ocamlfind printconf)</div>
<div><br></div><div>=A0 this is likely to cause various compilation problem=
s</div><div><br></div><div>Camlp4: Uncaught exception: DynLoader.Error (&qu=
ot;xmlm.cma&quot;, &quot;file not found in path&quot;)</div><div><br></div>
<div>Preprocessing error on file <a href=3D"http://main.ml">main.ml</a></di=
v><div>Error while running external preprocessor</div><div>Command line: ca=
mlp4 -parser o -parser op -printer p -I /usr/lib/ocaml/camlp4 -parser o -pa=
rser op -printer p -I /home/phiho/.opam/system/lib/ulex pa_ulex.cma -I /hom=
e/phiho/.opam/system/lib/type_conv pa_type_conv.cma -I /home/phiho/.opam/sy=
stem/lib/dyntype pa_dyntype.cma -I /home/phiho/.opam/system/lib/cow xmlm.cm=
a str.cma pa_cow.cma -I /home/phiho/.opam/system/lib/optcomp optcomp.cma -I=
 /home/phiho/.opam/system/lib/lwt lwt-syntax-options.cma -I /home/phiho/.op=
am/system/lib/lwt lwt-syntax.cma -I /home/phiho/.opam/system/lib/cstruct cs=
truct-syntax.cma &#39;<a href=3D"http://main.ml">main.ml</a>&#39; &gt; /tmp=
/ocamlpp540bdf</div>
<div><br></div><div>[mirari] ERROR: The command &quot;obuild build&quot; ex=
ited with code 8.</div><div>make: *** [build] Error 1</div><div>phiho@mirag=
e:~/mirage-www$</div></div><div><br></div><div><span style=3D"font-family:a=
rial,sans-serif;font-size:13px"><br>
</span></div><div><span style=3D"font-family:arial,sans-serif;font-size:13p=
x"><br></span></div><div class=3D"" style=3D"font-family:arial,sans-serif;f=
ont-size:13px"></div></div><div class=3D"gmail_extra"><br><br><div class=3D=
"gmail_quote">
On Mon, Jul 15, 2013 at 4:54 PM, Anil Madhavapeddy <span dir=3D"ltr">&lt;<a=
 href=3D"mailto:anil@recoil.org" target=3D"_blank">anil@recoil.org</a>&gt;<=
/span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8=
ex;border-left:1px #ccc solid;padding-left:1ex">
<div style=3D"word-wrap:break-word"><div>Read the output:</div><div class=
=3D"im"><div>### stderr ###</div><div>./bootstrap: line 23: ocamlopt.opt: c=
ommand not found</div><div><br></div></div><div>You need to install the nat=
ive version of the OCaml compilers (the ocaml-native-compilers package).</d=
iv>
<span class=3D"HOEnZb"><font color=3D"#888888"><div><br></div><div>-anil</d=
iv></font></span><div><div class=3D"h5"><div><br></div><div><div>On 15 Jul =
2013, at 20:20, Phiho Hoang &lt;<a href=3D"mailto:hohoangphi@gmail.com" tar=
get=3D"_blank">hohoangphi@gmail.com</a>&gt; wrote:</div>
<br><blockquote type=3D"cite"><div dir=3D"ltr">Greetings,<div><br></div><di=
v>Does any one have any idea what is missing in my environment?</div><div><=
br></div><div><span style=3D"font-family:arial,sans-serif;font-size:13px">I=
 got OCaml-4.00 and OPAM-1.0 &quot;stable&quot; from repo at:</span></div>

<div><br style=3D"font-family:arial,sans-serif;font-size:13px"><a href=3D"h=
ttps://launchpad.net/~avsm/+archive/ppa" style=3D"font-family:arial,sans-se=
rif;font-size:13px" target=3D"_blank">https://launchpad.net/~avsm/+archive/=
ppa</a><br>

</div><div><br></div><div>Thanks for your help.</div><div><br></div><div>Re=
gards,</div><div><br></div><div>PhiHo</div><div><br></div></div><div class=
=3D"gmail_extra"><br><br><div class=3D"gmail_quote">On Sun, Jul 14, 2013 at=
 6:21 PM, Phiho Hoang <span dir=3D"ltr">&lt;<a href=3D"mailto:hohoangphi@gm=
ail.com" target=3D"_blank">hohoangphi@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><div dir=3D"ltr"><div>Hi,</div><div><br></di=
v><div>Thank you for the information.</div><div><br></div><div>I got an err=
or while doing:</div>

<div><span style=3D"font-family:arial,sans-serif;font-size:13px"><br></span=
></div><div>
<span style=3D"font-family:arial,sans-serif;font-size:13px">$ opam install =
mirari</span><br></div><div><span style=3D"font-family:arial,sans-serif;fon=
t-size:13px"><br></span></div><div><span style=3D"font-family:arial,sans-se=
rif;font-size:13px">This following also failed:</span></div>


<div><span style=3D"font-family:arial,sans-serif;font-size:13px"><br></span=
></div><div>$ sudo apt-get install =A0ocamlopt<br></div><div><br></div><div=
>Please find appended the console output.</div><div><br></div><div>Regards,=
</div>


<div><br></div><div>PhiHo</div><div><br></div><div><span style=3D"font-fami=
ly:arial,sans-serif;font-size:13px">$ opam install mirari</span><br></div><=
div><span style=3D"font-family:arial,sans-serif;font-size:13px">...</span><=
/div>


<div><span style=3D"font-family:arial,sans-serif;font-size:13px">...</span>=
</div><div><span style=3D"font-family:arial,sans-serif;font-size:13px"><br>=
</span></div><div>=3D=3D=3D=3D ERROR [while installing obuild.0.0.2] =3D=3D=
=3D=3D</div><div>


# opam-version =A0 =A01.0.0</div><div># os =A0 =A0 =A0 =A0 =A0 =A0 =A0linux=
</div><div># command =A0 =A0 =A0 =A0 ./bootstrap</div><div># path =A0 =A0 =
=A0 =A0 =A0 =A0/home/phiho/.opam/system/build/obuild.0.0.2</div><div># exit=
-code =A0 =A0 =A0 127</div><div># env-file =A0 =A0 =A0 =A0/home/phiho/.opam=
/system/build/obuild.0.0.2/obuild-ffb3fd.env</div>


<div># stdout-file =A0 =A0 /home/phiho/.opam/system/build/obuild.0.0.2/obui=
ld-ffb3fd.out</div><div># stderr-file =A0 =A0 /home/phiho/.opam/system/buil=
d/obuild.0.0.2/obuild-ffb3fd.err</div><div>### stdout ###</div><div>COMPILI=
NG fugue</div>


<div>### stderr ###</div><div>./bootstrap: line 23: ocamlopt.opt: command n=
ot found</div><div><br></div><div>&#39;opam install mirari&#39; failed.</di=
v><div><br></div><div><br></div><div>$ sudo apt-get install =A0ocamlopt</di=
v>


<div>Reading package lists... Done</div><div>Building dependency tree</div>=
<div>Reading state information... Done</div><div>E: Unable to locate packag=
e ocamlopt</div><div><br></div><div><div>$ opam install ocamlopt</div>

<div>
ocamlopt is not a valid versioned package name</div><div>&#39;opam install =
ocamlopt&#39; failed.</div></div><div><br></div></div><div><div><div class=
=3D"gmail_extra"><br><br><div class=3D"gmail_quote">
On Sun, Jul 14, 2013 at 5:07 PM, PALI Gabor Janos <span dir=3D"ltr">&lt;<a =
href=3D"mailto:pgj@elte.hu" target=3D"_blank">pgj@elte.hu</a>&gt;</span> wr=
ote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><div>On Sun, Jul 14, 2013 at 04:57:16PM -040=
0, Phiho Hoang wrote:<br>
&gt; How can I start to learn about &#39;mirage&#39; using a Ubuntu VM, wha=
t do I need<br>
&gt; to install?<br>
<br>
</div>That should be simply just:<br>
<br>
$ opam init<br>
$ opam remote add mirage-dev git://<a href=3D"http://github.com/mirage/opam=
-repo-dev" target=3D"_blank">github.com/mirage/opam-repo-dev</a><br>
$ eval `opam config -env`<br>
$ opam install mirari<br>
$ git clone git://<a href=3D"http://github.com/mirage/mirage-www" target=3D=
"_blank">github.com/mirage/mirage-www</a><br>
$ cd mirage-www<br>
$ make<br>
$ make run<br>
<div><br>
&gt; It is much appreciated if someone can share a link.<br>
<br>
</div>This information is from the web site: <a href=3D"http://openmirage.o=
rg/wiki/install" target=3D"_blank">http://openmirage.org/wiki/install</a><b=
r>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</blockquote></div><br></div></div></div></blockquote></div><br></div>

--089e01161db05a92f204e195f674--


From anil@recoil.org Tue Jul 16 01:24:47 2013
Received: from ppsw-mx-f.csi.cam.ac.uk ([131.111.8.149]
	helo=ppsw-42.csi.cam.ac.uk)
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1Uyt4R-0005jy-Oe (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Tue, 16 Jul 2013 01:24:47 +0100
X-Cam-SpamDetails: score 0.0 from SpamAssassin-3.3.2-1502947 
	*  0.0 HTML_MESSAGE BODY: HTML included in message
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from recoil.dh.bytemark.co.uk ([89.16.177.154]:10442
	helo=dark.recoil.org)
	by ppsw-42.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.149]:25)
	with smtp id 1Uyt4Q-0005VM-8Y (Exim 4.80_167-5a66dd3) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Tue, 16 Jul 2013 01:24:47 +0100
Received: (qmail 1565 invoked by uid 634); 16 Jul 2013 00:24:46 -0000
X-Spam-Level: *
X-Spam-Status: No, hits=-1.0 required=5.0
	tests=ALL_TRUSTED,HTML_MESSAGE
X-Spam-Check-By: dark.recoil.org
Received: from cpc7-cmbg14-2-0-cust238.5-4.cable.virginmedia.com (HELO
	[192.168.1.125]) (86.30.244.239)
	(smtp-auth username remote@recoil.org, mechanism cram-md5)
	by dark.recoil.org (qpsmtpd/0.84) with ESMTPA;
	Tue, 16 Jul 2013 01:24:44 +0100
Content-Type: multipart/alternative;
	boundary="Apple-Mail=_492C1FD4-A0ED-479A-A7B5-26559E2B6958"
Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\))
Subject: Re: OPAM+Ubuntu test PPA
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <CALZQg1YnaEhb42jGb11ze406pM6E7nXxRt-fNb_z=e7adrNapA@mail.gmail.com>
Date: Tue, 16 Jul 2013 01:24:34 +0100
Message-Id: <F7DDE31B-9A76-4E40-8174-C83DF22ADFF1@recoil.org>
References: <D2A49680-5CBF-4BA1-B5F9-03EC3DDBB0E7@recoil.org>
	<-2889814563385868015@unknownmsgid>
	<CAG_esB0nm5jNY28yhwsXj0OVgRpyA69ys0mAQCT_ov=sEpwg3g@mail.gmail.com>
	<CALZQg1ZTHYCkEHmzTcTO9rJMxj31ZKzoWt=bxtdT=sMbVdts_Q@mail.gmail.com>
	<20130714210752.GA8321@caesar.elte.hu>
	<CALZQg1ZayoG_r3EwyRAiv_cv3gCPG19DieLViuet9ed73SPf3g@mail.gmail.com>
	<CALZQg1YOVO0yP4NMERHifWGxuU1g8T1Jwb=rofdz3N0fTyNwAQ@mail.gmail.com>
	<4949C24E-7937-443E-BD4C-E3C718F00BEB@recoil.org>
	<CALZQg1YnaEhb42jGb11ze406pM6E7nXxRt-fNb_z=e7adrNapA@mail.gmail.com>
To: Phiho Hoang <hohoangphi@gmail.com>
X-Mailer: Apple Mail (2.1503)
X-Virus-Checked: Checked by ClamAV on dark.recoil.org
Cc: PALI Gabor Janos <pgj@elte.hu>,
	"cl-mirage@lists.cam.ac.uk List" <cl-mirage@lists.cam.ac.uk>,
	David Scott <scott.dj@gmail.com>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Tue, 16 Jul 2013 00:24:47 -0000
Content-Length: 17573
Lines: 305


--Apple-Mail=_492C1FD4-A0ED-479A-A7B5-26559E2B6958
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=iso-8859-1

That's currently broken due to a bug in obuild.  You need to downgrade =
to cow.0.5.5 (just "opam install cow.0.5.5").

I'll be removing the dependency on obuild soon, but it's pending a =
switch to OCaml 4.1.

-anil

On 16 Jul 2013, at 01:21, Phiho Hoang <hohoangphi@gmail.com> wrote:

> Hi,
>=20
> > You need to install the native version of the OCaml compilers (the =
ocaml-native-compilers package).
>=20
> Thanks for the tip. I've been trying to install ocamlopt package.
>=20
> I also installed 'camlp4-extra' package and now I got this error  =
(while Installing cow.0.6.1):
>=20
> Camlp4: Uncaught exception: DynLoader.Error ("xmlm.cma", "file not =
found in path")
>=20
> Where can I get this "xmlm.cma", where should it be found?
>=20
> Please find appended below the full error:
>=20
> Thanks for your help.
>=20
> Regards,
>=20
> PhiHo
>=20
> =3D-=3D-=3D Installing cow.0.6.1 =3D-=3D-=3D
> Downloading http://opam.ocamlpro.com/archives/cow.0.6.1+opam.tar.gz.
> Extracting /home/phiho/.opam/archives/cow.0.6.1+opam.tar.gz.
> Building cow.0.6.1:
>   make all
>   make install
> Installing cow.0.6.1.
> [mirari] Creating ./filesystem_static.ml.
> [mirari] + Executing: mir-crunch -o ./filesystem_static.ml -name =
"static" ./../files
> [mirari] Creating ./filesystem_templates.ml.
> [mirari] + Executing: mir-crunch -o ./filesystem_templates.ml -name =
"templates" ./../tmpl
> [mirari] + Executing: obuild configure
> Configuring www-0.0.0...
> warning: obuild META search paths and ocaml config mismatch
>=20
>   The ocamlfind configuration file used doesn't list the ocaml =
standard library
>   as part of his search paths. something fishy is going on
>   You can solve the issue by:
>   * pointing OCAMLFIND_CONF environment to the right configuration =
file
>   * making sure that the ocamlfind program in your path is the right =
one (ocamlfind printconf)
>=20
>   this is likely to cause various compilation problems
> cd src && mirari build www.conf
> [mirari] Using specified config file www.conf
> [mirari] + Executing: obuild build
> Building executable mir-www
> warning: obuild META search paths and ocaml config mismatch
>=20
>   The ocamlfind configuration file used doesn't list the ocaml =
standard library
>   as part of his search paths. something fishy is going on
>   You can solve the issue by:
>   * pointing OCAMLFIND_CONF environment to the right configuration =
file
>   * making sure that the ocamlfind program in your path is the right =
one (ocamlfind printconf)
>=20
>   this is likely to cause various compilation problems
>=20
> Camlp4: Uncaught exception: DynLoader.Error ("xmlm.cma", "file not =
found in path")
>=20
> Preprocessing error on file main.ml
> Error while running external preprocessor
> Command line: camlp4 -parser o -parser op -printer p -I =
/usr/lib/ocaml/camlp4 -parser o -parser op -printer p -I =
/home/phiho/.opam/system/lib/ulex pa_ulex.cma -I =
/home/phiho/.opam/system/lib/type_conv pa_type_conv.cma -I =
/home/phiho/.opam/system/lib/dyntype pa_dyntype.cma -I =
/home/phiho/.opam/system/lib/cow xmlm.cma str.cma pa_cow.cma -I =
/home/phiho/.opam/system/lib/optcomp optcomp.cma -I =
/home/phiho/.opam/system/lib/lwt lwt-syntax-options.cma -I =
/home/phiho/.opam/system/lib/lwt lwt-syntax.cma -I =
/home/phiho/.opam/system/lib/cstruct cstruct-syntax.cma 'main.ml' > =
/tmp/ocamlpp540bdf
>=20
> [mirari] ERROR: The command "obuild build" exited with code 8.
> make: *** [build] Error 1
> phiho@mirage:~/mirage-www$
>=20
>=20
>=20
>=20
>=20
> On Mon, Jul 15, 2013 at 4:54 PM, Anil Madhavapeddy <anil@recoil.org> =
wrote:
> Read the output:
> ### stderr ###
> ./bootstrap: line 23: ocamlopt.opt: command not found
>=20
> You need to install the native version of the OCaml compilers (the =
ocaml-native-compilers package).
>=20
> -anil
>=20
> On 15 Jul 2013, at 20:20, Phiho Hoang <hohoangphi@gmail.com> wrote:
>=20
>> Greetings,
>>=20
>> Does any one have any idea what is missing in my environment?
>>=20
>> I got OCaml-4.00 and OPAM-1.0 "stable" from repo at:
>>=20
>> https://launchpad.net/~avsm/+archive/ppa
>>=20
>> Thanks for your help.
>>=20
>> Regards,
>>=20
>> PhiHo
>>=20
>>=20
>>=20
>> On Sun, Jul 14, 2013 at 6:21 PM, Phiho Hoang <hohoangphi@gmail.com> =
wrote:
>> Hi,
>>=20
>> Thank you for the information.
>>=20
>> I got an error while doing:
>>=20
>> $ opam install mirari
>>=20
>> This following also failed:
>>=20
>> $ sudo apt-get install  ocamlopt
>>=20
>> Please find appended the console output.
>>=20
>> Regards,
>>=20
>> PhiHo
>>=20
>> $ opam install mirari
>> ...
>> ...
>>=20
>> =3D=3D=3D=3D ERROR [while installing obuild.0.0.2] =3D=3D=3D=3D
>> # opam-version    1.0.0
>> # os              linux
>> # command         ./bootstrap
>> # path            /home/phiho/.opam/system/build/obuild.0.0.2
>> # exit-code       127
>> # env-file        =
/home/phiho/.opam/system/build/obuild.0.0.2/obuild-ffb3fd.env
>> # stdout-file     =
/home/phiho/.opam/system/build/obuild.0.0.2/obuild-ffb3fd.out
>> # stderr-file     =
/home/phiho/.opam/system/build/obuild.0.0.2/obuild-ffb3fd.err
>> ### stdout ###
>> COMPILING fugue
>> ### stderr ###
>> ./bootstrap: line 23: ocamlopt.opt: command not found
>>=20
>> 'opam install mirari' failed.
>>=20
>>=20
>> $ sudo apt-get install  ocamlopt
>> Reading package lists... Done
>> Building dependency tree
>> Reading state information... Done
>> E: Unable to locate package ocamlopt
>>=20
>> $ opam install ocamlopt
>> ocamlopt is not a valid versioned package name
>> 'opam install ocamlopt' failed.
>>=20
>>=20
>>=20
>> On Sun, Jul 14, 2013 at 5:07 PM, PALI Gabor Janos <pgj@elte.hu> =
wrote:
>> On Sun, Jul 14, 2013 at 04:57:16PM -0400, Phiho Hoang wrote:
>> > How can I start to learn about 'mirage' using a Ubuntu VM, what do =
I need
>> > to install?
>>=20
>> That should be simply just:
>>=20
>> $ opam init
>> $ opam remote add mirage-dev git://github.com/mirage/opam-repo-dev
>> $ eval `opam config -env`
>> $ opam install mirari
>> $ git clone git://github.com/mirage/mirage-www
>> $ cd mirage-www
>> $ make
>> $ make run
>>=20
>> > It is much appreciated if someone can share a link.
>>=20
>> This information is from the web site: =
http://openmirage.org/wiki/install
>>=20
>>=20
>=20
>=20


--Apple-Mail=_492C1FD4-A0ED-479A-A7B5-26559E2B6958
Content-Transfer-Encoding: 7bit
Content-Type: text/html;
	charset=iso-8859-1

<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">That's currently broken due to a bug in obuild. &nbsp;You need to downgrade to cow.0.5.5 (just "opam install cow.0.5.5").<div><br></div><div>I'll be removing the dependency on obuild soon, but it's pending a switch to OCaml 4.1.</div><div><br></div><div>-anil</div><div><br><div><div>On 16 Jul 2013, at 01:21, Phiho Hoang &lt;<a href="mailto:hohoangphi@gmail.com">hohoangphi@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Hi,<div><br></div><div>&gt;&nbsp;<span style="font-family:arial,sans-serif;font-size:13px">You need to install the native version of the OCaml compilers (the ocaml-native-compilers package).</span></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br>
</span></div><div><span style="font-family:arial,sans-serif;font-size:13px">Thanks for the tip. I've been trying to install ocamlopt package.</span></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br>
</span></div><div><span style="font-family:arial,sans-serif;font-size:13px">I also installed '</span>camlp4-extra' package and now I got this error &nbsp;(while Installing cow.0.6.1):</div><div><br></div><div><div>Camlp4: Uncaught exception: DynLoader.Error ("xmlm.cma", "file not found in path")</div>
</div><div><br></div><div>Where can I get this "xmlm.cma", where should it be found?</div><div><br></div><div>Please find appended below the full error:</div><div><br></div><div>Thanks for your help.</div><div><br>
</div><div>Regards,</div><div><br></div><div>PhiHo</div><div><br></div><div><div>=-=-= Installing cow.0.6.1 =-=-=</div><div>Downloading <a href="http://opam.ocamlpro.com/archives/cow.0.6.1+opam.tar.gz">http://opam.ocamlpro.com/archives/cow.0.6.1+opam.tar.gz</a>.</div>
<div>Extracting /home/phiho/.opam/archives/cow.0.6.1+opam.tar.gz.</div><div>Building cow.0.6.1:</div><div>&nbsp; make all</div><div>&nbsp; make install</div><div>Installing cow.0.6.1.</div><div>[mirari] Creating ./<a href="http://filesystem_static.ml/">filesystem_static.ml</a>.</div>
<div>[mirari] + Executing: mir-crunch -o ./<a href="http://filesystem_static.ml/">filesystem_static.ml</a> -name "static" ./../files</div><div>[mirari] Creating ./<a href="http://filesystem_templates.ml/">filesystem_templates.ml</a>.</div>
<div>[mirari] + Executing: mir-crunch -o ./<a href="http://filesystem_templates.ml/">filesystem_templates.ml</a> -name "templates" ./../tmpl</div><div>[mirari] + Executing: obuild configure</div><div>Configuring www-0.0.0...</div>
<div>warning: obuild META search paths and ocaml config mismatch</div><div><br></div><div>&nbsp; The ocamlfind configuration file used doesn't list the ocaml standard library</div><div>&nbsp; as part of his search paths. something fishy is going on</div>
<div>&nbsp; You can solve the issue by:</div><div>&nbsp; * pointing OCAMLFIND_CONF environment to the right configuration file</div><div>&nbsp; * making sure that the ocamlfind program in your path is the right one (ocamlfind printconf)</div>
<div><br></div><div>&nbsp; this is likely to cause various compilation problems</div><div>cd src &amp;&amp; mirari build www.conf</div><div>[mirari] Using specified config file www.conf</div><div>[mirari] + Executing: obuild build</div>
<div>Building executable mir-www</div><div>warning: obuild META search paths and ocaml config mismatch</div><div><br></div><div>&nbsp; The ocamlfind configuration file used doesn't list the ocaml standard library</div><div>
&nbsp; as part of his search paths. something fishy is going on</div><div>&nbsp; You can solve the issue by:</div><div>&nbsp; * pointing OCAMLFIND_CONF environment to the right configuration file</div><div>&nbsp; * making sure that the ocamlfind program in your path is the right one (ocamlfind printconf)</div>
<div><br></div><div>&nbsp; this is likely to cause various compilation problems</div><div><br></div><div>Camlp4: Uncaught exception: DynLoader.Error ("xmlm.cma", "file not found in path")</div><div><br></div>
<div>Preprocessing error on file <a href="http://main.ml/">main.ml</a></div><div>Error while running external preprocessor</div><div>Command line: camlp4 -parser o -parser op -printer p -I /usr/lib/ocaml/camlp4 -parser o -parser op -printer p -I /home/phiho/.opam/system/lib/ulex pa_ulex.cma -I /home/phiho/.opam/system/lib/type_conv pa_type_conv.cma -I /home/phiho/.opam/system/lib/dyntype pa_dyntype.cma -I /home/phiho/.opam/system/lib/cow xmlm.cma str.cma pa_cow.cma -I /home/phiho/.opam/system/lib/optcomp optcomp.cma -I /home/phiho/.opam/system/lib/lwt lwt-syntax-options.cma -I /home/phiho/.opam/system/lib/lwt lwt-syntax.cma -I /home/phiho/.opam/system/lib/cstruct cstruct-syntax.cma '<a href="http://main.ml/">main.ml</a>' &gt; /tmp/ocamlpp540bdf</div>
<div><br></div><div>[mirari] ERROR: The command "obuild build" exited with code 8.</div><div>make: *** [build] Error 1</div><div>phiho@mirage:~/mirage-www$</div></div><div><br></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br>
</span></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div class="" style="font-family:arial,sans-serif;font-size:13px"></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Mon, Jul 15, 2013 at 4:54 PM, Anil Madhavapeddy <span dir="ltr">&lt;<a href="mailto:anil@recoil.org" target="_blank">anil@recoil.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word"><div>Read the output:</div><div class="im"><div>### stderr ###</div><div>./bootstrap: line 23: ocamlopt.opt: command not found</div><div><br></div></div><div>You need to install the native version of the OCaml compilers (the ocaml-native-compilers package).</div>
<span class="HOEnZb"><font color="#888888"><div><br></div><div>-anil</div></font></span><div><div class="h5"><div><br></div><div><div>On 15 Jul 2013, at 20:20, Phiho Hoang &lt;<a href="mailto:hohoangphi@gmail.com" target="_blank">hohoangphi@gmail.com</a>&gt; wrote:</div>
<br><blockquote type="cite"><div dir="ltr">Greetings,<div><br></div><div>Does any one have any idea what is missing in my environment?</div><div><br></div><div><span style="font-family:arial,sans-serif;font-size:13px">I got OCaml-4.00 and OPAM-1.0 "stable" from repo at:</span></div>

<div><br style="font-family:arial,sans-serif;font-size:13px"><a href="https://launchpad.net/~avsm/+archive/ppa" style="font-family:arial,sans-serif;font-size:13px" target="_blank">https://launchpad.net/~avsm/+archive/ppa</a><br>

</div><div><br></div><div>Thanks for your help.</div><div><br></div><div>Regards,</div><div><br></div><div>PhiHo</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Jul 14, 2013 at 6:21 PM, Phiho Hoang <span dir="ltr">&lt;<a href="mailto:hohoangphi@gmail.com" target="_blank">hohoangphi@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi,</div><div><br></div><div>Thank you for the information.</div><div><br></div><div>I got an error while doing:</div>

<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div>
<span style="font-family:arial,sans-serif;font-size:13px">$ opam install mirari</span><br></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">This following also failed:</span></div>


<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div>$ sudo apt-get install &nbsp;ocamlopt<br></div><div><br></div><div>Please find appended the console output.</div><div><br></div><div>Regards,</div>


<div><br></div><div>PhiHo</div><div><br></div><div><span style="font-family:arial,sans-serif;font-size:13px">$ opam install mirari</span><br></div><div><span style="font-family:arial,sans-serif;font-size:13px">...</span></div>


<div><span style="font-family:arial,sans-serif;font-size:13px">...</span></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div>==== ERROR [while installing obuild.0.0.2] ====</div><div>


# opam-version &nbsp; &nbsp;1.0.0</div><div># os &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;linux</div><div># command &nbsp; &nbsp; &nbsp; &nbsp; ./bootstrap</div><div># path &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;/home/phiho/.opam/system/build/obuild.0.0.2</div><div># exit-code &nbsp; &nbsp; &nbsp; 127</div><div># env-file &nbsp; &nbsp; &nbsp; &nbsp;/home/phiho/.opam/system/build/obuild.0.0.2/obuild-ffb3fd.env</div>


<div># stdout-file &nbsp; &nbsp; /home/phiho/.opam/system/build/obuild.0.0.2/obuild-ffb3fd.out</div><div># stderr-file &nbsp; &nbsp; /home/phiho/.opam/system/build/obuild.0.0.2/obuild-ffb3fd.err</div><div>### stdout ###</div><div>COMPILING fugue</div>


<div>### stderr ###</div><div>./bootstrap: line 23: ocamlopt.opt: command not found</div><div><br></div><div>'opam install mirari' failed.</div><div><br></div><div><br></div><div>$ sudo apt-get install &nbsp;ocamlopt</div>


<div>Reading package lists... Done</div><div>Building dependency tree</div><div>Reading state information... Done</div><div>E: Unable to locate package ocamlopt</div><div><br></div><div><div>$ opam install ocamlopt</div>

<div>
ocamlopt is not a valid versioned package name</div><div>'opam install ocamlopt' failed.</div></div><div><br></div></div><div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Sun, Jul 14, 2013 at 5:07 PM, PALI Gabor Janos <span dir="ltr">&lt;<a href="mailto:pgj@elte.hu" target="_blank">pgj@elte.hu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>On Sun, Jul 14, 2013 at 04:57:16PM -0400, Phiho Hoang wrote:<br>
&gt; How can I start to learn about 'mirage' using a Ubuntu VM, what do I need<br>
&gt; to install?<br>
<br>
</div>That should be simply just:<br>
<br>
$ opam init<br>
$ opam remote add mirage-dev git://<a href="http://github.com/mirage/opam-repo-dev" target="_blank">github.com/mirage/opam-repo-dev</a><br>
$ eval `opam config -env`<br>
$ opam install mirari<br>
$ git clone git://<a href="http://github.com/mirage/mirage-www" target="_blank">github.com/mirage/mirage-www</a><br>
$ cd mirage-www<br>
$ make<br>
$ make run<br>
<div><br>
&gt; It is much appreciated if someone can share a link.<br>
<br>
</div>This information is from the web site: <a href="http://openmirage.org/wiki/install" target="_blank">http://openmirage.org/wiki/install</a><br>
</blockquote></div><br></div>
</div></blockquote></div><br></div>
</blockquote></div><br></div></div></div></blockquote></div><br></div>
</blockquote></div><br></div></body></html>
--Apple-Mail=_492C1FD4-A0ED-479A-A7B5-26559E2B6958--


From hohoangphi@gmail.com Tue Jul 16 01:59:53 2013
Received: from ppsw-mx-f.csi.cam.ac.uk ([131.111.8.149]
	helo=ppsw-42.csi.cam.ac.uk)
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1UytcP-00061X-AQ (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <hohoangphi@gmail.com>); Tue, 16 Jul 2013 01:59:53 +0100
X-Cam-SpamDetails: score 0.6 from SpamAssassin-3.3.2-1502947 
	* -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/,
	low *      trust
	*      [209.85.219.50 listed in list.dnswl.dnsbl.ja.net]
	* 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail
	provider *       (hohoangphi[at]gmail.com)
	*  0.0 DKIM_ADSP_CUSTOM_MED No valid author signature, adsp_override is
	*      CUSTOM_MED
	*  0.0 HTML_MESSAGE BODY: HTML included in message
	*  0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily
	*      valid
	*  0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid
	*  1.2 NML_ADSP_CUSTOM_MED ADSP custom_med hit, and not from a mailing
	*      list
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from mail-oa0-f50.google.com ([209.85.219.50]:58225)
	by ppsw-42.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.149]:25)
	with esmtp id 1UytcN-0002w8-9H (Exim 4.80_167-5a66dd3) for
	cl-mirage@lists.cam.ac.uk
	(return-path <hohoangphi@gmail.com>); Tue, 16 Jul 2013 01:59:53 +0100
Received: by mail-oa0-f50.google.com with SMTP id k7so107220oag.9
	for <cl-mirage@lists.cam.ac.uk>; Mon, 15 Jul 2013 17:59:51 -0700 (PDT)
MIME-Version: 1.0
X-Received: by 10.60.96.170 with SMTP id dt10mr45175583oeb.81.1373936390960;
	Mon, 15 Jul 2013 17:59:50 -0700 (PDT)
Received: by 10.76.79.202 with HTTP; Mon, 15 Jul 2013 17:59:50 -0700 (PDT)
In-Reply-To: <F7DDE31B-9A76-4E40-8174-C83DF22ADFF1@recoil.org>
References: <D2A49680-5CBF-4BA1-B5F9-03EC3DDBB0E7@recoil.org>
	<-2889814563385868015@unknownmsgid>
	<CAG_esB0nm5jNY28yhwsXj0OVgRpyA69ys0mAQCT_ov=sEpwg3g@mail.gmail.com>
	<CALZQg1ZTHYCkEHmzTcTO9rJMxj31ZKzoWt=bxtdT=sMbVdts_Q@mail.gmail.com>
	<20130714210752.GA8321@caesar.elte.hu>
	<CALZQg1ZayoG_r3EwyRAiv_cv3gCPG19DieLViuet9ed73SPf3g@mail.gmail.com>
	<CALZQg1YOVO0yP4NMERHifWGxuU1g8T1Jwb=rofdz3N0fTyNwAQ@mail.gmail.com>
	<4949C24E-7937-443E-BD4C-E3C718F00BEB@recoil.org>
	<CALZQg1YnaEhb42jGb11ze406pM6E7nXxRt-fNb_z=e7adrNapA@mail.gmail.com>
	<F7DDE31B-9A76-4E40-8174-C83DF22ADFF1@recoil.org>
Date: Mon, 15 Jul 2013 20:59:50 -0400
Message-ID: <CALZQg1bpTVcR=1-Kc92KVwn+WbW5rDZxpDRiJ-H-qzZA=3RGkA@mail.gmail.com>
Subject: Re: OPAM+Ubuntu test PPA
From: Phiho Hoang <hohoangphi@gmail.com>
To: Anil Madhavapeddy <anil@recoil.org>
Content-Type: multipart/alternative; boundary=089e01228cf686fad004e1967e29
Cc: PALI Gabor Janos <pgj@elte.hu>,
	"cl-mirage@lists.cam.ac.uk List" <cl-mirage@lists.cam.ac.uk>,
	David Scott <scott.dj@gmail.com>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Tue, 16 Jul 2013 00:59:53 -0000
Content-Length: 21512
Lines: 536

--089e01228cf686fad004e1967e29
Content-Type: text/plain; charset=ISO-8859-1

>  You need to downgrade to cow.0.5.5 (just "opam install cow.0.5.5").

~/mirage-www$ make

completed with a warning (please see appended below)

I tried 'make install' but it seems there is no such target.
There is 'src/dist/build/mir-www/mir-www'.

How should I proceed from here to learn 'mirage'.
Links to the documentation, blogs ... would be very much appreciated.

Thanks for your help.

Regards,

PhiHo

...
...
[15 of 15] Compiling Main
Linking executable dist/build/mir-www/mir-www
warning: obuild META search paths and ocaml config mismatch

  The ocamlfind configuration file used doesn't list the ocaml standard
library
  as part of his search paths. something fishy is going on
  You can solve the issue by:
  * pointing OCAMLFIND_CONF environment to the right configuration file
  * making sure that the ocamlfind program in your path is the right one
(ocamlfind printconf)

  this is likely to cause various compilation problems
[mirari] + Executing: ln -nfs ./dist/build/mir-www/mir-www mir-www



On Mon, Jul 15, 2013 at 8:24 PM, Anil Madhavapeddy <anil@recoil.org> wrote:

> That's currently broken due to a bug in obuild.  You need to downgrade to
> cow.0.5.5 (just "opam install cow.0.5.5").
>
> I'll be removing the dependency on obuild soon, but it's pending a switch
> to OCaml 4.1.
>
> -anil
>
> On 16 Jul 2013, at 01:21, Phiho Hoang <hohoangphi@gmail.com> wrote:
>
> Hi,
>
> > You need to install the native version of the OCaml compilers (the
> ocaml-native-compilers package).
>
> Thanks for the tip. I've been trying to install ocamlopt package.
>
> I also installed 'camlp4-extra' package and now I got this error  (while
> Installing cow.0.6.1):
>
> Camlp4: Uncaught exception: DynLoader.Error ("xmlm.cma", "file not found
> in path")
>
> Where can I get this "xmlm.cma", where should it be found?
>
> Please find appended below the full error:
>
> Thanks for your help.
>
> Regards,
>
> PhiHo
>
> =-=-= Installing cow.0.6.1 =-=-=
> Downloading http://opam.ocamlpro.com/archives/cow.0.6.1+opam.tar.gz.
> Extracting /home/phiho/.opam/archives/cow.0.6.1+opam.tar.gz.
> Building cow.0.6.1:
>   make all
>   make install
> Installing cow.0.6.1.
> [mirari] Creating ./filesystem_static.ml.
> [mirari] + Executing: mir-crunch -o ./filesystem_static.ml -name "static"
> ./../files
> [mirari] Creating ./filesystem_templates.ml.
> [mirari] + Executing: mir-crunch -o ./filesystem_templates.ml -name
> "templates" ./../tmpl
> [mirari] + Executing: obuild configure
> Configuring www-0.0.0...
> warning: obuild META search paths and ocaml config mismatch
>
>   The ocamlfind configuration file used doesn't list the ocaml standard
> library
>   as part of his search paths. something fishy is going on
>   You can solve the issue by:
>   * pointing OCAMLFIND_CONF environment to the right configuration file
>   * making sure that the ocamlfind program in your path is the right one
> (ocamlfind printconf)
>
>   this is likely to cause various compilation problems
> cd src && mirari build www.conf
> [mirari] Using specified config file www.conf
> [mirari] + Executing: obuild build
> Building executable mir-www
> warning: obuild META search paths and ocaml config mismatch
>
>   The ocamlfind configuration file used doesn't list the ocaml standard
> library
>   as part of his search paths. something fishy is going on
>   You can solve the issue by:
>   * pointing OCAMLFIND_CONF environment to the right configuration file
>   * making sure that the ocamlfind program in your path is the right one
> (ocamlfind printconf)
>
>   this is likely to cause various compilation problems
>
> Camlp4: Uncaught exception: DynLoader.Error ("xmlm.cma", "file not found
> in path")
>
> Preprocessing error on file main.ml
> Error while running external preprocessor
> Command line: camlp4 -parser o -parser op -printer p -I
> /usr/lib/ocaml/camlp4 -parser o -parser op -printer p -I
> /home/phiho/.opam/system/lib/ulex pa_ulex.cma -I
> /home/phiho/.opam/system/lib/type_conv pa_type_conv.cma -I
> /home/phiho/.opam/system/lib/dyntype pa_dyntype.cma -I
> /home/phiho/.opam/system/lib/cow xmlm.cma str.cma pa_cow.cma -I
> /home/phiho/.opam/system/lib/optcomp optcomp.cma -I
> /home/phiho/.opam/system/lib/lwt lwt-syntax-options.cma -I
> /home/phiho/.opam/system/lib/lwt lwt-syntax.cma -I
> /home/phiho/.opam/system/lib/cstruct cstruct-syntax.cma 'main.ml' >
> /tmp/ocamlpp540bdf
>
> [mirari] ERROR: The command "obuild build" exited with code 8.
> make: *** [build] Error 1
> phiho@mirage:~/mirage-www$
>
>
>
>
>
> On Mon, Jul 15, 2013 at 4:54 PM, Anil Madhavapeddy <anil@recoil.org>wrote:
>
>> Read the output:
>> ### stderr ###
>> ./bootstrap: line 23: ocamlopt.opt: command not found
>>
>> You need to install the native version of the OCaml compilers (the
>> ocaml-native-compilers package).
>>
>> -anil
>>
>> On 15 Jul 2013, at 20:20, Phiho Hoang <hohoangphi@gmail.com> wrote:
>>
>> Greetings,
>>
>> Does any one have any idea what is missing in my environment?
>>
>> I got OCaml-4.00 and OPAM-1.0 "stable" from repo at:
>>
>> https://launchpad.net/~avsm/+archive/ppa
>>
>> Thanks for your help.
>>
>> Regards,
>>
>> PhiHo
>>
>>
>>
>> On Sun, Jul 14, 2013 at 6:21 PM, Phiho Hoang <hohoangphi@gmail.com>wrote:
>>
>>> Hi,
>>>
>>> Thank you for the information.
>>>
>>> I got an error while doing:
>>>
>>> $ opam install mirari
>>>
>>> This following also failed:
>>>
>>> $ sudo apt-get install  ocamlopt
>>>
>>> Please find appended the console output.
>>>
>>> Regards,
>>>
>>> PhiHo
>>>
>>> $ opam install mirari
>>> ...
>>> ...
>>>
>>> ==== ERROR [while installing obuild.0.0.2] ====
>>> # opam-version    1.0.0
>>> # os              linux
>>> # command         ./bootstrap
>>> # path            /home/phiho/.opam/system/build/obuild.0.0.2
>>> # exit-code       127
>>> # env-file
>>>  /home/phiho/.opam/system/build/obuild.0.0.2/obuild-ffb3fd.env
>>> # stdout-file
>>> /home/phiho/.opam/system/build/obuild.0.0.2/obuild-ffb3fd.out
>>> # stderr-file
>>> /home/phiho/.opam/system/build/obuild.0.0.2/obuild-ffb3fd.err
>>> ### stdout ###
>>> COMPILING fugue
>>> ### stderr ###
>>> ./bootstrap: line 23: ocamlopt.opt: command not found
>>>
>>> 'opam install mirari' failed.
>>>
>>>
>>> $ sudo apt-get install  ocamlopt
>>> Reading package lists... Done
>>> Building dependency tree
>>> Reading state information... Done
>>> E: Unable to locate package ocamlopt
>>>
>>> $ opam install ocamlopt
>>>  ocamlopt is not a valid versioned package name
>>> 'opam install ocamlopt' failed.
>>>
>>>
>>>
>>> On Sun, Jul 14, 2013 at 5:07 PM, PALI Gabor Janos <pgj@elte.hu> wrote:
>>>
>>>> On Sun, Jul 14, 2013 at 04:57:16PM -0400, Phiho Hoang wrote:
>>>> > How can I start to learn about 'mirage' using a Ubuntu VM, what do I
>>>> need
>>>> > to install?
>>>>
>>>> That should be simply just:
>>>>
>>>> $ opam init
>>>> $ opam remote add mirage-dev git://github.com/mirage/opam-repo-dev
>>>> $ eval `opam config -env`
>>>> $ opam install mirari
>>>> $ git clone git://github.com/mirage/mirage-www
>>>> $ cd mirage-www
>>>> $ make
>>>> $ make run
>>>>
>>>> > It is much appreciated if someone can share a link.
>>>>
>>>> This information is from the web site:
>>>> http://openmirage.org/wiki/install
>>>>
>>>
>>>
>>
>>
>
>

--089e01228cf686fad004e1967e29
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>&gt;=A0<span style=3D"font-family:arial,sans-serif;fo=
nt-size:13px">=A0You need to downgrade to cow.0.5.5 (just &quot;opam instal=
l cow.0.5.5&quot;).</span></div><div><span style=3D"font-family:arial,sans-=
serif;font-size:13px"><div>
<br></div><div>~/mirage-www$ make</div><div><br></div><div>completed with a=
 warning (please see appended below)</div><div><br></div><div>I tried &#39;=
make install&#39; but it seems there is no such target.</div><div>There is =
&#39;src/dist/build/mir-www/mir-www&#39;.</div>
<div><br></div><div>How should I proceed from here to learn &#39;mirage&#39=
;.</div><div>Links to the documentation, blogs ... would be very much appre=
ciated.</div><div><br></div></span></div><div><span style=3D"font-family:ar=
ial,sans-serif;font-size:13px">Thanks for your help.</span></div>
<div><span style=3D"font-family:arial,sans-serif;font-size:13px"><br></span=
></div><div><span style=3D"font-family:arial,sans-serif;font-size:13px">Reg=
ards,</span></div><div><span style=3D"font-family:arial,sans-serif;font-siz=
e:13px"><br>
</span></div><div><span style=3D"font-family:arial,sans-serif;font-size:13p=
x">PhiHo</span></div><div><span style=3D"font-family:arial,sans-serif;font-=
size:13px"><br></span></div><div><span style=3D"font-family:arial,sans-seri=
f;font-size:13px">...</span></div>
<div><span style=3D"font-family:arial,sans-serif;font-size:13px">...</span>=
</div><div>[15 of 15] Compiling Main</div><div>Linking executable dist/buil=
d/mir-www/mir-www</div><div>warning: obuild META search paths and ocaml con=
fig mismatch</div>
<div><br></div><div>=A0 The ocamlfind configuration file used doesn&#39;t l=
ist the ocaml standard library</div><div>=A0 as part of his search paths. s=
omething fishy is going on</div><div>=A0 You can solve the issue by:</div><=
div>
=A0 * pointing OCAMLFIND_CONF environment to the right configuration file</=
div><div>=A0 * making sure that the ocamlfind program in your path is the r=
ight one (ocamlfind printconf)</div><div><br></div><div>=A0 this is likely =
to cause various compilation problems</div>
<div>[mirari] + Executing: ln -nfs ./dist/build/mir-www/mir-www mir-www</di=
v><div><br></div></div><div class=3D"gmail_extra"><br><br><div class=3D"gma=
il_quote">On Mon, Jul 15, 2013 at 8:24 PM, Anil Madhavapeddy <span dir=3D"l=
tr">&lt;<a href=3D"mailto:anil@recoil.org" target=3D"_blank">anil@recoil.or=
g</a>&gt;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><div style=3D"word-wrap:break-word">That&#39=
;s currently broken due to a bug in obuild. =A0You need to downgrade to cow=
.0.5.5 (just &quot;opam install cow.0.5.5&quot;).<div>
<br></div><div>I&#39;ll be removing the dependency on obuild soon, but it&#=
39;s pending a switch to OCaml 4.1.</div><span class=3D"HOEnZb"><font color=
=3D"#888888"><div><br></div><div>-anil</div></font></span><div><div class=
=3D"h5">
<div><br><div><div>On 16 Jul 2013, at 01:21, Phiho Hoang &lt;<a href=3D"mai=
lto:hohoangphi@gmail.com" target=3D"_blank">hohoangphi@gmail.com</a>&gt; wr=
ote:</div><br><blockquote type=3D"cite"><div dir=3D"ltr">Hi,<div><br></div>=
<div>
&gt;=A0<span style=3D"font-family:arial,sans-serif;font-size:13px">You need=
 to install the native version of the OCaml compilers (the ocaml-native-com=
pilers package).</span></div><div><span style=3D"font-family:arial,sans-ser=
if;font-size:13px"><br>

</span></div><div><span style=3D"font-family:arial,sans-serif;font-size:13p=
x">Thanks for the tip. I&#39;ve been trying to install ocamlopt package.</s=
pan></div><div><span style=3D"font-family:arial,sans-serif;font-size:13px">=
<br>

</span></div><div><span style=3D"font-family:arial,sans-serif;font-size:13p=
x">I also installed &#39;</span>camlp4-extra&#39; package and now I got thi=
s error =A0(while Installing cow.0.6.1):</div><div><br></div><div><div>Caml=
p4: Uncaught exception: DynLoader.Error (&quot;xmlm.cma&quot;, &quot;file n=
ot found in path&quot;)</div>

</div><div><br></div><div>Where can I get this &quot;xmlm.cma&quot;, where =
should it be found?</div><div><br></div><div>Please find appended below the=
 full error:</div><div><br></div><div>Thanks for your help.</div><div>
<br>
</div><div>Regards,</div><div><br></div><div>PhiHo</div><div><br></div><div=
><div>=3D-=3D-=3D Installing cow.0.6.1 =3D-=3D-=3D</div><div>Downloading <a=
 href=3D"http://opam.ocamlpro.com/archives/cow.0.6.1+opam.tar.gz" target=3D=
"_blank">http://opam.ocamlpro.com/archives/cow.0.6.1+opam.tar.gz</a>.</div>

<div>Extracting /home/phiho/.opam/archives/cow.0.6.1+opam.tar.gz.</div><div=
>Building cow.0.6.1:</div><div>=A0 make all</div><div>=A0 make install</div=
><div>Installing cow.0.6.1.</div><div>[mirari] Creating ./<a href=3D"http:/=
/filesystem_static.ml/" target=3D"_blank">filesystem_static.ml</a>.</div>

<div>[mirari] + Executing: mir-crunch -o ./<a href=3D"http://filesystem_sta=
tic.ml/" target=3D"_blank">filesystem_static.ml</a> -name &quot;static&quot=
; ./../files</div><div>[mirari] Creating ./<a href=3D"http://filesystem_tem=
plates.ml/" target=3D"_blank">filesystem_templates.ml</a>.</div>

<div>[mirari] + Executing: mir-crunch -o ./<a href=3D"http://filesystem_tem=
plates.ml/" target=3D"_blank">filesystem_templates.ml</a> -name &quot;templ=
ates&quot; ./../tmpl</div><div>[mirari] + Executing: obuild configure</div>
<div>Configuring www-0.0.0...</div>
<div>warning: obuild META search paths and ocaml config mismatch</div><div>=
<br></div><div>=A0 The ocamlfind configuration file used doesn&#39;t list t=
he ocaml standard library</div><div>=A0 as part of his search paths. someth=
ing fishy is going on</div>

<div>=A0 You can solve the issue by:</div><div>=A0 * pointing OCAMLFIND_CON=
F environment to the right configuration file</div><div>=A0 * making sure t=
hat the ocamlfind program in your path is the right one (ocamlfind printcon=
f)</div>

<div><br></div><div>=A0 this is likely to cause various compilation problem=
s</div><div>cd src &amp;&amp; mirari build www.conf</div><div>[mirari] Usin=
g specified config file www.conf</div><div>[mirari] + Executing: obuild bui=
ld</div>

<div>Building executable mir-www</div><div>warning: obuild META search path=
s and ocaml config mismatch</div><div><br></div><div>=A0 The ocamlfind conf=
iguration file used doesn&#39;t list the ocaml standard library</div><div>

=A0 as part of his search paths. something fishy is going on</div><div>=A0 =
You can solve the issue by:</div><div>=A0 * pointing OCAMLFIND_CONF environ=
ment to the right configuration file</div><div>=A0 * making sure that the o=
camlfind program in your path is the right one (ocamlfind printconf)</div>

<div><br></div><div>=A0 this is likely to cause various compilation problem=
s</div><div><br></div><div>Camlp4: Uncaught exception: DynLoader.Error (&qu=
ot;xmlm.cma&quot;, &quot;file not found in path&quot;)</div><div><br></div>

<div>Preprocessing error on file <a href=3D"http://main.ml/" target=3D"_bla=
nk">main.ml</a></div><div>Error while running external preprocessor</div><d=
iv>Command line: camlp4 -parser o -parser op -printer p -I /usr/lib/ocaml/c=
amlp4 -parser o -parser op -printer p -I /home/phiho/.opam/system/lib/ulex =
pa_ulex.cma -I /home/phiho/.opam/system/lib/type_conv pa_type_conv.cma -I /=
home/phiho/.opam/system/lib/dyntype pa_dyntype.cma -I /home/phiho/.opam/sys=
tem/lib/cow xmlm.cma str.cma pa_cow.cma -I /home/phiho/.opam/system/lib/opt=
comp optcomp.cma -I /home/phiho/.opam/system/lib/lwt lwt-syntax-options.cma=
 -I /home/phiho/.opam/system/lib/lwt lwt-syntax.cma -I /home/phiho/.opam/sy=
stem/lib/cstruct cstruct-syntax.cma &#39;<a href=3D"http://main.ml/" target=
=3D"_blank">main.ml</a>&#39; &gt; /tmp/ocamlpp540bdf</div>

<div><br></div><div>[mirari] ERROR: The command &quot;obuild build&quot; ex=
ited with code 8.</div><div>make: *** [build] Error 1</div><div>phiho@mirag=
e:~/mirage-www$</div></div><div><br></div><div><span style=3D"font-family:a=
rial,sans-serif;font-size:13px"><br>

</span></div><div><span style=3D"font-family:arial,sans-serif;font-size:13p=
x"><br></span></div><div style=3D"font-family:arial,sans-serif;font-size:13=
px"></div></div><div class=3D"gmail_extra"><br><br><div class=3D"gmail_quot=
e">

On Mon, Jul 15, 2013 at 4:54 PM, Anil Madhavapeddy <span dir=3D"ltr">&lt;<a=
 href=3D"mailto:anil@recoil.org" target=3D"_blank">anil@recoil.org</a>&gt;<=
/span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8=
ex;border-left:1px #ccc solid;padding-left:1ex">

<div style=3D"word-wrap:break-word"><div>Read the output:</div><div><div>##=
# stderr ###</div><div>./bootstrap: line 23: ocamlopt.opt: command not foun=
d</div><div><br></div></div><div>You need to install the native version of =
the OCaml compilers (the ocaml-native-compilers package).</div>

<span><font color=3D"#888888"><div><br></div><div>-anil</div></font></span>=
<div><div><div><br></div><div><div>On 15 Jul 2013, at 20:20, Phiho Hoang &l=
t;<a href=3D"mailto:hohoangphi@gmail.com" target=3D"_blank">hohoangphi@gmai=
l.com</a>&gt; wrote:</div>

<br><blockquote type=3D"cite"><div dir=3D"ltr">Greetings,<div><br></div><di=
v>Does any one have any idea what is missing in my environment?</div><div><=
br></div><div><span style=3D"font-family:arial,sans-serif;font-size:13px">I=
 got OCaml-4.00 and OPAM-1.0 &quot;stable&quot; from repo at:</span></div>


<div><br style=3D"font-family:arial,sans-serif;font-size:13px"><a href=3D"h=
ttps://launchpad.net/~avsm/+archive/ppa" style=3D"font-family:arial,sans-se=
rif;font-size:13px" target=3D"_blank">https://launchpad.net/~avsm/+archive/=
ppa</a><br>


</div><div><br></div><div>Thanks for your help.</div><div><br></div><div>Re=
gards,</div><div><br></div><div>PhiHo</div><div><br></div></div><div class=
=3D"gmail_extra"><br><br><div class=3D"gmail_quote">On Sun, Jul 14, 2013 at=
 6:21 PM, Phiho Hoang <span dir=3D"ltr">&lt;<a href=3D"mailto:hohoangphi@gm=
ail.com" target=3D"_blank">hohoangphi@gmail.com</a>&gt;</span> wrote:<br>


<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><div dir=3D"ltr"><div>Hi,</div><div><br></di=
v><div>Thank you for the information.</div><div><br></div><div>I got an err=
or while doing:</div>


<div><span style=3D"font-family:arial,sans-serif;font-size:13px"><br></span=
></div><div>
<span style=3D"font-family:arial,sans-serif;font-size:13px">$ opam install =
mirari</span><br></div><div><span style=3D"font-family:arial,sans-serif;fon=
t-size:13px"><br></span></div><div><span style=3D"font-family:arial,sans-se=
rif;font-size:13px">This following also failed:</span></div>



<div><span style=3D"font-family:arial,sans-serif;font-size:13px"><br></span=
></div><div>$ sudo apt-get install =A0ocamlopt<br></div><div><br></div><div=
>Please find appended the console output.</div><div><br></div><div>Regards,=
</div>



<div><br></div><div>PhiHo</div><div><br></div><div><span style=3D"font-fami=
ly:arial,sans-serif;font-size:13px">$ opam install mirari</span><br></div><=
div><span style=3D"font-family:arial,sans-serif;font-size:13px">...</span><=
/div>



<div><span style=3D"font-family:arial,sans-serif;font-size:13px">...</span>=
</div><div><span style=3D"font-family:arial,sans-serif;font-size:13px"><br>=
</span></div><div>=3D=3D=3D=3D ERROR [while installing obuild.0.0.2] =3D=3D=
=3D=3D</div><div>



# opam-version =A0 =A01.0.0</div><div># os =A0 =A0 =A0 =A0 =A0 =A0 =A0linux=
</div><div># command =A0 =A0 =A0 =A0 ./bootstrap</div><div># path =A0 =A0 =
=A0 =A0 =A0 =A0/home/phiho/.opam/system/build/obuild.0.0.2</div><div># exit=
-code =A0 =A0 =A0 127</div><div># env-file =A0 =A0 =A0 =A0/home/phiho/.opam=
/system/build/obuild.0.0.2/obuild-ffb3fd.env</div>



<div># stdout-file =A0 =A0 /home/phiho/.opam/system/build/obuild.0.0.2/obui=
ld-ffb3fd.out</div><div># stderr-file =A0 =A0 /home/phiho/.opam/system/buil=
d/obuild.0.0.2/obuild-ffb3fd.err</div><div>### stdout ###</div><div>COMPILI=
NG fugue</div>



<div>### stderr ###</div><div>./bootstrap: line 23: ocamlopt.opt: command n=
ot found</div><div><br></div><div>&#39;opam install mirari&#39; failed.</di=
v><div><br></div><div><br></div><div>$ sudo apt-get install =A0ocamlopt</di=
v>



<div>Reading package lists... Done</div><div>Building dependency tree</div>=
<div>Reading state information... Done</div><div>E: Unable to locate packag=
e ocamlopt</div><div><br></div><div><div>$ opam install ocamlopt</div>


<div>
ocamlopt is not a valid versioned package name</div><div>&#39;opam install =
ocamlopt&#39; failed.</div></div><div><br></div></div><div><div class=3D"gm=
ail_extra"><br><br><div class=3D"gmail_quote">
On Sun, Jul 14, 2013 at 5:07 PM, PALI Gabor Janos <span dir=3D"ltr">&lt;<a =
href=3D"mailto:pgj@elte.hu" target=3D"_blank">pgj@elte.hu</a>&gt;</span> wr=
ote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><div>On Sun, Jul 14, 2013 at 04:57:16PM -040=
0, Phiho Hoang wrote:<br>
&gt; How can I start to learn about &#39;mirage&#39; using a Ubuntu VM, wha=
t do I need<br>
&gt; to install?<br>
<br>
</div>That should be simply just:<br>
<br>
$ opam init<br>
$ opam remote add mirage-dev git://<a href=3D"http://github.com/mirage/opam=
-repo-dev" target=3D"_blank">github.com/mirage/opam-repo-dev</a><br>
$ eval `opam config -env`<br>
$ opam install mirari<br>
$ git clone git://<a href=3D"http://github.com/mirage/mirage-www" target=3D=
"_blank">github.com/mirage/mirage-www</a><br>
$ cd mirage-www<br>
$ make<br>
$ make run<br>
<div><br>
&gt; It is much appreciated if someone can share a link.<br>
<br>
</div>This information is from the web site: <a href=3D"http://openmirage.o=
rg/wiki/install" target=3D"_blank">http://openmirage.org/wiki/install</a><b=
r>
</blockquote></div><br></div>
</div></blockquote></div><br></div>
</blockquote></div><br></div></div></div></blockquote></div><br></div>
</blockquote></div><br></div></div></div></div></blockquote></div><br></div=
>

--089e01228cf686fad004e1967e29--


From anil@recoil.org Tue Jul 16 02:04:19 2013
Received: from ppsw-mx-f.csi.cam.ac.uk ([131.111.8.149]
	helo=ppsw-42.csi.cam.ac.uk)
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1Uytgh-00063q-6n (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Tue, 16 Jul 2013 02:04:19 +0100
X-Cam-SpamDetails: score 0.0 from SpamAssassin-3.3.2-1502947 
	*  0.0 HTML_MESSAGE BODY: HTML included in message
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from recoil.dh.bytemark.co.uk ([89.16.177.154]:23173
	helo=dark.recoil.org)
	by ppsw-42.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.149]:25)
	with smtp id 1Uytgg-0003sb-96 (Exim 4.80_167-5a66dd3) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Tue, 16 Jul 2013 02:04:19 +0100
Received: (qmail 959 invoked by uid 634); 16 Jul 2013 01:04:18 -0000
X-Spam-Level: *
X-Spam-Status: No, hits=-1.0 required=5.0
	tests=ALL_TRUSTED,HTML_MESSAGE
X-Spam-Check-By: dark.recoil.org
Received: from cpc7-cmbg14-2-0-cust238.5-4.cable.virginmedia.com (HELO
	[192.168.1.125]) (86.30.244.239)
	(smtp-auth username remote@recoil.org, mechanism cram-md5)
	by dark.recoil.org (qpsmtpd/0.84) with ESMTPA;
	Tue, 16 Jul 2013 02:04:18 +0100
Content-Type: multipart/alternative;
	boundary="Apple-Mail=_5DD00C3D-DFC1-41B4-A355-A8F0E063D101"
Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\))
Subject: Re: OPAM+Ubuntu test PPA
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <CALZQg1bpTVcR=1-Kc92KVwn+WbW5rDZxpDRiJ-H-qzZA=3RGkA@mail.gmail.com>
Date: Tue, 16 Jul 2013 02:04:16 +0100
Message-Id: <1176BAB2-AFEF-4774-866E-FA6768A5A2B9@recoil.org>
References: <D2A49680-5CBF-4BA1-B5F9-03EC3DDBB0E7@recoil.org>
	<-2889814563385868015@unknownmsgid>
	<CAG_esB0nm5jNY28yhwsXj0OVgRpyA69ys0mAQCT_ov=sEpwg3g@mail.gmail.com>
	<CALZQg1ZTHYCkEHmzTcTO9rJMxj31ZKzoWt=bxtdT=sMbVdts_Q@mail.gmail.com>
	<20130714210752.GA8321@caesar.elte.hu>
	<CALZQg1ZayoG_r3EwyRAiv_cv3gCPG19DieLViuet9ed73SPf3g@mail.gmail.com>
	<CALZQg1YOVO0yP4NMERHifWGxuU1g8T1Jwb=rofdz3N0fTyNwAQ@mail.gmail.com>
	<4949C24E-7937-443E-BD4C-E3C718F00BEB@recoil.org>
	<CALZQg1YnaEhb42jGb11ze406pM6E7nXxRt-fNb_z=e7adrNapA@mail.gmail.com>
	<F7DDE31B-9A76-4E40-8174-C83DF22ADFF1@recoil.org>
	<CALZQg1bpTVcR=1-Kc92KVwn+WbW5rDZxpDRiJ-H-qzZA=3RGkA@mail.gmail.com>
To: Phiho Hoang <hohoangphi@gmail.com>
X-Mailer: Apple Mail (2.1503)
X-Virus-Checked: Checked by ClamAV on dark.recoil.org
Cc: PALI Gabor Janos <pgj@elte.hu>, David Scott <scott.dj@gmail.com>,
	"cl-mirage@lists.cam.ac.uk List" <cl-mirage@lists.cam.ac.uk>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Tue, 16 Jul 2013 01:04:20 -0000
Content-Length: 2138
Lines: 35


--Apple-Mail=_5DD00C3D-DFC1-41B4-A355-A8F0E063D101
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=iso-8859-1

On 16 Jul 2013, at 01:59, Phiho Hoang <hohoangphi@gmail.com> wrote:

> >  You need to downgrade to cow.0.5.5 (just "opam install cow.0.5.5").
>=20
> ~/mirage-www$ make
>=20
> completed with a warning (please see appended below)
>=20
> I tried 'make install' but it seems there is no such target.
> There is 'src/dist/build/mir-www/mir-www'.
>=20
> How should I proceed from here to learn 'mirage'.
> Links to the documentation, blogs ... would be very much appreciated.

We're working on this at the moment.  The platform isn't released yet, =
but will be soon.=20
-anil


--Apple-Mail=_5DD00C3D-DFC1-41B4-A355-A8F0E063D101
Content-Transfer-Encoding: 7bit
Content-Type: text/html;
	charset=iso-8859-1

<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On 16 Jul 2013, at 01:59, Phiho Hoang &lt;<a href="mailto:hohoangphi@gmail.com">hohoangphi@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr"><div>&gt;&nbsp;<span style="font-family:arial,sans-serif;font-size:13px">&nbsp;You need to downgrade to cow.0.5.5 (just "opam install cow.0.5.5").</span></div><div><span style="font-family:arial,sans-serif;font-size:13px"><div>
<br></div><div>~/mirage-www$ make</div><div><br></div><div>completed with a warning (please see appended below)</div><div><br></div><div>I tried 'make install' but it seems there is no such target.</div><div>There is 'src/dist/build/mir-www/mir-www'.</div>
<div><br></div><div>How should I proceed from here to learn 'mirage'.</div><div>Links to the documentation, blogs ... would be very much appreciated.</div></span></div></div></blockquote><div><br></div>We're working on this at the moment. &nbsp;The platform isn't released yet, but will be soon.&nbsp;</div><div>-anil</div><div><br></div></body></html>
--Apple-Mail=_5DD00C3D-DFC1-41B4-A355-A8F0E063D101--


From hohoangphi@gmail.com Tue Jul 16 02:07:14 2013
Received: from ppsw-32.csi.cam.ac.uk ([131.111.8.132])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1UytjV-000661-Ud (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <hohoangphi@gmail.com>); Tue, 16 Jul 2013 02:07:14 +0100
X-Cam-SpamDetails: score 0.6 from SpamAssassin-3.3.2-1502947 
	* -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/,
	low *      trust
	*      [209.85.219.48 listed in list.dnswl.dnsbl.ja.net]
	* 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail
	provider *       (hohoangphi[at]gmail.com)
	*  0.0 DKIM_ADSP_CUSTOM_MED No valid author signature, adsp_override is
	*      CUSTOM_MED
	*  0.0 HTML_MESSAGE BODY: HTML included in message
	*  0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily
	*      valid
	*  0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid
	*  1.2 NML_ADSP_CUSTOM_MED ADSP custom_med hit, and not from a mailing
	*      list
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from mail-oa0-f48.google.com ([209.85.219.48]:58876)
	by ppsw-32.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.146]:25)
	with esmtp id 1UytjU-0008Hc-2v (Exim 4.80_167-5a66dd3) for
	cl-mirage@lists.cam.ac.uk
	(return-path <hohoangphi@gmail.com>); Tue, 16 Jul 2013 02:07:13 +0100
Received: by mail-oa0-f48.google.com with SMTP id f4so110356oah.7
	for <cl-mirage@lists.cam.ac.uk>; Mon, 15 Jul 2013 18:07:12 -0700 (PDT)
MIME-Version: 1.0
X-Received: by 10.60.54.39 with SMTP id g7mr44992790oep.18.1373936832036; Mon,
	15 Jul 2013 18:07:12 -0700 (PDT)
Received: by 10.76.79.202 with HTTP; Mon, 15 Jul 2013 18:07:11 -0700 (PDT)
In-Reply-To: <1176BAB2-AFEF-4774-866E-FA6768A5A2B9@recoil.org>
References: <D2A49680-5CBF-4BA1-B5F9-03EC3DDBB0E7@recoil.org>
	<-2889814563385868015@unknownmsgid>
	<CAG_esB0nm5jNY28yhwsXj0OVgRpyA69ys0mAQCT_ov=sEpwg3g@mail.gmail.com>
	<CALZQg1ZTHYCkEHmzTcTO9rJMxj31ZKzoWt=bxtdT=sMbVdts_Q@mail.gmail.com>
	<20130714210752.GA8321@caesar.elte.hu>
	<CALZQg1ZayoG_r3EwyRAiv_cv3gCPG19DieLViuet9ed73SPf3g@mail.gmail.com>
	<CALZQg1YOVO0yP4NMERHifWGxuU1g8T1Jwb=rofdz3N0fTyNwAQ@mail.gmail.com>
	<4949C24E-7937-443E-BD4C-E3C718F00BEB@recoil.org>
	<CALZQg1YnaEhb42jGb11ze406pM6E7nXxRt-fNb_z=e7adrNapA@mail.gmail.com>
	<F7DDE31B-9A76-4E40-8174-C83DF22ADFF1@recoil.org>
	<CALZQg1bpTVcR=1-Kc92KVwn+WbW5rDZxpDRiJ-H-qzZA=3RGkA@mail.gmail.com>
	<1176BAB2-AFEF-4774-866E-FA6768A5A2B9@recoil.org>
Date: Mon, 15 Jul 2013 21:07:11 -0400
Message-ID: <CALZQg1bwpoH=rQe5Mo0WjbUa-gLV3SLHMq5h2apm=L7dLQd0iA@mail.gmail.com>
Subject: Re: OPAM+Ubuntu test PPA
From: Phiho Hoang <hohoangphi@gmail.com>
To: Anil Madhavapeddy <anil@recoil.org>
Content-Type: multipart/alternative; boundary=089e01161db0d1471604e19698ae
Cc: PALI Gabor Janos <pgj@elte.hu>, David Scott <scott.dj@gmail.com>,
	"cl-mirage@lists.cam.ac.uk List" <cl-mirage@lists.cam.ac.uk>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Tue, 16 Jul 2013 01:07:14 -0000
Content-Length: 2956
Lines: 76

--089e01161db0d1471604e19698ae
Content-Type: text/plain; charset=ISO-8859-1

> The platform isn't released yet, but will be soon.

Thank you very much.

I am looking forward to the release.

Regards,

PhiHo



On Mon, Jul 15, 2013 at 9:04 PM, Anil Madhavapeddy <anil@recoil.org> wrote:

> On 16 Jul 2013, at 01:59, Phiho Hoang <hohoangphi@gmail.com> wrote:
>
> >  You need to downgrade to cow.0.5.5 (just "opam install cow.0.5.5").
>
> ~/mirage-www$ make
>
> completed with a warning (please see appended below)
>
> I tried 'make install' but it seems there is no such target.
> There is 'src/dist/build/mir-www/mir-www'.
>
> How should I proceed from here to learn 'mirage'.
> Links to the documentation, blogs ... would be very much appreciated.
>
>
> We're working on this at the moment.  The platform isn't released yet, but
> will be soon.
> -anil
>
>

--089e01161db0d1471604e19698ae
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>&gt;=A0<span style=3D"font-size:13px;font-family:aria=
l,sans-serif">The platform isn&#39;t released yet, but will be soon.=A0<br>=
</span><br></div><div>Thank you very much.</div><div><br></div><div>I am lo=
oking forward to the release.</div>
<div><br></div><div>Regards,</div><div><br></div><div>PhiHo</div><div><br><=
/div></div><div class=3D"gmail_extra"><br><br><div class=3D"gmail_quote">On=
 Mon, Jul 15, 2013 at 9:04 PM, Anil Madhavapeddy <span dir=3D"ltr">&lt;<a h=
ref=3D"mailto:anil@recoil.org" target=3D"_blank">anil@recoil.org</a>&gt;</s=
pan> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><div style=3D"word-wrap:break-word"><div><di=
v class=3D"im"><div>On 16 Jul 2013, at 01:59, Phiho Hoang &lt;<a href=3D"ma=
ilto:hohoangphi@gmail.com" target=3D"_blank">hohoangphi@gmail.com</a>&gt; w=
rote:</div>
<br><blockquote type=3D"cite"><div dir=3D"ltr"><div>&gt;=A0<span style=3D"f=
ont-family:arial,sans-serif;font-size:13px">=A0You need to downgrade to cow=
.0.5.5 (just &quot;opam install cow.0.5.5&quot;).</span></div><div><span st=
yle=3D"font-family:arial,sans-serif;font-size:13px"><div>

<br></div><div>~/mirage-www$ make</div><div><br></div><div>completed with a=
 warning (please see appended below)</div><div><br></div><div>I tried &#39;=
make install&#39; but it seems there is no such target.</div><div>There is =
&#39;src/dist/build/mir-www/mir-www&#39;.</div>

<div><br></div><div>How should I proceed from here to learn &#39;mirage&#39=
;.</div><div>Links to the documentation, blogs ... would be very much appre=
ciated.</div></span></div></div></blockquote><div><br></div></div>We&#39;re=
 working on this at the moment. =A0The platform isn&#39;t released yet, but=
 will be soon.=A0</div>
<span class=3D"HOEnZb"><font color=3D"#888888"><div>-anil</div><div><br></d=
iv></font></span></div></blockquote></div><br></div>

--089e01161db0d1471604e19698ae--


From anil@recoil.org Tue Jul 16 02:11:20 2013
Received: from ppsw-mx-f.csi.cam.ac.uk ([131.111.8.149]
	helo=ppsw-42.csi.cam.ac.uk)
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1UytnU-0006AM-1J (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Tue, 16 Jul 2013 02:11:20 +0100
X-Cam-SpamDetails: score 0.0 from SpamAssassin-3.3.2-1502947
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from recoil.dh.bytemark.co.uk ([89.16.177.154]:7868
	helo=dark.recoil.org)
	by ppsw-42.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.149]:25)
	with smtp id 1UytnS-00054P-8N (Exim 4.80_167-5a66dd3) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Tue, 16 Jul 2013 02:11:20 +0100
Received: (qmail 28853 invoked by uid 634); 16 Jul 2013 01:11:18 -0000
X-Spam-Level: *
X-Spam-Status: No, hits=-1.0 required=5.0
	tests=ALL_TRUSTED
X-Spam-Check-By: dark.recoil.org
Received: from cpc7-cmbg14-2-0-cust238.5-4.cable.virginmedia.com (HELO
	[192.168.1.125]) (86.30.244.239)
	(smtp-auth username remote@recoil.org, mechanism cram-md5)
	by dark.recoil.org (qpsmtpd/0.84) with ESMTPA;
	Tue, 16 Jul 2013 02:11:17 +0100
Content-Type: text/plain; charset=iso-8859-1
Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\))
Subject: Re: OPAM+Ubuntu test PPA
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <CAG_esB0nm5jNY28yhwsXj0OVgRpyA69ys0mAQCT_ov=sEpwg3g@mail.gmail.com>
Date: Tue, 16 Jul 2013 02:11:16 +0100
Content-Transfer-Encoding: quoted-printable
Message-Id: <972FB040-0077-4AB5-B54A-20F587B926C9@recoil.org>
References: <D2A49680-5CBF-4BA1-B5F9-03EC3DDBB0E7@recoil.org>
	<-2889814563385868015@unknownmsgid>
	<CAG_esB0nm5jNY28yhwsXj0OVgRpyA69ys0mAQCT_ov=sEpwg3g@mail.gmail.com>
To: David Scott <scott.dj@gmail.com>
X-Mailer: Apple Mail (2.1503)
X-Virus-Checked: Checked by ClamAV on dark.recoil.org
Cc: "cl-mirage@lists.cam.ac.uk List" <cl-mirage@lists.cam.ac.uk>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Tue, 16 Jul 2013 01:11:20 -0000
Content-Length: 1571
Lines: 50

Thanks for testing... I've now uploaded an OPAM-1.1 snapshot package to =
ppa-unstable, so we now have the complete suite.

Also need to test if this PPA works on Debian Wheezy too.

If all that is ok, we should be clear to bump the required compiler =
dependency to 4.1 instead of 4.0, and use ocamlbuild -use-ocamlfind =
directly in Mirari (note that 4.0 backwards compat can still be achieved =
by installing a myocamlbuild.ml, if we really need to).

-anil

On 14 Jul 2013, at 21:15, David Scott <scott.dj@gmail.com> wrote:

> The unstable packages seem to be working fine for me so far -- I've =
been building mirage userspace stuff with no problem.
>=20
> Thanks for making the packages!
>=20
>=20
>=20
> On Sun, Jul 14, 2013 at 1:47 PM, David Scott <scott.dj@gmail.com> =
wrote:
> My primary desktop is Raring atm-- I can try these later today...
>=20
>=20
> On 14 Jul 2013, at 13:00, Anil Madhavapeddy <anil@recoil.org> wrote:
>=20
> > Does anyone have an Ubuntu Raring box that they can test out a =
Ubuntu PPA on for me?  I've packaged up OCaml-4.1 and OPAM-1.0 (with the =
intention of bringing it up to OPAM 1.1 soon).
> >
> > https://launchpad.net/~avsm/+archive/ppa-opam-unstable
> >
> > This lets you install the latest compiler and OPAM and "fast clone" =
(since it'll be the system compiler).  If that all works, then I can =
bump Mirage up to use 4.1 and the newer ocamlbuild next week.
> >
> > In theory, these should work on Debian, but I haven't had a chance =
to try them properly yet.
> >
> > cheers,
> > Anil
>=20
>=20
>=20
> --=20
> Dave Scott



From Dave.Scott@eu.citrix.com Tue Jul 16 08:04:12 2013
Received: from ppsw-33.csi.cam.ac.uk ([131.111.8.133])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1UyzIy-0004TR-9s (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk (return-path <Dave.Scott@eu.citrix.com>);
	Tue, 16 Jul 2013 08:04:12 +0100
X-Cam-SpamDetails: score -0.4 from SpamAssassin-3.3.2-1503139 
	* -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/,
	no *      trust
	*      [46.33.159.39 listed in list.dnswl.dnsbl.ja.net]
	* -0.4 RP_MATCHES_RCVD Envelope sender domain matches handover relay
	*      domain
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from smtp.eu.citrix.com ([46.33.159.39]:4218)
	by ppsw-33.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.147]:25)
	with esmtp id 1UyzIx-0007JX-hu (Exim 4.80_167-5a66dd3) for
	cl-mirage@lists.cam.ac.uk (return-path <Dave.Scott@eu.citrix.com>);
	Tue, 16 Jul 2013 08:04:12 +0100
X-IronPort-AV: E=Sophos;i="4.89,675,1367971200"; 
   d="scan'208";a="6707921"
Received: from lonpex01cl02.citrite.net ([10.30.203.102])
	by LONPIPO01.EU.CITRIX.COM with ESMTP/TLS/AES128-SHA;
	16 Jul 2013 07:04:10 +0000
Received: from LONPEX01CL03.citrite.net ([169.254.3.204]) by
	LONPEX01CL02.citrite.net ([10.30.203.102]) with mapi id 14.02.0342.004;
	Tue, 16 Jul 2013 08:04:10 +0100
From: Dave Scott <Dave.Scott@eu.citrix.com>
To: Anil Madhavapeddy <anil@recoil.org>
Subject: Re: Mirage Xenstore Stub Domain
Thread-Topic: Mirage Xenstore Stub Domain
Thread-Index: AQHOfB+hRNTCceK7SEyAuFtd9+eFZZlbRu4AgAAU3oCACuhbgIAAC2SAgACdjPg=
Date: Tue, 16 Jul 2013 07:04:09 +0000
Message-ID: <9A075C0D-8CD6-40E3-8678-63B66675A845@eu.citrix.com>
References: <CAODgTdNK89XwBHcZL5i2vMdWVqFJNJEKjOnAOSWgewX2uZqx0g@mail.gmail.com>
	<CAG_esB2QKbWzj1FL8pzwh95H7iWv22rEWSv-xyahSErCWuA2sg@mail.gmail.com>
	<CAODgTdMRoYOA3kNffRU7JkejPVarebPrR_mWvq4wuKcqWKTbyw@mail.gmail.com>
	<CAODgTdMctDb3SdG3vRcQ5bL1nqpB485zK7U9RfDR-i4iT9J1ow@mail.gmail.com>,
	<70B9EF9B-635E-4FE0-9D8B-0D46C16EF455@recoil.org>
In-Reply-To: <70B9EF9B-635E-4FE0-9D8B-0D46C16EF455@recoil.org>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Cc: David Scott <scott.dj@gmail.com>, Mirage List <cl-mirage@lists.cam.ac.uk>,
	James Bielman <jamesjb@gmail.com>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Tue, 16 Jul 2013 07:04:12 -0000
Content-Length: 4051
Lines: 112

Hi,

Last time I looked at xen-unstable there was a proposal to make the xenstor=
e domain builder (is that init-xenstore-domain?) itself daemonise and drain=
 the console ring, since xenconsoled can't work in the normal way. I've not=
 followed the discussion closely since, maybe they came up with another sol=
ution? It's worth a quick mailing list archive search.

So I agree an emergency console ring is useful (actually I was going to wri=
te logs to it for now) and it should be possible...

Btw why is write_all causing us to spin on the CPU? Surely we would just bl=
ock if the console ring wasn't being drained? Suspicious...

--=20
Dave Scott

On Jul 15, 2013, at 11:40 PM, "Anil Madhavapeddy" <anil@recoil.org> wrote:

> It would certainly be nicer to arrange for the Xenstore stub domain to ha=
ve access to an emergency console ring in this case.  Is there a Xenconsole=
d stub domain too, Dave, or would this have to be the hypervisor console ri=
ng?
>=20
> -anil
>=20
> On 15 Jul 2013, at 22:59, James Bielman <jamesjb@gmail.com> wrote:
>=20
>> I've hit another snag with the Xenstore stub domain.  I've built "ocaml-=
xenstore-xen" with Mirari, and I'm launching it early in the dom0 boot proc=
ess with "init-xenstore-domain".  The xenstore kernel seems to hang with 10=
0% CPU usage trying to write to the console (which makes some sense to me, =
since nothing is reading from the ring buffer yet).  My guess is that the l=
oop in "OS.Console.write_all" is the culprit---if I stub this function out =
to return zero, it starts up and works just fine.
>>=20
>> I've been trying to figure out if this is a bootstrapping issue that's s=
omewhat unavoidable or a bug, but I don't yet have enough of a handle on ho=
w LWT works to be sure.
>>=20
>> James
>>=20
>>=20
>>=20
>> On Mon, Jul 8, 2013 at 4:25 PM, James Bielman <jamesjb@gmail.com> wrote:
>> Thanks! It builds for me now after following your process and hacking up=
 a quick and dirty mirari config file.
>>=20
>> Cheers,
>> James
>>=20
>>=20
>> On Mon, Jul 8, 2013 at 3:10 PM, David Scott <scott.dj@gmail.com> wrote:
>> Hi James,
>>=20
>> I think you're right -- some key interfaces have changed. Since some of =
the changes are fairly fresh in my memory, I did a first pass at fixing the=
 code.
>>=20
>> The blog post is a bit out of date now. The best way to start is to:
>>=20
>> opam init
>> opam switch 4.00.1
>> opam remote add xapi-project git://github.com/xapi-project/opam-repo-dev
>> opam remote add mirage git://github.com/mirage/opam-repo-dev
>> opam install mirage-xen xenstore
>>=20
>> and then clone the repo and build in the 'xen' directory. For me the fil=
es compile but fail to link. The next thing to do is to investigate using t=
he 'mirari' tool to link a xen kernel, like the other examples in the mirag=
e/mirage-skeleton repo. This is fallout from the recent (very good IMHO) ch=
ange to avoid using a special 'opam compiler switch' to install mirage kern=
els. You can now use a regular (unpatched) compiler and link in the 'mirage=
-xen' package.
>>=20
>> Sorry for the build breakage!
>>=20
>> Cheers
>> Dave
>>=20
>>=20
>> On Mon, Jul 8, 2013 at 10:10 PM, James Bielman <jamesjb@gmail.com> wrote=
:
>> Hi all,
>>=20
>> I am attempting to build the Mirage Xenstore stub domain by following th=
ese instructions on the Mirage blog:
>>=20
>>  http://www.openmirage.org/blog/xenstore-stub-domain
>>=20
>> However, I'm running into some trouble---it looks like the interfaces fo=
r shared memory rings and grant tables have changed since the "xs_transport=
_domain" module was written.  I'm using Mirage as installed from "opam" and=
 the "ocaml-xenstore-xen" module from the Git  repository at:
>>=20
>>   git://github.com/djs55/ocaml-xenstore-xen
>>=20
>> Is there is an updated repository elsewhere that works with the latest M=
irage?  If not, I may take a stab at bringing it up to date, and would appr=
eciate any insight available on gotchas I might run into.
>>=20
>> Thanks,
>> James
>>=20
>>=20
>>=20
>>=20
>> --=20
>> Dave Scott
>=20
>=20


From jamesjb@gmail.com Tue Jul 16 17:04:54 2013
Received: from ppsw-33.csi.cam.ac.uk ([131.111.8.133])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1Uz7kE-0006uK-Mr (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <jamesjb@gmail.com>); Tue, 16 Jul 2013 17:04:54 +0100
X-Cam-SpamDetails: score 0.6 from SpamAssassin-3.3.2-1503139 
	* -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/,
	low *      trust
	*      [209.85.220.181 listed in list.dnswl.dnsbl.ja.net]
	* 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail
	provider *       (jamesjb[at]gmail.com)
	*  0.0 DKIM_ADSP_CUSTOM_MED No valid author signature, adsp_override is
	*      CUSTOM_MED
	*  0.0 HTML_MESSAGE BODY: HTML included in message
	*  0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily
	*      valid
	*  0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid
	*  1.2 NML_ADSP_CUSTOM_MED ADSP custom_med hit, and not from a mailing
	*      list
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from mail-vc0-f181.google.com ([209.85.220.181]:54964)
	by ppsw-33.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.147]:25)
	with esmtp id 1Uz7kD-00044z-i8 (Exim 4.80_167-5a66dd3) for
	cl-mirage@lists.cam.ac.uk
	(return-path <jamesjb@gmail.com>); Tue, 16 Jul 2013 17:04:54 +0100
Received: by mail-vc0-f181.google.com with SMTP id lf11so577480vcb.26
	for <cl-mirage@lists.cam.ac.uk>; Tue, 16 Jul 2013 09:04:53 -0700 (PDT)
MIME-Version: 1.0
X-Received: by 10.220.109.8 with SMTP id h8mr681534vcp.5.1373990692964; Tue,
	16 Jul 2013 09:04:52 -0700 (PDT)
Received: by 10.58.68.129 with HTTP; Tue, 16 Jul 2013 09:04:52 -0700 (PDT)
In-Reply-To: <9A075C0D-8CD6-40E3-8678-63B66675A845@eu.citrix.com>
References: <CAODgTdNK89XwBHcZL5i2vMdWVqFJNJEKjOnAOSWgewX2uZqx0g@mail.gmail.com>
	<CAG_esB2QKbWzj1FL8pzwh95H7iWv22rEWSv-xyahSErCWuA2sg@mail.gmail.com>
	<CAODgTdMRoYOA3kNffRU7JkejPVarebPrR_mWvq4wuKcqWKTbyw@mail.gmail.com>
	<CAODgTdMctDb3SdG3vRcQ5bL1nqpB485zK7U9RfDR-i4iT9J1ow@mail.gmail.com>
	<70B9EF9B-635E-4FE0-9D8B-0D46C16EF455@recoil.org>
	<9A075C0D-8CD6-40E3-8678-63B66675A845@eu.citrix.com>
Date: Tue, 16 Jul 2013 09:04:52 -0700
Message-ID: <CAODgTdOP3L33NtM+Rn5B_XxXQwbp6RaUhZjo7+cOZyQ7k=u2Vg@mail.gmail.com>
Subject: Re: Mirage Xenstore Stub Domain
From: James Bielman <jamesjb@gmail.com>
To: Dave Scott <Dave.Scott@eu.citrix.com>
Content-Type: multipart/alternative; boundary=001a11c3d3d42dd6e804e1a3237d
Cc: David Scott <scott.dj@gmail.com>, Mirage List <cl-mirage@lists.cam.ac.uk>,
	Anil Madhavapeddy <anil@recoil.org>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Tue, 16 Jul 2013 16:04:54 -0000
Content-Length: 10842
Lines: 274

--001a11c3d3d42dd6e804e1a3237d
Content-Type: text/plain; charset=ISO-8859-1

>From what I can tell, it's getting stuck in "Activations.run" once the ring
fills up.  Is it possible that it could spin in "Lwt_sequence.iter_node_l",
repeatedly sleeping and waking itself up, and never finishing?

James



On Tue, Jul 16, 2013 at 12:04 AM, Dave Scott <Dave.Scott@eu.citrix.com>wrote:

> Hi,
>
> Last time I looked at xen-unstable there was a proposal to make the
> xenstore domain builder (is that init-xenstore-domain?) itself daemonise
> and drain the console ring, since xenconsoled can't work in the normal way.
> I've not followed the discussion closely since, maybe they came up with
> another solution? It's worth a quick mailing list archive search.
>
> So I agree an emergency console ring is useful (actually I was going to
> write logs to it for now) and it should be possible...
>
> Btw why is write_all causing us to spin on the CPU? Surely we would just
> block if the console ring wasn't being drained? Suspicious...
>
> --
> Dave Scott
>
> On Jul 15, 2013, at 11:40 PM, "Anil Madhavapeddy" <anil@recoil.org> wrote:
>
> > It would certainly be nicer to arrange for the Xenstore stub domain to
> have access to an emergency console ring in this case.  Is there a
> Xenconsoled stub domain too, Dave, or would this have to be the hypervisor
> console ring?
> >
> > -anil
> >
> > On 15 Jul 2013, at 22:59, James Bielman <jamesjb@gmail.com> wrote:
> >
> >> I've hit another snag with the Xenstore stub domain.  I've built
> "ocaml-xenstore-xen" with Mirari, and I'm launching it early in the dom0
> boot process with "init-xenstore-domain".  The xenstore kernel seems to
> hang with 100% CPU usage trying to write to the console (which makes some
> sense to me, since nothing is reading from the ring buffer yet).  My guess
> is that the loop in "OS.Console.write_all" is the culprit---if I stub this
> function out to return zero, it starts up and works just fine.
> >>
> >> I've been trying to figure out if this is a bootstrapping issue that's
> somewhat unavoidable or a bug, but I don't yet have enough of a handle on
> how LWT works to be sure.
> >>
> >> James
> >>
> >>
> >>
> >> On Mon, Jul 8, 2013 at 4:25 PM, James Bielman <jamesjb@gmail.com>
> wrote:
> >> Thanks! It builds for me now after following your process and hacking
> up a quick and dirty mirari config file.
> >>
> >> Cheers,
> >> James
> >>
> >>
> >> On Mon, Jul 8, 2013 at 3:10 PM, David Scott <scott.dj@gmail.com> wrote:
> >> Hi James,
> >>
> >> I think you're right -- some key interfaces have changed. Since some of
> the changes are fairly fresh in my memory, I did a first pass at fixing the
> code.
> >>
> >> The blog post is a bit out of date now. The best way to start is to:
> >>
> >> opam init
> >> opam switch 4.00.1
> >> opam remote add xapi-project git://
> github.com/xapi-project/opam-repo-dev
> >> opam remote add mirage git://github.com/mirage/opam-repo-dev
> >> opam install mirage-xen xenstore
> >>
> >> and then clone the repo and build in the 'xen' directory. For me the
> files compile but fail to link. The next thing to do is to investigate
> using the 'mirari' tool to link a xen kernel, like the other examples in
> the mirage/mirage-skeleton repo. This is fallout from the recent (very good
> IMHO) change to avoid using a special 'opam compiler switch' to install
> mirage kernels. You can now use a regular (unpatched) compiler and link in
> the 'mirage-xen' package.
> >>
> >> Sorry for the build breakage!
> >>
> >> Cheers
> >> Dave
> >>
> >>
> >> On Mon, Jul 8, 2013 at 10:10 PM, James Bielman <jamesjb@gmail.com>
> wrote:
> >> Hi all,
> >>
> >> I am attempting to build the Mirage Xenstore stub domain by following
> these instructions on the Mirage blog:
> >>
> >>  http://www.openmirage.org/blog/xenstore-stub-domain
> >>
> >> However, I'm running into some trouble---it looks like the interfaces
> for shared memory rings and grant tables have changed since the
> "xs_transport_domain" module was written.  I'm using Mirage as installed
> from "opam" and the "ocaml-xenstore-xen" module from the Git  repository at:
> >>
> >>   git://github.com/djs55/ocaml-xenstore-xen
> >>
> >> Is there is an updated repository elsewhere that works with the latest
> Mirage?  If not, I may take a stab at bringing it up to date, and would
> appreciate any insight available on gotchas I might run into.
> >>
> >> Thanks,
> >> James
> >>
> >>
> >>
> >>
> >> --
> >> Dave Scott
> >
> >
>

--001a11c3d3d42dd6e804e1a3237d
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">From what I can tell, it&#39;s getting stuck in &quot;Acti=
vations.run&quot; once the ring fills up. =A0Is it possible that it could s=
pin in &quot;Lwt_sequence.iter_node_l&quot;, repeatedly sleeping and waking=
 itself up, and never finishing?<div>
<br></div><div>James</div><div><br></div></div><div class=3D"gmail_extra"><=
br><br><div class=3D"gmail_quote">On Tue, Jul 16, 2013 at 12:04 AM, Dave Sc=
ott <span dir=3D"ltr">&lt;<a href=3D"mailto:Dave.Scott@eu.citrix.com" targe=
t=3D"_blank">Dave.Scott@eu.citrix.com</a>&gt;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">Hi,<br>
<br>
Last time I looked at xen-unstable there was a proposal to make the xenstor=
e domain builder (is that init-xenstore-domain?) itself daemonise and drain=
 the console ring, since xenconsoled can&#39;t work in the normal way. I&#3=
9;ve not followed the discussion closely since, maybe they came up with ano=
ther solution? It&#39;s worth a quick mailing list archive search.<br>

<br>
So I agree an emergency console ring is useful (actually I was going to wri=
te logs to it for now) and it should be possible...<br>
<br>
Btw why is write_all causing us to spin on the CPU? Surely we would just bl=
ock if the console ring wasn&#39;t being drained? Suspicious...<br>
<span class=3D"HOEnZb"><font color=3D"#888888"><br>
--<br>
Dave Scott<br>
</font></span><div class=3D"HOEnZb"><div class=3D"h5"><br>
On Jul 15, 2013, at 11:40 PM, &quot;Anil Madhavapeddy&quot; &lt;<a href=3D"=
mailto:anil@recoil.org">anil@recoil.org</a>&gt; wrote:<br>
<br>
&gt; It would certainly be nicer to arrange for the Xenstore stub domain to=
 have access to an emergency console ring in this case. =A0Is there a Xenco=
nsoled stub domain too, Dave, or would this have to be the hypervisor conso=
le ring?<br>

&gt;<br>
&gt; -anil<br>
&gt;<br>
&gt; On 15 Jul 2013, at 22:59, James Bielman &lt;<a href=3D"mailto:jamesjb@=
gmail.com">jamesjb@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt;&gt; I&#39;ve hit another snag with the Xenstore stub domain. =A0I&#39;=
ve built &quot;ocaml-xenstore-xen&quot; with Mirari, and I&#39;m launching =
it early in the dom0 boot process with &quot;init-xenstore-domain&quot;. =
=A0The xenstore kernel seems to hang with 100% CPU usage trying to write to=
 the console (which makes some sense to me, since nothing is reading from t=
he ring buffer yet). =A0My guess is that the loop in &quot;OS.Console.write=
_all&quot; is the culprit---if I stub this function out to return zero, it =
starts up and works just fine.<br>

&gt;&gt;<br>
&gt;&gt; I&#39;ve been trying to figure out if this is a bootstrapping issu=
e that&#39;s somewhat unavoidable or a bug, but I don&#39;t yet have enough=
 of a handle on how LWT works to be sure.<br>
&gt;&gt;<br>
&gt;&gt; James<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Mon, Jul 8, 2013 at 4:25 PM, James Bielman &lt;<a href=3D"mailt=
o:jamesjb@gmail.com">jamesjb@gmail.com</a>&gt; wrote:<br>
&gt;&gt; Thanks! It builds for me now after following your process and hack=
ing up a quick and dirty mirari config file.<br>
&gt;&gt;<br>
&gt;&gt; Cheers,<br>
&gt;&gt; James<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Mon, Jul 8, 2013 at 3:10 PM, David Scott &lt;<a href=3D"mailto:=
scott.dj@gmail.com">scott.dj@gmail.com</a>&gt; wrote:<br>
&gt;&gt; Hi James,<br>
&gt;&gt;<br>
&gt;&gt; I think you&#39;re right -- some key interfaces have changed. Sinc=
e some of the changes are fairly fresh in my memory, I did a first pass at =
fixing the code.<br>
&gt;&gt;<br>
&gt;&gt; The blog post is a bit out of date now. The best way to start is t=
o:<br>
&gt;&gt;<br>
&gt;&gt; opam init<br>
&gt;&gt; opam switch 4.00.1<br>
&gt;&gt; opam remote add xapi-project git://<a href=3D"http://github.com/xa=
pi-project/opam-repo-dev" target=3D"_blank">github.com/xapi-project/opam-re=
po-dev</a><br>
&gt;&gt; opam remote add mirage git://<a href=3D"http://github.com/mirage/o=
pam-repo-dev" target=3D"_blank">github.com/mirage/opam-repo-dev</a><br>
&gt;&gt; opam install mirage-xen xenstore<br>
&gt;&gt;<br>
&gt;&gt; and then clone the repo and build in the &#39;xen&#39; directory. =
For me the files compile but fail to link. The next thing to do is to inves=
tigate using the &#39;mirari&#39; tool to link a xen kernel, like the other=
 examples in the mirage/mirage-skeleton repo. This is fallout from the rece=
nt (very good IMHO) change to avoid using a special &#39;opam compiler swit=
ch&#39; to install mirage kernels. You can now use a regular (unpatched) co=
mpiler and link in the &#39;mirage-xen&#39; package.<br>

&gt;&gt;<br>
&gt;&gt; Sorry for the build breakage!<br>
&gt;&gt;<br>
&gt;&gt; Cheers<br>
&gt;&gt; Dave<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Mon, Jul 8, 2013 at 10:10 PM, James Bielman &lt;<a href=3D"mail=
to:jamesjb@gmail.com">jamesjb@gmail.com</a>&gt; wrote:<br>
&gt;&gt; Hi all,<br>
&gt;&gt;<br>
&gt;&gt; I am attempting to build the Mirage Xenstore stub domain by follow=
ing these instructions on the Mirage blog:<br>
&gt;&gt;<br>
&gt;&gt; =A0<a href=3D"http://www.openmirage.org/blog/xenstore-stub-domain"=
 target=3D"_blank">http://www.openmirage.org/blog/xenstore-stub-domain</a><=
br>
&gt;&gt;<br>
&gt;&gt; However, I&#39;m running into some trouble---it looks like the int=
erfaces for shared memory rings and grant tables have changed since the &qu=
ot;xs_transport_domain&quot; module was written. =A0I&#39;m using Mirage as=
 installed from &quot;opam&quot; and the &quot;ocaml-xenstore-xen&quot; mod=
ule from the Git =A0repository at:<br>

&gt;&gt;<br>
&gt;&gt; =A0 git://<a href=3D"http://github.com/djs55/ocaml-xenstore-xen" t=
arget=3D"_blank">github.com/djs55/ocaml-xenstore-xen</a><br>
&gt;&gt;<br>
&gt;&gt; Is there is an updated repository elsewhere that works with the la=
test Mirage? =A0If not, I may take a stab at bringing it up to date, and wo=
uld appreciate any insight available on gotchas I might run into.<br>
&gt;&gt;<br>
&gt;&gt; Thanks,<br>
&gt;&gt; James<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; Dave Scott<br>
&gt;<br>
&gt;<br>
</div></div></blockquote></div><br></div>

--001a11c3d3d42dd6e804e1a3237d--


From jamesjb@gmail.com Tue Jul 16 17:29:16 2013
Received: from ppsw-mx-f.csi.cam.ac.uk ([131.111.8.149]
	helo=ppsw-42.csi.cam.ac.uk)
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1Uz87o-0007Ps-PY (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <jamesjb@gmail.com>); Tue, 16 Jul 2013 17:29:16 +0100
X-Cam-SpamDetails: score 0.6 from SpamAssassin-3.3.2-1503139 
	* -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/,
	low *      trust
	*      [209.85.220.178 listed in list.dnswl.dnsbl.ja.net]
	* 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail
	provider *       (jamesjb[at]gmail.com)
	*  0.0 DKIM_ADSP_CUSTOM_MED No valid author signature, adsp_override is
	*      CUSTOM_MED
	*  0.0 HTML_MESSAGE BODY: HTML included in message
	*  0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily
	*      valid
	*  0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid
	*  1.2 NML_ADSP_CUSTOM_MED ADSP custom_med hit, and not from a mailing
	*      list
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from mail-vc0-f178.google.com ([209.85.220.178]:48797)
	by ppsw-42.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.149]:25)
	with esmtp id 1Uz87n-0007rv-7z (Exim 4.80_167-5a66dd3) for
	cl-mirage@lists.cam.ac.uk
	(return-path <jamesjb@gmail.com>); Tue, 16 Jul 2013 17:29:16 +0100
Received: by mail-vc0-f178.google.com with SMTP id m17so615506vca.9
	for <cl-mirage@lists.cam.ac.uk>; Tue, 16 Jul 2013 09:29:14 -0700 (PDT)
MIME-Version: 1.0
X-Received: by 10.52.94.211 with SMTP id de19mr576956vdb.59.1373992154799;
	Tue, 16 Jul 2013 09:29:14 -0700 (PDT)
Received: by 10.58.68.129 with HTTP; Tue, 16 Jul 2013 09:29:14 -0700 (PDT)
In-Reply-To: <CAODgTdOP3L33NtM+Rn5B_XxXQwbp6RaUhZjo7+cOZyQ7k=u2Vg@mail.gmail.com>
References: <CAODgTdNK89XwBHcZL5i2vMdWVqFJNJEKjOnAOSWgewX2uZqx0g@mail.gmail.com>
	<CAG_esB2QKbWzj1FL8pzwh95H7iWv22rEWSv-xyahSErCWuA2sg@mail.gmail.com>
	<CAODgTdMRoYOA3kNffRU7JkejPVarebPrR_mWvq4wuKcqWKTbyw@mail.gmail.com>
	<CAODgTdMctDb3SdG3vRcQ5bL1nqpB485zK7U9RfDR-i4iT9J1ow@mail.gmail.com>
	<70B9EF9B-635E-4FE0-9D8B-0D46C16EF455@recoil.org>
	<9A075C0D-8CD6-40E3-8678-63B66675A845@eu.citrix.com>
	<CAODgTdOP3L33NtM+Rn5B_XxXQwbp6RaUhZjo7+cOZyQ7k=u2Vg@mail.gmail.com>
Date: Tue, 16 Jul 2013 09:29:14 -0700
Message-ID: <CAODgTdOFnte5jSFXP12Hfp8CCHuhVtG6rYT0kk_Ah7Qo+g254A@mail.gmail.com>
Subject: Re: Mirage Xenstore Stub Domain
From: James Bielman <jamesjb@gmail.com>
To: Dave Scott <Dave.Scott@eu.citrix.com>
Content-Type: multipart/mixed; boundary=20cf307cfec64fb25c04e1a37ae3
Cc: David Scott <scott.dj@gmail.com>, Mirage List <cl-mirage@lists.cam.ac.uk>,
	Anil Madhavapeddy <anil@recoil.org>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Tue, 16 Jul 2013 16:29:16 -0000
Content-Length: 14429
Lines: 350

--20cf307cfec64fb25c04e1a37ae3
Content-Type: multipart/alternative; boundary=20cf307cfec64fb25804e1a37ae1

--20cf307cfec64fb25804e1a37ae1
Content-Type: text/plain; charset=ISO-8859-1

Yeah, I think we get stuck because "Activations.run" traverses the callback
sequence left-to-right, then when the thread is awakened, it re-adds itself
on the right, which means the iteration never terminates when the blocked
thread can't make progress.

This patch fixes the issue for me by adding waiters on the front of the
callback list, but I'm not sure it's the best solution.

Thanks,
James




On Tue, Jul 16, 2013 at 9:04 AM, James Bielman <jamesjb@gmail.com> wrote:

> From what I can tell, it's getting stuck in "Activations.run" once the
> ring fills up.  Is it possible that it could spin in
> "Lwt_sequence.iter_node_l", repeatedly sleeping and waking itself up, and
> never finishing?
>
> James
>
>
>
> On Tue, Jul 16, 2013 at 12:04 AM, Dave Scott <Dave.Scott@eu.citrix.com>wrote:
>
>> Hi,
>>
>> Last time I looked at xen-unstable there was a proposal to make the
>> xenstore domain builder (is that init-xenstore-domain?) itself daemonise
>> and drain the console ring, since xenconsoled can't work in the normal way.
>> I've not followed the discussion closely since, maybe they came up with
>> another solution? It's worth a quick mailing list archive search.
>>
>> So I agree an emergency console ring is useful (actually I was going to
>> write logs to it for now) and it should be possible...
>>
>> Btw why is write_all causing us to spin on the CPU? Surely we would just
>> block if the console ring wasn't being drained? Suspicious...
>>
>> --
>> Dave Scott
>>
>> On Jul 15, 2013, at 11:40 PM, "Anil Madhavapeddy" <anil@recoil.org>
>> wrote:
>>
>> > It would certainly be nicer to arrange for the Xenstore stub domain to
>> have access to an emergency console ring in this case.  Is there a
>> Xenconsoled stub domain too, Dave, or would this have to be the hypervisor
>> console ring?
>> >
>> > -anil
>> >
>> > On 15 Jul 2013, at 22:59, James Bielman <jamesjb@gmail.com> wrote:
>> >
>> >> I've hit another snag with the Xenstore stub domain.  I've built
>> "ocaml-xenstore-xen" with Mirari, and I'm launching it early in the dom0
>> boot process with "init-xenstore-domain".  The xenstore kernel seems to
>> hang with 100% CPU usage trying to write to the console (which makes some
>> sense to me, since nothing is reading from the ring buffer yet).  My guess
>> is that the loop in "OS.Console.write_all" is the culprit---if I stub this
>> function out to return zero, it starts up and works just fine.
>> >>
>> >> I've been trying to figure out if this is a bootstrapping issue that's
>> somewhat unavoidable or a bug, but I don't yet have enough of a handle on
>> how LWT works to be sure.
>> >>
>> >> James
>> >>
>> >>
>> >>
>> >> On Mon, Jul 8, 2013 at 4:25 PM, James Bielman <jamesjb@gmail.com>
>> wrote:
>> >> Thanks! It builds for me now after following your process and hacking
>> up a quick and dirty mirari config file.
>> >>
>> >> Cheers,
>> >> James
>> >>
>> >>
>> >> On Mon, Jul 8, 2013 at 3:10 PM, David Scott <scott.dj@gmail.com>
>> wrote:
>> >> Hi James,
>> >>
>> >> I think you're right -- some key interfaces have changed. Since some
>> of the changes are fairly fresh in my memory, I did a first pass at fixing
>> the code.
>> >>
>> >> The blog post is a bit out of date now. The best way to start is to:
>> >>
>> >> opam init
>> >> opam switch 4.00.1
>> >> opam remote add xapi-project git://
>> github.com/xapi-project/opam-repo-dev
>> >> opam remote add mirage git://github.com/mirage/opam-repo-dev
>> >> opam install mirage-xen xenstore
>> >>
>> >> and then clone the repo and build in the 'xen' directory. For me the
>> files compile but fail to link. The next thing to do is to investigate
>> using the 'mirari' tool to link a xen kernel, like the other examples in
>> the mirage/mirage-skeleton repo. This is fallout from the recent (very good
>> IMHO) change to avoid using a special 'opam compiler switch' to install
>> mirage kernels. You can now use a regular (unpatched) compiler and link in
>> the 'mirage-xen' package.
>> >>
>> >> Sorry for the build breakage!
>> >>
>> >> Cheers
>> >> Dave
>> >>
>> >>
>> >> On Mon, Jul 8, 2013 at 10:10 PM, James Bielman <jamesjb@gmail.com>
>> wrote:
>> >> Hi all,
>> >>
>> >> I am attempting to build the Mirage Xenstore stub domain by following
>> these instructions on the Mirage blog:
>> >>
>> >>  http://www.openmirage.org/blog/xenstore-stub-domain
>> >>
>> >> However, I'm running into some trouble---it looks like the interfaces
>> for shared memory rings and grant tables have changed since the
>> "xs_transport_domain" module was written.  I'm using Mirage as installed
>> from "opam" and the "ocaml-xenstore-xen" module from the Git  repository at:
>> >>
>> >>   git://github.com/djs55/ocaml-xenstore-xen
>> >>
>> >> Is there is an updated repository elsewhere that works with the latest
>> Mirage?  If not, I may take a stab at bringing it up to date, and would
>> appreciate any insight available on gotchas I might run into.
>> >>
>> >> Thanks,
>> >> James
>> >>
>> >>
>> >>
>> >>
>> >> --
>> >> Dave Scott
>> >
>> >
>>
>
>

--20cf307cfec64fb25804e1a37ae1
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Yeah, I think we get stuck because &quot;Activations.run&q=
uot; traverses the callback sequence left-to-right, then when the thread is=
 awakened, it re-adds itself on the right, which means the iteration never =
terminates when the blocked thread can&#39;t make progress.<div>
<br></div><div>This patch fixes the issue for me by adding waiters on the f=
ront of the callback list, but I&#39;m not sure it&#39;s the best solution.=
</div><div><br></div><div>Thanks,</div><div>James</div><div><br></div><div>
<br></div></div><div class=3D"gmail_extra"><br><br><div class=3D"gmail_quot=
e">On Tue, Jul 16, 2013 at 9:04 AM, James Bielman <span dir=3D"ltr">&lt;<a =
href=3D"mailto:jamesjb@gmail.com" target=3D"_blank">jamesjb@gmail.com</a>&g=
t;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><div dir=3D"ltr">From what I can tell, it&#3=
9;s getting stuck in &quot;Activations.run&quot; once the ring fills up. =
=A0Is it possible that it could spin in &quot;Lwt_sequence.iter_node_l&quot=
;, repeatedly sleeping and waking itself up, and never finishing?<span clas=
s=3D"HOEnZb"><font color=3D"#888888"><div>

<br></div><div>James</div><div><br></div></font></span></div><div class=3D"=
HOEnZb"><div class=3D"h5"><div class=3D"gmail_extra"><br><br><div class=3D"=
gmail_quote">On Tue, Jul 16, 2013 at 12:04 AM, Dave Scott <span dir=3D"ltr"=
>&lt;<a href=3D"mailto:Dave.Scott@eu.citrix.com" target=3D"_blank">Dave.Sco=
tt@eu.citrix.com</a>&gt;</span> wrote:<br>

<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">Hi,<br>
<br>
Last time I looked at xen-unstable there was a proposal to make the xenstor=
e domain builder (is that init-xenstore-domain?) itself daemonise and drain=
 the console ring, since xenconsoled can&#39;t work in the normal way. I&#3=
9;ve not followed the discussion closely since, maybe they came up with ano=
ther solution? It&#39;s worth a quick mailing list archive search.<br>


<br>
So I agree an emergency console ring is useful (actually I was going to wri=
te logs to it for now) and it should be possible...<br>
<br>
Btw why is write_all causing us to spin on the CPU? Surely we would just bl=
ock if the console ring wasn&#39;t being drained? Suspicious...<br>
<span><font color=3D"#888888"><br>
--<br>
Dave Scott<br>
</font></span><div><div><br>
On Jul 15, 2013, at 11:40 PM, &quot;Anil Madhavapeddy&quot; &lt;<a href=3D"=
mailto:anil@recoil.org" target=3D"_blank">anil@recoil.org</a>&gt; wrote:<br=
>
<br>
&gt; It would certainly be nicer to arrange for the Xenstore stub domain to=
 have access to an emergency console ring in this case. =A0Is there a Xenco=
nsoled stub domain too, Dave, or would this have to be the hypervisor conso=
le ring?<br>


&gt;<br>
&gt; -anil<br>
&gt;<br>
&gt; On 15 Jul 2013, at 22:59, James Bielman &lt;<a href=3D"mailto:jamesjb@=
gmail.com" target=3D"_blank">jamesjb@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt;&gt; I&#39;ve hit another snag with the Xenstore stub domain. =A0I&#39;=
ve built &quot;ocaml-xenstore-xen&quot; with Mirari, and I&#39;m launching =
it early in the dom0 boot process with &quot;init-xenstore-domain&quot;. =
=A0The xenstore kernel seems to hang with 100% CPU usage trying to write to=
 the console (which makes some sense to me, since nothing is reading from t=
he ring buffer yet). =A0My guess is that the loop in &quot;OS.Console.write=
_all&quot; is the culprit---if I stub this function out to return zero, it =
starts up and works just fine.<br>


&gt;&gt;<br>
&gt;&gt; I&#39;ve been trying to figure out if this is a bootstrapping issu=
e that&#39;s somewhat unavoidable or a bug, but I don&#39;t yet have enough=
 of a handle on how LWT works to be sure.<br>
&gt;&gt;<br>
&gt;&gt; James<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Mon, Jul 8, 2013 at 4:25 PM, James Bielman &lt;<a href=3D"mailt=
o:jamesjb@gmail.com" target=3D"_blank">jamesjb@gmail.com</a>&gt; wrote:<br>
&gt;&gt; Thanks! It builds for me now after following your process and hack=
ing up a quick and dirty mirari config file.<br>
&gt;&gt;<br>
&gt;&gt; Cheers,<br>
&gt;&gt; James<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Mon, Jul 8, 2013 at 3:10 PM, David Scott &lt;<a href=3D"mailto:=
scott.dj@gmail.com" target=3D"_blank">scott.dj@gmail.com</a>&gt; wrote:<br>
&gt;&gt; Hi James,<br>
&gt;&gt;<br>
&gt;&gt; I think you&#39;re right -- some key interfaces have changed. Sinc=
e some of the changes are fairly fresh in my memory, I did a first pass at =
fixing the code.<br>
&gt;&gt;<br>
&gt;&gt; The blog post is a bit out of date now. The best way to start is t=
o:<br>
&gt;&gt;<br>
&gt;&gt; opam init<br>
&gt;&gt; opam switch 4.00.1<br>
&gt;&gt; opam remote add xapi-project git://<a href=3D"http://github.com/xa=
pi-project/opam-repo-dev" target=3D"_blank">github.com/xapi-project/opam-re=
po-dev</a><br>
&gt;&gt; opam remote add mirage git://<a href=3D"http://github.com/mirage/o=
pam-repo-dev" target=3D"_blank">github.com/mirage/opam-repo-dev</a><br>
&gt;&gt; opam install mirage-xen xenstore<br>
&gt;&gt;<br>
&gt;&gt; and then clone the repo and build in the &#39;xen&#39; directory. =
For me the files compile but fail to link. The next thing to do is to inves=
tigate using the &#39;mirari&#39; tool to link a xen kernel, like the other=
 examples in the mirage/mirage-skeleton repo. This is fallout from the rece=
nt (very good IMHO) change to avoid using a special &#39;opam compiler swit=
ch&#39; to install mirage kernels. You can now use a regular (unpatched) co=
mpiler and link in the &#39;mirage-xen&#39; package.<br>


&gt;&gt;<br>
&gt;&gt; Sorry for the build breakage!<br>
&gt;&gt;<br>
&gt;&gt; Cheers<br>
&gt;&gt; Dave<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Mon, Jul 8, 2013 at 10:10 PM, James Bielman &lt;<a href=3D"mail=
to:jamesjb@gmail.com" target=3D"_blank">jamesjb@gmail.com</a>&gt; wrote:<br=
>
&gt;&gt; Hi all,<br>
&gt;&gt;<br>
&gt;&gt; I am attempting to build the Mirage Xenstore stub domain by follow=
ing these instructions on the Mirage blog:<br>
&gt;&gt;<br>
&gt;&gt; =A0<a href=3D"http://www.openmirage.org/blog/xenstore-stub-domain"=
 target=3D"_blank">http://www.openmirage.org/blog/xenstore-stub-domain</a><=
br>
&gt;&gt;<br>
&gt;&gt; However, I&#39;m running into some trouble---it looks like the int=
erfaces for shared memory rings and grant tables have changed since the &qu=
ot;xs_transport_domain&quot; module was written. =A0I&#39;m using Mirage as=
 installed from &quot;opam&quot; and the &quot;ocaml-xenstore-xen&quot; mod=
ule from the Git =A0repository at:<br>


&gt;&gt;<br>
&gt;&gt; =A0 git://<a href=3D"http://github.com/djs55/ocaml-xenstore-xen" t=
arget=3D"_blank">github.com/djs55/ocaml-xenstore-xen</a><br>
&gt;&gt;<br>
&gt;&gt; Is there is an updated repository elsewhere that works with the la=
test Mirage? =A0If not, I may take a stab at bringing it up to date, and wo=
uld appreciate any insight available on gotchas I might run into.<br>
&gt;&gt;<br>
&gt;&gt; Thanks,<br>
&gt;&gt; James<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; Dave Scott<br>
&gt;<br>
&gt;<br>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>

--20cf307cfec64fb25804e1a37ae1--
--20cf307cfec64fb25c04e1a37ae3
Content-Type: application/octet-stream; 
	name="0001-Add-activation-event-callbacks-in-reverse-order.patch"
Content-Disposition: attachment; 
	filename="0001-Add-activation-event-callbacks-in-reverse-order.patch"
Content-Transfer-Encoding: base64
X-Attachment-Id: f_hj7bedbt0

RnJvbSBmMzZmNTEyZDFjZGUyZjc4MjJhZDUwN2MyM2FjNTY2M2JhZWNhMmZkIE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBKYW1lcyBCaWVsbWFuIDxqYW1lc2piQGdhbG9pcy5jb20+CkRh
dGU6IFR1ZSwgMTYgSnVsIDIwMTMgMDk6MTY6MTQgLTA3MDAKU3ViamVjdDogW1BBVENIXSBBZGQg
YWN0aXZhdGlvbiBldmVudCBjYWxsYmFja3MgaW4gcmV2ZXJzZSBvcmRlci4KCi0gUHJldmVudHMg
c3Bpbm5pbmcgaW4gIkFjdGl2YXRpb25zLnJ1biIgd2hlbiBhIHRocmVhZCBpcyBibG9ja2VkLAog
IHRoZW4gYXdha2VuZWQsIGFuZCBhZGRlZCB0byB0aGUgc2VxdWVuY2UgYWxyZWFkeSBiZWluZyB0
cmF2ZXJzZWQuCiAgQnkgYWRkaW5nIHRoZSBhd2FrZW5lZCBldmVudCB0byB0aGUgZnJvbnQsIHdl
IGRvbid0IHRyYXZlcnNlIGl0CiAgYWdhaW4gaW4gdGhlIHNhbWUgaXRlcmF0aW9uLgotLS0KIHhl
bi9saWIvYWN0aXZhdGlvbnMubWwgfCAgICAyICstCiAxIGZpbGUgY2hhbmdlZCwgMSBpbnNlcnRp
b24oKyksIDEgZGVsZXRpb24oLSkKCmRpZmYgLS1naXQgYS94ZW4vbGliL2FjdGl2YXRpb25zLm1s
IGIveGVuL2xpYi9hY3RpdmF0aW9ucy5tbAppbmRleCAwNGEwNTAzLi5kNTI3ODUxIDEwMDY0NAot
LS0gYS94ZW4vbGliL2FjdGl2YXRpb25zLm1sCisrKyBiL3hlbi9saWIvYWN0aXZhdGlvbnMubWwK
QEAgLTI3LDcgKzI3LDcgQEAgbGV0IHdhaXQgZXZ0Y2huID0KICAgaWYgRXZlbnRjaG4uaXNfdmFs
aWQgZXZ0Y2huIHRoZW4gYmVnaW4KIAkgIGxldCBwb3J0ID0gRXZlbnRjaG4udG9faW50IGV2dGNo
biBpbgogCSAgbGV0IHRoLCB1ID0gTHd0LnRhc2sgKCkgaW4KLQkgIGxldCBub2RlID0gTHd0X3Nl
cXVlbmNlLmFkZF9yIHUgZXZlbnRfY2IuKHBvcnQpIGluCisJICBsZXQgbm9kZSA9IEx3dF9zZXF1
ZW5jZS5hZGRfbCB1IGV2ZW50X2NiLihwb3J0KSBpbgogCSAgTHd0Lm9uX2NhbmNlbCB0aCAoZnVu
IF8gLT4gTHd0X3NlcXVlbmNlLnJlbW92ZSBub2RlKTsKIAkgIHRoCiAgIGVuZCBlbHNlIEx3dC5m
YWlsIEdlbmVyYXRpb24uSW52YWxpZAotLSAKMS43LjkuNQoK
--20cf307cfec64fb25c04e1a37ae3--


From anil@recoil.org Thu Jul 18 10:57:14 2013
Received: from ppsw-33.csi.cam.ac.uk ([131.111.8.133])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1UzkxW-000123-RP (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Thu, 18 Jul 2013 10:57:14 +0100
X-Cam-SpamDetails: score 0.0 from SpamAssassin-3.3.2-1504054 
	*  0.0 HTML_MESSAGE BODY: HTML included in message
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from recoil.dh.bytemark.co.uk ([89.16.177.154]:4882
	helo=dark.recoil.org)
	by ppsw-33.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.147]:25)
	with smtp id 1UzkxV-0002IG-i8 (Exim 4.80_167-5a66dd3) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Thu, 18 Jul 2013 10:57:14 +0100
Received: (qmail 28116 invoked by uid 634); 18 Jul 2013 09:57:13 -0000
X-Spam-Level: *
X-Spam-Status: No, hits=-1.0 required=5.0
	tests=ALL_TRUSTED,HTML_MESSAGE
X-Spam-Check-By: dark.recoil.org
Received: from host81-149-212-230.in-addr.btopenworld.com (HELO [10.0.1.58])
	(81.149.212.230)
	(smtp-auth username remote@recoil.org, mechanism cram-md5)
	by dark.recoil.org (qpsmtpd/0.84) with ESMTPA;
	Thu, 18 Jul 2013 10:57:12 +0100
From: Anil Madhavapeddy <anil@recoil.org>
Content-Type: multipart/alternative;
	boundary="Apple-Mail=_9E79F944-D2CD-495B-B622-56EFDD584C58"
Subject: Fwd: [mirage-www] tidy up install instructions (#13)
Date: Thu, 18 Jul 2013 10:57:06 +0100
References: <mirage/mirage-www/pull/13@github.com>
To: "cl-mirage@lists.cam.ac.uk List" <cl-mirage@lists.cam.ac.uk>
Message-Id: <3B6B00CB-857B-4587-82C9-F9C59EF27BC6@recoil.org>
Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\))
X-Mailer: Apple Mail (2.1503)
X-Virus-Checked: Checked by ClamAV on dark.recoil.org
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Thu, 18 Jul 2013 09:57:14 -0000
Content-Length: 7729
Lines: 227


--Apple-Mail=_9E79F944-D2CD-495B-B622-56EFDD584C58
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

I've put Mort's changes live, and also switched =
http://www.openmirage.org over to the Xen backend.

Sans DNS propgatation, the unikernel is live! (*walks away from an =
exploding building without looking back*).

-anil

Begin forwarded message:

> From: Richard Mortier <notifications@github.com>
> Subject: [mirage-www] tidy up install instructions (#13)
> Date: 17 July 2013 22:56:58 BST
> To: mirage/mirage-www <mirage-www@noreply.github.com>
> Reply-To: mirage/mirage-www =
<reply+i-16892274-b6c34cce89156a457cfb1c0e8d8c2a7f366d4518-53164@reply.git=
hub.com>
>=20
> tidy up and update the install instructions.
>=20
> You can merge this Pull Request by running
>=20
>   git pull https://github.com/mor1/mirage-www master
> Or view, comment on, or merge it at:
>=20
>   https://github.com/mirage/mirage-www/pull/13
>=20
> Commit Summary
>=20
> [make] slightly more correct dependencies
> Merge branch 'master' of https://github.com/mirage/mirage-www
> Merge branch 'master' of https://github.com/mirage/mirage-www
> [wiki] remove dead ocaml install instructions
> [wiki] replace dead install file with current instructions
> [install] i use, and so it's tested on, 10.7.5
> [install] whitespace
> [install] need to work around system compiler/ocamlfind install =
locations
> [git] ignore mirari dropping
> [install] split into separate wiki entries
> [install] tidying up and updating, mostly mirage-www
> [dispatch] whitespace
> add readme
> tweak readme
> File Changes
>=20
> M .gitignore (1)
> A README.md (7)
> M src/dispatch.ml (26)
> M src/wiki.ml (28)
> D tmpl/wiki/install-ocaml.md (120)
> D tmpl/wiki/install-opam.md (166)
> M tmpl/wiki/install.md (57)
> A tmpl/wiki/mirage-www.md (57)
> A tmpl/wiki/opam.md (27)
> Patch Links:
>=20
> https://github.com/mirage/mirage-www/pull/13.patch
> https://github.com/mirage/mirage-www/pull/13.diff


--Apple-Mail=_9E79F944-D2CD-495B-B622-56EFDD584C58
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=us-ascii

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html =
charset=3Dus-ascii"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I've =
put Mort's changes live, and also switched <a =
href=3D"http://www.openmirage.org">http://www.openmirage.org</a> over to =
the Xen backend.<div><br></div><div>Sans DNS propgatation, the unikernel =
is live! (*walks away from an exploding building without looking =
back*).<div><br></div><div>-anil<br><div><br><div>Begin forwarded =
message:</div><br class=3D"Apple-interchange-newline"><blockquote =
type=3D"cite"><div style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px;"><span =
style=3D"font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, =
1.0);"><b>From: </b></span><span style=3D"font-family:'Helvetica'; =
font-size:medium;">Richard Mortier &lt;<a =
href=3D"mailto:notifications@github.com">notifications@github.com</a>&gt;<=
br></span></div><div style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px;"><span =
style=3D"font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, =
1.0);"><b>Subject: </b></span><span style=3D"font-family:'Helvetica'; =
font-size:medium;"><b>[mirage-www] tidy up install instructions =
(#13)</b><br></span></div><div style=3D"margin-top: 0px; margin-right: =
0px; margin-bottom: 0px; margin-left: 0px;"><span =
style=3D"font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, =
1.0);"><b>Date: </b></span><span style=3D"font-family:'Helvetica'; =
font-size:medium;">17 July 2013 22:56:58 BST<br></span></div><div =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px;"><span style=3D"font-family:'Helvetica'; =
font-size:medium; color:rgba(0, 0, 0, 1.0);"><b>To: </b></span><span =
style=3D"font-family:'Helvetica'; font-size:medium;">mirage/mirage-www =
&lt;<a =
href=3D"mailto:mirage-www@noreply.github.com">mirage-www@noreply.github.co=
m</a>&gt;<br></span></div><div style=3D"margin-top: 0px; margin-right: =
0px; margin-bottom: 0px; margin-left: 0px;"><span =
style=3D"font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, =
1.0);"><b>Reply-To: </b></span><span style=3D"font-family:'Helvetica'; =
font-size:medium;">mirage/mirage-www &lt;<a =
href=3D"mailto:reply+i-16892274-b6c34cce89156a457cfb1c0e8d8c2a7f366d4518-5=
3164@reply.github.com">reply+i-16892274-b6c34cce89156a457cfb1c0e8d8c2a7f36=
6d4518-53164@reply.github.com</a>&gt;<br></span></div><br><p>tidy up and =
update the install instructions.</p>

<hr>

<h4>You can merge this Pull Request by running</h4>
<pre>  git pull <a =
href=3D"https://github.com/mor1/mirage-www">https://github.com/mor1/mirage=
-www</a> master</pre><p>Or view, comment on, or merge it =
at:</p><p>&nbsp;&nbsp;<a =
href=3D"https://github.com/mirage/mirage-www/pull/13">https://github.com/m=
irage/mirage-www/pull/13</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>[make] slightly more correct dependencies</li>
  <li>Merge branch 'master' of <a =
href=3D"https://github.com/mirage/mirage-www">https://github.com/mirage/mi=
rage-www</a></li>
  <li>Merge branch 'master' of <a =
href=3D"https://github.com/mirage/mirage-www">https://github.com/mirage/mi=
rage-www</a></li>
  <li>[wiki] remove dead ocaml install instructions</li>
  <li>[wiki] replace dead install file with current instructions</li>
  <li>[install] i use, and so it's tested on, 10.7.5</li>
  <li>[install] whitespace</li>
  <li>[install] need to work around system compiler/ocamlfind install =
locations</li>
  <li>[git] ignore mirari dropping</li>
  <li>[install] split into separate wiki entries</li>
  <li>[install] tidying up and updating, mostly mirage-www</li>
  <li>[dispatch] whitespace</li>
  <li>add readme</li>
  <li>tweak readme</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a =
href=3D"https://github.com/mirage/mirage-www/pull/13/files#diff-0">.gitign=
ore</a>
    (1)
  </li>
  <li>
    <strong>A</strong>
    <a =
href=3D"https://github.com/mirage/mirage-www/pull/13/files#diff-1">README.=
md</a>
    (7)
  </li>
  <li>
    <strong>M</strong>
    <a =
href=3D"https://github.com/mirage/mirage-www/pull/13/files#diff-2">src/dis=
patch.ml</a>
    (26)
  </li>
  <li>
    <strong>M</strong>
    <a =
href=3D"https://github.com/mirage/mirage-www/pull/13/files#diff-3">src/wik=
i.ml</a>
    (28)
  </li>
  <li>
    <strong>D</strong>
    <a =
href=3D"https://github.com/mirage/mirage-www/pull/13/files#diff-4">tmpl/wi=
ki/install-ocaml.md</a>
    (120)
  </li>
  <li>
    <strong>D</strong>
    <a =
href=3D"https://github.com/mirage/mirage-www/pull/13/files#diff-5">tmpl/wi=
ki/install-opam.md</a>
    (166)
  </li>
  <li>
    <strong>M</strong>
    <a =
href=3D"https://github.com/mirage/mirage-www/pull/13/files#diff-6">tmpl/wi=
ki/install.md</a>
    (57)
  </li>
  <li>
    <strong>A</strong>
    <a =
href=3D"https://github.com/mirage/mirage-www/pull/13/files#diff-7">tmpl/wi=
ki/mirage-www.md</a>
    (57)
  </li>
  <li>
    <strong>A</strong>
    <a =
href=3D"https://github.com/mirage/mirage-www/pull/13/files#diff-8">tmpl/wi=
ki/opam.md</a>
    (27)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a =
href=3D"https://github.com/mirage/mirage-www/pull/13.patch">https://github=
.com/mirage/mirage-www/pull/13.patch</a></li>
  <li><a =
href=3D"https://github.com/mirage/mirage-www/pull/13.diff">https://github.=
com/mirage/mirage-www/pull/13.diff</a></li>
</ul>

</blockquote></div><br></div></div></body></html>=

--Apple-Mail=_9E79F944-D2CD-495B-B622-56EFDD584C58--


From anil@recoil.org Thu Jul 18 11:08:54 2013
Received: from ppsw-33.csi.cam.ac.uk ([131.111.8.133])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1Uzl8o-0001LE-Jq (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Thu, 18 Jul 2013 11:08:54 +0100
X-Cam-SpamDetails: score 0.0 from SpamAssassin-3.3.2-1504054 
	*  0.0 HTML_MESSAGE BODY: HTML included in message
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from recoil.dh.bytemark.co.uk ([89.16.177.154]:47551
	helo=dark.recoil.org)
	by ppsw-33.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.147]:25)
	with smtp id 1Uzl8n-0008NV-hp (Exim 4.80_167-5a66dd3) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Thu, 18 Jul 2013 11:08:54 +0100
Received: (qmail 6028 invoked by uid 634); 18 Jul 2013 10:08:53 -0000
X-Spam-Level: *
X-Spam-Status: No, hits=-1.0 required=5.0
	tests=ALL_TRUSTED,HTML_MESSAGE
X-Spam-Check-By: dark.recoil.org
Received: from host81-149-212-230.in-addr.btopenworld.com (HELO [10.0.1.58])
	(81.149.212.230)
	(smtp-auth username remote@recoil.org, mechanism cram-md5)
	by dark.recoil.org (qpsmtpd/0.84) with ESMTPA;
	Thu, 18 Jul 2013 11:08:51 +0100
Content-Type: multipart/alternative;
	boundary="Apple-Mail=_DD17798B-FFD7-4988-A012-F7489A4EA341"
Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\))
Subject: Re: Mirage Xenstore Stub Domain
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <CAODgTdOFnte5jSFXP12Hfp8CCHuhVtG6rYT0kk_Ah7Qo+g254A@mail.gmail.com>
Date: Thu, 18 Jul 2013 11:08:48 +0100
Message-Id: <D35556A8-C49D-485F-841F-65477A112BA4@recoil.org>
References: <CAODgTdNK89XwBHcZL5i2vMdWVqFJNJEKjOnAOSWgewX2uZqx0g@mail.gmail.com>
	<CAG_esB2QKbWzj1FL8pzwh95H7iWv22rEWSv-xyahSErCWuA2sg@mail.gmail.com>
	<CAODgTdMRoYOA3kNffRU7JkejPVarebPrR_mWvq4wuKcqWKTbyw@mail.gmail.com>
	<CAODgTdMctDb3SdG3vRcQ5bL1nqpB485zK7U9RfDR-i4iT9J1ow@mail.gmail.com>
	<70B9EF9B-635E-4FE0-9D8B-0D46C16EF455@recoil.org>
	<9A075C0D-8CD6-40E3-8678-63B66675A845@eu.citrix.com>
	<CAODgTdOP3L33NtM+Rn5B_XxXQwbp6RaUhZjo7+cOZyQ7k=u2Vg@mail.gmail.com>
	<CAODgTdOFnte5jSFXP12Hfp8CCHuhVtG6rYT0kk_Ah7Qo+g254A@mail.gmail.com>
To: James Bielman <jamesjb@gmail.com>
X-Mailer: Apple Mail (2.1503)
X-Virus-Checked: Checked by ClamAV on dark.recoil.org
Cc: Mirage List <cl-mirage@lists.cam.ac.uk>,
	Dave Scott <Dave.Scott@eu.citrix.com>, David Scott <scott.dj@gmail.com>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Thu, 18 Jul 2013 10:08:54 -0000
Content-Length: 14403
Lines: 371


--Apple-Mail=_DD17798B-FFD7-4988-A012-F7489A4EA341
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=iso-8859-1

The patch makes sense; it would normally point to a suspicious deadlock =
since the domain should eventually stop spinning and unblock, but in =
this case the console ring isn't being drained (whereas it normally =
would be).

I'll apply this for now, thanks James!  The dreadful "always activate =
all devices" hack is still in the module for now, which I'll remove just =
as soon as we have a test case for 8 or so devices spinning and waking =
up.  There's a small race somewhere in the wakeup that's causing an =
occasional hang, but it should be easy to track down with a testcase.

-anil

On 16 Jul 2013, at 17:29, James Bielman <jamesjb@gmail.com> wrote:

> Yeah, I think we get stuck because "Activations.run" traverses the =
callback sequence left-to-right, then when the thread is awakened, it =
re-adds itself on the right, which means the iteration never terminates =
when the blocked thread can't make progress.
>=20
> This patch fixes the issue for me by adding waiters on the front of =
the callback list, but I'm not sure it's the best solution.
>=20
> Thanks,
> James
>=20
>=20
>=20
>=20
> On Tue, Jul 16, 2013 at 9:04 AM, James Bielman <jamesjb@gmail.com> =
wrote:
> =46rom what I can tell, it's getting stuck in "Activations.run" once =
the ring fills up.  Is it possible that it could spin in =
"Lwt_sequence.iter_node_l", repeatedly sleeping and waking itself up, =
and never finishing?
>=20
> James
>=20
>=20
>=20
> On Tue, Jul 16, 2013 at 12:04 AM, Dave Scott =
<Dave.Scott@eu.citrix.com> wrote:
> Hi,
>=20
> Last time I looked at xen-unstable there was a proposal to make the =
xenstore domain builder (is that init-xenstore-domain?) itself daemonise =
and drain the console ring, since xenconsoled can't work in the normal =
way. I've not followed the discussion closely since, maybe they came up =
with another solution? It's worth a quick mailing list archive search.
>=20
> So I agree an emergency console ring is useful (actually I was going =
to write logs to it for now) and it should be possible...
>=20
> Btw why is write_all causing us to spin on the CPU? Surely we would =
just block if the console ring wasn't being drained? Suspicious...
>=20
> --
> Dave Scott
>=20
> On Jul 15, 2013, at 11:40 PM, "Anil Madhavapeddy" <anil@recoil.org> =
wrote:
>=20
> > It would certainly be nicer to arrange for the Xenstore stub domain =
to have access to an emergency console ring in this case.  Is there a =
Xenconsoled stub domain too, Dave, or would this have to be the =
hypervisor console ring?
> >
> > -anil
> >
> > On 15 Jul 2013, at 22:59, James Bielman <jamesjb@gmail.com> wrote:
> >
> >> I've hit another snag with the Xenstore stub domain.  I've built =
"ocaml-xenstore-xen" with Mirari, and I'm launching it early in the dom0 =
boot process with "init-xenstore-domain".  The xenstore kernel seems to =
hang with 100% CPU usage trying to write to the console (which makes =
some sense to me, since nothing is reading from the ring buffer yet).  =
My guess is that the loop in "OS.Console.write_all" is the culprit---if =
I stub this function out to return zero, it starts up and works just =
fine.
> >>
> >> I've been trying to figure out if this is a bootstrapping issue =
that's somewhat unavoidable or a bug, but I don't yet have enough of a =
handle on how LWT works to be sure.
> >>
> >> James
> >>
> >>
> >>
> >> On Mon, Jul 8, 2013 at 4:25 PM, James Bielman <jamesjb@gmail.com> =
wrote:
> >> Thanks! It builds for me now after following your process and =
hacking up a quick and dirty mirari config file.
> >>
> >> Cheers,
> >> James
> >>
> >>
> >> On Mon, Jul 8, 2013 at 3:10 PM, David Scott <scott.dj@gmail.com> =
wrote:
> >> Hi James,
> >>
> >> I think you're right -- some key interfaces have changed. Since =
some of the changes are fairly fresh in my memory, I did a first pass at =
fixing the code.
> >>
> >> The blog post is a bit out of date now. The best way to start is =
to:
> >>
> >> opam init
> >> opam switch 4.00.1
> >> opam remote add xapi-project =
git://github.com/xapi-project/opam-repo-dev
> >> opam remote add mirage git://github.com/mirage/opam-repo-dev
> >> opam install mirage-xen xenstore
> >>
> >> and then clone the repo and build in the 'xen' directory. For me =
the files compile but fail to link. The next thing to do is to =
investigate using the 'mirari' tool to link a xen kernel, like the other =
examples in the mirage/mirage-skeleton repo. This is fallout from the =
recent (very good IMHO) change to avoid using a special 'opam compiler =
switch' to install mirage kernels. You can now use a regular (unpatched) =
compiler and link in the 'mirage-xen' package.
> >>
> >> Sorry for the build breakage!
> >>
> >> Cheers
> >> Dave
> >>
> >>
> >> On Mon, Jul 8, 2013 at 10:10 PM, James Bielman <jamesjb@gmail.com> =
wrote:
> >> Hi all,
> >>
> >> I am attempting to build the Mirage Xenstore stub domain by =
following these instructions on the Mirage blog:
> >>
> >>  http://www.openmirage.org/blog/xenstore-stub-domain
> >>
> >> However, I'm running into some trouble---it looks like the =
interfaces for shared memory rings and grant tables have changed since =
the "xs_transport_domain" module was written.  I'm using Mirage as =
installed from "opam" and the "ocaml-xenstore-xen" module from the Git  =
repository at:
> >>
> >>   git://github.com/djs55/ocaml-xenstore-xen
> >>
> >> Is there is an updated repository elsewhere that works with the =
latest Mirage?  If not, I may take a stab at bringing it up to date, and =
would appreciate any insight available on gotchas I might run into.
> >>
> >> Thanks,
> >> James
> >>
> >>
> >>
> >>
> >> --
> >> Dave Scott
> >
> >
>=20
>=20
> <0001-Add-activation-event-callbacks-in-reverse-order.patch>


--Apple-Mail=_DD17798B-FFD7-4988-A012-F7489A4EA341
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=iso-8859-1

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html =
charset=3Diso-8859-1"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space; =
"><div>The patch makes sense; it would normally point to a suspicious =
deadlock since the domain should eventually stop spinning and unblock, =
but in this case the console ring isn't being drained (whereas it =
normally would be).</div><div><br></div><div>I'll apply this for now, =
thanks James! &nbsp;The dreadful "always activate all devices" hack is =
still in the module for now, which I'll remove just as soon as we have a =
test case for 8 or so devices spinning and waking up. &nbsp;There's a =
small race somewhere in the wakeup that's causing an occasional hang, =
but it should be easy to track down with a =
testcase.</div><div><br></div><div>-anil</div><div><br><div><div>On 16 =
Jul 2013, at 17:29, James Bielman &lt;<a =
href=3D"mailto:jamesjb@gmail.com">jamesjb@gmail.com</a>&gt; =
wrote:</div><br class=3D"Apple-interchange-newline"><blockquote =
type=3D"cite"><div dir=3D"ltr">Yeah, I think we get stuck because =
"Activations.run" traverses the callback sequence left-to-right, then =
when the thread is awakened, it re-adds itself on the right, which means =
the iteration never terminates when the blocked thread can't make =
progress.<div>
<br></div><div>This patch fixes the issue for me by adding waiters on =
the front of the callback list, but I'm not sure it's the best =
solution.</div><div><br></div><div>Thanks,</div><div>James</div><div><br><=
/div><div>
<br></div></div><div class=3D"gmail_extra"><br><br><div =
class=3D"gmail_quote">On Tue, Jul 16, 2013 at 9:04 AM, James Bielman =
<span dir=3D"ltr">&lt;<a href=3D"mailto:jamesjb@gmail.com" =
target=3D"_blank">jamesjb@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 =
.8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr">=46rom =
what I can tell, it's getting stuck in "Activations.run" once the ring =
fills up. &nbsp;Is it possible that it could spin in =
"Lwt_sequence.iter_node_l", repeatedly sleeping and waking itself up, =
and never finishing?<span class=3D"HOEnZb"><font color=3D"#888888"><div>

<br></div><div>James</div><div><br></div></font></span></div><div =
class=3D"HOEnZb"><div class=3D"h5"><div class=3D"gmail_extra"><br><br><div=
 class=3D"gmail_quote">On Tue, Jul 16, 2013 at 12:04 AM, Dave Scott =
<span dir=3D"ltr">&lt;<a href=3D"mailto:Dave.Scott@eu.citrix.com" =
target=3D"_blank">Dave.Scott@eu.citrix.com</a>&gt;</span> wrote:<br>

<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 =
.8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
Last time I looked at xen-unstable there was a proposal to make the =
xenstore domain builder (is that init-xenstore-domain?) itself daemonise =
and drain the console ring, since xenconsoled can't work in the normal =
way. I've not followed the discussion closely since, maybe they came up =
with another solution? It's worth a quick mailing list archive =
search.<br>


<br>
So I agree an emergency console ring is useful (actually I was going to =
write logs to it for now) and it should be possible...<br>
<br>
Btw why is write_all causing us to spin on the CPU? Surely we would just =
block if the console ring wasn't being drained? Suspicious...<br>
<span><font color=3D"#888888"><br>
--<br>
Dave Scott<br>
</font></span><div><br>
On Jul 15, 2013, at 11:40 PM, "Anil Madhavapeddy" &lt;<a =
href=3D"mailto:anil@recoil.org" target=3D"_blank">anil@recoil.org</a>&gt; =
wrote:<br>
<br>
&gt; It would certainly be nicer to arrange for the Xenstore stub domain =
to have access to an emergency console ring in this case. &nbsp;Is there =
a Xenconsoled stub domain too, Dave, or would this have to be the =
hypervisor console ring?<br>


&gt;<br>
&gt; -anil<br>
&gt;<br>
&gt; On 15 Jul 2013, at 22:59, James Bielman &lt;<a =
href=3D"mailto:jamesjb@gmail.com" =
target=3D"_blank">jamesjb@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt;&gt; I've hit another snag with the Xenstore stub domain. &nbsp;I've =
built "ocaml-xenstore-xen" with Mirari, and I'm launching it early in =
the dom0 boot process with "init-xenstore-domain". &nbsp;The xenstore =
kernel seems to hang with 100% CPU usage trying to write to the console =
(which makes some sense to me, since nothing is reading from the ring =
buffer yet). &nbsp;My guess is that the loop in "OS.Console.write_all" =
is the culprit---if I stub this function out to return zero, it starts =
up and works just fine.<br>


&gt;&gt;<br>
&gt;&gt; I've been trying to figure out if this is a bootstrapping issue =
that's somewhat unavoidable or a bug, but I don't yet have enough of a =
handle on how LWT works to be sure.<br>
&gt;&gt;<br>
&gt;&gt; James<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Mon, Jul 8, 2013 at 4:25 PM, James Bielman &lt;<a =
href=3D"mailto:jamesjb@gmail.com" =
target=3D"_blank">jamesjb@gmail.com</a>&gt; wrote:<br>
&gt;&gt; Thanks! It builds for me now after following your process and =
hacking up a quick and dirty mirari config file.<br>
&gt;&gt;<br>
&gt;&gt; Cheers,<br>
&gt;&gt; James<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Mon, Jul 8, 2013 at 3:10 PM, David Scott &lt;<a =
href=3D"mailto:scott.dj@gmail.com" =
target=3D"_blank">scott.dj@gmail.com</a>&gt; wrote:<br>
&gt;&gt; Hi James,<br>
&gt;&gt;<br>
&gt;&gt; I think you're right -- some key interfaces have changed. Since =
some of the changes are fairly fresh in my memory, I did a first pass at =
fixing the code.<br>
&gt;&gt;<br>
&gt;&gt; The blog post is a bit out of date now. The best way to start =
is to:<br>
&gt;&gt;<br>
&gt;&gt; opam init<br>
&gt;&gt; opam switch 4.00.1<br>
&gt;&gt; opam remote add xapi-project git://<a =
href=3D"http://github.com/xapi-project/opam-repo-dev" =
target=3D"_blank">github.com/xapi-project/opam-repo-dev</a><br>
&gt;&gt; opam remote add mirage git://<a =
href=3D"http://github.com/mirage/opam-repo-dev" =
target=3D"_blank">github.com/mirage/opam-repo-dev</a><br>
&gt;&gt; opam install mirage-xen xenstore<br>
&gt;&gt;<br>
&gt;&gt; and then clone the repo and build in the 'xen' directory. For =
me the files compile but fail to link. The next thing to do is to =
investigate using the 'mirari' tool to link a xen kernel, like the other =
examples in the mirage/mirage-skeleton repo. This is fallout from the =
recent (very good IMHO) change to avoid using a special 'opam compiler =
switch' to install mirage kernels. You can now use a regular (unpatched) =
compiler and link in the 'mirage-xen' package.<br>


&gt;&gt;<br>
&gt;&gt; Sorry for the build breakage!<br>
&gt;&gt;<br>
&gt;&gt; Cheers<br>
&gt;&gt; Dave<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Mon, Jul 8, 2013 at 10:10 PM, James Bielman &lt;<a =
href=3D"mailto:jamesjb@gmail.com" =
target=3D"_blank">jamesjb@gmail.com</a>&gt; wrote:<br>
&gt;&gt; Hi all,<br>
&gt;&gt;<br>
&gt;&gt; I am attempting to build the Mirage Xenstore stub domain by =
following these instructions on the Mirage blog:<br>
&gt;&gt;<br>
&gt;&gt; &nbsp;<a =
href=3D"http://www.openmirage.org/blog/xenstore-stub-domain" =
target=3D"_blank">http://www.openmirage.org/blog/xenstore-stub-domain</a><=
br>
&gt;&gt;<br>
&gt;&gt; However, I'm running into some trouble---it looks like the =
interfaces for shared memory rings and grant tables have changed since =
the "xs_transport_domain" module was written. &nbsp;I'm using Mirage as =
installed from "opam" and the "ocaml-xenstore-xen" module from the Git =
&nbsp;repository at:<br>


&gt;&gt;<br>
&gt;&gt; &nbsp; git://<a =
href=3D"http://github.com/djs55/ocaml-xenstore-xen" =
target=3D"_blank">github.com/djs55/ocaml-xenstore-xen</a><br>
&gt;&gt;<br>
&gt;&gt; Is there is an updated repository elsewhere that works with the =
latest Mirage? &nbsp;If not, I may take a stab at bringing it up to =
date, and would appreciate any insight available on gotchas I might run =
into.<br>
&gt;&gt;<br>
&gt;&gt; Thanks,<br>
&gt;&gt; James<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; Dave Scott<br>
&gt;<br>
&gt;<br>
</div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
=
<span>&lt;0001-Add-activation-event-callbacks-in-reverse-order.patch&gt;</=
span></blockquote></div><br></div></body></html>=

--Apple-Mail=_DD17798B-FFD7-4988-A012-F7489A4EA341--


From dp463@hermes.cam.ac.uk Thu Jul 18 13:39:34 2013
Received: from ppsw-33.csi.cam.ac.uk ([131.111.8.133])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1UznUc-0007cg-MC (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <dp463@hermes.cam.ac.uk>); Thu, 18 Jul 2013 13:39:34 +0100
X-Cam-AntiVirus: no malware found
X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/
Received: from cosmic.cl.cam.ac.uk ([128.232.10.197]:47293 helo=[192.168.8.2])
	by ppsw-33.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.157]:587)
	with esmtpsa (PLAIN:dp463) (TLSv1:DHE-RSA-CAMELLIA256-SHA:256)
	id 1UznUc-00072i-i3 (Exim 4.80_167-5a66dd3) for
	cl-mirage@lists.cam.ac.uk
	(return-path <dp463@hermes.cam.ac.uk>); Thu, 18 Jul 2013 13:39:34 +0100
Message-ID: <51E7E206.1090200@cl.cam.ac.uk>
Date: Thu, 18 Jul 2013 13:39:34 +0100
From: Dimosthenis Pediaditakis <dimosthenis.pediaditakis@cl.cam.ac.uk>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:17.0) Gecko/20130623 Thunderbird/17.0.7
MIME-Version: 1.0
To: cl-mirage@lists.cam.ac.uk
Subject: Building for unix backend fails
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Sender: "D. Pediaditakis" <dp463@hermes.cam.ac.uk>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Thu, 18 Jul 2013 12:39:34 -0000
Content-Length: 1437
Lines: 37

Hi all,
I confirm the following issue using "mirage-unix":
https://github.com/avsm/mirage-www/issues/19

I am using the 4.00.1 compiler, and here are the packages currently 
installed: base-bigarray base, base-threads base, base-unix base, 
cmdliner 0.9.2, cohttp 0.9.10, cstruct 0.7.1, fd-send-recv 1.0.1, lwt 
2.4.3, mirage 1.0.0, mirage-fs 0.6.0, mirage-net 1.0.0, 
mirage-net-direct 1.0.0, mirage-unix 1.0.0, mirari 1.0.0, obuild 0.0.2, 
ocamlfind 1.3.3, ocplib-endian 0.3, optcomp 1.4, ounit 1.1.2, re 1.2.1, 
shared-memory-ring 0.4.0, tuntap 0.5, uri 1.3.8

Build the "static_website" from the "mirage-skeleton" examples fails:
-------------------------------------------
Building executable mir-hello
[1 of 3] Compiling Hello                         [2 of 3] Compiling Backend
File "backend.ml", line 19, characters 45-58:
Error: Unbound constructor OS.Netif.PCAP
[mirari] ERROR: The command "obuild build" exited with code 6.
make: *** [build] Error 1
-------------------------------------------

The dev_type PCAP and ETH are indeed defined in 
"mirage.1.0.0/unix/lib/netif.ml" so it might be a linking issue of 
Mirari (which I am using to build the projects).

When using "mirage-xen" it builds fine and runs like a charm as a Xen guest.


Also, the "tcp" skeleton project, builds fine for "mirage-xen" but the 
Xen guest fails to start. I tried to debug it under "mirage-unix" but as 
above, building fails.

Cheers,
Dimos



From Richard.Mortier@nottingham.ac.uk Thu Jul 18 13:51:44 2013
Received: from ppsw-33.csi.cam.ac.uk ([131.111.8.133])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1UzngO-0000MM-1o (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <Richard.Mortier@nottingham.ac.uk>);
	Thu, 18 Jul 2013 13:51:44 +0100
X-Cam-SpamDetails: score 0.0 from SpamAssassin-3.3.2-1504054 
	* 0.0 MIME_QP_LONG_LINE RAW: Quoted-printable line longer than 76 chars
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from engine01-20433-7.icritical.com ([151.236.209.33]:38290)
	by ppsw-33.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.147]:25)
	with smtp id 1UzngN-0003E5-i6 (Exim 4.80_167-5a66dd3) for
	cl-mirage@lists.cam.ac.uk
	(return-path <Richard.Mortier@nottingham.ac.uk>);
	Thu, 18 Jul 2013 13:51:44 +0100
Received: (qmail 1924 invoked from network); 18 Jul 2013 12:51:30 -0000
Received: from localhost (127.0.0.1)
	by engine01-20433-7.icritical.com with SMTP; 18 Jul 2013 12:51:30 -0000
Received: from engine01-20433-7.icritical.com ([127.0.0.1])
	by localhost (engine01-20433-7.icritical.com [127.0.0.1]) (amavisd-new,
	port 10024) with SMTP id 01667-05 for <cl-mirage@lists.cam.ac.uk>;
	Thu, 18 Jul 2013 13:51:27 +0100 (BST)
Received: (qmail 398 invoked by uid 599); 18 Jul 2013 12:48:41 -0000
Received: from unknown (HELO smtp3.nottingham.ac.uk) (128.243.44.55)
	by engine01-20433-7.icritical.com (qpsmtpd/0.28) with ESMTP;
	Thu, 18 Jul 2013 13:48:41 +0100
Received: from uiwexhub01.ad.nottingham.ac.uk ([128.243.15.133])
	by smtp3.nottingham.ac.uk with esmtps (TLSv1:AES128-SHA:128)
	(Exim 4.77) (envelope-from <Richard.Mortier@nottingham.ac.uk>)
	id 1Uznde-0006jT-UF; Thu, 18 Jul 2013 13:48:54 +0100
From: Richard Mortier <Richard.Mortier@nottingham.ac.uk>
To: "cl-mirage@lists.cam.ac.uk List" <cl-mirage@lists.cam.ac.uk>
Date: Thu, 18 Jul 2013 13:48:53 +0100
Subject: Fwd: Building for unix backend fails
Thread-Topic: Building for unix backend fails
Thread-Index: Ac6DtSkLUMwPfSZeSwiDDq1OOTwhew==
Message-ID: <BF1B236C-AC42-45EF-BA02-D0202FEFDCA5@nottingham.ac.uk>
References: <10B71B20-6BC6-4C95-8F3B-D9E7BEEF6D5A@nottingham.ac.uk>
Accept-Language: en-US, en-GB
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US, en-GB
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Virus-Scanned: by iCritical at engine01-20433-7.icritical.com
Cc: Dimosthenis Pediaditakis <dimosthenis.pediaditakis@cl.cam.ac.uk>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Thu, 18 Jul 2013 12:51:44 -0000
Content-Length: 2115
Lines: 62

forgot to hit reply-all...

Begin forwarded message:

> From: Mortier Richard <pszrmm@exmail.nottingham.ac.uk>
> Subject: Re: Building for unix backend fails
> Date: 18 July 2013 13:48:28 GMT+01:00
> To: Dimosthenis Pediaditakis <dimosthenis.pediaditakis@cl.cam.ac.uk>
>=20
> hi dimos;
>=20
> On 18 Jul 2013, at 13:39, Dimosthenis Pediaditakis wrote:
>=20
> Build the "static_website" from the "mirage-skeleton" examples fails:
>> -------------------------------------------
>> Building executable mir-hello
>> [1 of 3] Compiling Hello                         [2 of 3] Compiling Back=
end
>> File "backend.ml", line 19, characters 45-58:
>> Error: Unbound constructor OS.Netif.PCAP
>> [mirari] ERROR: The command "obuild build" exited with code 6.
>> make: *** [build] Error 1
>> -------------------------------------------
>>=20
>=20
> odd - i just copied static_website as the basis for the oscon presentatio=
n, and it builds and runs just fine for me using unix-socket-build and unix=
-direct-build as targets.
>=20
> i did do a clean reinstall of opam and everything yesterday though, while=
 tweaking installation wiki pages, although i currently have the same versi=
ons of all the opam packages you listed.
>=20
> what are you doing to build it?  is your code in a repo somewhere?
>=20
> --=20
> Cheers,
>=20
> R.
>=20
>=20
>=20
>=20


--=20
Cheers,

R.




This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.

This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system, you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.






From anil@recoil.org Thu Jul 18 14:41:26 2013
Received: from ppsw-52.csi.cam.ac.uk ([131.111.8.152])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1UzoSU-00025C-Je (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Thu, 18 Jul 2013 14:41:26 +0100
X-Cam-SpamDetails: score 0.0 from SpamAssassin-3.3.2-1504054
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from recoil.dh.bytemark.co.uk ([89.16.177.154]:32890
	helo=dark.recoil.org)
	by ppsw-52.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.148]:25)
	with smtp id 1UzoST-0004jF-E0 (Exim 4.80_167-5a66dd3) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Thu, 18 Jul 2013 14:41:26 +0100
Received: (qmail 15260 invoked by uid 634); 18 Jul 2013 13:41:25 -0000
X-Spam-Level: *
X-Spam-Status: No, hits=-1.0 required=5.0
	tests=ALL_TRUSTED
X-Spam-Check-By: dark.recoil.org
Received: from global-1-19.nat.csx.cam.ac.uk (HELO
	dhcp-172-17-41-152.wrd.lapwing.private.cam.ac.uk) (131.111.184.19)
	(smtp-auth username remote@recoil.org, mechanism cram-md5)
	by dark.recoil.org (qpsmtpd/0.84) with ESMTPA;
	Thu, 18 Jul 2013 14:41:24 +0100
Content-Type: text/plain; charset=iso-8859-1
Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\))
Subject: Re: Building for unix backend fails
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <51E7E206.1090200@cl.cam.ac.uk>
Date: Thu, 18 Jul 2013 14:41:23 +0100
Content-Transfer-Encoding: quoted-printable
Message-Id: <14938B99-B615-4888-9CE2-77F13B9FFE54@recoil.org>
References: <51E7E206.1090200@cl.cam.ac.uk>
To: Dimosthenis Pediaditakis <dimosthenis.pediaditakis@cl.cam.ac.uk>
X-Mailer: Apple Mail (2.1503)
X-Virus-Checked: Checked by ClamAV on dark.recoil.org
Cc: cl-mirage@lists.cam.ac.uk
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Thu, 18 Jul 2013 13:41:26 -0000
Content-Length: 1819
Lines: 52

Hi Dimos,

You're using trunk (mirage.1.0.0) so things are briefly out of sync.  =
I'm merging and releasing everything right now to get trunk consistent =
again.  Shouldn't take long.

-anil

On 18 Jul 2013, at 13:39, Dimosthenis Pediaditakis =
<dimosthenis.pediaditakis@cl.cam.ac.uk> wrote:

> Hi all,
> I confirm the following issue using "mirage-unix":
> https://github.com/avsm/mirage-www/issues/19
>=20
> I am using the 4.00.1 compiler, and here are the packages currently =
installed: base-bigarray base, base-threads base, base-unix base, =
cmdliner 0.9.2, cohttp 0.9.10, cstruct 0.7.1, fd-send-recv 1.0.1, lwt =
2.4.3, mirage 1.0.0, mirage-fs 0.6.0, mirage-net 1.0.0, =
mirage-net-direct 1.0.0, mirage-unix 1.0.0, mirari 1.0.0, obuild 0.0.2, =
ocamlfind 1.3.3, ocplib-endian 0.3, optcomp 1.4, ounit 1.1.2, re 1.2.1, =
shared-memory-ring 0.4.0, tuntap 0.5, uri 1.3.8
>=20
> Build the "static_website" from the "mirage-skeleton" examples fails:
> -------------------------------------------
> Building executable mir-hello
> [1 of 3] Compiling Hello                         [2 of 3] Compiling =
Backend
> File "backend.ml", line 19, characters 45-58:
> Error: Unbound constructor OS.Netif.PCAP
> [mirari] ERROR: The command "obuild build" exited with code 6.
> make: *** [build] Error 1
> -------------------------------------------
>=20
> The dev_type PCAP and ETH are indeed defined in =
"mirage.1.0.0/unix/lib/netif.ml" so it might be a linking issue of =
Mirari (which I am using to build the projects).
>=20
> When using "mirage-xen" it builds fine and runs like a charm as a Xen =
guest.
>=20
>=20
> Also, the "tcp" skeleton project, builds fine for "mirage-xen" but the =
Xen guest fails to start. I tried to debug it under "mirage-unix" but as =
above, building fails.
>=20
> Cheers,
> Dimos
>=20
>=20



From dp463@hermes.cam.ac.uk Thu Jul 18 15:08:16 2013
Received: from ppsw-32.csi.cam.ac.uk ([131.111.8.132])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1UzosS-0002sv-2B (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <dp463@hermes.cam.ac.uk>); Thu, 18 Jul 2013 15:08:16 +0100
X-Cam-AntiVirus: no malware found
X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/
Received: from cosmic.cl.cam.ac.uk ([128.232.10.197]:44823 helo=[192.168.8.2])
	by ppsw-32.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.156]:587)
	with esmtpsa (PLAIN:dp463) (TLSv1:DHE-RSA-CAMELLIA256-SHA:256)
	id 1UzosR-0008G3-2S (Exim 4.80_167-5a66dd3)
	(return-path <dp463@hermes.cam.ac.uk>); Thu, 18 Jul 2013 15:08:15 +0100
Message-ID: <51E7F6D0.8050906@cl.cam.ac.uk>
Date: Thu, 18 Jul 2013 15:08:16 +0100
From: Dimosthenis Pediaditakis <dimosthenis.pediaditakis@cl.cam.ac.uk>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:17.0) Gecko/20130623 Thunderbird/17.0.7
MIME-Version: 1.0
To: Richard Mortier <Richard.Mortier@nottingham.ac.uk>
Subject: Re: Fwd: Building for unix backend fails
References: <10B71B20-6BC6-4C95-8F3B-D9E7BEEF6D5A@nottingham.ac.uk>
	<BF1B236C-AC42-45EF-BA02-D0202FEFDCA5@nottingham.ac.uk>
In-Reply-To: <BF1B236C-AC42-45EF-BA02-D0202FEFDCA5@nottingham.ac.uk>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Sender: "D. Pediaditakis" <dp463@hermes.cam.ac.uk>
Cc: "cl-mirage@lists.cam.ac.uk List" <cl-mirage@lists.cam.ac.uk>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Thu, 18 Jul 2013 14:08:16 -0000
Content-Length: 1973
Lines: 64

Hi Richard,
I reinstalled everything from scratch all of a sudden it worked :-o

Anil, thanks for your response.

I am aiming to port SDNSim in Xen, but as a first step, I experiment 
with simple Mirage apps with networking.

I test it under Linux  3.5.0-36, using opam 1.0.0.
I've added mirage/opam-repo-dev as a remote to opam
I use mirari to build the projects (which I find extremely convenient).

Still have the issue with the "tcp" example not running on Xen, but I 
will keep working on it  (not an easy thing to debug Xen guests).
If I have no luck, I might ping you again.

Thanks,
D.





On 18/07/13 13:48, Richard Mortier wrote:
> forgot to hit reply-all...
>
> Begin forwarded message:
>
>> From: Mortier Richard <pszrmm@exmail.nottingham.ac.uk>
>> Subject: Re: Building for unix backend fails
>> Date: 18 July 2013 13:48:28 GMT+01:00
>> To: Dimosthenis Pediaditakis <dimosthenis.pediaditakis@cl.cam.ac.uk>
>>
>> hi dimos;
>>
>> On 18 Jul 2013, at 13:39, Dimosthenis Pediaditakis wrote:
>>
>> Build the "static_website" from the "mirage-skeleton" examples fails:
>>> -------------------------------------------
>>> Building executable mir-hello
>>> [1 of 3] Compiling Hello                         [2 of 3] Compiling Backend
>>> File "backend.ml", line 19, characters 45-58:
>>> Error: Unbound constructor OS.Netif.PCAP
>>> [mirari] ERROR: The command "obuild build" exited with code 6.
>>> make: *** [build] Error 1
>>> -------------------------------------------
>>>
>> odd - i just copied static_website as the basis for the oscon presentation, and it builds and runs just fine for me using unix-socket-build and unix-direct-build as targets.
>>
>> i did do a clean reinstall of opam and everything yesterday though, while tweaking installation wiki pages, although i currently have the same versions of all the opam packages you listed.
>>
>> what are you doing to build it?  is your code in a repo somewhere?
>>
>> -- 
>> Cheers,
>>
>> R.
>>
>>
>>
>>
>



From anil@recoil.org Fri Jul 19 15:33:23 2013
Received: from ppsw-32.csi.cam.ac.uk ([131.111.8.132])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1V0BkJ-0007lF-6H (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Fri, 19 Jul 2013 15:33:23 +0100
X-Cam-SpamDetails: score 0.0 from SpamAssassin-3.3.2-1504391
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from recoil.dh.bytemark.co.uk ([89.16.177.154]:48251
	helo=dark.recoil.org)
	by ppsw-32.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.146]:25)
	with smtp id 1V0BkI-00080q-2h (Exim 4.80_167-5a66dd3) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Fri, 19 Jul 2013 15:33:23 +0100
Received: (qmail 20259 invoked by uid 634); 19 Jul 2013 14:33:22 -0000
X-Spam-Level: *
X-Spam-Status: No, hits=-1.0 required=5.0
	tests=ALL_TRUSTED
X-Spam-Check-By: dark.recoil.org
Received: from volstagg-0.srg.cl.cam.ac.uk (HELO clink-4.office)
	(128.232.32.232)
	(smtp-auth username remote@recoil.org, mechanism cram-md5)
	by dark.recoil.org (qpsmtpd/0.84) with ESMTPA;
	Fri, 19 Jul 2013 15:33:22 +0100
From: Anil Madhavapeddy <anil@recoil.org>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Subject: ANN: mirage-0.9.3
Message-Id: <0B3198F5-CC5F-48F6-AF4C-7FB91582A201@recoil.org>
Date: Fri, 19 Jul 2013 15:33:21 +0100
To: "cl-mirage@lists.cam.ac.uk List" <cl-mirage@lists.cam.ac.uk>
Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\))
X-Mailer: Apple Mail (2.1503)
X-Virus-Checked: Checked by ClamAV on dark.recoil.org
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Fri, 19 Jul 2013 14:33:23 -0000
Content-Length: 1334
Lines: 30

Great rounds of stabilization as we head for a dev preview release!  All =
have been uploaded to OPAM.  Mirari is likely to see the biggest changes =
as we fix the frontend tool to be more user-friendly.

Mirage Platform 0.9.3 (18-July-2013):
* [xen] Prevent spinning in `Activations.run` when a thread is blocked
  and then awakened.
* [xen] Gnt.grant_table_index is now an int, was an int32.
* [xen] Cleaned some C stubs files, mainly page_stubs.c
* [xen] Improved module Netif: The function create do not take a
  callback anymore, hidden some private function from the .mli.
* [unix] Add support for building and running on FreeBSD.

Mirage Net 0.9.3 (18-July-2013):
* Changes in module Manager: Removed some functions from the `.mli
  (plug/unplug) and added some modifications in the way the Manager
  interacts with the underlying module Netif. The Netif.create function
  does not take a callback anymore.

Mirari 0.9.5 (2013-07-18):
* completely remove the dependency on obuild: use ocamlbuild everywhere =
now.
* adapt for mirage-0.9.3 OS.Netif interfaces (abstract type `id`).
* do not output network config when there are no `ip-*` lines in the =
`.conf` file.
* do not try to install `mirage-fs` if there is no filesystem to create.
* added `nat-script.sh` to setup xenbr0 with DNS, DHCP and masqerading =
under Linux.



From anil@recoil.org Fri Jul 19 15:36:37 2013
Received: from ppsw-32.csi.cam.ac.uk ([131.111.8.132])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1V0BnR-000039-NT (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Fri, 19 Jul 2013 15:36:37 +0100
X-Cam-SpamDetails: score 0.0 from SpamAssassin-3.3.2-1504391
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from recoil.dh.bytemark.co.uk ([89.16.177.154]:31329
	helo=dark.recoil.org)
	by ppsw-32.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.146]:25)
	with smtp id 1V0BnR-0000zt-16 (Exim 4.80_167-5a66dd3) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Fri, 19 Jul 2013 15:36:37 +0100
Received: (qmail 6058 invoked by uid 634); 19 Jul 2013 14:36:37 -0000
X-Spam-Level: *
X-Spam-Status: No, hits=-1.0 required=5.0
	tests=ALL_TRUSTED
X-Spam-Check-By: dark.recoil.org
Received: from volstagg-0.srg.cl.cam.ac.uk (HELO clink-4.office)
	(128.232.32.232)
	(smtp-auth username remote@recoil.org, mechanism cram-md5)
	by dark.recoil.org (qpsmtpd/0.84) with ESMTPA;
	Fri, 19 Jul 2013 15:36:36 +0100
Content-Type: text/plain; charset=iso-8859-1
Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\))
Subject: Re: Building for unix backend fails
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <51E7F6D0.8050906@cl.cam.ac.uk>
Date: Fri, 19 Jul 2013 15:36:35 +0100
Content-Transfer-Encoding: quoted-printable
Message-Id: <2C4FA21B-6367-4A91-9AD4-8193188A9F75@recoil.org>
References: <10B71B20-6BC6-4C95-8F3B-D9E7BEEF6D5A@nottingham.ac.uk>
	<BF1B236C-AC42-45EF-BA02-D0202FEFDCA5@nottingham.ac.uk>
	<51E7F6D0.8050906@cl.cam.ac.uk>
To: Dimosthenis Pediaditakis <dimosthenis.pediaditakis@cl.cam.ac.uk>
X-Mailer: Apple Mail (2.1503)
X-Virus-Checked: Checked by ClamAV on dark.recoil.org
Cc: Richard Mortier <Richard.Mortier@nottingham.ac.uk>,
	"cl-mirage@lists.cam.ac.uk List" <cl-mirage@lists.cam.ac.uk>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Fri, 19 Jul 2013 14:36:37 -0000
Content-Length: 2442
Lines: 83

Dimos: try with the latest rounds of changes, as everything should be =
consistent again.  Also, let us know if you need anything extra in =
Mirari while you set up your cluster.

cheers
Anil

On 18 Jul 2013, at 15:08, Dimosthenis Pediaditakis =
<dimosthenis.pediaditakis@cl.cam.ac.uk> wrote:

> Hi Richard,
> I reinstalled everything from scratch all of a sudden it worked :-o
>=20
> Anil, thanks for your response.
>=20
> I am aiming to port SDNSim in Xen, but as a first step, I experiment =
with simple Mirage apps with networking.
>=20
> I test it under Linux  3.5.0-36, using opam 1.0.0.
> I've added mirage/opam-repo-dev as a remote to opam
> I use mirari to build the projects (which I find extremely =
convenient).
>=20
> Still have the issue with the "tcp" example not running on Xen, but I =
will keep working on it  (not an easy thing to debug Xen guests).
> If I have no luck, I might ping you again.
>=20
> Thanks,
> D.
>=20
>=20
>=20
>=20
>=20
> On 18/07/13 13:48, Richard Mortier wrote:
>> forgot to hit reply-all...
>>=20
>> Begin forwarded message:
>>=20
>>> From: Mortier Richard <pszrmm@exmail.nottingham.ac.uk>
>>> Subject: Re: Building for unix backend fails
>>> Date: 18 July 2013 13:48:28 GMT+01:00
>>> To: Dimosthenis Pediaditakis <dimosthenis.pediaditakis@cl.cam.ac.uk>
>>>=20
>>> hi dimos;
>>>=20
>>> On 18 Jul 2013, at 13:39, Dimosthenis Pediaditakis wrote:
>>>=20
>>> Build the "static_website" from the "mirage-skeleton" examples =
fails:
>>>> -------------------------------------------
>>>> Building executable mir-hello
>>>> [1 of 3] Compiling Hello                         [2 of 3] Compiling =
Backend
>>>> File "backend.ml", line 19, characters 45-58:
>>>> Error: Unbound constructor OS.Netif.PCAP
>>>> [mirari] ERROR: The command "obuild build" exited with code 6.
>>>> make: *** [build] Error 1
>>>> -------------------------------------------
>>>>=20
>>> odd - i just copied static_website as the basis for the oscon =
presentation, and it builds and runs just fine for me using =
unix-socket-build and unix-direct-build as targets.
>>>=20
>>> i did do a clean reinstall of opam and everything yesterday though, =
while tweaking installation wiki pages, although i currently have the =
same versions of all the opam packages you listed.
>>>=20
>>> what are you doing to build it?  is your code in a repo somewhere?
>>>=20
>>> --=20
>>> Cheers,
>>>=20
>>> R.
>>>=20
>>>=20
>>>=20
>>>=20
>>=20
>=20
>=20



From anil@recoil.org Fri Jul 19 18:10:11 2013
Received: from ppsw-32.csi.cam.ac.uk ([131.111.8.132])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1V0EC3-0003t1-BY (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Fri, 19 Jul 2013 18:10:11 +0100
X-Cam-SpamDetails: score 0.0 from SpamAssassin-3.3.2-1504391
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from recoil.dh.bytemark.co.uk ([89.16.177.154]:40760
	helo=dark.recoil.org)
	by ppsw-32.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.146]:25)
	with smtp id 1V0EC2-0002hz-2X (Exim 4.80_167-5a66dd3) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Fri, 19 Jul 2013 18:10:11 +0100
Received: (qmail 7963 invoked by uid 634); 19 Jul 2013 17:10:10 -0000
X-Spam-Level: *
X-Spam-Status: No, hits=-1.0 required=5.0
	tests=ALL_TRUSTED
X-Spam-Check-By: dark.recoil.org
Received: from volstagg-0.srg.cl.cam.ac.uk (HELO clink-4.office)
	(128.232.32.232)
	(smtp-auth username remote@recoil.org, mechanism cram-md5)
	by dark.recoil.org (qpsmtpd/0.84) with ESMTPA;
	Fri, 19 Jul 2013 18:10:09 +0100
From: Anil Madhavapeddy <anil@recoil.org>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Subject: Blog: Creating Xen block devices with Mirage
Message-Id: <3D750E90-083A-4A04-B40B-03917FA925D3@recoil.org>
Date: Fri, 19 Jul 2013 18:10:08 +0100
To: "cl-mirage@lists.cam.ac.uk List" <cl-mirage@lists.cam.ac.uk>
Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\))
X-Mailer: Apple Mail (2.1503)
X-Virus-Checked: Checked by ClamAV on dark.recoil.org
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Fri, 19 Jul 2013 17:10:11 -0000
Content-Length: 234
Lines: 8

Dave pulled together his work on writing *backend* devices in Mirage for =
this blog post.  I'm looking forward to building a few custom storage =
systems using this!

http://openmirage.org/blog/xen-block-devices-with-mirage

-anil=


From dp463@hermes.cam.ac.uk Fri Jul 19 18:48:56 2013
Received: from ppsw-33.csi.cam.ac.uk ([131.111.8.133])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1V0EnY-0004Mq-Fj (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <dp463@hermes.cam.ac.uk>); Fri, 19 Jul 2013 18:48:56 +0100
X-Cam-AntiVirus: no malware found
X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/
Received: from [5.44.248.36] (port=42110 helo=localhost)
	by ppsw-33.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.157]:587)
	with esmtpsa (PLAIN:dp463) (TLSv1:DHE-RSA-CAMELLIA256-SHA:256)
	id 1V0EnY-0002hN-g4 (Exim 4.80_167-5a66dd3)
	(return-path <dp463@hermes.cam.ac.uk>); Fri, 19 Jul 2013 18:48:56 +0100
Message-ID: <51E97C04.7060302@cl.cam.ac.uk>
Date: Fri, 19 Jul 2013 18:48:52 +0100
From: Dimosthenis Pediaditakis <dimosthenis.pediaditakis@cl.cam.ac.uk>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:17.0) Gecko/20130623 Thunderbird/17.0.7
MIME-Version: 1.0
To: Anil Madhavapeddy <anil@recoil.org>
Subject: Re: Building for unix backend fails
References: <10B71B20-6BC6-4C95-8F3B-D9E7BEEF6D5A@nottingham.ac.uk>
	<BF1B236C-AC42-45EF-BA02-D0202FEFDCA5@nottingham.ac.uk>
	<51E7F6D0.8050906@cl.cam.ac.uk>
	<2C4FA21B-6367-4A91-9AD4-8193188A9F75@recoil.org>
In-Reply-To: <2C4FA21B-6367-4A91-9AD4-8193188A9F75@recoil.org>
Content-Type: multipart/alternative;
	boundary="------------040408080505010006090706"
Sender: "D. Pediaditakis" <dp463@hermes.cam.ac.uk>
Cc: Richard Mortier <Richard.Mortier@nottingham.ac.uk>,
	"cl-mirage@lists.cam.ac.uk List" <cl-mirage@lists.cam.ac.uk>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Fri, 19 Jul 2013 17:48:56 -0000
Content-Length: 7962
Lines: 231

This is a multi-part message in MIME format.
--------------040408080505010006090706
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Will do Anil, anyway, as of yesterday evening everything worked without 
issues.

For "unix-direct" it would be handy to be able to specify more than one 
interfaces using Mirari and use incremental "tapX"  as netif ID, instead 
of tap0, and assign it a non hard-coded IP address:
<https://github.com/mirage/mirari/blob/master/lib/mirari.ml>https://github.com/mirage/mirari/blob/master/lib/mirari.ml#L501 
<https://github.com/mirage/mirari/blob/master/lib/mirari.ml#L500>

Also, I will share an updated/enhanced version of the following script:
https://github.com/avsm/mirage/blob/master/scripts/xcp.sh
and similar VM-uninstall script

Thanks!
D.



On 19/07/13 15:36, Anil Madhavapeddy wrote:
> Dimos: try with the latest rounds of changes, as everything should be consistent again.  Also, let us know if you need anything extra in Mirari while you set up your cluster.
>
> cheers
> Anil
>
> On 18 Jul 2013, at 15:08, Dimosthenis Pediaditakis <dimosthenis.pediaditakis@cl.cam.ac.uk> wrote:
>
>> Hi Richard,
>> I reinstalled everything from scratch all of a sudden it worked :-o
>>
>> Anil, thanks for your response.
>>
>> I am aiming to port SDNSim in Xen, but as a first step, I experiment with simple Mirage apps with networking.
>>
>> I test it under Linux  3.5.0-36, using opam 1.0.0.
>> I've added mirage/opam-repo-dev as a remote to opam
>> I use mirari to build the projects (which I find extremely convenient).
>>
>> Still have the issue with the "tcp" example not running on Xen, but I will keep working on it  (not an easy thing to debug Xen guests).
>> If I have no luck, I might ping you again.
>>
>> Thanks,
>> D.
>>
>>
>>
>>
>>
>> On 18/07/13 13:48, Richard Mortier wrote:
>>> forgot to hit reply-all...
>>>
>>> Begin forwarded message:
>>>
>>>> From: Mortier Richard <pszrmm@exmail.nottingham.ac.uk>
>>>> Subject: Re: Building for unix backend fails
>>>> Date: 18 July 2013 13:48:28 GMT+01:00
>>>> To: Dimosthenis Pediaditakis <dimosthenis.pediaditakis@cl.cam.ac.uk>
>>>>
>>>> hi dimos;
>>>>
>>>> On 18 Jul 2013, at 13:39, Dimosthenis Pediaditakis wrote:
>>>>
>>>> Build the "static_website" from the "mirage-skeleton" examples fails:
>>>>> -------------------------------------------
>>>>> Building executable mir-hello
>>>>> [1 of 3] Compiling Hello                         [2 of 3] Compiling Backend
>>>>> File "backend.ml", line 19, characters 45-58:
>>>>> Error: Unbound constructor OS.Netif.PCAP
>>>>> [mirari] ERROR: The command "obuild build" exited with code 6.
>>>>> make: *** [build] Error 1
>>>>> -------------------------------------------
>>>>>
>>>> odd - i just copied static_website as the basis for the oscon presentation, and it builds and runs just fine for me using unix-socket-build and unix-direct-build as targets.
>>>>
>>>> i did do a clean reinstall of opam and everything yesterday though, while tweaking installation wiki pages, although i currently have the same versions of all the opam packages you listed.
>>>>
>>>> what are you doing to build it?  is your code in a repo somewhere?
>>>>
>>>> -- 
>>>> Cheers,
>>>>
>>>> R.
>>>>
>>>>
>>>>
>>>>
>>


--------------040408080505010006090706
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Will do Anil, anyway, as of yesterday
      evening everything worked without issues.<br>
      <br>
      For "unix-direct" it would be handy to be able to specify more
      than one interfaces using Mirari and use incremental "tapX"&nbsp; as
      netif ID, instead of tap0, and assign it a non hard-coded IP
      address:<br>
      <meta http-equiv="content-type" content="text/html;
        charset=ISO-8859-1">
      <a
        href="https://github.com/mirage/mirari/blob/master/lib/mirari.ml">
        <meta http-equiv="content-type" content="text/html;
          charset=ISO-8859-1">
      </a><a
        href="https://github.com/mirage/mirari/blob/master/lib/mirari.ml#L500">https://github.com/mirage/mirari/blob/master/lib/mirari.ml#L501</a><br>
      <br>
      Also, I will share an updated/enhanced version of the following
      script:<br>
      <meta http-equiv="content-type" content="text/html;
        charset=ISO-8859-1">
      <a
        href="https://github.com/avsm/mirage/blob/master/scripts/xcp.sh">https://github.com/avsm/mirage/blob/master/scripts/xcp.sh</a><br>
      and similar VM-uninstall script<br>
      <br>
      Thanks!<br>
      D.<br>
      <br>
      <br>
      <br>
      On 19/07/13 15:36, Anil Madhavapeddy wrote:<br>
    </div>
    <blockquote
      cite="mid:2C4FA21B-6367-4A91-9AD4-8193188A9F75@recoil.org"
      type="cite">
      <pre wrap="">Dimos: try with the latest rounds of changes, as everything should be consistent again.  Also, let us know if you need anything extra in Mirari while you set up your cluster.

cheers
Anil

On 18 Jul 2013, at 15:08, Dimosthenis Pediaditakis <a class="moz-txt-link-rfc2396E" href="mailto:dimosthenis.pediaditakis@cl.cam.ac.uk">&lt;dimosthenis.pediaditakis@cl.cam.ac.uk&gt;</a> wrote:

</pre>
      <blockquote type="cite">
        <pre wrap="">Hi Richard,
I reinstalled everything from scratch all of a sudden it worked :-o

Anil, thanks for your response.

I am aiming to port SDNSim in Xen, but as a first step, I experiment with simple Mirage apps with networking.

I test it under Linux  3.5.0-36, using opam 1.0.0.
I've added mirage/opam-repo-dev as a remote to opam
I use mirari to build the projects (which I find extremely convenient).

Still have the issue with the "tcp" example not running on Xen, but I will keep working on it  (not an easy thing to debug Xen guests).
If I have no luck, I might ping you again.

Thanks,
D.





On 18/07/13 13:48, Richard Mortier wrote:
</pre>
        <blockquote type="cite">
          <pre wrap="">forgot to hit reply-all...

Begin forwarded message:

</pre>
          <blockquote type="cite">
            <pre wrap="">From: Mortier Richard <a class="moz-txt-link-rfc2396E" href="mailto:pszrmm@exmail.nottingham.ac.uk">&lt;pszrmm@exmail.nottingham.ac.uk&gt;</a>
Subject: Re: Building for unix backend fails
Date: 18 July 2013 13:48:28 GMT+01:00
To: Dimosthenis Pediaditakis <a class="moz-txt-link-rfc2396E" href="mailto:dimosthenis.pediaditakis@cl.cam.ac.uk">&lt;dimosthenis.pediaditakis@cl.cam.ac.uk&gt;</a>

hi dimos;

On 18 Jul 2013, at 13:39, Dimosthenis Pediaditakis wrote:

Build the "static_website" from the "mirage-skeleton" examples fails:
</pre>
            <blockquote type="cite">
              <pre wrap="">-------------------------------------------
Building executable mir-hello
[1 of 3] Compiling Hello                         [2 of 3] Compiling Backend
File "backend.ml", line 19, characters 45-58:
Error: Unbound constructor OS.Netif.PCAP
[mirari] ERROR: The command "obuild build" exited with code 6.
make: *** [build] Error 1
-------------------------------------------

</pre>
            </blockquote>
            <pre wrap="">odd - i just copied static_website as the basis for the oscon presentation, and it builds and runs just fine for me using unix-socket-build and unix-direct-build as targets.

i did do a clean reinstall of opam and everything yesterday though, while tweaking installation wiki pages, although i currently have the same versions of all the opam packages you listed.

what are you doing to build it?  is your code in a repo somewhere?

-- 
Cheers,

R.




</pre>
          </blockquote>
          <pre wrap="">
</pre>
        </blockquote>
        <pre wrap="">

</pre>
      </blockquote>
      <pre wrap="">
</pre>
    </blockquote>
    <br>
  </body>
</html>

--------------040408080505010006090706--


From Richard.Mortier@nottingham.ac.uk Fri Jul 19 19:10:15 2013
Received: from ppsw-mx-f.csi.cam.ac.uk ([131.111.8.149]
	helo=ppsw-42.csi.cam.ac.uk)
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1V0F8B-0004gz-60 (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <Richard.Mortier@nottingham.ac.uk>);
	Fri, 19 Jul 2013 19:10:15 +0100
X-Cam-SpamDetails: score 0.0 from SpamAssassin-3.3.2-1504391 
	* 0.0 MIME_QP_LONG_LINE RAW: Quoted-printable line longer than 76 chars
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from engine01-20433-9.icritical.com ([151.236.209.34]:44432)
	by ppsw-42.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.149]:25)
	with smtp id 1V0F8A-0002Hg-8G (Exim 4.80_167-5a66dd3) for
	cl-mirage@lists.cam.ac.uk
	(return-path <Richard.Mortier@nottingham.ac.uk>);
	Fri, 19 Jul 2013 19:10:15 +0100
Received: (qmail 1207 invoked from network); 19 Jul 2013 18:10:01 -0000
Received: from localhost (127.0.0.1)
	by engine01-20433-9.icritical.com with SMTP; 19 Jul 2013 18:10:01 -0000
Received: from engine01-20433-9.icritical.com ([127.0.0.1])
	by localhost (engine01-20433-9.icritical.com [127.0.0.1]) (amavisd-new,
	port 10024) with SMTP id 00702-10 for <cl-mirage@lists.cam.ac.uk>;
	Fri, 19 Jul 2013 19:09:59 +0100 (BST)
Received: (qmail 1151 invoked by uid 599); 19 Jul 2013 18:09:59 -0000
Received: from unknown (HELO smtp4.nottingham.ac.uk) (128.243.220.65)
	by engine01-20433-9.icritical.com (qpsmtpd/0.28) with ESMTP;
	Fri, 19 Jul 2013 19:09:59 +0100
Received: from uiwexhub02.ad.nottingham.ac.uk ([128.243.15.132])
	by smtp4.nottingham.ac.uk with esmtps (TLSv1:AES128-SHA:128)
	(Exim 4.77) (envelope-from <Richard.Mortier@nottingham.ac.uk>)
	id 1V0F86-0000tG-GH; Fri, 19 Jul 2013 19:10:10 +0100
From: Richard Mortier <Richard.Mortier@nottingham.ac.uk>
To: Anil Madhavapeddy <anil.madhavapeddy@cl.cam.ac.uk>
Date: Fri, 19 Jul 2013 19:10:09 +0100
Subject: oscon deck/reveal.js
Thread-Topic: oscon deck/reveal.js
Thread-Index: Ac6EqzSiu3NTGy1kTdadU5J86m6sHw==
Message-ID: <7BD68658-403C-46E4-ABD5-0415EBF33A52@nottingham.ac.uk>
Accept-Language: en-US, en-GB
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US, en-GB
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Virus-Scanned: by iCritical at engine01-20433-9.icritical.com
Cc: "cl-mirage@lists.cam.ac.uk List" <cl-mirage@lists.cam.ac.uk>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Fri, 19 Jul 2013 18:10:15 -0000
Content-Length: 1545
Lines: 32

making some progress converting the asplos talk after wasting lots of time =
getting stuff off broken phone. grr.

powerpoint doesn't convert content into pngs particularly well - i suspect =
some time with the pdf is the only way forwards.

what's there so far is at <https://github.com/mor1/mirage-decks> - should b=
e able to clone, build and run in the usual way. point browser at localhost=
:8080 and have at it. slides and assets for a given deck live under ./files=
/slides/<deck>/{index.html,*} and are indexed in src/slides.ml. i've struct=
ured the deck vertically and horizontally, mostly just because i can.

i'll try to find a better way of converting the assets from the asplos deck=
 and use it over the w/e. i'll also try to get some sensible theming done.

--=20
Cheers,

R.




This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.

This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system, you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.






From vb@luminar.eu.org Sun Jul 21 09:15:01 2013
Received: from ppsw-mx-f.csi.cam.ac.uk ([131.111.8.149]
	helo=ppsw-42.csi.cam.ac.uk)
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1V0onF-0001UU-FE (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <vb@luminar.eu.org>); Sun, 21 Jul 2013 09:15:01 +0100
X-Cam-SpamDetails: score -1.5 from SpamAssassin-3.3.2-1505109 
	* -1.5 RP_MATCHES_RCVD Envelope sender domain matches handover relay
	*      domain
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from luminar.eu.org ([94.23.24.152]:45423)
	by ppsw-42.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.149]:25)
	with esmtp id 1V0onE-00006I-9O (Exim 4.80_167-5a66dd3) for
	cl-mirage@lists.cam.ac.uk
	(return-path <vb@luminar.eu.org>); Sun, 21 Jul 2013 09:15:01 +0100
Received: from [192.168.0.135]
	(cpc23-cmbg15-2-0-cust116.5-4.cable.virginmedia.com [86.27.178.117])
	(using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by luminar.eu.org (Postfix) with ESMTPSA id 8D8C76167D
	for <cl-mirage@lists.cam.ac.uk>; Sun, 21 Jul 2013 10:15:00 +0200 (CEST)
Message-ID: <51EB9884.3050301@luminar.eu.org>
Date: Sun, 21 Jul 2013 09:15:00 +0100
From: "Vincent B." <vb@luminar.eu.org>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:17.0) Gecko/20130625 Thunderbird/17.0.7
MIME-Version: 1.0
To: cl-mirage@lists.cam.ac.uk
Subject: Re: Building for unix backend fails
References: <10B71B20-6BC6-4C95-8F3B-D9E7BEEF6D5A@nottingham.ac.uk>
	<BF1B236C-AC42-45EF-BA02-D0202FEFDCA5@nottingham.ac.uk>
	<51E7F6D0.8050906@cl.cam.ac.uk>
	<2C4FA21B-6367-4A91-9AD4-8193188A9F75@recoil.org>
	<51E97C04.7060302@cl.cam.ac.uk>
In-Reply-To: <51E97C04.7060302@cl.cam.ac.uk>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Sun, 21 Jul 2013 08:15:01 -0000
Content-Length: 663
Lines: 17

On 19/07/2013 18:48, Dimosthenis Pediaditakis wrote:
> Will do Anil, anyway, as of yesterday evening everything worked without
> issues.
>
> For "unix-direct" it would be handy to be able to specify more than one
> interfaces using Mirari and use incremental "tapX"  as netif ID, instead
> of tap0, and assign it a non hard-coded IP address:
> <https://github.com/mirage/mirari/blob/master/lib/mirari.ml>https://github.com/mirage/mirari/blob/master/lib/mirari.ml#L501
> <https://github.com/mirage/mirari/blob/master/lib/mirari.ml#L500>

It is planned, I'm going to do that I just did not want to take the risk 
of breaking things before OSCon.

Cheers,

Vincent


From scott.dj@gmail.com Thu Jul 25 15:46:58 2013
Received: from ppsw-33.csi.cam.ac.uk ([131.111.8.133])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1V2Mok-0007Kp-54 (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <scott.dj@gmail.com>); Thu, 25 Jul 2013 15:46:58 +0100
X-Cam-SpamDetails: score 0.6 from SpamAssassin-3.3.2-1505627 
	* -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/,
	low *      trust
	*      [209.85.160.53 listed in list.dnswl.dnsbl.ja.net]
	* 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail
	provider *       (scott.dj[at]gmail.com)
	*  0.0 DKIM_ADSP_CUSTOM_MED No valid author signature, adsp_override is
	*      CUSTOM_MED
	*  0.0 HTML_MESSAGE BODY: HTML included in message
	*  0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily
	*      valid
	*  0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid
	*  1.2 NML_ADSP_CUSTOM_MED ADSP custom_med hit, and not from a mailing
	*      list
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from mail-pb0-f53.google.com ([209.85.160.53]:57132)
	by ppsw-33.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.147]:25)
	with esmtp id 1V2Moj-0006ys-hY (Exim 4.80_167-5a66dd3) for
	cl-mirage@lists.cam.ac.uk
	(return-path <scott.dj@gmail.com>); Thu, 25 Jul 2013 15:46:58 +0100
Received: by mail-pb0-f53.google.com with SMTP id up15so175607pbc.40
	for <cl-mirage@lists.cam.ac.uk>; Thu, 25 Jul 2013 07:46:56 -0700 (PDT)
MIME-Version: 1.0
X-Received: by 10.68.143.73 with SMTP id sc9mr48893876pbb.2.1374763616250;
	Thu, 25 Jul 2013 07:46:56 -0700 (PDT)
Received: by 10.70.34.143 with HTTP; Thu, 25 Jul 2013 07:46:56 -0700 (PDT)
In-Reply-To: <3D750E90-083A-4A04-B40B-03917FA925D3@recoil.org>
References: <3D750E90-083A-4A04-B40B-03917FA925D3@recoil.org>
Date: Thu, 25 Jul 2013 15:46:56 +0100
Message-ID: <CAG_esB1N_05HxCbWywAGTGOq87h7eMeBaptr-_8T0mVr+jEBUQ@mail.gmail.com>
Subject: Re: Blog: Creating Xen block devices with Mirage
From: David Scott <scott.dj@gmail.com>
To: Anil Madhavapeddy <anil@recoil.org>
Content-Type: multipart/alternative; boundary=047d7b2e4410ff334804e2571813
Cc: "cl-mirage@lists.cam.ac.uk List" <cl-mirage@lists.cam.ac.uk>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Thu, 25 Jul 2013 14:46:58 -0000
Content-Length: 1784
Lines: 52

--047d7b2e4410ff334804e2571813
Content-Type: text/plain; charset=ISO-8859-1

BTW the 'xen-disk' utility and its dependencies have just been added to
upstream opam, so it's now easy to build without (potentially unstable)
development remotes.


On Fri, Jul 19, 2013 at 6:10 PM, Anil Madhavapeddy <anil@recoil.org> wrote:

> Dave pulled together his work on writing *backend* devices in Mirage for
> this blog post.  I'm looking forward to building a few custom storage
> systems using this!
>
> http://openmirage.org/blog/xen-block-devices-with-mirage
>
> -anil
>



-- 
Dave Scott

--047d7b2e4410ff334804e2571813
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">BTW the &#39;xen-disk&#39; utility and its dependencies ha=
ve just been added to upstream opam, so it&#39;s now easy to build without =
(potentially unstable) development remotes.</div><div class=3D"gmail_extra"=
>
<br><br><div class=3D"gmail_quote">On Fri, Jul 19, 2013 at 6:10 PM, Anil Ma=
dhavapeddy <span dir=3D"ltr">&lt;<a href=3D"mailto:anil@recoil.org" target=
=3D"_blank">anil@recoil.org</a>&gt;</span> wrote:<br><blockquote class=3D"g=
mail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-l=
eft:1ex">
Dave pulled together his work on writing *backend* devices in Mirage for th=
is blog post. =A0I&#39;m looking forward to building a few custom storage s=
ystems using this!<br>
<br>
<a href=3D"http://openmirage.org/blog/xen-block-devices-with-mirage" target=
=3D"_blank">http://openmirage.org/blog/xen-block-devices-with-mirage</a><br=
>
<span class=3D"HOEnZb"><font color=3D"#888888"><br>
-anil<br>
</font></span></blockquote></div><br><br clear=3D"all"><div><br></div>-- <b=
r>Dave Scott
</div>

--047d7b2e4410ff334804e2571813--


From anil@recoil.org Thu Jul 25 20:08:58 2013
Received: from ppsw-32.csi.cam.ac.uk ([131.111.8.132])
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1V2QuI-0004hO-Hm (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Thu, 25 Jul 2013 20:08:58 +0100
X-Cam-SpamDetails: score 0.0 from SpamAssassin-3.3.2-1505627 
	*  0.0 FSL_HELO_BARE_IP_2 FSL_HELO_BARE_IP_2
	*  0.0 HTML_MESSAGE BODY: HTML included in message
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from recoil.dh.bytemark.co.uk ([89.16.177.154]:20504
	helo=dark.recoil.org)
	by ppsw-32.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.146]:25)
	with smtp id 1V2QuH-0007CT-34 (Exim 4.80_167-5a66dd3) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Thu, 25 Jul 2013 20:08:58 +0100
Received: (qmail 29259 invoked by uid 634); 25 Jul 2013 19:08:57 -0000
X-Spam-Level: *
X-Spam-Status: No, hits=-1.0 required=5.0
	tests=ALL_TRUSTED,HTML_MESSAGE,TVD_RCVD_IP
X-Spam-Check-By: dark.recoil.org
Received: from 67.23.204.2.freewirebroadband.com (HELO [10.10.37.169])
	(67.23.204.2)
	(smtp-auth username remote@recoil.org, mechanism cram-md5)
	by dark.recoil.org (qpsmtpd/0.84) with ESMTPA;
	Thu, 25 Jul 2013 20:08:57 +0100
Content-Type: multipart/alternative;
	boundary="Apple-Mail=_265DF0E3-AB56-4ECA-987F-962662895F25"
Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\))
Subject: Re: Blog: Creating Xen block devices with Mirage
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <CAG_esB1N_05HxCbWywAGTGOq87h7eMeBaptr-_8T0mVr+jEBUQ@mail.gmail.com>
Date: Thu, 25 Jul 2013 12:08:54 -0700
Message-Id: <3D2D1F29-F131-427E-AE22-749E7D68DD7B@recoil.org>
References: <3D750E90-083A-4A04-B40B-03917FA925D3@recoil.org>
	<CAG_esB1N_05HxCbWywAGTGOq87h7eMeBaptr-_8T0mVr+jEBUQ@mail.gmail.com>
To: David Scott <scott.dj@gmail.com>
X-Mailer: Apple Mail (2.1503)
X-Virus-Checked: Checked by ClamAV on dark.recoil.org
Cc: "cl-mirage@lists.cam.ac.uk List" <cl-mirage@lists.cam.ac.uk>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Thu, 25 Jul 2013 19:08:58 -0000
Content-Length: 2645
Lines: 51


--Apple-Mail=_265DF0E3-AB56-4ECA-987F-962662895F25
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=iso-8859-1

Thanks! Mort and I are just putting a screencast together of installing =
the website at the moment, so this is very helpful.

-anil

On 25 Jul 2013, at 07:46, David Scott <scott.dj@gmail.com> wrote:

> BTW the 'xen-disk' utility and its dependencies have just been added =
to upstream opam, so it's now easy to build without (potentially =
unstable) development remotes.
>=20
>=20
> On Fri, Jul 19, 2013 at 6:10 PM, Anil Madhavapeddy <anil@recoil.org> =
wrote:
> Dave pulled together his work on writing *backend* devices in Mirage =
for this blog post.  I'm looking forward to building a few custom =
storage systems using this!
>=20
> http://openmirage.org/blog/xen-block-devices-with-mirage
>=20
> -anil
>=20
>=20
>=20
> --=20
> Dave Scott


--Apple-Mail=_265DF0E3-AB56-4ECA-987F-962662895F25
Content-Transfer-Encoding: 7bit
Content-Type: text/html;
	charset=iso-8859-1

<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Thanks! Mort and I are just putting a screencast together of installing the website at the moment, so this is very helpful.<div><br></div><div>-anil</div><div><br><div><div>On 25 Jul 2013, at 07:46, David Scott &lt;<a href="mailto:scott.dj@gmail.com">scott.dj@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">BTW the 'xen-disk' utility and its dependencies have just been added to upstream opam, so it's now easy to build without (potentially unstable) development remotes.</div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Fri, Jul 19, 2013 at 6:10 PM, Anil Madhavapeddy <span dir="ltr">&lt;<a href="mailto:anil@recoil.org" target="_blank">anil@recoil.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Dave pulled together his work on writing *backend* devices in Mirage for this blog post. &nbsp;I'm looking forward to building a few custom storage systems using this!<br>
<br>
<a href="http://openmirage.org/blog/xen-block-devices-with-mirage" target="_blank">http://openmirage.org/blog/xen-block-devices-with-mirage</a><br>
<span class="HOEnZb"><font color="#888888"><br>
-anil<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>Dave Scott
</div>
</blockquote></div><br></div></body></html>
--Apple-Mail=_265DF0E3-AB56-4ECA-987F-962662895F25--


From jdy22@cam.ac.uk Fri Jul 26 14:04:05 2013
Received: from ppsw-mx-f.csi.cam.ac.uk ([131.111.8.149]
	helo=ppsw-42.csi.cam.ac.uk)
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1V2hgi-0003MJ-Vt (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <jdy22@cam.ac.uk>); Fri, 26 Jul 2013 14:04:05 +0100
X-Cam-AntiVirus: no malware found
X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/
Received: from mail-wg0-f53.google.com ([74.125.82.53]:52978)
	by ppsw-42.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.159]:587)
	with esmtpsa (PLAIN:jdy22) (TLSv1:RC4-SHA:128)
	id 1V2hgi-0007JN-98 (Exim 4.80_167-5a66dd3) for
	cl-mirage@lists.cam.ac.uk
	(return-path <jdy22@cam.ac.uk>); Fri, 26 Jul 2013 14:04:04 +0100
Received: by mail-wg0-f53.google.com with SMTP id c11so2855500wgh.32
	for <cl-mirage@lists.cam.ac.uk>; Fri, 26 Jul 2013 06:04:04 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=google.com; s=20120113;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type;
	bh=W3cpU01JhdObaqp13ls9srw15UIB25RTh4GE32WJyxo=;
	b=INHi9a+giMGNxAyamYHIU75hQKjOSJWddjZ0A6QNAUHGECPWfUrHtZTbBfodeYOwLj
	cOEYDbyv8hkCR2LWmqhYM2ZZFuvT9LdoaDaVrRm9owYDPfUmQNCWpbr+/OP72GUPAE5p
	XPFIoP8mZIPuQtqy4Ue9vEUB1XkbJ5Q1ZkFHwQSmeZgI+3ZCcP/v6+5709iqmURCTZk1
	1uirbrhX5kPfpbXOx+/1Pqf4xOvnjKE+GDPx4yoh+Supt2KwYyHYWlRGDyJmRW9E3TfA
	AlkunPgwM8MBRBSF3kZWYTIbq55yhT1/tPeCwgeQHpcZPb9iPnKHNexCCMwM9Jta5gOv
	n9iA==
MIME-Version: 1.0
X-Received: by 10.180.189.37 with SMTP id gf5mr5744168wic.9.1374843844705;
	Fri, 26 Jul 2013 06:04:04 -0700 (PDT)
Received: by 10.217.110.200 with HTTP; Fri, 26 Jul 2013 06:04:04 -0700 (PDT)
In-Reply-To: <CAAxsn=G-NOdssGXtFYR6xjfjj5BpV_oXa5S3j0ha2g57kaNBtw@mail.gmail.com>
References: <CAAxsn=E2BwkYmM0mAgpQTW_BSHRY_8O=bx1Eg9v0N1nTDtOjgw@mail.gmail.com>
	<CAAxsn=GfW0+1ZxUzTBFgnFQ97uEseB2B8a-w89rBzpyYAa1TEg@mail.gmail.com>
	<CAAxsn=G-NOdssGXtFYR6xjfjj5BpV_oXa5S3j0ha2g57kaNBtw@mail.gmail.com>
Date: Fri, 26 Jul 2013 14:04:04 +0100
Message-ID: <CAAxsn=Eob9siv8nys6npAx4tujKM2UwUN3nYoQ5KCgBQVScpTw@mail.gmail.com>
Subject: Fwd: OCaml compiler hacking session
From: Jeremy Yallop <jdy22@cam.ac.uk>
To: cl-mirage@lists.cam.ac.uk
Content-Type: text/plain; charset=UTF-8
Cc: Leo White <lpw25@cam.ac.uk>
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Fri, 26 Jul 2013 13:04:05 -0000
Content-Length: 1412
Lines: 39

Reminder: the compiler hacking session is on Tuesday.  If you're
planning to come along it'd be helpful if you could indicate interest
via Doodle:

   http://doodle.com/cxvxe3age7baanbc

---------- Forwarded message ----------
From: Jeremy Yallop <jdy22@cam.ac.uk>
Date: 13 July 2013 01:55
Subject: OCaml compiler hacking session


We're organising an OCaml compiler-hacking session!

Where: Room FW11, Computer Laboratory, Madingley Road
           Directions to the building: http://www.cl.cam.ac.uk/directions/
           Room plan:
http://www.cl.cam.ac.uk/research/dtg/openroommap/static/?s=FW11&labels=1

When: 6pm, Tuesday 30th July

Who: anyone interested in improving OCaml.  Knowledge of OCaml
programming will obviously be helpful, but prior experience of working
on OCaml internals isn't necessary.

What: fixing bugs, implementing new features, learning about OCaml internals

We're defining "compiler" pretty broadly, to include anything that's
part of the standard distribution, which means at least the standard
library, runtime, tools (ocamldep, ocamllex, ocamlyacc, etc.), camlp4,
ocamlbuild, the documentation, and the compiler itself.  We'll have
suggestions for mini-projects for various levels of experience, but
feel free to come along and work on whatever you fancy.

We'll also be ordering pizza, so if you want to be counted for food
you should aim to arrive by 6.30pm.

Jeremy and Leo


From rektide@eldergods.com Sun Jul 28 22:29:18 2013
Received: from ppsw-mx-f.csi.cam.ac.uk ([131.111.8.149]
	helo=ppsw-42.csi.cam.ac.uk)
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1V3YWk-0001St-Rb (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <rektide@eldergods.com>); Sun, 28 Jul 2013 22:29:18 +0100
X-Cam-SpamScore: s
X-Cam-SpamDetails: score 1.3 from SpamAssassin-3.3.2-1507597 
	*  1.3 RDNS_NONE Delivered to internal network by a host with no rDNS
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from [192.73.236.68] (port=60149 helo=mx.eldergods.com)
	by ppsw-42.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.149]:25)
	with esmtp id 1V3YWe-00025j-9c (Exim 4.80_167-5a66dd3) for
	cl-mirage@lists.cam.ac.uk
	(return-path <rektide@eldergods.com>); Sun, 28 Jul 2013 22:29:18 +0100
Received: by mx.eldergods.com (Postfix, from userid 1000)
	id AEFEF1621606; Sun, 28 Jul 2013 17:28:46 -0400 (EDT)
Date: Sun, 28 Jul 2013 17:28:46 -0400
From: rektide@voodoowarez.com
To: cl-mirage@lists.cam.ac.uk
Subject: Request: Apache Thrift
Message-ID: <20130728212846.GC29562@voodoowarez.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.5.21 (2010-09-15)
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Sun, 28 Jul 2013 21:29:18 -0000
Content-Length: 2279
Lines: 44

Hi Miragistas, much love & respect for your Unikernalist & Cross-everything cause-

I'm not capable of getting this project going myself, and am filing a broad request, or at least a
registrance of interest here: I'd love to see Thrift support on Mirage. Thrift has a fairly wide
presence in the "big data"/computing-services world, and serves as a serialization protocol as well
as an RPC mechanism. I'd love for the ability to host Thrift services in Mirage, and to make
connections to external Thrift services.

I've run the Thrift generator on their tutorial's "idl" files, the interface-descriptor-language
files, producing some OCaml code. It produces some relatively simple looking OCaml code, backed by a
Thrift library which is where the real implementation is.

I'm hosting the IDL files & their generated OCaml output:
https://github.com/rektide/thrift-tutorial-ocaml

Thrift's OCaml code is at:
https://github.com/apache/thrift/tree/master/lib/ocaml/src

Some of the projects using Thrift:
* HBase (data-storage)
* Hive (data-querying)
* Spark (data-storage)
* Scribe (logging)
* Cassandra (data-storage)
* Tachyon (memory-store)

I've spent a couple hours trying to make a start at this, and wouldn't mind taking the project on
myself if I had some high level design to point to authored by someone with a reasonable familiarity
with options for threading (lwt &c) in Mirage and with a confidence that they have any idea
whatsoever what they were doing and what a good final product might look like. I definitely am not
familiar or comfortable enough with Mirage to have felt like I was doing anything more than casually
slinging codes around, mostly owing to not really grokking the concurrency models available.

I suspect for someone that is better intimate with Mirage, porting the Thrift OCaml code could be
short day or two or hacking, and it'd be lovely to get to use Mirage alongside some of the big
computing stacks out there. I personally am gung ho for playing with some of the Amp Lab stuff-
Spark, & Tachyon, and would love to be doing it in Mirage, but I found myself not widely versed
enough to be up to the task of porting the OCaml Thrift code myself, unguided.

I'll continue idling on IRC, or as you prefer reply here. Thanks.

Regards,
-rektide


From anil@recoil.org Mon Jul 29 04:14:19 2013
Received: from ppsw-mx-f.csi.cam.ac.uk ([131.111.8.149]
	helo=ppsw-42.csi.cam.ac.uk)
	by lists-2.csi.cam.ac.uk (lists.cam.ac.uk [131.111.8.15]:25)
	with esmtp id 1V3dud-00045g-Iw (Exim 4.70) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Mon, 29 Jul 2013 04:14:19 +0100
X-Cam-SpamDetails: score 0.0 from SpamAssassin-3.3.2-1507597
X-Cam-ScannerInfo: http://www.ucs.cam.ac.uk/email/scanner/
Received: from recoil.dh.bytemark.co.uk ([89.16.177.154]:12794
	helo=dark.recoil.org)
	by ppsw-42.csi.cam.ac.uk (mx.cam.ac.uk [131.111.8.149]:25)
	with smtp id 1V3duc-0005Q9-8J (Exim 4.80_167-5a66dd3) for
	cl-mirage@lists.cam.ac.uk
	(return-path <anil@recoil.org>); Mon, 29 Jul 2013 04:14:19 +0100
Received: (qmail 212 invoked by uid 634); 29 Jul 2013 03:14:18 -0000
X-Spam-Level: *
X-Spam-Status: No, hits=-1.0 required=5.0
	tests=ALL_TRUSTED
X-Spam-Check-By: dark.recoil.org
Received: from c-76-102-1-148.hsd1.ca.comcast.net (HELO [192.168.1.113])
	(76.102.1.148)
	(smtp-auth username remote@recoil.org, mechanism cram-md5)
	by dark.recoil.org (qpsmtpd/0.84) with ESMTPA;
	Mon, 29 Jul 2013 04:14:17 +0100
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\))
Subject: Re: Request: Apache Thrift
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <20130728212846.GC29562@voodoowarez.com>
Date: Sun, 28 Jul 2013 20:14:14 -0700
Content-Transfer-Encoding: quoted-printable
Message-Id: <6C380267-10AC-4896-B792-6EB36AB2C255@recoil.org>
References: <20130728212846.GC29562@voodoowarez.com>
To: rektide@voodoowarez.com
X-Mailer: Apple Mail (2.1503)
X-Virus-Checked: Checked by ClamAV on dark.recoil.org
Cc: cl-mirage@lists.cam.ac.uk
X-BeenThere: cl-mirage@lists.cam.ac.uk
X-Mailman-Version: 2.1.8
Precedence: list
List-Id: MirageOS development <cl-mirage.lists.cam.ac.uk>
List-Unsubscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=unsubscribe>
List-Archive: <https://lists.cam.ac.uk/pipermail/cl-mirage>
List-Post: <mailto:cl-mirage@lists.cam.ac.uk>
List-Help: <mailto:cl-mirage-request@lists.cam.ac.uk?subject=help>
List-Subscribe: <https://lists.cam.ac.uk/mailman/listinfo/cl-mirage>,
	<mailto:cl-mirage-request@lists.cam.ac.uk?subject=subscribe>
X-List-Received-Date: Mon, 29 Jul 2013 03:14:19 -0000
Content-Length: 2897
Lines: 77

At a quick glance, the Thrift OCaml code generator looks pretty =
inefficient -- those object invocations won't be inlined, nor do they =
look necessary.

The only real requirement to make a Thrift serializer Mirage-friendly is =
to make it use Bigarrays rather than strings, and to make it pure OCaml. =
 If you can make it work on UNIX with Lwt_bytes, it will be pretty easy =
to port to Xen afterwards.

-anil

On 28 Jul 2013, at 14:28, rektide@voodoowarez.com wrote:

> Hi Miragistas, much love & respect for your Unikernalist & =
Cross-everything cause-
>=20
> I'm not capable of getting this project going myself, and am filing a =
broad request, or at least a
> registrance of interest here: I'd love to see Thrift support on =
Mirage. Thrift has a fairly wide
> presence in the "big data"/computing-services world, and serves as a =
serialization protocol as well
> as an RPC mechanism. I'd love for the ability to host Thrift services =
in Mirage, and to make
> connections to external Thrift services.
>=20
> I've run the Thrift generator on their tutorial's "idl" files, the =
interface-descriptor-language
> files, producing some OCaml code. It produces some relatively simple =
looking OCaml code, backed by a
> Thrift library which is where the real implementation is.
>=20
> I'm hosting the IDL files & their generated OCaml output:
> https://github.com/rektide/thrift-tutorial-ocaml
>=20
> Thrift's OCaml code is at:
> https://github.com/apache/thrift/tree/master/lib/ocaml/src
>=20
> Some of the projects using Thrift:
> * HBase (data-storage)
> * Hive (data-querying)
> * Spark (data-storage)
> * Scribe (logging)
> * Cassandra (data-storage)
> * Tachyon (memory-store)
>=20
> I've spent a couple hours trying to make a start at this, and wouldn't =
mind taking the project on
> myself if I had some high level design to point to authored by someone =
with a reasonable familiarity
> with options for threading (lwt &c) in Mirage and with a confidence =
that they have any idea
> whatsoever what they were doing and what a good final product might =
look like. I definitely am not
> familiar or comfortable enough with Mirage to have felt like I was =
doing anything more than casually
> slinging codes around, mostly owing to not really grokking the =
concurrency models available.
>=20
> I suspect for someone that is better intimate with Mirage, porting the =
Thrift OCaml code could be
> short day or two or hacking, and it'd be lovely to get to use Mirage =
alongside some of the big
> computing stacks out there. I personally am gung ho for playing with =
some of the Amp Lab stuff-
> Spark, & Tachyon, and would love to be doing it in Mirage, but I found =
myself not widely versed
> enough to be up to the task of porting the OCaml Thrift code myself, =
unguided.
>=20
> I'll continue idling on IRC, or as you prefer reply here. Thanks.
>=20
> Regards,
> -rektide
>=20



