[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] ocaml build error



On 07/05/10 01:56, Jeremy Fitzhardinge wrote:
It looks like Fedora 12 packages ocaml oddly, and its headers are under
/usr/lib64/ocaml/, so I had to add:

The patch is correct; it's again my specific build environment (debian+tweaks) that happens to play tricks.

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?

gah yes; 3 files were missing. they got lost when i remove the stdext dependencies and move only the necessary files in to reduce the patchset size.

adding another patch for Keir.

--
Vincent

Attachment: patch-missing-files
Description: Text document

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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.