<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="MSHTML 6.00.2900.3395" name=GENERATOR></HEAD>
<BODY>
<DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=375571120-27082008><SPAN
class=843113314-16092008>Hi All,</SPAN></SPAN></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=375571120-27082008></SPAN></FONT></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=375571120-27082008>I'm working on getting the JDK7 build working
on <SPAN class=843113314-16092008>a Red Hat 4 Linux install, and have run
into a problem. </SPAN></SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=375571120-27082008><SPAN
class=843113314-16092008></SPAN></SPAN></FONT></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=375571120-27082008><SPAN class=843113314-16092008>Unfortunately, the "gcc"
install (v3.4.6) on my machine is not the version required by
the build instructions. </SPAN></SPAN><SPAN
class=375571120-27082008>Since I don't have root access on my box, I worked on
pulling down a more recent version of gcc <SPAN
class=843113314-16092008>(v4.3.1) </SPAN>and building it for my Linux
machine. In order to build the gcc tool, I needed updated versions of two
GNU libraries (GMP, MPFR). Since I can't update /usr/lib with these
libraries, I needed to use the --prefix option to build gcc.
</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=375571120-27082008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=375571120-27082008>This
works fine for building the compiler, but I run into a problem when I
attempt a JDK7 build with ALT_COMPILER_PATH set. While the setting allows
me to specify the location of the new gcc binary, there doesn't appear to be a
simple way to add any libraries that the new gcc is dependant on. Setting
LD_LIBRARY_PATH won't fix the problem, since the build scripts un-set that
environment variable in the setup script. </SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=375571120-27082008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=375571120-27082008>If I
try setting LD_LIBRARY_PATH after running the "jdk_generic_profile.sh", the
build itself fails, since having this environment variable around at all is
considered a build failure. </SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=375571120-27082008></SPAN></FONT> </DIV>
<DIV><SPAN class=375571120-27082008><FONT face=Arial><FONT color=#0000ff><FONT
size=2><SPAN class=843113314-16092008>
<DIV><SPAN class=375571120-27082008><SPAN class=843113314-16092008><FONT
face=Arial color=#0000ff size=2>I've been able to setup and build OpenJDK on a
separate Ubuntu install, but would still like to set this up on my Red Hat
machine if possible.
</FONT></SPAN></SPAN></DIV></SPAN></FONT></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=375571120-27082008><FONT face=Arial><FONT color=#0000ff><FONT
size=2><SPAN
class=843113314-16092008></SPAN></FONT></FONT></FONT></SPAN> </DIV>
<DIV><SPAN class=375571120-27082008><FONT face=Arial><FONT color=#0000ff><FONT
size=2><SPAN class=843113314-16092008>If anyone has </SPAN>any thoughts on how I
can work around this issue, that would be a big help. Have <SPAN
class=843113314-16092008>anyone</SPAN> seen any uses of ALT_COMPILER_PATH that
run into this problem? </FONT></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=375571120-27082008><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=375571120-27082008><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=375571120-27082008><SPAN class=843113314-16092008><FONT
face=Arial color=#0000ff size=2>thanks,</FONT></SPAN></SPAN></DIV>
<DIV><SPAN class=375571120-27082008><SPAN class=843113314-16092008><FONT
face=Arial color=#0000ff
size=2>Bob</FONT></SPAN></SPAN></DIV></DIV></BODY></HTML>