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] ocaml build error

To: Vincent Hanquez <vincent.hanquez@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] ocaml build error
From: Jeremy Fitzhardinge <jeremy@xxxxxxxx>
Date: Thu, 06 May 2010 17:56:05 -0700
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>, Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Delivery-date: Thu, 06 May 2010 17:56:37 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4BE33677.1070907@xxxxxxxxxxxxx>
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: <C808A921.136BB%keir.fraser@xxxxxxxxxxxxx> <4BE33677.1070907@xxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100430 Fedora/3.0.4-2.fc12 Lightning/1.0b2pre Thunderbird/3.0.4
On 05/06/2010 02:36 PM, Vincent Hanquez wrote:
> On 06/05/10 17:13, Keir Fraser wrote:
>> If the build doesn't get fixed then the corrcet thing to do will be to
>> disable build of the ocaml components by default.
>
> It's stale build instructions that happens to still work for me since
> i've got some env set for all my old repos. the following patch fix it.
>
> Signed-off-by: Vincent Hanquez <vincent.hanquez@xxxxxxxxxxxxx>

It looks like Fedora 12 packages ocaml oddly, and its headers are under
/usr/lib64/ocaml/, so I had to add:

diff -r faf9bd66bf45 tools/ocaml/common.make
--- a/tools/ocaml/common.make   Thu May 06 17:44:03 2010 -0700
+++ b/tools/ocaml/common.make   Thu May 06 17:54:35 2010 -0700
@@ -8,7 +8,7 @@
 
 CFLAGS ?= -Wall -fPIC -O2
 
-CFLAGS += -I$(TOPLEVEL)/../include -I$(TOPLEVEL)/../libxc
+CFLAGS += -I$(TOPLEVEL)/../include -I$(TOPLEVEL)/../libxc -I/usr/lib64/ocaml 
-I/usr/lib/ocaml
 
 OCAMLOPTFLAG_G := $(shell $(OCAMLOPT) -h 2>&1 | sed -n 's/^  *\(-g\) .*/\1/p')
 OCAMLOPTFLAGS = $(OCAMLOPTFLAG_G) -ccopt "$(LDFLAGS)" -dtypes $(OCAMLINCLUDE) 
-cc $(CC) -w F -warn-error F


But even then it fails later on with:

 === building xenstored
 MLI      symbol.cmi
make[4]: *** No rule to make target `trie.cmi', needed by `all'.  Stop.
make[3]: *** [xenstored] Error 2
make[3]: Leaving directory `/home/jeremy/hg/xen/unstable/tools/ocaml'
make[2]: *** [subdir-install-ocaml] Error 2
make[2]: Leaving directory `/home/jeremy/hg/xen/unstable/tools'
make[1]: *** [subdirs-install] Error 2
make[1]: Leaving directory `/home/jeremy/hg/xen/unstable/tools'
make: *** [install-tools] Error 2


Forgot to add file?

    J

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