building part of jdk 8 (original) (raw)

Pete Brunet peter.brunet at oracle.com
Thu Feb 2 20:19:16 UTC 2012


On 2/1/12 10:54 PM, Pete Brunet wrote:

On 1/23/12 9:39 AM, Pete Brunet wrote:

In the past I was able to build part of jdk 8 but that is not currently working although I am able to do a full 32 bit build. I've recently moved from XP to W7 so my environment might not be set up quite right yet. Here's what I do...

// These are done in a bat file before I do any makes set ALTBOOTDIR=C:/Progra~1/Java/jdk1.7.002 set ALTFREETYPEHEADERSPATH=C:/Users/Pete/freetype-2.4.8/include set ALTFREETYPELIBPATH=C:/Users/Pete/freetype-2.4.8/objs/win32/vc2010 set ANTHOME=C:/Progra~2/apache-ant-1.7.1 set ALTMSDEVTOOLSPATH=C:/Progra2/MICROS1/Windows/v7.0A/bin set CLASSPATH= set PATH=C:/WINDOWS/system32;C:/WINDOWS;C:/WINDOWS/System32/Wbem; set CYGWIN=nodosfilewarning cd c:\Users\Pete\cygwin\bin bash --login -i // These are done at the command line eval bin/vsvars.sh -v10 -32 cd /cygdrive/c/OpenJDK/jdk8/jdk/make/java/awt/ make ARCHDATAMODEL=32 FASTDEBUG=true 2>&1 | tee build.log The error I am getting is make: *** No rule to make target ../../../build/windows-i586/btjars/compileproperties.jar', needed by_ _compileallprops'. Stop. When building below the top level, for some reason a partial build directory is being created in jdk8/jdk. When doing a full build from the top level the only build directory I see is the one in jdk8. It appears that ../../../build/... is using the build under jdk rather than the build under the top level. Tonight I saw a similar failure when trying to rebuild JLabel.java from jdk: make[2]: Entering directory /cygdrive/c/OpenJDK/jdk8/jdk/make/javax/swing'_ _make[2]: *** No rule to make target javax/swing/JLabel', needed by ../../../build/windows-i586/tmp/com/javax.swing/.classes.list'. Stop._ _and when trying to build directly at .../jdk/make/javax/swing, i.e._ _make: *** No rule to make target javax/swing/JLabel', needed by `../../../build/windows-i586/tmp/com/javax.swing/.classes.list'. Stop. The JLabel issue was caused by the existence of ...\jdk\src\share\classes\javax\swing\JLabel - Copy.java. (This is Windows' scheme for copies.). However, that wouldn't explain the use of a build directory under jdk (instead of under the top level), i.e. my original problem might have been caused by using the wrong build dir:

make: *** No rule to make target ../../../build/windows-i586/btjars/compileproperties.jar', needed by compile_all_props'. Stop.

In case it's helpful jdk/build contains these directories: bin btbins btclasses btjars classes gensrc include lib Since the above has windows-i586 instead of windows-i586-debug it looks like I need to add another variable when invoking make.

Pete



More information about the build-dev mailing list