Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0004303OCamlplatform support (windows, cross-compilation, etc)public2007-05-25 23:462017-03-03 17:13
Assigned To 
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
related to 0006266closeddoligez Cross compilation for iOs, Android etc 
related to 0006613resolved armv5te code generation bug: shift expression expected -- `subs r0,r3,#4294967296' 

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

Second this wish, I want ocaml for ARM platform.
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.
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: [^]
(Click 'manifest' then one of the ocaml subdirectories)
xleroy (administrator)
2009-04-01 18:19

Xavier Clerc is making progress on this issue, see: [^]
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)
xleroy (administrator)
2017-02-20 10:56

Un-assigning from xclerc
doligez (administrator)
2017-03-03 17:13

related to:

GPR#940 [^]
GPR#766 [^]
GPR#620 [^]
GPR#183 [^]

- 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
2014-10-16 09:34 xleroy Relationship added related to 0006613
2017-02-20 10:56 xleroy Status assigned => acknowledged
2017-02-20 10:56 xleroy Note Added: 0017366
2017-02-23 16:36 doligez Category OCaml general => -OCaml general
2017-03-03 17:09 doligez Assigned To xclerc =>
2017-03-03 17:09 doligez Category -OCaml general => platform support (windows, cross-compilation, etc)
2017-03-03 17:13 doligez Note Added: 0017563
2017-03-03 17:13 doligez Relationship added related to 0006266

Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker