IcedTea with gcc 4.3 and Minimum JDK version

Kelly O'Hair Kelly.Ohair at Sun.COM
Fri Mar 21 09:45:28 PDT 2008


What does gcc have to do with java code?

-kto

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



More information about the distro-pkg-dev mailing list