Bootstrapping icedtea7 with icedtea6

Omair Majid omajid at redhat.com
Tue May 10 07:48:58 PDT 2011


Hi,

I recently ran into a problem building IcedTea7. It turns out that I 
only had IcedTea6 installed on my machine, not gcj. A bootstrap build of 
IcedTea7 failed with the following error:

/home/omajid/icedtea7/build/bootstrap/jdk1.6.0/bin/javac 
-J-XX:ThreadStackSize=1536 -J-XX:-PrintVMOptions 
-J-XX:+UnlockDiagnosticVMOptions -J-XX:-LogVMOutput -J-Xmx871m 
-J-Xms128m -J-XX:PermSize=32m -J-XX:MaxPermSize=160m -g 
-XDignore.symbol.file=true -source 7 -target 7 -encoding ascii 
-classpath /home/omajid/icedtea7/build/bootstrap/jdk1.6.0/lib/rt.jar 
-classpath 
/home/omajid/icedtea7/build/openjdk.build-boot/corba/corba/classes 
-classpath 
/home/omajid/icedtea7/build/openjdk.build-boot/langtools/dist/lib/classes.jar 
-sourcepath 
/home/omajid/icedtea7/build/generated.build:../../../src/share/classes:/home/omajid/icedtea7/build/openjdk-boot/jdk/src/share/classes 
-d /home/omajid/icedtea7/build/openjdk.build-boot/corba/classes 
@/home/omajid/icedtea7/build/openjdk.build-boot/corba/tmp/sun/javax.transaction.xa/.classes.list
javac: invalid source release: 7
Usage: javac <options> <source files>
use -help for a list of possible options
make[5]: *** [.compile.classlist] Error 2

So IcedTea7 can not be bootstrapped with IcedTea6's javac. Looking at 
the IT_CHECK_FOR_JDK macro, we use gcj, or if it can not be found, 
icedtea6 for bootstrapping.

Would it be possible to disable bootstrapping icedtea7 with anything 
other than gcj? The patch is attached, but I am still testing it.

Thanks,
Omair
-------------- next part --------------
A non-text attachment was scrubbed...
Name: icedtea7-do-not-use-openjdk6-for-bootstrap-01.patch
Type: text/x-patch
Size: 801 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20110510/e0fc7021/icedtea7-do-not-use-openjdk6-for-bootstrap-01.patch 


More information about the distro-pkg-dev mailing list