OCaml cross compiler
Richard W.M. Jones
rjones at redhat.com
Sun Feb 1 23:10:30 UTC 2009
On Sun, Feb 01, 2009 at 11:00:00PM +0100, Luigi Santocanale wrote:
> Hello,
>
> I got interested to the ocamlcross compiler.
>
> After installing
> mingw32-ocaml
>
> I try to compile, with the result
>
> lsantoca at delle6500:~$ i686-pc-mingw32-ocamlopt test.ml
> Fatal error: unknown C primitive `caml_set_parser_trace'
>
> Should I install something else ?
This works for me with the simple program below, also with some
not-so-simple programs in the repository (like virt-top). So I guess
that there is a missing dependency.
Can you post here:
- version of Fedora
- version of the mingw32-ocaml package installed
- output of the above command with '-verbose' option added
- the test program that you are trying to compile
Rich.
$ cat test.ml
print_endline "hello, world"
$ i686-pc-mingw32-ocamlopt test.ml
$ file a.out
a.out: PE32 executable for MS Windows (console) Intel 80386 32-bit
$ wine a.out
hello, world
--
Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones
virt-p2v converts physical machines to virtual machines. Boot with a
live CD or over the network (PXE) and turn machines into Xen guests.
http://et.redhat.com/~rjones/virt-p2v
More information about the mingw
mailing list