OpenJDK rebuilding on windows takes a long time
Alexander Scherbatiy
alexandr.scherbatiy at oracle.com
Mon Feb 11 11:22:30 UTC 2013
On 2/8/2013 6:46 PM, Erik Joelsson wrote:
> Ccache is not supported on windows since it doesn't work with visual
> studio AFAIK.
>
> What kind of change did you do? Was it in native code or java and in
> which repository?
I use the http://hg.openjdk.java.net/jdk8/awt repository, edit java
code and build the jdk.
To reproduce the issue:
- open the javax.swing.JFrame class and add a comment line:
// a comment
- build jdk
----- Build times -------
Start 2013-02-11 15:09:55
End 2013-02-11 15:17:08
00:00:03 corba
00:00:02 hotspot
00:00:01 jaxp
00:00:03 jaxws
00:06:54 jdk
00:00:02 langtools
00:07:13 TOTAL
-------------------------
My environment:
OS: Windows 7 Professional, x64
Processor - Intel Core i7
Memory - 8 GB
The log file is attached.
Thanks,
Alexandr.
>
> /Erik
>
-------------- next part --------------
$ make
Building Java(TM) for target 'default' in configuration 'windows-x86-normal-serv
er-release'
## Starting langtools
## Finished langtools (build time 00:00:02)
## Starting hotspot
## Finished hotspot (build time 00:00:02)
## Starting corba
## Finished corba (build time 00:00:03)
## Starting jaxp
## Finished jaxp (build time 00:00:01)
## Starting jaxws
## Finished jaxws (build time 00:00:03)
## Starting jdk
Generating beaninfo
Java HotSpot(TM) Client VM warning: increase O_BUFLEN in ostream.hpp -- output t
runcated
Java HotSpot(TM) Client VM warning: increase O_BUFLEN in ostream.hpp -- output t
runcated
Compiling 9817 files for BUILD_JDK
c:\Sun\OpenJDK\jdk8-awt\jdk\src\share\classes\jdk\internal\org\objectweb\asm\uti
l\CheckMethodAdapter.java:1209: warning: '_' used as an identifier
} catch (IllegalArgumentException _) {
^
(use of '_' as an identifier might not be supported in future releases)
c:\Sun\OpenJDK\jdk8-awt\jdk\src\share\classes\jdk\internal\org\objectweb\asm\uti
l\CheckMethodAdapter.java:1283: warning: '_' used as an identifier
} catch (IllegalArgumentException _) {
^
(use of '_' as an identifier might not be supported in future releases)
c:\Sun\OpenJDK\jdk8-awt\jdk\src\windows\classes\java\net\DualStackPlainSocketImp
l.java:255: warning: auxiliary class InetAddressContainer in c:\Sun\OpenJDK\jdk8
-awt\jdk\src\share\classes\java\net\AbstractPlainSocketImpl.java should not be a
ccessed from outside its own source file
static native void localAddress(int fd, InetAddressContainer in) throws Sock
etException;
^
c:\Sun\OpenJDK\jdk8-awt\jdk\src\share\classes\java\awt\EventDispatchThread.java:
123: warning: non-varargs call of varargs method with inexact argument type for
last parameter;
final Method evaluateMethod = Class.forName("sun.lwawt.macosx.Ev
entDispatchAccess").getMethod("evaluate", null);
^
cast to Class<?> for a varargs call
cast to Class<?>[] for a non-varargs call and to suppress this warning
c:\Sun\OpenJDK\jdk8-awt\jdk\src\share\classes\java\awt\EventDispatchThread.java:
126: warning: non-varargs call of varargs method with inexact argument type for
last parameter;
return ((Boolean)evaluateMethod.invoke(cond, null)).bool
eanValue();
^
cast to Object for a varargs call
cast to Object[] for a non-varargs call and to suppress this warning
c:\Sun\OpenJDK\jdk8-awt\jdk\src\windows\classes\java\net\DualStackPlainSocketImp
l.java:205: warning: auxiliary class InetAddressContainer in c:\Sun\OpenJDK\jdk8
-awt\jdk\src\share\classes\java\net\AbstractPlainSocketImpl.java should not be a
ccessed from outside its own source file
localAddress(nativefd, (InetAddressContainer)iaContainerObj);
^
c:\Sun\OpenJDK\jdk8-awt\jdk\src\windows\classes\java\net\TwoStacksPlainSocketImp
l.java:116: warning: auxiliary class InetAddressContainer in c:\Sun\OpenJDK\jdk8
-awt\jdk\src\share\classes\java\net\AbstractPlainSocketImpl.java should not be a
ccessed from outside its own source file
InetAddressContainer in = new InetAddressContainer();
^
c:\Sun\OpenJDK\jdk8-awt\jdk\src\windows\classes\java\net\TwoStacksPlainSocketImp
l.java:116: warning: auxiliary class InetAddressContainer in c:\Sun\OpenJDK\jdk8
-awt\jdk\src\share\classes\java\net\AbstractPlainSocketImpl.java should not be a
ccessed from outside its own source file
InetAddressContainer in = new InetAddressContainer();
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
8 warnings
Java HotSpot(TM) Client VM warning: increase O_BUFLEN in ostream.hpp -- output t
runcated
Compiling 1 files for BUILD_ACCESSBRIDGE_32
Compiling 1 files for BUILD_ALTCLASSES
Compiling 1 files for BUILD_ACCESSBRIDGE_LEGACY
Note: c:\Sun\OpenJDK\jdk8-awt\jdk\src\closed\share\altclasses\java\util\TreeMap.
java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Java HotSpot(TM) Client VM warning: increase O_BUFLEN in ostream.hpp -- output t
runcated
Note: c:\Sun\OpenJDK\jdk8-awt\build\windows-x86-normal-server-release\jdk\gensrc
_ab\32bit\com\sun\java\accessibility\AccessBridge.java uses unchecked or unsafe
operations.
Note: Recompile with -Xlint:unchecked for details.
Java HotSpot(TM) Client VM warning: increase O_BUFLEN in ostream.hpp -- output t
runcated
Note: c:\Sun\OpenJDK\jdk8-awt\build\windows-x86-normal-server-release\jdk\gensrc
_ab\legacy\com\sun\java\accessibility\AccessBridge.java uses unchecked or unsafe
operations.
Note: Recompile with -Xlint:unchecked for details.
Java HotSpot(TM) Client VM warning: increase O_BUFLEN in ostream.hpp -- output t
runcated
## Finished jdk (build time 00:06:54)
----- Build times -------
Start 2013-02-11 15:09:55
End 2013-02-11 15:17:08
00:00:03 corba
00:00:02 hotspot
00:00:01 jaxp
00:00:03 jaxws
00:06:54 jdk
00:00:02 langtools
00:07:13 TOTAL
-------------------------
Finished building Java(TM) for target 'default'
More information about the build-dev
mailing list