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@xxxxxxxxxx>
Subject: Re: [Xen-devel] tools: ocaml build error
From: Christoph Egger <Christoph.Egger@xxxxxxx>
Date: Wed, 11 May 2011 12:14:05 +0200
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Wed, 11 May 2011 03:29:31 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1305108976.26692.384.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>
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/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 ?

Yes, it does. Thanks.

Christoph



diff -r 72bba600f23b tools/ocaml/libs/xl/Makefile
--- a/tools/ocaml/libs/xl/Makefile      Fri May 06 13:51:13 2011 +0100
+++ b/tools/ocaml/libs/xl/Makefile      Wed May 11 11:15:50 2011 +0100
@@ -24,7 +24,7 @@ GENERATED_FILES += _libxl_types.inc
  all: $(INTF) $(LIBS)

  xl.ml: xl.ml.in _libxl_types.ml.in
-       $(Q)sed -e '1i(*\
+       $(Q)sed -e '1i\(*\
   * AUTO-GENERATED FILE DO NOT EDIT\
   * Generated from xl.ml.in and _libxl_types.ml.in\
   *)\
@@ -33,7 +33,7 @@ xl.ml: xl.ml.in _libxl_types.ml.in
        <  xl.ml.in>  xl.ml

  xl.mli: xl.mli.in _libxl_types.mli.in
-       $(Q)sed -e '1i(*\
+       $(Q)sed -e '1i\(*\
   * AUTO-GENERATED FILE DO NOT EDIT\
   * Generated from xl.mli.in and _libxl_types.mli.in\
   *)\





--
---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


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