English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
OCaml 3.11.0+beta1 cross-compiler
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2008-11-14 (12:57)
From: Richard Jones <rich@a...>
Subject: OCaml 3.11.0+beta1 cross-compiler

Despite bug 4303 (http://caml.inria.fr/mantis/view.php?id=4303) having
lead to some changes in the compiler, I'm still extremely perplexed
about how to build a cross-compiler.

I want an 'ocamlopt' to be a Linux native binary[1] that generates
Windows executables.

We have a cross-assembler and cross-linker (i686-pc-mingw32-as and
i686-pc-mingw32-gcc respectively).  We also have a cross-compiler
version of flexdll.

My best attempt so far has been to generate config/{m,s}.h from
prepared Windows versions, and then build using the Unix Makefiles.
This gets some way, but produces an ocamlc which searches for files
using \ as a path separator, which is wrong and causes it to fail
looking for pervasives.cmi.

Anyone done this, or care to share any more hints?


[1] Running stuff under Wine isn't acceptable and nor is installing

Richard Jones
Red Hat