RFR(M): 8043492 - ad_x86_64_misc.obj : error LNK2011: precompiled object not linked in; image may not run

Christian Tornqvist christian.tornqvist at oracle.com
Thu Jun 5 16:23:15 UTC 2014


Hi everyone,

 

This is a fix for building JDK9 with Visual Studio 2013, the fix is to add
_build_pch_file.obj to LD_FLAGS in vm.make when building with VS2012/2013.
Also added VS2013 to vm_version.cpp so that -Xinternalversion looks correct.

 

Cleaned up support for older versions of Visual Studio (2008 and older).
Mainstream support for these versions have ended:

http://support.microsoft.com/lifecycle/search/?sort=PN
<http://support.microsoft.com/lifecycle/search/?sort=PN&alpha=Visual+Studio>
&alpha=Visual+Studio and comments in the Hotspot code suggest we need VS2010
and later anyway.

 

Also cleaned up one of the warnings when building the SA with a CL option
that was removed in VS2005 (described by
https://bugs.openjdk.java.net/browse/JDK-6989106). 

 

Changes have been tested in JPRT and locally on my Windows 8.1 x64 machine
using VS2010 and VS2013, built using gnu make:

 

Java HotSpot(TM) Server VM (1.9.0-internal) for windows-x86 JRE (1.9.0),
built on Jun  5 2014 08:19:39 by "Christian" with MS VC++ 10.0 (VS2010)

Java HotSpot(TM) Server VM (1.9.0-internal) for windows-x86 JRE (1.9.0),
built on Jun  5 2014 08:36:15 by "Christian" with MS VC++ 12.0 (VS2013)

Java HotSpot(TM) 64-Bit Server VM (1.9.0-internal) for windows-amd64 JRE
(1.9.0), built on Jun  5 2014 08:31:36 by "Christian" with MS VC++ 10.0
(VS2010)

Java HotSpot(TM) 64-Bit Server VM (1.9.0-internal) for windows-amd64 JRE
(1.9.0), built on Jun  5 2014 08:26:51 by "Christian" with MS VC++ 12.0
(VS2013)

 

and Visual Studio project (using create.bat):

 

Java HotSpot(TM) Server VM (1.9.0) for windows-x86 JRE (1.9.0), built on Jun
5 2014 09:24:42 by "Christian" with MS VC++ 10.0 (VS2010)

Java HotSpot(TM) Server VM (1.9.0) for windows-x86 JRE (1.9.0), built on Jun
5 2014 09:19:32 by "Christian" with MS VC++ 12.0 (VS2013)

Java HotSpot(TM) 64-Bit Server VM (1.9.0) for windows-amd64 JRE (1.9.0),
built on Jun  5 2014 09:11:10 by "Christian" with MS VC++ 10.0 (VS2010)

Java HotSpot(TM) 64-Bit Server VM (1.9.0) for windows-amd64 JRE (1.9.0),
built on Jun  5 2014 09:15:57 by "Christian" with MS VC++ 12.0 (VS2013)

 

Webrev can be found at:

http://cr.openjdk.java.net/~ctornqvi/webrev/8043492/webrev.00/

 

Bug:

https://bugs.openjdk.java.net/browse/JDK-8043492

 

Thanks,

Christian



More information about the hotspot-dev mailing list