caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Unable to build Android cross-compiler with OCaml 4.02.0
@ 2014-09-29 12:57 Jürgen Hötzel
  2014-09-29 13:43 ` Peter Zotov
  0 siblings, 1 reply; 2+ messages in thread
From: Jürgen Hötzel @ 2014-09-29 12:57 UTC (permalink / raw)
  To: caml-list

[-- Attachment #1: Type: text/plain, Size: 1176 bytes --]

Hi,

I was able to build a cross Compiler with OCaml 4.01.0 using this config:
https://github.com/vouillon/ocaml-android

But when I try to build with 4.02.0, building of the arm native stdlib
fails:

../boot/ocamlrun ../ocamlopt -strict-sequence -w +33..39 -g -warn-error A
-bin-annot -nostdlib -safe-string `./Compflags char.cmx` -c char.ml
I/97
>> Fatal error: Liveness.fundecl
Fatal error: exception Misc.Fatal_error
Makefile.shared:79: recipe for target 'char.cmx' failed


I did some git-bisecting and it seems this commit causes the error:

commit c4f3a6c70c12681871573851921d3b070be5744b
Author: Xavier Leroy <xavier.leroy@inria.fr>
Date:   Fri Jul 18 14:07:35 2014 +0000

    PR#6484 and PR#6486: CSE across memory allocations can present the GC
with memory roots that are illegal.
    Plus: lift the previous restriction that all arithmetic ops and loads
have at most one result register, this isn't true for ARM with soft floats.
    Plus: code refactoring and more comments.


    git-svn-id: http://caml.inria.fr/svn/ocaml/version/4.02@15012
f963ae5c-01c2-4b8c-9fe0-0dff7051ff02

Any hints/help appreciated

Regards,

Jürgen

[-- Attachment #2: Type: text/html, Size: 1765 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Caml-list] Unable to build Android cross-compiler with OCaml 4.02.0
  2014-09-29 12:57 [Caml-list] Unable to build Android cross-compiler with OCaml 4.02.0 Jürgen Hötzel
@ 2014-09-29 13:43 ` Peter Zotov
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Zotov @ 2014-09-29 13:43 UTC (permalink / raw)
  To: Jürgen Hötzel; +Cc: caml-list, caml-list-request

On 2014-09-29 16:57, Jürgen Hötzel wrote:
> Hi,
> 
> I was able to build a cross Compiler with OCaml 4.01.0 using this
> config: https://github.com/vouillon/ocaml-android [1]
> 
> But when I try to build with 4.02.0, building of the arm native stdlib
> fails:
> 
> ../boot/ocamlrun ../ocamlopt -strict-sequence -w +33..39 -g
> -warn-error A -bin-annot -nostdlib -safe-string `./Compflags char.cmx`
> -c char.ml [2]
> I/97
>>> Fatal error: Liveness.fundecl
> Fatal error: exception Misc.Fatal_error
> Makefile.shared:79: recipe for target 'char.cmx' failed

Please report this on http://caml.inria.fr/mantis -- there's a chance
the bugfix could go into 4.02.1.

-- 
Peter Zotov

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-09-29 13:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-29 12:57 [Caml-list] Unable to build Android cross-compiler with OCaml 4.02.0 Jürgen Hötzel
2014-09-29 13:43 ` Peter Zotov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).