Re: [jchevm] workarounds for Cygwin zip/jar problems that makes "hello world" work

2006-03-03 Thread snowdosker
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

Re: Classpath on Cygwin: failed to open native library error

2006-02-28 Thread snowdosker
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

Re: Classpath on Cygwin: failed to open native library error

2006-02-27 Thread snowdosker
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

Re: [jchevm] problems with gnu classpath and also jchevm builds

2006-02-27 Thread snowdosker
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

Re: Classpath on Cygwin: failed to open native library error

2006-02-23 Thread snowdosker
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

Re: [jchevm] Cygwin issues

2006-02-23 Thread snowdosker
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

Re: Classpath on Cygwin: failed to open native library error

2006-02-22 Thread snowdosker
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

Re: Classpath on Cygwin: failed to open native library error

2006-02-21 Thread snowdosker
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

Re: [jchevm] Cygwin issues

2006-02-20 Thread snowdosker
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

Re: Classpath on Cygwin: failed to open native library error

2006-02-19 Thread snowdosker
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

Re: Classpath on Cygwin: failed to open native library error

2006-02-19 Thread snowdosker
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

Re: Classpath on Cygwin: failed to open native library error

2006-02-18 Thread snowdosker
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

Re: Classpath on Cygwin: failed to open native library error

2006-02-18 Thread snowdosker
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

Re: Classpath on Cygwin: failed to open native library error

2006-02-18 Thread snowdosker
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_

Re: compiling JCHEVM with GCC/Cygwin

2006-02-17 Thread snowdosker
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

Re: compiling JCHEVM with GCC/Cygwin

2006-02-16 Thread snowdosker
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

Re: compiling JCHEVM with GCC/Cygwin

2006-02-16 Thread snowdosker
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

Re: compiling JCHEVM with GCC/Cygwin

2006-02-15 Thread snowdosker
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

Re: compiling JCHEVM with GCC/Cygwin

2006-02-14 Thread snowdosker
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

compiling JCHEVM with GCC/Cygwin

2006-02-13 Thread snowdosker
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