Problems compiling JVM from Source-- need assistance

While attempting to compile Java 1.5 SE from source according to Sun's

directions (from http://java.sun.com/j2se/1.5.0/scsl/build-linux.html)

we ran into the following error. We haven't encountered anything like

this before, and aren't sure how to proceed. Has anyone here

encountered anything similar? Can anyone suggest a solution, or

things we might try to get more information about what's wrong? We'd

greatly appreciate any assistance.

Some information about our system:

We're running Redhat Advanced Server 2.1 in a virtual machine with an

i686 architecture. (The configuration script autodetects an i586

architecture, and we're not sure why.) We have gcc version 3.2.1

installed, as well as egcs-2.91.66 for the Mozilla headers. Our

gnumake version is 3.78.1. Our bootstrap JVM is J2SDK 1.4.2_11. Our

glibc version is 2.3.2.

/usr/local/bin/gcc -O3 -fno-strict-aliasing -fPIC -W -Wall -Wno-unused -Wno-parentheses -fno-omit-frame-pointer

-Di586 -DARCH='"i586"' -DLINUX -DRELEASE='"1.5.0-internal"' -DFULL_VERSION='"1.5.0-internal-asegall_10_jul_2006_1

0_24"' -D_LARGEFILE64_SOURCE -D_GNU_SOURCE -D_REENTRANT -D_LITTLE_ENDIAN -I. -I/usr/share/jvm/Downloads/jdk-1_5_0

-src-scsl/control/build/linux-i586/tmp/java/verify/CClassHeaders -I../../../src/solaris/javavm/export -I../../../s

rc/share/javavm/export -I../../../src/share/javavm/include -I../../../src/solaris/javavm/include-I../../../src

/share/javavm/include -Xlinker -O1 -Wl,-soname=libverify.so -Xlinker -version-script=/usr/share/jvm/Downloads/jdk

-1_5_0-src-scsl/control/build/linux-i586/tmp/java/verify/mapfile-vers -z defs -L/usr/share/jvm/Downloads/jdk-1_5_0

-src-scsl/control/build/linux-i586/lib/i386 -static-libgcc -shared -mimpure-text -o /usr/share/jvm/Downloads/jdk-

1_5_0-src-scsl/control/build/linux-i586/lib/i386/libverify.so/usr/share/jvm/Downloads/jdk-1_5_0-src-scsl/contr

ol/build/linux-i586/tmp/java/verify/obj/check_code.o/usr/share/jvm/Downloads/jdk-1_5_0-src-scsl/control/build/

linux-i586/tmp/java/verify/obj/check_format.o-L/usr/share/jvm/Downloads/jdk-1_5_0-src-scsl/control/build/linux-

i586/lib/i386/server -ljvm -lc

/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/../../../../i686-pc-linux-gnu/bin/ld: /usr/share/jvm/Downloads/jdk-

1_5_0-src-scsl/control/build/linux-i586/lib/i386/libverify.so: undefined versioned symbol name __frame_state_for@@GLIBC_2.0

/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/../../../../i686-pc-linux-gnu/bin/ld: failed to set dynamic section

sizes: Bad value

collect2: ld returned 1 exit status

make[5]: *** [/usr/share/jvm/Downloads/jdk-1_5_0-src-scsl/control/build/linux-i586/lib/i386/libverify.so] Error 1

[2939 byte] By [ariel_segalla] at [2007-10-3 1:15:33]
# 1
You need gcc 3.2.2 or 3.2.1-7 plus the matching binutils package. You cannot use the gcc that comes with RedHat Advance Server 2.1.Ignore the i586 vs. i686 naming, it doesn't matter.-kto
kellyohaira at 2007-7-14 18:12:41 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 2

Sorry, I wasn't sufficiently clear in my first post. We're using 3.2.1-7a, with the matching binutils package;

we spent a long time tracking that down and installing it, so although there's a remote possibility

something's not installed properly, we're pretty sure it's correct. Previously, when we were having issues with the incorrect version of gcc, we would get errors in the initial requirements check phase.

If you think this error in particular might be connected to an improper gcc version that the basic checks wouldn't catch, please let me know.

ariel_segalla at 2007-7-14 18:12:41 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 3

The gcc is normally at /usr/bin/gcc. If you are getting the /usr/local/bin/gcc (and it's the right one) then I'd question how this gcc was installed on the system. The binutils and gcc packages need to be installed in the standard /usr/bin and /usr/lib area. Anything else puts you in uncharted territory. I don't know how these gcc/binutils components find each other's bits and pieces.

-kto

kellyohaira at 2007-7-14 18:12:41 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 4
Hi,Also, where do I download gcc 3.2.1-7a from?Can you send me the link?RegardsAparna
ap_mitraa at 2007-7-14 18:12:41 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 5
> Also, where do I download gcc 3.2.1-7a from?Can you> send me the link? http://www.gnu.org/order/ftp.htmlfor example: ftp://gnu.teleglobe.net/ftp.gnu.org/gcc/
YoGeea at 2007-7-14 18:12:41 > top of Java-index,Java HotSpot Virtual Machine,Specifications...