WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] tools: ocaml build error

To: Ian Campbell <Ian.Campbell@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] tools: ocaml build error
From: Christoph Egger <Christoph.Egger@xxxxxxx>
Date: Thu, 12 May 2011 13:28:16 +0200
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 12 May 2011 04:30:52 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1305197840.26692.484.camel@xxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <4DCA5B85.7000500@xxxxxxx> <1305108976.26692.384.camel@xxxxxxxxxxxxxxxxxxxxxx> <4DCBBC27.3060506@xxxxxxx> <1305197840.26692.484.camel@xxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; NetBSD amd64; en-US; rv:1.9.2.13) Gecko/20110202 Lightning/1.0b3pre Thunderbird/3.1.7
On 05/12/11 12:57, Ian Campbell wrote:
On Thu, 2011-05-12 at 11:53 +0100, Christoph Egger wrote:
On 05/11/11 12:16, Ian Campbell wrote:
On Wed, 2011-05-11 at 10:48 +0100, Christoph Egger wrote:
Hi,

Compiling the ocaml fails:

Parsing tools/ocaml/libs/xl/../../../../tools/libxl/libxl.idl
sed: 1: "1i(*\
    * AUTO-GENERATED ...": command i expects \ followed by test
gmake[7]: Leaving directory `tools/ocaml/libs/xl'

I guess the sed script in tools/ocaml/libs/xl/Makefile has some
non-posix-ism in it.

Using gnu sed with --posix the following works for me (I dropped the
--posix). Does it help ?

I have to widthdraw my previous ack. The sed script didn't run because
of empty xm.ml and xm.mli files.

After running gmake dist-clean and recompile I get this error:

Parsing tools/ocaml/libs/xl/../../../../tools/libxl/libxl.idl
sed: 1: "1i\(*\
      * AUTO-GENERATED ...": extra characters after \ at the end of i command
gmake[7]: Leaving directory `tools/ocaml/libs/xl'

Can you play a bit with your version of sed and see what makes it happy?

Perhaps \n (suitable quoted) orjust a raw linefeed will work? If not
maybe just stick the whole autogenerated tag on a single line, or use
multiple i commands, or ....

I guess it wouldn't be the end of the world to do:
        echo "(* AUTO GEN... mummble etc *)">  xl.ml
        sed -e '/^(\* @@LIBXL_TYPES@@ \*)$$/r_libxl_types.ml.in'<bla>>xl.ml


With attached xen_tools_ocaml.diff  a xl.ml file is generated w/o
having sed complaining.
xl.mli is not generated at all.

I attached xl.ml. Can you check if this is the expected result, please?

Christoph


--
---to satisfy European Law for business letters:
Advanced Micro Devices GmbH
Einsteinring 24, 85689 Dornach b. Muenchen
Geschaeftsfuehrer: Alberto Bozzo, Andrew Bowd
Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen
Registergericht Muenchen, HRB Nr. 43632

Attachment: xen_tools_ocaml.diff
Description: xen_tools_ocaml.diff

Attachment: xl.ml
Description: xl.ml

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel