[llvm-dev] Compiling OpenJDK8 with LLVM for mips64el

Magnus Ihse Bursie via llvm-dev llvm-dev at lists.llvm.org
Tue Sep 4 23:40:58 PDT 2018


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>


More information about the llvm-dev mailing list