Recommended GCC version?
Andrew John Hughes
gnu_andrew at member.fsf.org
Tue Apr 1 14:29:22 UTC 2008
On 31/03/2008, Volker Simonis <volker.simonis at gmail.com> wrote:
> Hi Clemens,
>
> I recently successfully built the whole OpenJDK using gcc 3.3.3 on
> Suse Enterprise Linux 9.3 (see
> http://weblogs.java.net/blog/simonis/archive/2008/01/hotspot_develop.html#Build).
> I had no linking problems. Currently I'm building HotSpot only on
> OpenSuse 10.0 with gcc 4.0.2.
>
> I think with every gcc newer than 3.2.2 (which is the recommanded GCC
> version if you follow the Readme:
> http://hg.openjdk.java.net/jdk7/jdk7/raw-file/tip/README-builds.html#gcc)
> youll have to disable the treatment of warnings as errors (see my
> blog entry mentioned above).
>
> Regarding your linking problem: is this perhaps the 'cannot restore
> segment prot after reloc' problem (BugID 6538311:
> http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6538311). This is
> caused by SELinux - there's a workaround in the bug description.
>
> Hope this helps,
>
> Volker
>
>
> On 3/31/08, Clemens Eisserer <linuxhippy at gmail.com> wrote:
> > Hello,
> >
> > I wonder which version of GCC is recommended for building OpenJDK?
> > 4.3 will probably not work out-of-the-box, should I downgrade to 4.2 or 4.1?
> >
> > Some time ago I developed using the closed java-source, and I had to
> > install gcc-3.3.6 in order to be able to build the motif-stuff,
> > however using such an old version of gcc, linking hotspot failed with
> > some obscure messages. (I solved it by copying an already compiled
> > library into the build-dirs, so the process thought hotspot was
> > already build ;) ).
> > Is it possible to not build the motif stuff at all?
> >
> > Thanks a lot, lg Clemens
> >
>
Debian uses:
gcc (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)
which seems to build IcedTea/OpenJDK fine.
--
Andrew :-)
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 build-dev
mailing list