On Oct 31, 2007, at 11:03 AM, Kelly O'Hair wrote:

A FULL jdk control build involves having the following directories:

 control langtools corba jaxp jaxws hotspot j2se

And you are right, you should not need to set ALT_JDK_IMPORT_PATH when doing
a full control build.
The ALT_JDK_IMPORT_PATH should just be used when the build detects one
of the above areas is not participating in the build.

Doing a 'cd control/make && gnumake' should first build langtools with the BOOT jdk (ALT_BOOTDIR), then build hotspot, corba, jaxp, jaxws, and finally
go into j2se to build everything else and construct the j2sdk-image.

Do you have all these areas? It seems like the Makefiles think you do not.


No, I didn't.  So I started again with the Mercurial version.

% hg fclone http://hg.openjdk.java.net/jdk7/MASTER/ jdk7
[...]
% cd jdk7
% ls -l
total 268K
-rw-rw----  1 njriley zilles 1.5K Oct 31 17:33 ASSEMBLY_EXCEPTION
-rw-rw----  1 njriley zilles  19K Oct 31 17:33 LICENSE
-rw-rw----  1 njriley zilles  14K Oct 31 17:33 Makefile
-rw-rw----  1 njriley zilles 1.2K Oct 31 17:33 README
-rw-rw----  1 njriley zilles  55K Oct 31 17:33 README-builds.html
-rw-rw----  1 njriley zilles 125K Oct 31 17:33 THIRD_PARTY_README
drwxrwxr-x  4 njriley zilles 4.0K Oct 31 17:41 build/
drwxrwx---  5 njriley zilles 4.0K Oct 31 17:33 corba/
drwxrwx---  8 njriley zilles 4.0K Oct 31 17:34 hotspot/
drwxrwx---  5 njriley zilles 4.0K Oct 31 17:34 jaxp/
drwxrwx---  5 njriley zilles 4.0K Oct 31 17:34 jaxws/
drwxrwx---  6 njriley zilles 4.0K Oct 31 17:37 jdk/
drwxrwx---  6 njriley zilles 4.0K Oct 31 17:37 langtools/
drwxrwx---  3 njriley zilles 4.0K Oct 31 17:33 make/
% make
[...]
>>>Recursively making xa build @ Wed Oct 31 17:47:32 CDT 2007 ...
make[3]: Entering directory `/mounts/hel/disks/0/shared-data/njriley/ openjdk/jdk7/corba/make/javax/xa' ../../common/shared/Defs-linux.gmk:136: "WARNING: Value of JDK_IMPORT_PATH cannot be empty, check or set ALT_JDK_IMPORT_PATH" # Java sources to be compiled: (listed in file /mounts/hel/disks/0/ shared-data/njriley/openjdk/jdk7/build/linux-i586/corba/tmp/sun/ javax.transaction.xa/.classes.list)
../../../src/share/classes/javax/transaction/xa/XAResource.java
../../../src/share/classes/javax/transaction/xa/XAException.java
../../../src/share/classes/javax/transaction/xa/Xid.java
# Running javac:
Check_ALT_JDK_IMPORT_PATH/bin/javac -J-XX:ThreadStackSize=768 -J- client -J-Xmx896m -J-Xms128m -J-XX:PermSize=32m -J-XX:MaxPermSize=160m -source 1.5 -target 5 -encoding ascii -classpath /usr/lib/jvm/java/lib/ tools.jar -sourcepath /mounts/hel/disks/0/shared-data/njriley/openjdk/ jdk7/build/linux-i586/corba/gensrc:../../../src/solaris/ classes:../../../src/share/classes -d /mounts/hel/disks/0/shared-data/ njriley/openjdk/jdk7/build/linux-i586/corba/classes @/mounts/hel/disks/ 0/shared-data/njriley/openjdk/jdk7/build/linux-i586/corba/tmp/sun/ javax.transaction.xa/.classes.list
/bin/sh: Check_ALT_JDK_IMPORT_PATH/bin/javac: No such file or directory
make[3]: *** [.compile.classlist] Error 127
make[3]: Leaving directory `/mounts/hel/disks/0/shared-data/njriley/ openjdk/jdk7/corba/make/javax/xa'
make[2]: *** [build] Error 1
make[2]: Leaving directory `/mounts/hel/disks/0/shared-data/njriley/ openjdk/jdk7/corba/make/javax'
make[1]: *** [build] Error 1
make[1]: Leaving directory `/mounts/hel/disks/0/shared-data/njriley/ openjdk/jdk7/corba/make'
make: *** [corba-build] Error 2

So I'm still lost. It seems I've got all the components above (sans the control reorganization I read about on your weblog), but it's still looking for stuff in ALT_JDK_IMPORT_PATH. I also needed to set ANT_HOME, which I didn't need before, but that's not a big deal.

--
Nicholas Riley <[EMAIL PROTECTED]> | <http://www.uiuc.edu/ph/www/njriley>

Reply via email to