I finally got the Harmony DRLVM to work correctly on Gentoo. I installed Ubuntu 6 on my laptop and successfully built and ran harmony DRLVM without any problems. Then I compared versions between my Gentoo machine and my Ubuntu machine.
I found on Gentoo I had libpthread-0.10.so and on the Ubuntu machine I have libpthread-2.3.6.so. I guess I didn't have the Native Posix Thread Library, instead I had the older linux threads library. Upgrading to a NPTL-enabled glibc fixed the problem. Thanks to everyone who helped me out with that. Armand -----Original Message----- From: Geir Magnusson Jr. [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 11, 2006 12:37 PM To: harmony-dev@incubator.apache.org Subject: Re: Can't get binary to work I'm ready to install Gentoo to see if I can repeat it... what version? Armand Navabi wrote: > Seemed promising, but this patch did not help. > > I ran "java -Xtrace helloworld" to see if it even got to the patched code, > but it seems like my code hangs even before getting to that code. > > I'm really not sure what my next step is to try to get the VM up and running > correctly. > > Armand > > -----Original Message----- > From: Alexey Varlamov [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 11, 2006 1:54 AM > To: harmony-dev@incubator.apache.org > Subject: Re: Can't get binary to work > > 2006/10/9, Armand Navabi <[EMAIL PROTECTED]>: >> Yes, I am still having problems. >> >> Like I said, I am just trying to run the executable currently. I see the >> same problem I was seeing when I built the DRLVM. >> >> I downloaded the Latest Linux JRE snapshot build, set the JAVA_HOME, PATH >> and LD_LIBRARY_PATH environment variables and then tried to run > helloworld. >> Sometimes the executable will print "hello world!" and then hang, and >> sometimes it will just hang. Same thing happens when I download and try > to >> run the Latest Linux HDK with helloworld. > > Armand, > > The symptoms you are describing similar to investigation results of > HARMONY-1816. It is interesting to see if the patch helps you. > > [0] http://issues.apache.org/jira/browse/HARMONY-1816 > >> My platform is Linux Gentoo 2.6.17.8. >> >> Thanks, >> Armand >> >> -----Original Message----- >> From: Tim Ellison [mailto:[EMAIL PROTECTED] >> Sent: Sunday, October 08, 2006 6:57 PM >> To: harmony-dev@incubator.apache.org >> Subject: Re: Can't get binary to work >> >> Are you still having problems Armand? >> >> Tim >> >> Armand Navabi wrote: >>> I have been unable to figure out why I can't get the drlvm to run >>> helloworld. The classlib with Intel's VM works fine. >>> >>> >>> >>> So now I thought I'd just see if I could download the binary and execute >> it >>> (JRE), but it is behaving the same way (I guess this is to be expected, >> but >>> I just wanted to make sure it wasn't something in the build process that >> was >>> causing the trouble). >>> >>> >>> >>> When I run java by itself it executes without problem, when I run "java >>> helloworld" it just hangs, and "java -showversion" will print version > info >>> and then hang right after that: >>> >>> >>> >>> [EMAIL PROTECTED] /scratch/anavabi/Harmony/harmony-jre-r450941/bin $ ./java >>> -showversion >>> >>> Apache Harmony Launcher : (c) Copyright 1991, 2006 The Apache Software >>> Foundation or its licensors, as applicable. >>> >>> java version "1.5.0" >>> >>> pre-alpha : not complete or compatible >>> >>> svn = r450941, (Sep 28 2006), Linux/ia32/gcc 3.4.6, release build >>> >>> http://incubator.apache.org/harmony >>> >>> (hangs here) >>> >>> >>> >>> Here are the environment variables that I think are relevant: >>> >>> >>> >>> LD_LIBRARY_PATH >>> >>> > /scratch/anavabi/Harmony/harmony-jre-r450941/bin:/scratch/anavabi/Harmony/ha >>> rmony-jre-r450941/bin/default/ >>> >>> PATH >>> >>> > .:/usr/local/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/i686-pc-linux-gnu/gcc-bi > n/3.4.6:/opt/ICAClient:/opt/sun-jdk-1.5.0.06/bin:/opt/sun-jdk-1.5.0.06/jre/b >>> in:/usr/kde/3.5/bin:/usr/qt/3/bin:/usr/games/bin:/opt/eclipse-sdk-3.2.1 >>> >>> JAVA_HOME >>> >>> /scratch/anavabi/Harmony/harmony-jre-r450941/bin >>> >>> >>> >>> I'm on Gentoo 2.6.17.8. >>> >>> Any ideas what may be going on? >>> >>> >>> >>> Thanks, >>> >>> Armand >>> >>> >> -- >> >> Tim Ellison ([EMAIL PROTECTED]) >> IBM Java technology centre, UK. >> >> --------------------------------------------------------------------- >> Terms of use : http://incubator.apache.org/harmony/mailing.html >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> >> --------------------------------------------------------------------- >> Terms of use : http://incubator.apache.org/harmony/mailing.html >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > --------------------------------------------------------------------- > Terms of use : http://incubator.apache.org/harmony/mailing.html > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- > Terms of use : http://incubator.apache.org/harmony/mailing.html > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]