Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0004303OCamlOCaml generalpublic2007-05-25 23:462012-12-15 17:38
Reportern8gray 
Assigned Toxclerc 
PrioritynormalSeverityfeatureReproducibilityN/A
StatusassignedResolutionopen 
PlatformOSOS Version
Product Version3.10.0 
Target VersionFixed in Version 
Summary0004303: Wish: Support for cross-compilation
DescriptionIt would be nice if OCaml supported cross-compilation. There are a number of interesting platforms in existence today that are powerful enough to support an ocaml runtime environment but are not well suited for hosting the compiler itself, in particular mobile platforms (PocketPCs, Linux phones, Nintendo DS, PSP, etc). Cross-compilation is also attractive for Mac OS X users since it would allow us to build universal binaries of OCaml programs. There are various one-off patches floating around the net to get specific versions of OCaml to cross-compile to specific platforms, but it would be better to be able to build a single compiler supporting multiple architectures.
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0004096)
karl (reporter)
2007-06-23 21:16

Second this wish, I want ocaml for ARM platform.
(0004270)
xleroy (administrator)
2007-11-10 15:10

On the CVS head version, the configure script was modified to allow specifying a cross C compiler and a cross assembler to be used. This removes one hurdle in building a Caml cross-compiler. I agree there should be a "HOWTO" explaining the steps to take. The major issue is the autoconfiguration stuff: either you manage to run it on the target device and copy the results to the build platform, or you have to write the configuration files by hand.

What you will never have, however, is a single OCaml compiler executable that can generate code for several target architectures.
(0004748)
Richard Jones (reporter)
2008-11-15 22:29

We are building a Windows cross-compiler environment
as part of the Fedora MinGW project. You can find our
test builds here:

http://hg.et.redhat.com/misc/fedora-mingw--devel/ [^]
(Click 'manifest' then one of the ocaml subdirectories)
(0004897)
xleroy (administrator)
2009-04-01 18:19

Xavier Clerc is making progress on this issue, see:

http://brion.inria.fr/gallium/index.php/CrossCompiler [^]
(0008613)
Camarade_Tux (reporter)
2012-12-15 17:38

I've noticed two iesues with this patch so far:

- doesn't really integrate with the build system
- seems unable to compile C (i.e. "ocamlc -c foo.c" will not work)

- Issue History
Date Modified Username Field Change
2007-05-25 23:46 n8gray New Issue
2007-06-23 21:16 karl Note Added: 0004096
2007-11-10 15:10 xleroy Note Added: 0004270
2007-11-10 15:10 xleroy Status new => acknowledged
2008-11-15 22:29 Richard Jones Note Added: 0004748
2009-04-01 18:19 xleroy Note Added: 0004897
2009-04-01 18:19 xleroy Assigned To => xclerc
2009-04-01 18:19 xleroy Status acknowledged => assigned
2012-12-15 17:38 Camarade_Tux Note Added: 0008613


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker