HI Erik,
Thanks for replying, below are contents of set-vs-env.sh
$ cat set-vs-env.sh
VS_PATH="/cygdrive/c/Program Files (x86)/Microsoft Visual Studio
10.0/VSTSDB/Deploy:/cygdrive/c/Program Files (x86)/Microsoft Visual
Studio 10.0/Common7/IDE:/cygdrive/c/Program Files (x86)/Microsoft Visual
Studio 10.0/VC/BIN:/cygdrive/c/Program Files (x86)/Microsoft Visual
Studio
10.0/Common7/Tools:/cygdrive/c/Windows/Microsoft.NET/Framework/v4.0.30319:/cygdrive/c/Windows/Microsoft.NET/Framework/v3.5:/cygdrive/c/Program
Files (x86)/Microsoft Visual Studio
10.0/VC/VCPackages:/cygdrive/c/Program Files (x86)/HTML Help
Workshop:/cygdrive/c/Program Files (x86)/HTML Help
Workshop:/cygdrive/c/Program Files (x86)/Microsoft
SDKs/Windows/v7.0A/bin/NETFX 4.0 Tools:/cygdrive/c/Program Files
(x86)/Microsoft SDKs/Windows/v7.0A/bin:/cygdrive/c/Program Files
(x86)/Microsoft Visual Studio 10.0/Common7/IDE:/cygdrive/c/Program
Files/Microsoft Visual Studio 10.0/Common7/IDE:/cygdrive/c/Program Files
(x86)/Microsoft Visual Studio
10.0/VC/bin:/cygdrive/c/ADE/bin:/usr/bin:/cygdrive/c/Users/amjiang/workspace/tools/jdk1.8.0/bin:/cygdrive/c/Windows/System32:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0:/cygdrive/c/ACTIVE~1/BIN:/cygdrive/c/AIME/BIN:/cygdrive/c/jdk150/bin:/cygdrive/c/jdk160/bin:/cygdrive/c/Program
Files/Microsoft Platform SDK/bin/win64/x86/AMD64:/cygdrive/c/Program
Files/Microsoft Platform SDK/Bin/win64/AMD64:/cygdrive/c/Program
Files/Microsoft Platform SDK/Bin:/cygdrive/c/Program Files/Microsoft
Platform SDK/Bin/Winnt:/cygdrive/c/PROGRAM
FILES/TERATERM:/cygdrive/c/Program Files (x86)/Microsoft SQL
Server/90/Tools/binn:/cygdrive/c/Program Files/Microsoft/Web Platform
Installer:/cygdrive/c/Program Files (x86)/Microsoft ASP.NET/ASP.NET Web
Pages/v1.0:/cygdrive/c/Program Files/Microsoft SQL
Server/110/Tools/Binn:/cygdrive/c/program files
(x86)/intel/compiler/11.1/067/tbb/intel64/vc9/bin:/cygdrive/c/program
files (x86)/intel/composerxe-2011/redist/intel64/ipp:/cygdrive/c/program
files (x86)/intel/composerxe-2011/redist/intel64/mkl:/cygdrive/c/Program
Files
(x86)/Intel/ComposerXE-2011/redist/intel64/compiler:/cygdrive/c/Program
Files (x86)/Intel/ComposerXE-2011/compiler/lib:/cygdrive/c/Program
Files/WinZip:/cygdrive/c/Program Files/Mercurial"
VS_INCLUDE=" "
VS_LIB=" "
VCINSTALLDIR="C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\ "
WindowsSdkDir="C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\ "
WINDOWSSDKDIR=" "
Thanks,
Amanda
On 4/16/14 12:24 AM, Erik Joelsson wrote:
Hello Amanda,
I suspect there is something weird in your environment that makes the
variable extraction from the visual studio setup bat file fail. Could
you paste the contents of the file <build-output>/set-vs-env.sh?
/Erik
On 2014-04-16 01:43, Amanda Jiang wrote:
Hi Volker,
A more detailed log from config.log is pasted below
------------------------------------------------------------------------------
configure:28612: Using microsoft C compiler version 16.00.30319.01
[Microsoft (R) 32-bit C/C++ Optimizing Compiler Version
16.00.30319.01 for 80x86]
configure:28729: checking for C compiler version
configure:28738: /cygdrive/c/progra~2/micros~2.0/vc/bin/cl --version >&5
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.30319.01
for 80x86
Copyright (C) Microsoft Corporation. All rights reserved.
cl : Command line warning D9002 : ignoring unknown option '--version'
cl : Command line error D8003 : missing source filename
configure:28749: $? = 2
configure:28738: /cygdrive/c/progra~2/micros~2.0/vc/bin/cl -v >&5
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.30319.01
for 80x86
Copyright (C) Microsoft Corporation. All rights reserved.
cl : Command line warning D9002 : ignoring unknown option '-v'
cl : Command line error D8003 : missing source filename
configure:28749: $? = 2
configure:28738: /cygdrive/c/progra~2/micros~2.0/vc/bin/cl -V >&5
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.30319.01
for 80x86
Copyright (C) Microsoft Corporation. All rights reserved.
cl : Command line error D8004 : '/V' requires an argument
configure:28749: $? = 2
configure:28738: /cygdrive/c/progra~2/micros~2.0/vc/bin/cl -qversion >&5
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.30319.01
for 80x86
Copyright (C) Microsoft Corporation. All rights reserved.
cl : Command line warning D9002 : ignoring unknown option '-qversion'
cl : Command line error D8003 : missing source filename
configure:28749: $? = 2
configure:28769: checking whether the C compiler works
configure:28791: /cygdrive/c/progra~2/micros~2.0/vc/bin/cl
conftest.c >&5
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.30319.01
for 80x86
Copyright (C) Microsoft Corporation. All rights reserved.
conftest.c
Microsoft (R) Incremental Linker Version 10.00.30319.01
Copyright (C) Microsoft Corporation. All rights reserved.
/out:conftest.exe
conftest.obj
LINK : error LNK2001: unresolved external symbol _mainCRTStartup
conftest.exe : fatal error LNK1120: 1 unresolved externals
configure:28795: $? = 2
configure:28833: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "OpenJDK"
| #define PACKAGE_TARNAME "openjdk"
| #define PACKAGE_VERSION "jdk9"
| #define PACKAGE_STRING "OpenJDK jdk9"
| #define PACKAGE_BUGREPORT "build-dev@openjdk.java.net"
| #define PACKAGE_URL "http://openjdk.java.net"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:28838: error: in `/cygdrive/c/Users/amjiang/workspace/dev':
configure:28840: error: C compiler cannot create executables
See `config.log' for more details
Thanks,
Amanda
On 4/15/14 1:57 AM, Volker Simonis wrote:
Hi Amanda,
it would be useful if you could post the compile command line from
config.log which lead to the error (i.e. some of the lines above the
snippet you posted) to see what happened.
Regards,
Volker
On Tue, Apr 15, 2014 at 1:57 AM, Amanda Jiang
<amanda.ji...@oracle.com> wrote:
Hi All,
I tried to build JDK9 on a windows machine (Win server 2008 R2
Enterprise)
and got following error messages
$ ./configure
--with-boot-jdk=/cygdrive/c/Users/amjiang/workspace/tools/jdk1.8.0
--with-target-bits=32
.......
configure: Using microsoft C compiler version 16.00.30319.01
[Microsoft (R)
32-bit C/C++ Optimizing Compiler Version 16.00.30319.01 for 80x86]
checking whether the C compiler works... no
configure: error: in `/cygdrive/c/Users/amjiang/workspace/dev':
configure: error: C compiler cannot create executables
See `config.log' for more details
configure exiting with result code 77
From config.log:
.....
/out:conftest.exe
conftest.obj
LINK : error LNK2001: unresolved external symbol _mainCRTStartup
conftest.exe : fatal error LNK1120: 1 unresolved externals
configure:28795: $? = 2
configure:28833: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "OpenJDK"
| #define PACKAGE_TARNAME "openjdk"
| #define PACKAGE_VERSION "jdk9"
| #define PACKAGE_STRING "OpenJDK jdk9"
| #define PACKAGE_BUGREPORT "build-dev@openjdk.java.net"
| #define PACKAGE_URL "http://openjdk.java.net"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:28838: error: in `/cygdrive/c/Users/amjiang/workspace/dev':
configure:28840: error: C compiler cannot create executables
See `config.log' for more details
-----------------------------------------------------------------------------
The machine was installed with Visual C++ 2010 Express . Could you
give me
some suggestions about how to fix the issue?
Thanks,
Amanda