United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-8003414 build-infra: fails on on windows
JDK-8003414 : build-infra: fails on on windows

Details
Type:
Bug
Submit Date:
2012-11-14
Status:
Closed
Updated Date:
2013-11-28
Project Name:
JDK
Resolved Date:
2012-12-05
Component:
infrastructure
OS:
windows_xp
Sub-Component:
build
CPU:
Priority:
P2
Resolution:
Fixed
Affected Versions:
Fixed Versions:

Related Reports
Cloners:

Sub Tasks

Description
checking for link... /usr/bin/link
checking if the first found link.exe is actually the Cygwin link tool... yes
configure: Found Windows SDK installation at /cygdrive/c/Program Files/Microsoft
 SDKs/Windows/v7.1/Bin using well-known name
configure: Rewriting VS_ENV_CMD to "/cygdrive/c/progra~1/micros~4/windows/v7.1/b
in/setenv.cmd"
configure: Trying to extract Visual Studio environment variables

Error:  The system was unable to find the specified registry key or value
Setting SDK environment relative to C:\Program Files\Microsoft SDKs\Windows\v7.1
\.
Targeting Windows XP x86 Debug

configure: Setting extracted environment variables
checking for Visual Studio variables... ok
checking for msvcr100.dll... configure: msvcr100.dll found in VCINSTALLDIR: C:\P
rogram Files\MSVS10\VC\
C:\Program Files\MSVS10\VC\/redist/x86/Microsoft.VC100.CRT/msvcr100.dll
configure: Rewriting MSVCR_DLL to "/cygdrive/c/progra~1/msvs10/vc/redist/x86/mic
ros~1.crt/msvcr100.dll"
checking for cl... /cygdrive/c/Program Files/MSVS10/VC/Bin/cl
configure: Rewriting CC to "/cygdrive/c/progra~1/msvs10/vc/bin/cl"
checking resolved symbolic links for CC... /cygdrive/c/progra~1/msvs10/vc/bin/cl

checking if CC is disguised ccache... no, keeping CC
configure: Using Microsoft CL.EXE C compiler version 16.00.30319.01 (located at
/cygdrive/c/progra~1/msvs10/vc/bin/cl)
checking whether the C compiler works... no
configure: error: in `/cygdrive/d/tools/workspaces/hg-tl8-play/jdk8/common/makef
iles':
configure: error: C compiler cannot create executables
See `config.log' for more details
configure exiting with result code 77


                                    

Comments
Made P2  until we have a root cause.

                                     
2012-11-14
These lines don't look good:

LINK : fatal error LNK1104: cannot open file 'kernel32.lib'
...
OS_VERSION_MICRO='16(0'
...
configure:18804: error: C compiler cannot create executables


Not sure if this is related to the non-standard install location for VS2010, or something to do with 32bit vs. 64bit building.
Googling seems to indicate the kernel32.lib error is related to 64bit building, but this is a 32bit build. :^(.

-kto


                                     
2012-11-14
It looks like the environment for running cl isn't getting set up correctly by configure. Without access to the system, debugging this will be hard.
                                     
2012-11-15
This system has both VS2003 and VS2010, it appears to me that configure has picked up
VS2003 and is trying to use VS2010, and it also appears that it has picked this up from
the Windows registry. Can I do something to workaround this ?
                                     
2012-11-15
Looking closer at the posted log, it seems configure is ignoring your presetup path and is instead finding windows sdk 7.1. From what I can see, the paths are correct provided sdk 7.1 is installed and functioning. Could you verify that kernel32.lib is actually in C:\Program Files\Microsoft SDKs\Windows\v7.1\Lib?
                                     
2012-11-19
kernel32.lib is here,
./Program Files/Microsoft Visual Studio .NET 2003/Vc7/lib/kernel32.lib

BUT that is not the compiler we wish to use, that one is here:
% which cl
/cygdrive/c/Program Files/MSVS10/VC/BIN/cl
                                     
2012-11-19
I'm assuming kernel32.lib is in several places and we most certainly don't want to pick it up from the 2003-dir. When reading the log you posted here, configure is trying to pick it up from C:\Program Files\Microsoft SDKs\Windows\v7.1\Lib, that is why I asked if it was there or not. If it's not there we need to figure out why so that we can improve the logic in configure that tries to figure out the correct environment.
                                     
2012-11-20
URL:   http://hg.openjdk.java.net/jdk8/build/rev/bd32ef0789ca
User:  erikj
Date:  2012-12-05 17:25:02 +0000

                                     
2012-12-05
URL:   http://hg.openjdk.java.net/jdk8/jdk8/rev/bd32ef0789ca
User:  katleman
Date:  2012-12-05 21:45:09 +0000

                                     
2012-12-05
Transitioned from Resolved to Closed / Not Verified on behalf of mikhail.kondratyev@oracle.com.
                                     
2013-11-28



Hardware and Software, Engineered to Work Together