From Kumar.Srinivasan at Sun.COM Tue Jul 29 07:53:26 2008 From: Kumar.Srinivasan at Sun.COM (Kumar Srinivasan) Date: Tue, 29 Jul 2008 07:53:26 -0700 Subject: [modules-discuss] [modules-dev] Trying to build the modules stuff In-Reply-To: <63535CD5-6CF2-4D5D-9E65-3DDAD5FA5FC0@yahoo-inc.com> References: <384D8CE0-8938-49A2-83EF-20910A2D2C08@yahoo-inc.com> <488E6247.7010700@Sun.COM> <63535CD5-6CF2-4D5D-9E65-3DDAD5FA5FC0@yahoo-inc.com> Message-ID: <488F2EE6.2020800@Sun.COM> Hi Sam, > I was able to build the regular JDK 1.7.0 by using an ALT_BOOTDIR with > JDK 1.6. Is that not the right thing to do? I uncompressed the module > zip into the jdk directory and tried a clean build That is correct. > with this result. Then I tried to use the latest 1.7 binary as the > ALT_BOOTDIR with the same results. Ah ok, I tried building the modules*.zip file, I saw several failures, it looks like the contents of this file is outdated, I will get to the bottom of this issue. Meanwhile, for your purpose you can download the sources without or with mercurial: a. without mercurial, you can simply download the latest snapshot from here: http://hg.openjdk.java.net/jdk7/modules/jdk/archive/tip.zip which is effectively the same as the modules*.zip bundle you used before. this will create a jdk-57a05e25caa9, just rename it to jdk. b. you can also use mercurial to clone only jdk as follows: % hg fclone http://hg.openjdk.java.net/jdk7/modules/jdk jdk.modules c. or you can also clone the entire jdk % hg fclone http://hg.openjdk.java.net/jdk7/modules jdk7 [no need to get the openjdk sources, this contains everything you need] ...and follow your build steps as before, note, you will need to download the latest openjdk, or you can fclone the entire modules repository, it contains everything, if you have already done so, thats fine. Please let me know if you run into any issues. Thanks Kumar [PS: I am copying modules-discuss in case others run into the same issues]. > > Sam > > On Jul 28, 2008, at 5:20 PM, Kumar Srinivasan wrote: > >> Hello Sam, >> >> Could you please outline the steps you took to build this. >> >> are the sources from the http://hg.openjdk.java.net/jdk7/modules >> or the modules source drop at: >> http://www.java.net/download/openjdk/jdk7/promoted/b31/modules-7-ea-src-17_jul_2008.zip >> >> >> Did you build the bootstrap jdk ? >> >> Thanks >> Kumar >>> Getting javac compiler errors (tried 1.6 and 1.7): >>> >>> # Running javac: >>> /home/sam/jdk1.7.0/bin/java -Xmx874m -Xms128m -XX:PermSize=32m - >>> XX:MaxPermSize=160m -Xbootclasspath/p:/home/sam/openjdk/build/linux- >>> amd64/langtools/dist/bootstrap/lib/javac.jar -jar /home/sam/openjdk/ >>> build/linux-amd64/langtools/dist/bootstrap/lib/javac.jar -source 1.5 - >>> target 5 -encoding ascii -Xbootclasspath:/home/sam/openjdk/build/linux- >>> amd64/classes -sourcepath /home/sam/openjdk/build/linux-amd64/gensrc:/ >>> home/sam/openjdk/jdk/src/solaris/classes:/home/sam/openjdk/jdk/src/ >>> share/classes -d /home/sam/openjdk/build/linux-amd64/classes @/home/ >>> sam/openjdk/build/linux-amd64/tmp/java/java.lang.management/ >>> management/.classes.list >>> /home/sam/openjdk/jdk/src/share/classes/java/lang/management/ >>> PlatformComponent.java:69: type parameter >>> java.lang.management.ClassLoadingMXBean is not within its bound >>> new MXBeanFetcher() { >>> ^ >>> /home/sam/openjdk/jdk/src/share/classes/java/lang/management/ >>> PlatformComponent.java:81: type parameter >>> java.lang.management.CompilationMXBean is not within its bound >>> new MXBeanFetcher() { >>> ^ >>> /home/sam/openjdk/jdk/src/share/classes/java/lang/management/ >>> PlatformComponent.java:98: type parameter >>> java.lang.management.MemoryMXBean is not within its bound >>> new MXBeanFetcher() { >>> ^ >>> /home/sam/openjdk/jdk/src/share/classes/java/lang/management/ >>> PlatformComponent.java:110: type parameter >>> java.lang.management.GarbageCollectorMXBean is not within its bound >>> new MXBeanFetcher() { >>> ^ >>> /home/sam/openjdk/jdk/src/share/classes/java/lang/management/ >>> PlatformComponent.java:123: type parameter >>> java.lang.management.MemoryManagerMXBean is not within its bound >>> new MXBeanFetcher() { >>> ^ >>> /home/sam/openjdk/jdk/src/share/classes/java/lang/management/ >>> PlatformComponent.java:136: type parameter >>> java.lang.management.MemoryPoolMXBean is not within its bound >>> new MXBeanFetcher() { >>> ^ >>> /home/sam/openjdk/jdk/src/share/classes/java/lang/management/ >>> PlatformComponent.java:148: type parameter >>> java.lang.management.OperatingSystemMXBean is not within its bound >>> new MXBeanFetcher() { >>> ^ >>> /home/sam/openjdk/jdk/src/share/classes/java/lang/management/ >>> PlatformComponent.java:160: type parameter >>> java.lang.management.RuntimeMXBean is not within its bound >>> new MXBeanFetcher() { >>> ^ >>> /home/sam/openjdk/jdk/src/share/classes/java/lang/management/ >>> PlatformComponent.java:172: type parameter >>> java.lang.management.ThreadMXBean is not within its bound >>> new MXBeanFetcher() { >>> ^ >>> /home/sam/openjdk/jdk/src/share/classes/java/lang/management/ >>> PlatformComponent.java:185: type parameter >>> java.util.logging.LoggingMXBean is not within its bound >>> new MXBeanFetcher() { >>> ^ >>> /home/sam/openjdk/jdk/src/share/classes/java/lang/management/ >>> PlatformComponent.java:199: type parameter >>> com.sun.management.GarbageCollectorMXBean is not within its bound >>> new >>> MXBeanFetcher() { >>> ^ >>> /home/sam/openjdk/jdk/src/share/classes/java/lang/management/ >>> PlatformComponent.java:212: type parameter >>> com.sun.management.OperatingSystemMXBean is not within its bound >>> new MXBeanFetcher() { >>> ^ >>> /home/sam/openjdk/jdk/src/share/classes/java/lang/management/ >>> PlatformComponent.java:224: type parameter >>> com.sun.management.UnixOperatingSystemMXBean is not within its bound >>> new MXBeanFetcher() { >>> ^ >>> /home/sam/openjdk/jdk/src/share/classes/java/lang/management/ >>> PlatformComponent.java:236: type parameter >>> com.sun.management.HotSpotDiagnosticMXBean is not within its bound >>> new MXBeanFetcher() { >>> ^ >>> /home/sam/openjdk/jdk/src/share/classes/java/lang/management/ >>> PlatformComponent.java:373: cannot find symbol >>> symbol : method newObjectName(java.lang.String) >>> location: class com.sun.jmx.mbeanserver.Util >>> ObjectName on = >>> com.sun.jmx.mbeanserver.Util.newObjectName(domainAndType); >>> ^ >>> /home/sam/openjdk/jdk/src/share/classes/sun/management/ >>> ManagementFactoryHelper.java:223: cannot find symbol >>> symbol : method newObjectName(java.lang.String) >>> location: class sun.management.Util >>> final ObjectName objName = Util.newObjectName(mbeanName); >>> ^ >>> /home/sam/openjdk/jdk/src/share/classes/sun/management/ >>> ManagementFactoryHelper.java:283: cannot find symbol >>> symbol : method newObjectName(java.lang.String) >>> location: class sun.management.Util >>> final ObjectName objName = Util.newObjectName(mbeanName); >>> ^ >>> 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. >>> 17 errors >>> gmake[3]: *** [.compile.classlist] Error 1 >>> gmake[3]: Leaving directory >>> `/home/sam/openjdk/jdk/make/java/management' >>> gmake[2]: *** [all] Error 1 >>> gmake[2]: Leaving directory `/home/sam/openjdk/jdk/make/java' >>> gmake[1]: *** [all] Error 1 >>> gmake[1]: Leaving directory `/home/sam/openjdk/jdk/make' >>> gmake: *** [jdk-build] Error 2 >>> >>> real 14m41.320s >>> user 14m46.341s >>> sys 2m37.720s >>> >>> >>> _______________________________________________ >>> modules-dev mailing list >>> modules-dev at openjdk.java.net >>> http://mail.openjdk.java.net/mailman/listinfo/modules-dev >>> >> >> >> -- >> Kumar Srinivasan >> Sun Microsystems, Java Software. >> 408-276-7586 >> >> _______________________________________________ >> modules-dev mailing list >> modules-dev at openjdk.java.net >> http://mail.openjdk.java.net/mailman/listinfo/modules-dev > > -- Kumar Srinivasan Sun Microsystems, Java Software. 408-276-7586