Re: 答复: Inquiry whether jdk8u can compile with icc?

Erik Joelsson erik.joelsson at oracle.com
Tue Jun 26 14:46:12 UTC 2018


Hello VicWang,

The native source for Linux is written for GCC. Making it work with a 
different compiler is likely a lot of work that requires deep knowledge 
both in the JVM source and with the particular compiler. I have neither. 
Even if you got it to compile it's unlikely to work well since nobody 
(that I know of) has tested the combination before.

I recommend that you build with the supported compiler instead. What do 
you expect to gain from using ICC?

/Erik


On 2018-06-25 23:56, Vic Wang(BJ-RD) wrote:
> Hi Erik,
>
> Yeah, it need to modify some configure files before generating the Makefile file. But I am not lucky to build the binary successfully. It occurs some ld's error.
>> ld: /home/vic/Desktop/JVM/sourcecode/tmp/tmp/openjdk-jdk8u-jdk8u/build/linux-x86_64-normal-server-release/jdk/objs/java_objs/java: local symbol `__intel_sse2_strrchr' in /opt/intel/composer_xe_2015.2.164/compiler/lib/intel64/libirc.a(sse2_strrchr.o) is referenced by DSO
>> ld: final link failed: Bad value
> Do you have any ideas for this?
> I want to build JVM on intel i5-6600k platform.
> Thanks very much.
>
> Best Regards!
> VicWang
>
>
> -----邮件原件-----
> 发件人: Erik Joelsson [mailto:erik.joelsson at oracle.com]
> 发送时间: 2018年6月26日 0:20
> 收件人: Vic Wang(BJ-RD) <VicWang at zhaoxin.com>; build-dev at openjdk.java.net
> 主题: Re: Inquiry whether jdk8u can compile with icc?
>
> Hello,
>
> There is no support for ICC as far as I know. If ICC is compatible with the default toolchain for the platform, you may get something to work, but I doubt you will have any luck without modifying build logic.
>
> Which platform are you trying to build on?
>
> /Erik
>
>
> On 2018-06-25 08:19, Vic Wang(BJ-RD) wrote:
>> Hi,
>>
>>          I get the openjdk-jdk8u-jdk8u source code, and I want to compile jvm with ICC compiler.
>>          How to configure jvm before using ICC compiling?
>>          If there are any tips for ICC compiling, please let me know. Thanks a lot.
>>
>> Best Regards!
>> VicWang
>>
>>
>> 保密声明:
>> 本邮件含有保密或专有信息,仅供指定收件人使用。严禁对本邮件或其内容做任何未经授权的查阅、使用、复制或转发。
>> CONFIDENTIAL NOTE:
>> This email contains confidential or legally privileged information and is for the sole use of its intended recipient. Any unauthorized review, use, copying or forwarding of this email or the content of this email is strictly prohibited.
>
>
> 保密声明:
> 本邮件含有保密或专有信息,仅供指定收件人使用。严禁对本邮件或其内容做任何未经授权的查阅、使用、复制或转发。
> CONFIDENTIAL NOTE:
> This email contains confidential or legally privileged information and is for the sole use of its intended recipient. Any unauthorized review, use, copying or forwarding of this email or the content of this email is strictly prohibited.




More information about the build-dev mailing list