答复: Inquiry whether jdk8u can compile with icc?
Vic Wang(BJ-RD)
VicWang at zhaoxin.com
Fri Jun 29 09:06:59 UTC 2018
Hi Yumin:
I’ve solved the compiling bugs by using ICC .
You’re right. It’s not compatible with the static lib (libirc.a).
With modifying the LDFLAGS with –lirc, it can make successfully.
But why using the –O1 when linking? I’ve not clear for all the makefiles. I’ll study more about it.
Best Regards!
VicWang
发件人: yumin qi [mailto:yumin.qi at gmail.com]
发送时间: 2018年6月27日 0:41
收件人: Vic Wang(BJ-RD) <VicWang at zhaoxin.com>
抄送: erik.joelsson at oracle.com; build-dev at openjdk.java.net
主题: Re: Inquiry whether jdk8u can compile with icc?
The first error is known issue and fixed in jdk 9:
https://bugs.openjdk.java.net/browse/JDK-8016451
For the second one, I am not familiar with icc/icpc, it looks the linker find a static version which is not an expected version. you need to check the detail of library dependency.
Yumin
On Mon, Jun 25, 2018 at 11:57 PM Vic Wang(BJ-RD) <VicWang at zhaoxin.com<mailto:VicWang at zhaoxin.com>> 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<mailto:erik.joelsson at oracle.com>]
发送时间: 2018年6月26日 0:20
收件人: Vic Wang(BJ-RD) <VicWang at zhaoxin.com<mailto:VicWang at zhaoxin.com>>; build-dev at openjdk.java.net<mailto: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.
保密声明:
本邮件含有保密或专有信息,仅供指定收件人使用。严禁对本邮件或其内容做任何未经授权的查阅、使用、复制或转发。
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