Problems about building JDK9 on windows
Amanda Jiang
amanda.jiang at oracle.com
Mon Apr 14 23:57:35 UTC 2014
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 at 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
More information about the build-dev
mailing list