* compiling virt-mem 0.3.1 with ocaml 3.11.0
@ 2009-01-29 18:44 Florent Monnier
2009-01-29 22:40 ` [Caml-list] " Richard Jones
0 siblings, 1 reply; 3+ messages in thread
From: Florent Monnier @ 2009-01-29 18:44 UTC (permalink / raw)
To: Caml List
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 :)
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Caml-list] compiling virt-mem 0.3.1 with ocaml 3.11.0
2009-01-29 18:44 compiling virt-mem 0.3.1 with ocaml 3.11.0 Florent Monnier
@ 2009-01-29 22:40 ` Richard Jones
2009-01-30 8:17 ` Florent Monnier
0 siblings, 1 reply; 3+ messages in thread
From: Richard Jones @ 2009-01-29 22:40 UTC (permalink / raw)
To: Florent Monnier; +Cc: Caml List
I (still) don't know what the problem is here. Have you applied all
the patches from Fedora?
Rich.
--
Richard Jones
Red Hat
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Caml-list] compiling virt-mem 0.3.1 with ocaml 3.11.0
2009-01-29 22:40 ` [Caml-list] " Richard Jones
@ 2009-01-30 8:17 ` Florent Monnier
0 siblings, 0 replies; 3+ messages in thread
From: Florent Monnier @ 2009-01-30 8:17 UTC (permalink / raw)
To: caml-list
> I (still) don't know what the problem is here. Have you applied all
> the patches from Fedora?
I have tryed with a *completely* replicated spec/sources/patch from fedora,
the same error occurs on an "%identity" basis.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-01-30 8:54 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-29 18:44 compiling virt-mem 0.3.1 with ocaml 3.11.0 Florent Monnier
2009-01-29 22:40 ` [Caml-list] " Richard Jones
2009-01-30 8:17 ` Florent Monnier
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox