class lib. For anyone interested, below is the workarounds I used:
1)
Unzip /usr/local/classpath/share/classpath/glibj.zip to
/usr/local/unzipped_glibj
2)
Unzip ../jchevm/java/jc.zip to /usr/local/unzipped_jc
3)
In .../jchevm/libjc/native/Makefile, replace the line:
JAVAH_CMD = $(JAVA
Thanks, Archie.
After applaing your fix it no more crashes.
Just tested this with QuickSort algorithm. It's running OK. (but a bit
slow under cygwin in comparison to SUN's JVM under Win)
I will try some more sophisticated tests later.
Thanks again,
Ivan
Hello, Archie
This one is mysterious and will take some debugging by someone on
a Cygwin platform. I'd start by checking what "r" is (i.e., what's
the return value). Then try to come up with a simple test case
of a condition variable, etc.
As I can check
_r = 22 and vm->vm_destruction = 0
Archie, Ivan,
I am following the email that Ivan Snowdosker sent on Monday, Feb 20
that describes how to build and run JCHEVM. I have hit a couple of
bewildering snags. I installed the latest version of cygwin from the
net but there still seems to be build problems.
I need to build
Hello, Archie.
Thank you. Succesfully merged your changes and now everything looks better..
Still havn't solved problem with
jc: assertion failure: _r == 0
jc: location: file `thread.c' line 1023
This one is the reason for simple thread test crash after few itterations
Well after merging just com
Hello Enrico,
I built JCHEVM with enabling assertions and merged latest Archie's fixes.
And now working on assertion
jc: assertion failure: _r == 0
jc: location: file `thread.c' line 1023
This assertion is the reason for simple thread test crash after few
itterations
Do you have any ideas how
Hello, Archie
snowdosker wrote:
Today I've made changes to eliminate the requirement that
_JC_FULL_ALIGNMENT
be at most sizeof(_jc_word), so this will fix the assertion in heap.c.
Just compared my local version with svn repository at Harmony project..
Don't see any changes.
Do
Hello, Archie
Today I've made changes to eliminate the requirement that
_JC_FULL_ALIGNMENT
be at most sizeof(_jc_word), so this will fix the assertion in heap.c.
Just compared my local version with svn repository at Harmony project..
Don't see any changes.
Do you commit this changes in JCVM
Hello, Enrico
2) in order to proceed, let's "align" our development environment in terms
of source code modifications. In fact, to build jchevm, just like you,
I had
to add some declarations in some header files, and modify the pread()
call into a read(). My proposal is the following:
let's in
have ideas about how this function must be difined correctly,
please, let me know.
Ivan
Archie Cobbs wrote:
snowdosker wrote:
Please share the link you've found :-)
Here is similar problem in postgress and some explanations
http://archives.postgresql.org/pgsql-cygwin/2003-11/msg
Hello, Enrico.
great! I'll try it tomorrow on my PC.
I think there are still quite a few things to fix on Cygwin,
because, for example, if we enable the assertions, JCHEVM exits.
The results we've got are encouraging though :-)
Unfortunately some things to fix remains.
For the moment I just c
Hi, Enrico
Finally HelloWorld is working!
in libjc\arch\arch_definitions.h
redefine dll name format for cygwin
#if defined(__CYGWIN__)
#define _JC_LIBRARY_FMT"cyg%s-0.dll"
#elif
#define _JC_LIBRARY_FMT"lib%s.dll.a"
#endif
Hmm but jc do not exit
Hi, Enrico
Please share the link you've found :-)
Here is similar problem in postgress and some explanations
http://archives.postgresql.org/pgsql-cygwin/2003-11/msg00024.php
Also from reply adressed to you (?)
http://permalink.gmane.org/gmane.comp.java.classpath.devel/7260
See last paragrap
Hi, Enrico.
Just figured out the roots of the problem. It comes from dlopen()
function on cygwin.
*JCHEVM* use the following code for loading native shared libraries
in \cygwin\home\ivan\jchevm\libjc\native_lib.c line:330
else if ((handle = dlopen(dlname, RTLD_NOW)) == NULL) {
_JC_
Hello, Enrico
are you saying that, even though the permissions of libjavanio.dll.a
are -r-xr-xr-x,
you got the same message? Please, let me know.
Yes, I just set all x rights /usr/local/classpath/lib/classpath/
on all files in and up directory tree (on winXP logged with full admin
righ
Thank you Enrico and Archie.
So now with assertions disabled I faced next problem, Enrico mentioned
in his email.
The same
"failed to open native library
/usr/local/classpath/lib/classpath/libjavanio.dll.a: permission denied"
I'm trying to run it under XP professional so I had no problem to
Hi, Enrico.
Thank you for your help.
Looks like I am following you step by step and now have the same error
which you discussed with Archie few days ago =)
assertion failure 1
-
vm.c - line 46
message = "assertion failure: _JC_FULL_ALIGNMENT <= (sizeof(_jc_word))"
When I add t
Many thanks, Enrico and Archie.
Finally I built JCHEVM.
This two jcjavah.exe and cfdump.exe printout help text when started, but jc.exe
fail with message
"The application failed to initialize properly (0xc005)".
Any ideas what does it mean?
I guess library linking problems. But have no ide
Enrico Migliore wrote:
snowdosker wrote:
Hello Enrico
I'm trying to build JCHEVM following your steps described at
http://www.mail-archive.com/harmony-dev@incubator.apache.org/msg03212.html
I was able to build Classpath sucsesfuly, but
fail making JCHEVM
In result I have
n
Hello Enrico
I'm trying to build JCHEVM following your steps described at
http://www.mail-archive.com/harmony-dev@incubator.apache.org/msg03212.html
I was able to build Classpath sucsesfuly, but
fail making JCHEVM
In result I have
native/java_lang_VMThread.c: In function `JCNI_java_lang_VMThre
20 matches
Mail list logo