IcedTea with gcc 4.3 and Minimum JDK version
Andrew John Hughes
gnu_andrew at member.fsf.org
Fri Mar 21 10:03:21 PDT 2008
> Michael Franz wrote:
> > Hi,
> >
> > Since gcc 4.3 has been released, has anyone tried to use it to build
> > icedtea/openjdk?
> >
> > I had a version of icedtea almost compiling openjdk on my Mac (do to
> > user error I lost some of that work). I have started over and found
> > that Apple's Java 6 implementation is using a beta version of JSR 199 so
> > I tried the latest version of gcc 4.3.
> >
> > gcc 4.3 seems to be missing some String constructors that are in Java
> > 1.6. Specifically I get this error:
> > 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 guess gcc 4.3 will work for meeting the generics requirements, but
> > will not work with have the necessary JDK 6 APIs.
> >
> > I had tried to get the Redhat branch of 4.2 to compile on my mac - I
> > gave up. I was hoping that gcc 4.3 would solve my problem.
> >
> > Previously I had modified the build to build some bootstrap classes from
> > the openjdk source, jar them and then add the jar to the front of the
> > classpath. This is a different problem, as the classes that were giving
> > me problems were AWT font classes.
> >
> > I may have to do the same trick again, I just cannot remember how I did
> > it at the moment.
> >
> > Michael
>
On 21/03/2008, Kelly O'Hair <Kelly.Ohair at sun.com> wrote:
> What does gcc have to do with java code?
>
> -kto
>
>
GCC (the GNU Compiler Collection) includes a Java compiler and
interpreter (GCJ) which is what IcedTea uses by default to build
OpenJDK. 4.3 is the first release which includes the changes to GCJ
necessary to support IcedTea (such as 1.5 compilation support).
--
Andrew :-)
Document Freedom Day - March 26th
http://documentfreedom.org
Support Free Java!
Contribute to GNU Classpath and the OpenJDK
http://www.gnu.org/software/classpath
http://openjdk.java.net
PGP Key: 94EFD9D8 (http://subkeys.pgp.net)
Fingerprint: F8EF F1EA 401E 2E60 15FA 7927 142C 2591 94EF D9D8
More information about the distro-pkg-dev
mailing list