On Sep 18, 2006, at 9:58 PM, [EMAIL PROTECTED] wrote:
Geir,
Thanks. I got it the DRLVM to build now, but I'm coming across
problems running
it. First, let me mention a couple things about the README that I
found, while
trying to build the VM.
Yah - if you followed the thread you started, it's clearly out of
date :)
1. I had to remove the revision tag (-r revision_number) for the
downloading of
software and tools. There were two places in the file
lnx.properties where I
removed svn's -r tag. Perhaps this is why I am currently having
trouble running
it. But without removing the -r tag, I kept getting a 'Secure
connection
truncated' error message, causing the build to fail.
Hm. That should be irrelevant. You should be able to do :
$ svn co https://svn.apache.org/repos/asf/incubator/harmony/enhanced/
trunk
$ cd trunk
$ ant switch_svn_vm
$ ant switch_svn_classlib
which should result in a a checkout of classlib SVN head into
'working_classlib', a checkout of DRLVM SVN head into 'working_vm'.
(You could have done just an 'ant' w/ no arguments, that would have
done the above, plus a full build, but that's really targetted at
building snapshots.
Then you have each tree that you can build independently. (I'm doing
all of this from memory, so if some of the ant targets are slightly
wrong, I apologize in advance...) For classlib :
$ cd working_classlib
$ ant fetch-depends
$ ant
and then
$ cd working_vm/build
$ sh build.sh update
$ sh build.sh
2. Geir's comment fixed the other problem I had (i.e. change
drlvm.properties
to point to classlib). I should have seen this one on my own but,
just for the
record, I don't think there is anything in the README about this.
Nope. The README is horribly out of date. I'll make it a point to
update today.
After those two things, the build is just fine. After that, the
README starts
talking about ij.sh, which I don't even see in the deploy/jre/bin
directory.
What I do see is a file called java. I have set my LD_LIBRARY_PATH to
/Harmony/enhanced/drlvm/trunk/build/deploy/jre/bin.
So, here is what happens when I tried to run it:
/Harmony/enhanced/drlvm/trunk/build/deploy/jre/bin>./java
Harmony Java launcher
Apache Harmony Launcher : (c) Copyright 1991, 2006 The Apache Software
Foundation or its licensors, as applicable.
java [-vm:vmdll -vmdir:dir -D... [-X...]] [args]
java:
/Harmony/enhanced/drlvm/trunk/vm/thread/src/
thread_native_fat_monitor.c:183:
monitor_wait_impl: Assertion `saved_recursion<1' failed.
Aborted
Weird.
What platform, btw?
What I do these days is build classlib, and then build drlvm.
You should then be able to do this :
$ cd workign_vm/build/deploy/jre
$ export JAVA_HOME=`pwd`
$ cd bin
$ export PATH=`pwd`:$PATH
and it should work.
Also, if I try to run a java program it just hangs.
After this, I searched the mailing list archives for this problem,
and found
this:
http://mail-archives.apache.org/mod_mbox/incubator-harmony-commits/
200608.mbox/[EMAIL PROTECTED]
So, since my problem looked similar I changed the assertion, but
now I get this:
/Harmony/enhanced/drlvm/trunk/build/deploy/jre/bin>./java
Harmony Java launcher
Apache Harmony Launcher : (c) Copyright 1991, 2006 The Apache Software
Foundation or its licensors, as applicable.
java [-vm:vmdll -vmdir:dir -D... [-X...]] [args]
./java: relocation error:
/Harmony/enhanced/drlvm/trunk/build/deploy/jre/bin/libhyprt.so: symbol
hythread_exit, version HYTHR_0.1 not defined in file libhythr.so
with link time
reference
This looks like I may have the wrong version of one of these lib
files. Any
ideas on what I am doing wrong?
Amazing.
So - what platform are you working on? Clearly some kind of linux.
Second, what happens if you set JAVA_HOME as suggested above?
geir
Thanks in advance for your help,
Armand
Quoting "Geir Magnusson Jr." <[EMAIL PROTECTED]>:
Morozova, Nadezhda wrote:
Geir,
Ok - it's clear I need to doc this.
This is a trigger phrase for me. We have README and Getting
Started for
DRLVM that are terribly out-of-date. Now, if we update them, and
keep
them up-to-date, Armand would not need to write to the mailing
list but
would just follow the guide to successfully build DRLVM :)
Indeed!
Can you help me update those docs? README is probably of the
greatest
urgency. I can use your explanation below, but there are other
things in
the file that need your attention ;)
Sure. :)
geir
Best regards,
Nadya Morozova
-----Original Message-----
From: Geir Magnusson Jr. [mailto:[EMAIL PROTECTED]
Sent: Monday, September 18, 2006 8:20 PM
To: harmony-dev@incubator.apache.org
Subject: Re: [drlvm] Trouble Building DRLVM
Armand Navabi wrote:
I am new to using Harmony. I am currently having trouble
getting the
DRLVM to build. I have a successful build of the class library. I
have
the following error when I try to ./build.sh update:
[mkdir] Created dir:
/u/u12/anavabi/Harmony_VM/build/pre-copied/archives/common/XALAN
[echo] downloading XALAN from
no_settings_in_config_or_environment
Ok - it's clear I need to doc this.
DRLVM depends on knowing where the claslibrary is because it uses
headers and libraries from it when building, and copies stuff when
assembling the jre.
So, by default, the DRLVM assumes that it and the classlibrary are
located as follows, relative to each other :
enhanced/classlib/trunk
enhanced/drlvm/trunk
So if that relationship isn't the way it is on your machine, then
you
will have problems like you see, as DRLVM "looks over" into
classlib to
see if XALAN is there as a check.
The solution is to go :
$ cd drlvm/trunk/build
$ cp drlvm.properties.example drlvm.properties
and them modify drlvm.properties so that it finds the right classlib
root. I believe it's relative to trunk/build.
When you then type sh build.sh, it will print out the classslib
location. if it's not right, repeat :)
geir
BUILD FAILED
/u/u12/anavabi/Harmony_VM/build/make/build.xml:238: The following
error
occurred while executing this line:
/u/u12/anavabi/Harmony_VM/build/make/setup.xml:289: The following
error
occurred while executing this line:
/u/u12/anavabi/Harmony_VM/build/make/setup.xml:291: The following
error
occurred while executing this line:
/u/u12/anavabi/Harmony_VM/build/make/setup.xml:462: Warning:
Could not
find file
/u/u12/anavabi/Harmony_VM/build/make/
no_settings_in_config_or_environmen
t
to copy.
Not sure why the ${remote.resource.archive} variable in
setup.xml is
no_settings_in_config_or_environment. Any help is appreciated.
Thanks,
Armand
-------------------------------------------------------------------
--
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-
[EMAIL PROTECTED]
For additional commands, e-mail: harmony-dev-
[EMAIL PROTECTED]
--------------------------------------------------------------------
-
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: harmony-dev-
[EMAIL PROTECTED]
--------------------------------------------------------------------
-
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: harmony-dev-
[EMAIL PROTECTED]
---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: harmony-dev-
[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]