From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=AWL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by yquem.inria.fr (Postfix) with ESMTP id 99582BB84 for ; Thu, 29 Jan 2009 21:18:23 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: As4BANedgUnVJFBblGdsb2JhbACUFQEBAQEJCwgJEQO4aYQQBg X-IronPort-AV: E=Sophos;i="4.37,346,1231110000"; d="scan'208";a="22221271" Received: from mx-out.libertysurf.net (HELO mail.libertysurf.net) ([213.36.80.91]) by mail3-smtp-sop.national.inria.fr with ESMTP; 29 Jan 2009 21:18:23 +0100 Received: from [192.168.1.2] (91.168.189.183) by mail.libertysurf.net (7.3.118.8) id 49821DAC000011C5 for caml-list@inria.fr; Thu, 29 Jan 2009 22:30:31 +0100 From: Florent Monnier To: Caml List Subject: compiling virt-mem 0.3.1 with ocaml 3.11.0 Date: Thu, 29 Jan 2009 19:44:55 +0100 User-Agent: KMail/1.9.10 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAAAXNSR0IArs4c6QAAAF dQTFRFAAIAEBIPICEfJSckMDEvP0E+UlRRXmBdQ2L6aWtocHJvVnD8d3l2X3j7cYn8lJaTi 5z8qKqmman9o7H9tbeztcH9x8nFxcz81Nr+3uDg7/Hu+Pj//v/8/elwtQAAAilJREFUSMeV lm3DqiAMhqknX4oXCSUM9v9/50EGKInW2Zc0uNh2CxsE6ubcwQDZTzVScNr3lAup3TfAadE XJj4ZUk6n/c7o6I4Aw/uqUV0FnMwTpNLGaCXzAtLtAReD5+O8LjePkeHuE5hp9O4+VYgDcw k4/FtV1HcjEm4LxHhM/VsZuokKAVl43RnGK1fAhPUP5ydCJ8Dx/HpkJqexADrkW87oWPkeM h8RCArRUp+JsVepVZpEooNxO2qHCeA5FISOYROUqHTwZm+AF7OFiyVRsQDB2UcGMDyHJ1Sy cB4wKOl7WK0jwbrNXxZmjImAwohu5NRaAB4+HgkpCLBXeF7tu4XBD9mrl+gZHiZorL287AX iRAIipDB1MN3APmC6+3hvPml8eIH/udrlYQmFe4AGUYcHDAg0uDAMDbpagBc0QxCWegBzWf JEoIwdAf9wR3VcAtpvQJsBHkL6AUghYdIRuO+BLgEpaVSrDWI3l+6vBG4daXAsy6rSVmIdu bCWXNnGLqRjhDzCPqTxw5n1tLEJbLmtJ5a37Yyn/mDzVSxvvsr2rtb/vL0xpvEbsDlAtSO6 d7A5ogjLc0ClwhLq0o9lhqcyg4qdFrK1kpLV4X+UylSM9YlAvXBFueefnWbVR1XKvffKax1 w6Q71hrK2LKrmzLhZxbYqXKUpqtwUhRq1HpWgZ01xDWtn3BzeBKqNXbuzq4ORBUPl6dUhMs rfTpZMpDLuh9vMF/sH1Bu1nvCPRegAAAAASUVORK5CYII= MIME-Version: 1.0 Content-Disposition: inline Message-Id: <200901291944.55739.fmonnier@linux-nantes.fr.eu.org> Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Spam: no; 0.00; ocaml:01 ocaml:01 compilation:01 camlp:01 camlp:01 ocamlfind:01 ocamldep:01 -package:01 bigarray:01 syntax:01 -package:01 syntax:01 mli:01 mli:01 gettext:01 Hi, I'm trying to compile "virt-mem" 0.3.1 with ocaml 3.11.0. The compilation fails with the following files : kernel.ml, virt_mem_ksyms.ml, virt_mem_mmap.ml, virt_mem_utsname.ml which use a camlp4 extension. I have not learned camlp4 yet, so I don't know how to fix this, could someone tell me how to correct this ? ocamlfind ocamldep -package \ unix,bigarray,extlib,libvirt,xml-light,bitstring.syntax -package gettext-stub -syntax bitstring.syntax kernel.mli virt_mem.mli virt_mem_kallsyms.mli virt_mem_ksyms.mli virt_mem_mmap.mli virt_mem_types.mli virt_mem_utsname.mli kernel.ml test_mmap.ml virt_mem.ml virt_mem_capture.ml virt_mem_dump.ml virt_mem_gettext.ml virt_mem_kallsyms.ml virt_mem_kernels.ml virt_mem_ksyms.ml virt_mem_mmap.ml virt_mem_types.ml virt_mem_utils.ml virt_mem_utsname.ml virt_mem_version.ml > .depend File "kernel.ml", line 1001, characters 6-7: Parse error: ":" expected after [patt] (in [patt_field]) Preprocessing error on file kernel.ml File "virt_mem_ksyms.ml", line 175, characters 9-10: Parse error: ":" expected after [patt] (in [patt_field]) Preprocessing error on file virt_mem_ksyms.ml File "virt_mem_mmap.ml", line 366, characters 6-7: Parse error: ":" expected after [patt] (in [patt_field]) Preprocessing error on file virt_mem_mmap.ml File "virt_mem_utsname.ml", line 47, characters 6-7: Parse error: ":" expected after [patt] (in [patt_field]) Preprocessing error on file virt_mem_utsname.ml And I can not just rm .depend to see if it can build from there, because of packaging purpose, when a command doesn't return 0 the process just stops! __________________________ I think bitstring is correctly installed: $ ls /usr/lib/ocaml/bitstring/ META bitstring.cmxa bitstring_persistent.cmx bitmatch.cmx bitstring.mli bitstring_persistent.cmxa bitstring.a bitstring_config.cmx bitstring_persistent.mli bitstring.cma bitstring_persistent.a bitstring_types.cmx bitstring.cmi bitstring_persistent.cma libbitstring.a bitstring.cmx bitstring_persistent.cmi pa_bitstring.cmo $ cat /usr/lib/ocaml/bitstring/META name = "bitstring" version = "2.0.0" description = "Bitstrings and bitstring matching" requires = "unix" archive(byte) = "bitstring.cma" archive(native) = "bitstring.cmxa" package "persistent" ( requires = "bitstring" version = "2.0.0" description = "Persistent patterns for bitstring (requires camlp4)" archive(byte) = "bitstring_persistent.cma" archive(native) = "bitstring_persistent.cmxa" ) package "syntax" ( version = "2.0.0" description = "Syntax extension: bitstring operators" archive(syntax,preprocessor) = "unix.cma bitstring.cma bitstring_persistent.cma pa_bitstring.cmo" archive(syntax,toploop) = "unix.cma bitstring.cma bitstring_persistent.cma pa_bitstring.cmo" preprocessor = "camlp4of" ) __________________________ If I add -verbose on the command line here is what I get : $ ocamlfind ocamlc -verbose -dtypes -g -syntax bitstring.syntax -package unix,bigarray,extlib,libvirt,xml-light,bitstring.syntax -package gettext-stub -c virt_mem_mmap.ml Effective set of preprocessor predicates: preprocessor,syntax,bitstring.syntax Effective set of compiler predicates: pkg_unix,pkg_bigarray,pkg_extlib,pkg_libvirt,pkg_xml-light,\ pkg_bitstring.syntax,pkg_str,pkg_fileutils,pkg_gettext.base,\ pkg_gettext.extension,pkg_gettext-stub,syntax,autolink,byte + ocamlc.opt -verbose -dtypes -g -c -I /usr/lib/ocaml/extlib \ -ccopt -I/usr/lib/ocaml/extlib -I /usr/lib/ocaml/libvirt \ -ccopt -I/usr/lib/ocaml/libvirt -I /usr/lib/ocaml/xml-light \ -ccopt -I/usr/lib/ocaml/xml-light -I /usr/lib/ocaml/bitstring \ -ccopt -I/usr/lib/ocaml/bitstring -I /usr/lib/ocaml/fileutils \ -ccopt -I/usr/lib/ocaml/fileutils -I /usr/lib/ocaml/gettext \ -ccopt -I/usr/lib/ocaml/gettext -I /usr/lib/ocaml/gettext-stub \ -ccopt -I/usr/lib/ocaml/gettext-stub -pp camlp4of '-I' '/usr/lib/ocaml/bitstring' \ 'unix.cma' 'bitstring.cma' 'bitstring_persistent.cma' 'pa_bitstring.cmo' \ virt_mem_mmap.ml + camlp4of '-I' '/usr/lib/ocaml/bitstring' 'unix.cma' 'bitstring.cma' \ 'bitstring_persistent.cma' 'pa_bitstring.cmo' 'virt_mem_mmap.ml' > /home/blue_prawn/tmp/camlpp033036 File "virt_mem_mmap.ml", line 366, characters 6-7: Parse error: ":" expected after [patt] (in [patt_field]) File "virt_mem_mmap.ml", line 1, characters 0-1: Error: Preprocessor error ocamlc.opt returned with exit code 2 -- Thanks PS: In case there would be interested people, it's not strictly required to be a Mandriva user to package (or ponctually help packaging) for Mandriva, because there are machines available through ssh where one can do the job. So for instance for this current problem that I don't know how to fix because I don't know camlp4 yet, a helper someone could log through ssh, fix it and commit the fix. If there's noone interested, just forget it :)