BZ #172: icedtea-6-jre-cacao: cacao badly broken on armhf

Status fields:

creation_ts:2012-09-25 11:44
component:jit
version:1.6.0
rep_platform:arm
op_sys:Linux
bug_status:RESOLVED
resolution:FIXED
reporter:xerxes@zafena.se
Peter Green posted the following bug-report to the Debian bug-tracker:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=688703

The following trivial test program fails with cacao on armhf

import java.math.*;

public class test {
 public static void main(String [] args) {
   System.out.println(3.0);
 }
}

root@debian:/# javac test.java
root@debian:/# java test
3.0
root@debian:/# java -cacao test
Exception in thread "main" java.lang.IllegalArgumentException: disparate values
        at sun.misc.FDBigInt.quoRemIteration(FloatingDecimal.java:2795)
        at sun.misc.FloatingDecimal.dtoa(FloatingDecimal.java:833)
        at sun.misc.FloatingDecimal.<init>(FloatingDecimal.java:460)
        at java.lang.Double.toString(Double.java:196)
        at java.lang.String.valueOf(String.java:2985)
        at java.io.PrintStream.print(PrintStream.java:606)
        at java.io.PrintStream.println(PrintStream.java:745)
        at test.main(test.java:5)
root@debian:/#

Comment #1 by stefan@complang.tuwien.ac.at on 2012-09-25 19:56:22

armhf can never have worked. This will require some register allocator tweaking
*shudder*.

Comment #2 by stefan@complang.tuwien.ac.at on 2012-11-16 19:17:18

(In reply to comment #1)
> armhf can never have worked. This will require some register allocator tweaking
> *shudder*.

After a failed attempt at fixing the register allocation yesterday, I have to say that
it's somewhat surprising that this huge behemoth of a register allocator does even work
at all. It's just so unapproachable :(.

Comment #3 by stefan@complang.tuwien.ac.at on 2012-11-22 11:21:08

I'm thoroughly confused. I have a working cross-compiled CACAO/Classpath running in a
quantal armhf chroot. How is this possible?

Comment #4 by stefan@complang.tuwien.ac.at on 2012-12-22 18:06:57

Progress being made, looking very good. Interim check-ins at
<https://bitbucket.org/Ringdingcoder/cacao-dev/commits/all/tip/branch%28%22armhf%22%29>.

Comment #5 by stefan@complang.tuwien.ac.at on 2013-01-22 23:57:42

http://mips.complang.tuwien.ac.at/hg/cacao/rev/5c93a7b6bcd5