IcedTea6 and openjdk-6-src-b06-28_feb_2008

Michael Franz mvfranz at gmail.com
Sun Mar 23 20:36:10 PDT 2008


On Sun, Mar 23, 2008 at 6:18 PM, Andrew John Hughes <
gnu_andrew at member.fsf.org> wrote:

> On 22/03/2008, Christian Thalinger <twisti at complang.tuwien.ac.at> wrote:
> > On Sat, 2008-03-22 at 14:16 -0400, Michael Franz wrote:
> >  >         I'm using:
> >  >
> >  >         gcc version 4.2.3 (Debian 4.2.3-1)
> >  >
> >  >         on my Debian boxes to build it and it works fine.
> >  >
> >  >         - twisti
> >  >
> >  >
> >  > Is this a backported version of gcc 4.2?
> >
> >
> > I think so.
> >
> >  - twisti
> >
> >
>
> Regardless of which version of GCJ is in use, none of them include
> that constructor as it's not yet in Classpath:
>
> # constructor java.lang.String(byte[], int, int,
> java.nio.charset.Charset): missing in classpath
> # constructor java.lang.String(byte[], java.nio.charset.Charset):
> missing in classpath
>
> taken from http://builder.classpath.org/japi/openjdk-classpath.html
>
> I don't get how you reach this problem and no-one else does.  It's
> very odd.  Can you explain exactly how you download, configure and
> build IcedTea6?
>
> Thanks,
> --
> Andrew :-)

I am not sure why no-one else is having this problem.  If you compile
against the classes in gcc 4.3.0 this error will show up.

I got the icedtea6 from the link using mercurial.

I patch the configure.ac to remove the alsa check - I don't have that on the
Mac.

I then configured using :
 --with-ecj=/opt/local/bin/ecj \
                        --with-ecj-jar=${prefix}/share/java/eclipse-ecj.jar\

--with-libgcj-jar=/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Classes/classes.jar
\
                        --with-gcj-home=${prefix}/bin \

--with-java=/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
\
                        --disable-gcjwebplugin \
                        --with-xalan2-jar=${prefix}/share/java/xalan.jar \

--with-xalan2-serializer-jar=${prefix}/share/java/serializer.jar \

--with-xerces2-jar=${prefix}/share/java/xercesImpl.jar

Then run the build.  The build executes until the download of open jdk.  It
does not extract the tar file correctly as it is gzip, but the command
assumes that it is just a tar file.

I extract with tar xzf openjdk-6-src-b07-20_mar_2008.tar.gz -C openjdk  - am
using the latest openjdk since I saw it was available but not in icedtea6.

Re-run the build command.  I have ecj spit out the command line:
/usr/bin/java -jar /opt/local/share/java/eclipse-ecj.jar -bootclasspath
:/opt/local/share/java/libgcj-
4.3.0.jar:/opt/local/share/java/libgcj-tools-4.3.0.jar::  -nowarn -g -d
lib/hotspot-tools -source 1.6 -sourcepath
rt:hotspot-tools:openjdk/jdk/src/share/classes:openjdk/jdk/src/solaris/classes:openjdk/langtools/src/share/classes:openjdk/jaxp/src/share/classes:openjdk/corba/src/share/classes:openjdk/jaxws/src/share/classes:generated
@hotspot-tools-source-files.txt
----------
1. ERROR in
hotspot-tools/sun/jvmstat/perfdata/monitor/PerfStringMonitor.java (at line
103)
        return new String(b, 0, i, defaultCharset);
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The constructor String(byte[], int, int, Charset) is undefined

I have been trying to build a patched version of gcc 4.3.0, but my patches
don't seem to make it into the jar.  Very confusing.

Michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20080323/55587be1/attachment.html 


More information about the distro-pkg-dev mailing list