bootstrapping icedtea with gcj 4.3

Thomas Fitzsimmons fitzsim at redhat.com
Tue Oct 16 08:28:36 PDT 2007


Bernhard Rosenkraenzer wrote:
> On Monday 15 October 2007, you wrote:
>> Bernhard Rosenkraenzer writes:
>>  > I've just tried to bootstrap icedtea (current hg) with gcj 4.3 from SVN
>>  > (the first semi-official gcc with generics support).
>>
>> It can't be done.  The current icedTea needs to be bootstrapped with
>> IcedTea.  We're thinking about how to solve this problem, but it's
>> hard.
> 
> Thanks, that helped -- I got IcedTea 1.3 to compile with gcj 4.3 (just minor 
> tweaks required - mostly it's a matter of killing the -Werror flag because 
> gcc 4.3 introduces quite a few new warniongs).
> 
> Using the resulting JVM to bootstrap current hg icedtea still fails though:
> 
> 
> /usr/src/ark/BUILD/icedtea/bootstrap/jdk1.6.0/bin/java -client -Xmx896m -Xms128m -XX:PermSize=32m -XX:MaxPermSize=160m -Xbootclasspath/p:/usr/src/ark/BUILD/icedtea/openjdk/control/build/linux-i586/langtools/dist/bootstrap/lib/javac.jar -jar /usr/src/ark/BUILD/icedtea/openjdk/control/build/linux-i586/langtools/dist/bootstrap/lib/javac.jar -g -source 
> 1.5 -target 5 -encoding 
> ascii -Xbootclasspath:/usr/src/ark/BUILD/icedtea/openjdk/control/build/linux-i586/classes -sourcepath /usr/src/ark/BUILD/icedtea/openjdk/control/build/linux-i586/gensrc:../../../src/solaris/classes:../../../src/share/classes -d /usr/src/ark/BUILD/icedtea/openjdk/control/build/linux-i586/classes 
> @/usr/src/ark/BUILD/icedtea/openjdk/control/build/linux-i586/tmp/java/java.lang.management/management/.classes.list
> ../../../src/share/classes/com/sun/jmx/remote/internal/ProxyInputStream.java:39: 
> package org.omg.CORBA_2_3.portable does not exist
> import org.omg.CORBA_2_3.portable.InputStream;
>                                  ^
> ../../../src/share/classes/com/sun/jmx/remote/internal/ProxyInputStream.java:42: 
> package org.omg.CORBA_2_3.portable does not exist
> public class ProxyInputStream extends org.omg.CORBA_2_3.portable.InputStream {
>                                                                 ^
> ../../../src/share/classes/com/sun/jmx/remote/internal/ProxyInputStream.java:215: 
> package org.omg.CORBA_2_3.portable does not exist
>     protected org.omg.CORBA_2_3.portable.InputStream narrow() {
>                                         ^
> ../../../src/share/classes/javax/management/remote/rmi/RMIConnectorServer.java:672: 
> cannot access org.omg.CORBA_2_3.portable.ObjectImpl
> class file for org.omg.CORBA_2_3.portable.ObjectImpl not found
>             if (rmiServer instanceof javax.rmi.CORBA.Stub)
>                           ^
> ../../../src/share/classes/javax/management/remote/rmi/RMIConnectorServer.java:730: 
> cannot find symbol
> symbol  : method _orb()
> location: class javax.rmi.CORBA.Stub
>             return stub._orb().object_to_string(stub);
>                        ^
> ../../../src/share/classes/javax/management/remote/rmi/RMIConnector.java:1692: 
> cannot find symbol
> symbol  : method _orb()
> location: class javax.rmi.CORBA.Stub
>                 stub._orb();
>                     ^
> ../../../src/share/classes/javax/management/remote/rmi/RMIConnector.java:2334: 
> inconvertible types
> found   : java.lang.Object
> required: javax.rmi.CORBA.Stub
>         Stub proxyStub = (Stub) proxyStubClass.newInstance();
>                                                           ^
> ../../../src/share/classes/javax/management/remote/rmi/RMIConnector.java:2335: 
> cannot find symbol
> symbol  : method _get_delegate()
> location: class javax.rmi.CORBA.Stub
>         proxyStub._set_delegate(stub._get_delegate());
>                                     ^
> ../../../src/share/classes/com/sun/jmx/remote/internal/ProxyInputStream.java:216: 
> package org.omg.CORBA_2_3.portable does not exist
>         if (in instanceof org.omg.CORBA_2_3.portable.InputStream)
>                                                     ^
> ../../../src/share/classes/com/sun/jmx/remote/internal/ProxyInputStream.java:217: 
> package org.omg.CORBA_2_3.portable does not exist
>             return (org.omg.CORBA_2_3.portable.InputStream) in;
>                                               ^
> 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.
> 10 errors
> make[4]: *** [.compile.classlist] Error 1
> 
> 
> Any ideas? Do I need to install an external corba package that isn't listed in 
> the INSTALL file?

The CORBA classes were moved to their own top-devel directory.  This particular 
compile line would succeed if -sourcepath included 
'../../../../corba/src/share/classes'.  Does 
/usr/src/ark/BUILD/icedtea/bootstrap/jdk1.6.0/jre/lib/rt.jar include the 
org.omg.CORBA_2_3.portable package?

Tom



More information about the distro-pkg-dev mailing list