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