Leslie Zhai via llvm-dev
2018-Sep-05 04:03 UTC
[llvm-dev] Compiling OpenJDK8 with LLVM for mips64el
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 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
Magnus Ihse Bursie via llvm-dev
2018-Sep-05 06:40 UTC
[llvm-dev] Compiling OpenJDK8 with LLVM for mips64el
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: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180905/2decce06/attachment.html>
Leslie Zhai via llvm-dev
2018-Sep-05 07:19 UTC
[llvm-dev] Compiling OpenJDK8 with LLVM for mips64el
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
Possibly Parallel Threads
- error: ordered comparison between pointer and zero ('address' (aka 'unsigned char *') and 'int')
- error: ordered comparison between pointer and zero ('address' (aka 'unsigned char *') and 'int')
- error: ordered comparison between pointer and zero ('address' (aka 'unsigned char *') and 'int')
- OpenJDK8 failed to work after compiled by LLVM 8 for X86
- OpenJDK8 failed to work after compiled by LLVM 8 for X86