From magnus.ihse.bursie at oracle.com Wed Sep 5 06:40:58 2018 From: magnus.ihse.bursie at oracle.com (Magnus Ihse Bursie) Date: Wed, 5 Sep 2018 08:40:58 +0200 Subject: Compiling OpenJDK8 with LLVM for mips64el In-Reply-To: <5678bdfb-c2ec-075c-790b-3da158edcfa2@loongson.cn> References: <5678bdfb-c2ec-075c-790b-3da158edcfa2@loongson.cn> Message-ID: <9e116927-a4a9-2526-0137-29867fe5e9ca@oracle.com> On 2018-09-05 06:03, Leslie Zhai wrote: > Hi all, > > Thanks for Aleksandar Beserminji great job: > > https://reviews.llvm.org/D50437 > > It is not easy to reproduce the LLVMBUG-38221[1] by building > OpenJDK8,? it needs some workaround > > https://raw.githubusercontent.com/xiangzhai/jdk8u-dev/master/Workaround-compile-with-llvm.patch > Hi Leslie, Great to see that this combination works as well with just so little tweaking! However, since the mips64 port is not in upstream (in fact, it's currently not even an OpenJDK project), I think this patch better goes to the mips-port list. /Magnus > > LLVM toolchain[2] is just able to compile OpenJDK8 for mips64el now: > > http://hg.loongnix.org/ > > 1. https://bugs.llvm.org/show_bug.cgi?id=38221#c10 > > 2. $ clang -v > Loongson clang version 8.0.0 (git at github.com:llvm-mirror/clang.git > 56fc90882612ab774dae937ca8d997c59364f7f8) > (git at github.com:llvm-mirror/llvm.git > 3419b04cf0c0a57577865f0d17fefb205deed048) (based on LLVM 8.0.0svn) > Target: mips64el-redhat-linux > Thread model: posix > InstalledDir: /usr/bin > Found candidate GCC installation: > /usr/bin/../lib/gcc/mips64el-redhat-linux/4.9.3 > Found candidate GCC installation: > /usr/lib/gcc/mips64el-redhat-linux/4.9.3 > Selected GCC installation: > /usr/bin/../lib/gcc/mips64el-redhat-linux/4.9.3 > Candidate multilib: .; > Selected multilib: .; > -------------- next part -------------- An HTML attachment was scrubbed... URL: From magnus.ihse.bursie at oracle.com Wed Sep 5 06:41:17 2018 From: magnus.ihse.bursie at oracle.com (Magnus Ihse Bursie) Date: Wed, 5 Sep 2018 08:41:17 +0200 Subject: Compiling OpenJDK8 with LLVM for mips64el In-Reply-To: <5678bdfb-c2ec-075c-790b-3da158edcfa2@loongson.cn> References: <5678bdfb-c2ec-075c-790b-3da158edcfa2@loongson.cn> Message-ID: <681225fb-3c7e-71f5-7392-f3bed4af5f3d@oracle.com> On 2018-09-05 06:03, Leslie Zhai wrote: > Hi all, > > Thanks for Aleksandar Beserminji great job: > > https://reviews.llvm.org/D50437 > > It is not easy to reproduce the LLVMBUG-38221[1] by building > OpenJDK8,? it needs some workaround > > https://raw.githubusercontent.com/xiangzhai/jdk8u-dev/master/Workaround-compile-with-llvm.patch > Hi Leslie, Great to see that this combination works as well with just so little tweaking! However, since the mips64 port is not in upstream (in fact, it's currently not even an OpenJDK project), I think this patch better goes to the mips-port list. /Magnus > > LLVM toolchain[2] is just able to compile OpenJDK8 for mips64el now: > > http://hg.loongnix.org/ > > 1. https://bugs.llvm.org/show_bug.cgi?id=38221#c10 > > 2. $ clang -v > Loongson clang version 8.0.0 (git at github.com:llvm-mirror/clang.git > 56fc90882612ab774dae937ca8d997c59364f7f8) > (git at github.com:llvm-mirror/llvm.git > 3419b04cf0c0a57577865f0d17fefb205deed048) (based on LLVM 8.0.0svn) > Target: mips64el-redhat-linux > Thread model: posix > InstalledDir: /usr/bin > Found candidate GCC installation: > /usr/bin/../lib/gcc/mips64el-redhat-linux/4.9.3 > Found candidate GCC installation: > /usr/lib/gcc/mips64el-redhat-linux/4.9.3 > Selected GCC installation: > /usr/bin/../lib/gcc/mips64el-redhat-linux/4.9.3 > Candidate multilib: .; > Selected multilib: .; > -------------- next part -------------- An HTML attachment was scrubbed... URL: From zhaixiang at loongson.cn Wed Sep 5 07:19:11 2018 From: zhaixiang at loongson.cn (Leslie Zhai) Date: Wed, 5 Sep 2018 15:19:11 +0800 Subject: Compiling OpenJDK8 with LLVM for mips64el In-Reply-To: <9e116927-a4a9-2526-0137-29867fe5e9ca@oracle.com> References: <5678bdfb-c2ec-075c-790b-3da158edcfa2@loongson.cn> <9e116927-a4a9-2526-0137-29867fe5e9ca@oracle.com> Message-ID: <1d2591ca-1813-1eab-61e5-8f33b0ac74db@loongson.cn> Hi Magnus, Thanks for your kind response! ? 2018?09?05? 14:40, Magnus Ihse Bursie ??: > On 2018-09-05 06:03, Leslie Zhai wrote: >> Hi all, >> >> Thanks for Aleksandar Beserminji great job: >> >> https://reviews.llvm.org/D50437 >> >> It is not easy to reproduce the LLVMBUG-38221[1] by building >> OpenJDK8, it needs some workaround >> >> https://raw.githubusercontent.com/xiangzhai/jdk8u-dev/master/Workaround-compile-with-llvm.patch >> > > Hi Leslie, > > Great to see that this combination works as well with just so little > tweaking! > > However, since the mips64 port is not in upstream (in fact, it's > currently not even an OpenJDK project), I think this patch better goes > to the mips-port list. Sorry for my poor English! Because Aleksandar had implemented the missing instructions for LLVM Mips target. And he asked me how to build OpenJDK8 for testing https://bugs.llvm.org/show_bug.cgi?id=38221#c9 So I just tested for him, thanks for his great job again! > > /Magnus > >> >> LLVM toolchain[2] is just able to compile OpenJDK8 for mips64el now: >> >> http://hg.loongnix.org/ >> >> 1. https://bugs.llvm.org/show_bug.cgi?id=38221#c10 >> >> 2. $ clang -v >> Loongson clang version 8.0.0 (git at github.com:llvm-mirror/clang.git >> 56fc90882612ab774dae937ca8d997c59364f7f8) >> (git at github.com:llvm-mirror/llvm.git >> 3419b04cf0c0a57577865f0d17fefb205deed048) (based on LLVM 8.0.0svn) >> Target: mips64el-redhat-linux >> Thread model: posix >> InstalledDir: /usr/bin >> Found candidate GCC installation: >> /usr/bin/../lib/gcc/mips64el-redhat-linux/4.9.3 >> Found candidate GCC installation: >> /usr/lib/gcc/mips64el-redhat-linux/4.9.3 >> Selected GCC installation: >> /usr/bin/../lib/gcc/mips64el-redhat-linux/4.9.3 >> Candidate multilib: .; >> Selected multilib: .; >> > -- Regards, Leslie Zhai