[llvm-dev] Compiling OpenJDK8 with LLVM for mips64el

Leslie Zhai via llvm-dev llvm-dev at lists.llvm.org
Wed Sep 5 00:19:11 PDT 2018


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




More information about the llvm-dev mailing list