[kaffe] Bug report: Assertion failure when running Sun's DialogDemo

2005-11-25 Thread Niels Möller
I have installed kaffe-1.1.6, using ./configure  make and no special
options. Then I tried running the Dialogs demo, consisting of the
files DialogDemo.java, CustomDialog.java and middle.gif, available at
http://java.sun.com/docs/books/tutorial/uiswing/components/example-1dot4/

I put all three files in a directory of their own, ran

  $ javac DialogDemo.java CustomDialog.java

to compile them, and then I tried to run the program,

  $ kaffe DialogDemo
  kaffe-bin: machine.c:256: translate: Assertion `reinvoke == false' failed.
  Aborted (core dumped)

Top of the gdb backtrace looks like

  (gdb) bt
  #0  0xb7d9283b in raise () from /lib/tls/libc.so.6
  #1  0xb7d93fa2 in abort () from /lib/tls/libc.so.6
  #2  0xb7d8c2df in __assert_fail () from /lib/tls/libc.so.6
  #3  0xb7f3564c in translate (xmeth=0x818b84c, einfo=0xb6c28708)
  at machine.c:387
  #4  0xb7f44022 in soft_fixup_trampoline (_data=0x0) at methodcalls.c:54
  #5  0xb7f442ae in i386_do_fixup_trampoline ()
  at ../../../config/i386/trampolines.S:50
  #6  0x0818d851 in ?? ()
  #7  0xb7f4429e in i386_do_fixup_trampoline ()
  at ../../../config/i386/trampolines.S:44
  #8  0x084b8cac in ?? ()
  #9  0xb6c28778 in ?? ()

I'm running on an x86 debian gnu/linux box,

  $ uname -a
  Linux carduelis.s3.kth.se 2.6.12.5 #1 Thu Aug 18 11:42:45 CEST 2005
  i686 GNU/Linux

I used gcc-3.3.5 for the compilation.

(I also have the debian package of kaffe-1.1.5 installed, and it can
run the dialogs demo. However, the
javax.swing.JOptionPane.showInputDialog seems broken, it doesn't
create any text input field. The reason I upgraded to kaffe-1.1.6 was
to see if this problem has been fixed).

Regards,
/Niels

___
kaffe mailing list
kaffe@kaffe.org
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


[kaffe] Re: GNU Classpath hacker room at FOSDEM 2006

2005-11-25 Thread Chris Gray
On Monday 14 November 2005 17:41, Mark Wielaard wrote:
 Hi all,

 Like the last couple of years we want to come together with all the
 projects around GNU Classpath and the various free runtimes, compiler
 and tool projects to discuss what has happened in the last year in the
 Free Software community and what the next year will bring us during
 FOSDEM.

Mark,

Do I deduce correctly that you're already in touch with the organisers about 
this? (ik neem dus aan dat je reeds in contact bent geweest met de 
organisatie, of?)

Chris

-- 
Chris Gray/k/ Embedded Java Solutions  BE0503765045
Embedded  Mobile Java, OSGihttp://www.kiffer.be/k/
[EMAIL PROTECTED] +32 3 216 0369


___
kaffe mailing list
kaffe@kaffe.org
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


Re: [kaffe] problems with thread and ServerSocket.close()

2005-11-25 Thread Guilhem Lavaux

Hi Jean-Frederic,

The problem should be fixed now in CVS. I have tested your program 
locally with kaffe and it seems to work now. Please tell me if you are 
still experiencing some troubles...


Regards,

Guilhem.

Jean-frederic Clere wrote:

Hi,

I have tried a small test program that runs correctly in Sun JVM but 
hangs in kaffe:
By close() on a ServerSocket I expect to cause an exception in the 
thread where I am doing the accept() om the same ServerSocket, but the 
close() hangs until a new connection is openned.


Any hints why the close() does not provoque an exception in the accept().

Cheers

Jean-Frederic

PS: Find attached the java code I am using.




___
kaffe mailing list
kaffe@kaffe.org
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


[kaffe] CVS kaffe (guilhem): Socket methods can be used asynchronously now.

2005-11-25 Thread Kaffe CVS
PatchSet 6970 
Date: 2005/11/25 21:01:51
Author: guilhem
Branch: HEAD
Tag: (none) 
Log:
Socket methods can be used asynchronously now.

* include/jsyscall.h
(sockShutdown): New syscall to support.
(KSOCKSHUTDOWN): New macro.

* kaffe/kaffevm/systems/unix-jthreads/syscalls.c,
(jthreadedSocketShutdown): Added support for shutdown.

* kaffe/kaffevm/systems/unix-jthreads/syscalls.c,
(jthreadedSocketShutdown): Added support for shutdown.
(selectHelper): New function which protect calls to select.
(waitForTimeout, waitForWritable): Use selectHelper now.
(waitForRW): New function.
(jthreadedAccept): Use waitForRW and not waitForTimeout.

* libraries/clib/net/PlainSocketImpl.c
(getFileFromSocket): New function to retrieve safely a fd from a
socket object.
(releaseFileToSocket): Release the fd.
(socketCreate, socketConnect, socketBind,
socketListen, socketAccept, socketAvailable,
socketSetOption, socketGetOption, socketRead,
socketWrite, waitForConnection): Use the new facility to
get the fd.
(socketClose): Shutdown the socket and if possible close the fd.

* libraries/javalib/vmspecific/gnu/java/net/PlainSocketImpl.java
(fdUsed): New field.
(available, close, getInputStream, socketGetOption,
socketSetOption, socketAccept, socketAvailable,
socketBind, socketClose, socketConnect, socketCreate,
socketListen, socketRead, socketWrite, waitForConnection,
setBlocking): Removed synchronization.

Members: 
ChangeLog:1.4492-1.4493 
include/jsyscall.h:1.23-1.24 
kaffe/kaffevm/systems/unix-jthreads/syscalls.c:1.17-1.18 
kaffe/kaffevm/systems/unix-pthreads/syscalls.c:1.33-1.34 
libraries/clib/net/PlainSocketImpl.c:1.56-1.57 
libraries/javalib/vmspecific/gnu/java/net/PlainSocketImpl.java:1.1-1.2 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.4492 kaffe/ChangeLog:1.4493
--- kaffe/ChangeLog:1.4492  Fri Nov 25 18:12:47 2005
+++ kaffe/ChangeLog Fri Nov 25 21:01:51 2005
@@ -1,5 +1,40 @@
 2005-11-25  Guilhem Lavaux  [EMAIL PROTECTED]
 
+   * include/jsyscall.h
+   (sockShutdown): New syscall to support.
+   (KSOCKSHUTDOWN): New macro.
+
+   * kaffe/kaffevm/systems/unix-jthreads/syscalls.c,
+   (jthreadedSocketShutdown): Added support for shutdown.
+
+   * kaffe/kaffevm/systems/unix-jthreads/syscalls.c,
+   (jthreadedSocketShutdown): Added support for shutdown.
+   (selectHelper): New function which protect calls to select.
+   (waitForTimeout, waitForWritable): Use selectHelper now.
+   (waitForRW): New function.
+   (jthreadedAccept): Use waitForRW and not waitForTimeout.
+
+   * libraries/clib/net/PlainSocketImpl.c
+   (getFileFromSocket): New function to retrieve safely a fd from a
+   socket object.
+   (releaseFileToSocket): Release the fd.
+   (socketCreate, socketConnect, socketBind,
+   socketListen, socketAccept, socketAvailable,
+   socketSetOption, socketGetOption, socketRead,
+   socketWrite, waitForConnection): Use the new facility to
+   get the fd.
+   (socketClose): Shutdown the socket and if possible close the fd.
+
+   * libraries/javalib/vmspecific/gnu/java/net/PlainSocketImpl.java
+   (fdUsed): New field.
+   (available, close, getInputStream, socketGetOption, 
+   socketSetOption, socketAccept, socketAvailable,
+   socketBind, socketClose, socketConnect, socketCreate,
+   socketListen, socketRead, socketWrite, waitForConnection,
+   setBlocking): Removed synchronization.
+   
+2005-11-25  Guilhem Lavaux  [EMAIL PROTECTED]
+
* libraries/clib/native/java_lang_VMProcess.c
(nativeSpawn): Fixed eclipse startup by using the true kaffe
internal functions.
Index: kaffe/include/jsyscall.h
diff -u kaffe/include/jsyscall.h:1.23 kaffe/include/jsyscall.h:1.24
--- kaffe/include/jsyscall.h:1.23   Fri Aug  5 01:14:36 2005
+++ kaffe/include/jsyscall.hFri Nov 25 21:01:53 2005
@@ -84,6 +84,7 @@
int (*_getsockname)(int, struct sockaddr *, socklen_t *);
int (*_getpeername)(int, struct sockaddr *, socklen_t *);
int (*_sockclose)(int);
+int (*_sockShutdown)(int);
int (*_gethostbyname)(const char *, struct hostent **);
int (*_gethostbyaddr)(const char *, size_t, int, struct hostent **);
 
@@ -257,6 +258,8 @@
 #define KPIPECREATE(A,B)   (*Kaffe_SystemCallInterface._pipecreate)(A,B)
 #define KPIPEREAD(A,B,C,D,E) (*Kaffe_SystemCallInterface._piperead)(A,B,C,D,E)
 #define KPIPEWRITE(A,B,C,D,E) 
(*Kaffe_SystemCallInterface._pipewrite)(A,B,C,D,E)
+
+#define KSOCKSHUTDOWN(A) (*Kaffe_SystemCallInterface._sockShutdown)(A)
 
 #define KAFFE_MMAP_READ 0
 #define KAFFE_MMAP_WRITE 1
Index: kaffe/kaffe/kaffevm/systems/unix-jthreads/syscalls.c
diff -u 

[kaffe] CVS kaffe (guilhem): Fixes for fork exec.

2005-11-25 Thread Kaffe CVS
PatchSet 6969 
Date: 2005/11/25 18:12:47
Author: guilhem
Branch: HEAD
Tag: (none) 
Log:
Fixes for fork  exec.


* libraries/clib/native/java_lang_VMProcess.c
(nativeSpawn): Fixed eclipse startup by using the true kaffe
internal functions.

Members: 
ChangeLog:1.4491-1.4492 
libraries/clib/native/java_lang_VMProcess.c:1.1-1.2 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.4491 kaffe/ChangeLog:1.4492
--- kaffe/ChangeLog:1.4491  Fri Nov  4 20:32:20 2005
+++ kaffe/ChangeLog Fri Nov 25 18:12:47 2005
@@ -1,3 +1,9 @@
+2005-11-25  Guilhem Lavaux  [EMAIL PROTECTED]
+
+   * libraries/clib/native/java_lang_VMProcess.c
+   (nativeSpawn): Fixed eclipse startup by using the true kaffe
+   internal functions.
+
 2005-11-04  Guilhem Lavaux  [EMAIL PROTECTED]
 
* kaffe/kaffevm/boehm-gc/boehm/configure,
Index: kaffe/libraries/clib/native/java_lang_VMProcess.c
diff -u kaffe/libraries/clib/native/java_lang_VMProcess.c:1.1 
kaffe/libraries/clib/native/java_lang_VMProcess.c:1.2
--- kaffe/libraries/clib/native/java_lang_VMProcess.c:1.1   Tue Jul 19 
01:16:32 2005
+++ kaffe/libraries/clib/native/java_lang_VMProcess.c   Fri Nov 25 18:12:51 2005
@@ -47,6 +47,7 @@
 #include errno.h
 #include fcntl.h
 #include stdio.h
+#include jsyscall.h
 
 #include target_native.h
 #include target_native_misc.h
@@ -137,7 +138,7 @@
  jobjectArray cmdArray,
  jobjectArray envArray, jobject dirFile)
 {
-  int fds[3][2] = { {-1, -1}, {-1, -1}, {-1, -1} };
+  int fds[4];
   jobject streams[3] = { NULL, NULL, NULL };
   jobject dirString = NULL;
   char **newEnviron = NULL;
@@ -151,6 +152,7 @@
   jmethodID method;
   jclass clazz;
   int i;
+  int err;
 
   /* Check for null */
   if (cmdArray == NULL)
@@ -217,90 +219,15 @@
   strings[num_strings++] = dir;
 }
 
-  /* Create inter-process pipes */
-  for (i = 0; i  3; i++)
-{
-  if (pipe (fds[i]) == -1)
-   {
- TARGET_NATIVE_MISC_FORMAT_STRING1 (errbuf,
-sizeof (errbuf), pipe: %s,
-strerror (errno));
- goto system_error;
-   }
-}
-
-  /* Set close-on-exec flag for parent's ends of pipes */
-  (void) fcntl (fds[0][1], F_SETFD, 1);
-  (void) fcntl (fds[1][0], F_SETFD, 1);
-  (void) fcntl (fds[2][0], F_SETFD, 1);
-
-  /* Fork into parent and child processes */
-  if ((pid = fork ()) == (pid_t) - 1)
+  err = KFORKEXEC(strings, NULL, fds, pid, strings[0]);
+  if (err != 0)
 {
   TARGET_NATIVE_MISC_FORMAT_STRING1 (errbuf,
-sizeof (errbuf), fork: %s,
-strerror (errno));
+sizeof (errbuf), pipe: %s,
+strerror (err));
   goto system_error;
 }
 
-  /* Child becomes the new process */
-  if (pid == 0)
-{
-  char *const path = strings[0];
-
-  /* Move file descriptors to standard locations */
-  if (fds[0][0] != 0)
-   {
- if (dup2 (fds[0][0], 0) == -1)
-   {
- fprintf (stderr, dup2: %s, strerror (errno));
- exit (127);
-   }
- close (fds[0][0]);
-   }
-  if (fds[1][1] != 1)
-   {
- if (dup2 (fds[1][1], 1) == -1)
-   {
- fprintf (stderr, dup2: %s, strerror (errno));
- exit (127);
-   }
- close (fds[1][1]);
-   }
-  if (fds[2][1] != 2)
-   {
- if (dup2 (fds[2][1], 2) == -1)
-   {
- fprintf (stderr, dup2: %s, strerror (errno));
- exit (127);
-   }
- close (fds[2][1]);
-   }
-
-  /* Change into destination directory */
-  if (dir != NULL  chdir (dir) == -1)
-   {
- fprintf (stderr, %s: %s, dir, strerror (errno));
- exit (127);
-   }
-
-  /* Make argv[0] last component of executable pathname */
-  /* XXX should use file.separator property here XXX */
-  for (i = strlen (path); i  0  path[i - 1] != '/'; i--);
-  strings[0] = path + i;
-
-  /* Set new environment */
-  if (newEnviron != NULL)
-   environ = newEnviron;
-
-  /* Execute new program (this will close the parent end of the pipes) */
-  execvp (path, strings);
-
-  /* Failed */
-  fprintf (stderr, %s: %s, path, strerror (errno));
-  exit (127);
-}
-
   /* Create Input/OutputStream objects around parent file descriptors */
   clazz = (*env)-FindClass (env, gnu/java/nio/channels/FileChannelImpl);
   if ((*env)-ExceptionOccurred (env))
@@ -311,7 +238,7 @@
   for (i = 0; i  3; i++)
 {
   /* Mode is WRITE (2) for in and READ (1) for out and err. */
-  const int fd = fds[i][i == 0];
+  const int fd = fds[i];
   const int mode = (i == 0) ? 2 : 1;
   jclass sclazz;
   jmethodID smethod;
@@ -340,6 

Re: [kaffe] initial frame position

2005-11-25 Thread Gianluca Moro
Gianluca Moro wrote:
 hi all,
 
 I'm running kagge with a graphical output
 directly on X, without any window manager.
 
 I see that all the applicatio I start are placed in (0,0)
 (upper lefr corner of the screen) while starting 
 my java application under kaffe it is placed in a bit
 on the left, and below the upper screen (about (5,30)).
 

I think that you are using kaffe-x-awt AWT ? Then there is an
heuristic 
algorithm to detect the size of the decoration which is applied to a 
frame. In the case there is no WM maybe it is wrong. However it is 
possible to disengage the heuristic by removing the property 
EXTERNAL_DECO in libraries/clib/awt/X/tlk.c:tlkProperties().

Could you try this ?

sorry for the delay: I just take up the kaffe work again :-)
I tested the modification with no results :-(
the window is some (8/9) pixel more shifted to the bottom ...

thanks
giammy




--
Gianluca Moro  http://groups.yahoo.com/group/embeddeditalia/
ISCRIVITI alla Mailing List Italiana su LINUX EMBEDDED
[EMAIL PROTECTED]   Visit http://ilpinguino.altervista.org/



___ 
Yahoo! Messenger: chiamate gratuite in tutto il mondo 
http://it.messenger.yahoo.com

___
kaffe mailing list
kaffe@kaffe.org
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


[kaffe] split function (String): slow implementation

2005-11-25 Thread Gianluca Moro
Hi all,

I tested the following program, where I use
the split functin.

the 1st call to split needs 7/8 seconds to be accomplished, while
all the following calls are quickly done.
(kaffe-1.1.6 compiles on a MIPS platgorm - AMD au1100, 400MHz)

It seems that kaffe need to to something (parser initialization?)
very time consuming: is it a normal behaviour, or should not
happen this?

thanks
giammy

public class Spl {

public Spl() {
String s = Marameo|va|che|beo;
String s2 = Marameo2|va2|che2|beo2;
String [] subs = null;

System.out.println(INIZIO);   
subs = s.split(\\|);
System.out.println(OK  + subs[1]);

System.out.println(INIZIO);   
subs = s2.split(\\|);
System.out.println(OK  + subs[1]);

}

public static void main(String[] args) {
Spl spl = new Spl();
}
}

--
Gianluca Moro  http://groups.yahoo.com/group/embeddeditalia/
ISCRIVITI alla Mailing List Italiana su LINUX EMBEDDED
[EMAIL PROTECTED]   Visit http://ilpinguino.altervista.org/






___ 
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB 
http://mail.yahoo.it

___
kaffe mailing list
kaffe@kaffe.org
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


[kaffe] CVS kaffe (alex): initial checkin of DROPS port

2005-11-25 Thread Kaffe CVS
PatchSet 6968 
Date: 2005/11/25 13:41:27
Author: alex
Branch: HEAD
Tag: (none) 
Log:
initial checkin of DROPS port

Members: 
configure.ac:1.186-1.187 
config/i386/drops/config.frag:INITIAL-1.1 
config/i386/drops/jit-md.h:INITIAL-1.1 
config/i386/drops/jit3-md.h:INITIAL-1.1 
config/i386/drops/md.c:INITIAL-1.1 
config/i386/drops/md.h:INITIAL-1.1 
kaffe/kaffevm/systems/drops-l4threads/Makefile.am:INITIAL-1.1 
kaffe/kaffevm/systems/drops-l4threads/Makefile.frag:INITIAL-1.1 
kaffe/kaffevm/systems/drops-l4threads/Makefile.in:INITIAL-1.1 
kaffe/kaffevm/systems/drops-l4threads/jsignal.h:INITIAL-1.1 
kaffe/kaffevm/systems/drops-l4threads/jthread.h:INITIAL-1.1 
kaffe/kaffevm/systems/drops-l4threads/l4_loader.h:INITIAL-1.1 
kaffe/kaffevm/systems/drops-l4threads/l4thread.c:INITIAL-1.1 
kaffe/kaffevm/systems/drops-l4threads/l4thread.h:INITIAL-1.1 
kaffe/kaffevm/systems/drops-l4threads/lock-impl.h:INITIAL-1.1 
kaffe/kaffevm/systems/drops-l4threads/signal.c:INITIAL-1.1 
kaffe/kaffevm/systems/drops-l4threads/syscalls.c:INITIAL-1.1 
kaffe/kaffevm/systems/drops-l4threads/thread-impl.h:INITIAL-1.1 

Index: kaffe/configure.ac
diff -u kaffe/configure.ac:1.186 kaffe/configure.ac:1.187
--- kaffe/configure.ac:1.186Fri Nov  4 20:23:46 2005
+++ kaffe/configure.ac  Fri Nov 25 13:41:27 2005
@@ -2315,6 +2315,7 @@
 AC_CONFIG_FILES([kaffe/kaffevm/systems/Makefile])
 AC_CONFIG_FILES([kaffe/kaffevm/systems/unix-jthreads/Makefile])
 AC_CONFIG_FILES([kaffe/kaffevm/systems/oskit-pthreads/Makefile])
+AC_CONFIG_FILES([kaffe/kaffevm/systems/drops-l4threads/Makefile])
 AC_CONFIG_FILES([kaffe/kaffevm/systems/beos-native/Makefile])
 AC_CONFIG_FILES([kaffe/kaffevm/systems/unix-pthreads/Makefile])
 AC_CONFIG_FILES([kaffe/kaffevm/verifier/Makefile])
===
Checking out kaffe/config/i386/drops/config.frag
RCS:  /home/cvs/kaffe/kaffe/config/i386/drops/config.frag,v
VERS: 1.1
***
--- /dev/null   Sun Aug  4 19:57:58 2002
+++ kaffe/config/i386/drops/config.frag Fri Nov 25 13:49:57 2005
@@ -0,0 +1,22 @@
+echo **
+echo * Use config.frag of DROPS   *
+echo **
+
+cross_compiling='yes'
+
+ac_cv_c_char_unsigned='no'   # char is signed
+# dietlibc issue/problems
+ac_cv_func_getaddrinfo='yes'
+ac_cv_func_getnameinfo='yes'
+ac_cv_header_time_h='no'  # global variable 'tzname'  not available
+ac_cv_func_localtime='no' # no full support 
+ac_cv_func_shl_load='no'  # no support
+ac_cv_func_kill='no'  # we have no signals at all
+ac_cv_func_MD2Init='no'   # no support
+ac_cv_func_MD4Init='no'   # no support
+ac_cv_func_MD5Init='no'   # no support 
+am_cv_val_LC_MESSAGES='no'# no support
+ac_cv_member_struct_tm_tm_zone='no'
+
+
+
===
Checking out kaffe/config/i386/drops/jit-md.h
RCS:  /home/cvs/kaffe/kaffe/config/i386/drops/jit-md.h,v
VERS: 1.1
***
--- /dev/null   Sun Aug  4 19:57:58 2002
+++ kaffe/config/i386/drops/jit-md.hFri Nov 25 13:49:57 2005
@@ -0,0 +1,15 @@
+/*
+ * JIT is unsupported/untested
+ * 
+ * Copyright (c) 2004, 2005
+ * TU Dresden, Operating System Group.  All rights reserved.
+ *
+ * See the file license.terms for information on usage and redistribution
+ * of this file.
+ *
+ * written by Alexander Boettcher [EMAIL PROTECTED]
+ */
+
+#ifndef __i386_drops_jit_md_h
+#define __i386_drops_jit_md_h
+#endif
===
Checking out kaffe/config/i386/drops/jit3-md.h
RCS:  /home/cvs/kaffe/kaffe/config/i386/drops/jit3-md.h,v
VERS: 1.1
***
--- /dev/null   Sun Aug  4 19:57:58 2002
+++ kaffe/config/i386/drops/jit3-md.h   Fri Nov 25 13:49:57 2005
@@ -0,0 +1 @@
+#include i386/drops/jit-md.h
===
Checking out kaffe/config/i386/drops/md.c
RCS:  /home/cvs/kaffe/kaffe/config/i386/drops/md.c,v
VERS: 1.1
***
--- /dev/null   Sun Aug  4 19:57:58 2002
+++ kaffe/config/i386/drops/md.cFri Nov 25 13:49:57 2005
@@ -0,0 +1,261 @@
+/*
+ * Getenv hack
+ * Mockup implementations of unimplemented/unsupported functions in DROPS
+ * 
+ * Copyright (c) 2004, 2005
+ * TU Dresden, Operating System Group.  All rights reserved.
+ *
+ * See the file license.terms for information on usage and redistribution
+ * of this file.
+ *
+ * written by Alexander Boettcher [EMAIL PROTECTED]
+ */
+
+#include stdio.h  /* printf */
+#include stdlib.h /* malloc, free */
+#include fcntl.h  /* O_RDONLY */
+#include netdb.h  /* gethostname, getservbyname, ... */
+#include arpa/inet.h  /* inet_addr */
+#include sys/socket.h /* 

[kaffe] libraries/javalib/vmspecific/gnu/java/nio/charset

2005-11-25 Thread Ito Kazumitsu
Hi,

Now that our fixes have been accepted by GNU Classpath,
the following files are not needed any more.


libraries/javalib/vmspecific/gnu/java/nio/charset/
   UTF_16Decoder.java
   UnicodeLittle.java
   iconv/IconvProvider.java

What should I do?

___
kaffe mailing list
kaffe@kaffe.org
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


[kaffe] Hardware Requirements for Kaffe-1.0.7

2005-11-25 Thread daniel


Hello list!

A have following question:

i have ported kaffe-1.0.7 to an embedded system board Coldfire m68k 5282 with
eCos as os. This board has 8 MB Flash and 16 MB RAM.
When running kaffe, i get following error:

NegativeArraySizeException at Threadgroup.java at line 84.

IS IS POSSIBLE THAT MY COLDFIRE BOARD HAS NOT ENOUGH RAM FOR HEAP ALLOCATION?

What are the minimum hardware requirements for running kaffe?
Thanks for anwering,

Dani



___
kaffe mailing list
kaffe@kaffe.org
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


[kaffe] PROBLEM WITH INITTHREADS-FUNCTION

2005-11-25 Thread daniel
Hello list!

A have following question:

i have ported kaffe-1.0.7 to an embedded system board Coldfire m68k 5282 with
eCos as os. This board has 8 MB Flash and 16 MB RAM.
When running kaffe, i get following error:

NegativeArraySizeException at Threadgroup.java at line 84.

IS IS POSSIBLE THAT MY COLDFIRE BOARD HAS NOT ENOUGH RAM FOR HEAP ALLOCATION?

What are the minimum hardware requirements for running kaffe?

I get the error in the initialise()-routine in the initThreads function in the
 callMethodV(). Has anyone an idea?

Thanks for anwering,

Dani





___
kaffe mailing list
kaffe@kaffe.org
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


Re: [kaffe] Compile problems

2005-11-25 Thread Jari Korva
Hi,

I haven't progressed much. It would help *a lot* if someone who
understands how Kaffe works would tell who is supposed to send that
signal so it would be easier to find out why it is not done :)

I have also observed some variety in how Kaffe behaves. In some very rare
cases I have got it to print the HelloWorld message but usually it just
hangs before that.

Cheers,
  Jari

On Fri, 18 Nov 2005, Rafael Teixeira wrote:
 Hi Jari and Kaffe-List:

 I'm also stuck with Kaffe stopping on startup on my XScale (IXP42x)
 hardware. To add some more info we've tried with JamVM and SableVM,
 and similar behaviour occurs, our next try is to use Mono with IKVM,
 to see if we can get a single VM to startup our java firmware in the
 XScale.

 By tracing a bit, sure things look like your unanswered post on Signal
 Waiting was in the right track, but with JamVM we are sometimes able
 to get a simple Hello World to work, and sometimes it also hangs.

 Jari, Have you been able to go further?

 Thanks for any information, and we will be glad to share what we find
 on our quest to make Kaffe work on XScale.


 Regards,

 --
 Rafael Teixeira


 On 11/18/05, Jari Korva [EMAIL PROTECTED] wrote:
  Hi,
 
  I observed a few problems while compiling Kaffe cvs head:
 
  **
 
  Classpath configure fails due to missing X libraries although X and
  GTK are disabled in Kaffe configure script:
 
  # ./configure --prefix=/wrk/kaffe.intrp --build=i686-linux
  --host=armv5b-softfloat-linux --enable-xscale --without-x
  --disable-alsatest --disable-esdtest --disable-sound
  --enable-pure-java-math --with-jikes=/opt/local/bin/jikes
  --without-classpath-gtk-awt --without-kaffe-qt-awt --without-kaffe-x-awt
  --with-threads=unix-pthreads --with-engine=intrp
  ...
  checking for iconv declaration...
   extern size_t iconv (iconv_t cd, char * *inbuf, size_t
  *inbytesleft, char * *outbuf, size_t *outbytesleft);
  checking for X... disabled
  configure: error: GTK+ peers requested but no X library available
  configure: error: /bin/sh './configure' failed for 
  libraries/javalib/external/classpath
 
  I was able to fix this by doing a manual classpath configure (with
  --disable-gtk-peer):
 
  # cd libraries/javalib/external/classpath
  # ./configure --prefix=/wrk/kaffe.intrp --build=i686-linux
  --host=armv5b-softfloat-linux --enable-xscale --without-x
  --disable-alsatest --disable-esdtest --disable-sound
  --enable-pure-java-math --with-jikes=/opt/local/bin/jikes
  --without-classpath-gtk-awt --without-kaffe-qt-awt --without-kaffe-x-awt
  --with-threads=unix-pthreads --with-engine=intrp --enable-debug
  --enable-xdebugging --disable-boehm-gc-configuration
  build_alias=i686-linux host_alias=armv5b-softfloat-linux
  --enable-ltdl-convenience --disable-core-jni --disable-examples
  --with-glibj-dir=/wrk/kaffe.intrp/jre/lib
  --with-native-libdir=/wrk/kaffe.intrp/jre/lib/arm
  --with-vm-classes=/wrk/kaffe-cvs-head/libraries/javalib/vmspecific
  --cache-file=/dev/null --srcdir=. --disable-gtk-peer
 
  **
 
  The 2nd problem is that configure fails when cross compiling for
  ARM/XScale:
 
  ...
  checking for esd-config... /usr/bin/esd-config
  checking for ESD - version = 0.2.1... yes
  Information: Using pure Java math library
  checking which extensions to include...
  checking if malloc debugging is wanted... no
  checking pthread.h usability... yes
  checking pthread.h presence... yes
  checking for pthread.h... yes
  checking for /proc/self/maps... configure: error: cannot check for file
  existence when cross compiling
 
  I was able to fix this with the patch below:
 
  --- config/arm/linux/config.frag20 Jan 2005 23:19:18 - 1.8
  +++ config/arm/linux/config.frag18 Nov 2005 12:46:49 -
  @@ -12,4 +12,5 @@
 ac_cv_func_mmap_fixed_mapped=${ac_cv_func_mmap_fixed_mapped='yes'}
   #  ac_cv_func_utime_null=${ac_cv_func_utime_null='yes'}
 ac_cv_c_char_unsigned=${ac_cv_c_char_unsigned='no'}
  +  ac_cv_file__proc_self_maps=${ac_cv_file__proc_self_maps='yes'}
   fi
 
  **
 
  Cheers,
Jari
 
  --
   - Jari Korva -
- [EMAIL PROTECTED] -
 
  ___
  kaffe mailing list
  kaffe@kaffe.org
  http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
 


 - Jari Korva -
  - [EMAIL PROTECTED] -
  - +358-40-756 4812 -

___
kaffe mailing list
kaffe@kaffe.org
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


[kaffe] Re: Is the mailing list working?

2005-11-25 Thread Jim Pick

I thought it was really quiet for the last few days.  :-)

I just restarted the mailman process - I think the mail is flowing now...

Thanks for telling me!

Cheers,

 - Jim

Ito Kazumitsu wrote:

Hi,

I sent the following message to the kaffe mailing list but
it has not been delivered to the list. Is the mailing list
working? 


=
To: kaffe@kaffe.org
Subject: libraries/javalib/vmspecific/gnu/java/nio/charset
From: Ito Kazumitsu [EMAIL PROTECTED]
Fcc: +inbox

Hi,

Now that our fixes have been accepted by GNU Classpath,
the following files are not needed any more.


libraries/javalib/vmspecific/gnu/java/nio/charset/
   UTF_16Decoder.java
   UnicodeLittle.java
   iconv/IconvProvider.java

What should I do?


___
kaffe mailing list
kaffe@kaffe.org
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe