Re: Re: Is icedtea support MIPS?
Ao Qi
aoqi at loongson.cn
Tue Sep 18 01:34:29 UTC 2018
Hi,
Maybe it is because that the jdk was compiled by "gcc
--with-arch=loongson3a", so bin/java includes Loongson 3 instructions.
Loongson did not released a MIPS compatible jdk, although the JIT
generates MIPS compatible instructions when detecting the running CPU
is not a Loongson CPU. Loongson will release MIPS compatible version
jdk in the future.
Before that, if you have a boot jdk, you can build the Loongson
OpenJDK [1] on your machine.
[1] http://hg.loongnix.org/jdk8-mips64-public/
Cheers,
Ao Qi
On Mon, Sep 17, 2018 at 10:12 PM tong__hui at 163.com <tong__hui at 163.com> wrote:
>
> Thank you Ao Qi, I try this http://ftp.loongnix.org/toolchain/java/openjdk8/jdk8-mips64-8.tar.gz, but it can't run on Loongson 2f:
>
> yeeloong /usr/local/java # ls
> j2sdk-image jdk8-mips64-8.tar.gz
> yeeloong /usr/local/java # cd j2sdk-image/
> yeeloong /usr/local/java/j2sdk-image # ls
> ASSEMBLY_EXCEPTION CLASSPATH_EXCEPTION_NOTE ChangeLog LICENSE THIRD_PARTY_README bin demo include jre lib man release sample
> yeeloong /usr/local/java/j2sdk-image # cd bin
> yeeloong /usr/local/java/j2sdk-image/bin # ./java -version
> Illegal instruction
>
>
> ________________________________
> tong__hui at 163.com
>
>
> 发件人: Ao Qi
> 发送时间: 2018-09-17 13:46
> 收件人: tong__hui
> 抄送: distro-pkg-dev
> 主题: Re: Is icedtea support MIPS?
> Hi,
>
> I think IcedTea only has a Zero Inpterpreter on MIPS. Loongson has
> ported OpenJDK 8 to MIPS[1]. If you wish, you can try the OpenJDK
> delivered by Loongson[2], but we have not tested it on Loongson 2f and
> Gentoo. If there are problems, please let me know.
>
> [1] http://mail.openjdk.java.net/pipermail/porters-dev/2018-May/000628.html
> [2] http://www.loongnix.org/index.php/JDK8-MIPS64
>
> Cheers,
> Ao Qi
> On Sun, Sep 16, 2018 at 10:16 AM tong__hui at 163.com <tong__hui at 163.com> wrote:
> >
> > Hello
> > I want to use icedtea and java on MIPS computer, but an error occured:
> >
> > gentoo at yeeloong ~ $ javac
> > * javac is not available for icedtea-bin-8 on mips64
> > * IMPORTANT: some Java tools are not available on some VMs on some architectures
> >
> > gentoo at yeeloong ~ $ uname -a
> > Linux yeeloong 3.12.22 #1 PREEMPT Fri Jun 27 19:03:18 Local time zone must be set--see mips64 ICT Loongson-2 V0.3 FPU V0.1 lemote-yeeloong-2f-8.9inches GNU/Linux
> >
> > Is icedtea support MIPS? How can I use icedtea on MIPS computer?
> > BTW my OS is gentoo.
> >
> > Thanks!
> >
> > ________________________________
> > tong__hui at 163.com
More information about the distro-pkg-dev
mailing list