ffileppo | 4 Nov 17:06
Picon
Favicon

Problems building gcj

Hi guys,

I'm having some problems building gcj after upgrading from Ubuntu 8.04 to 8.10 (I didn't change anything else).

I'm getting an error (please see the log at the end) about ld not finding lgio-2.0.

I don't understand why now it is looking for lgio. It didn't happen using Ubuntu 8.04.

Anyone else experienced this problem?

Thank you,
Francesco

libtool: link: /root/partizione/gcc-trunk-2/arm/./gcc/xgcc
-B/root/partizione/gcc-trunk-2/arm/./gcc/
-B/media/disk/gcc-inst-new/arm-linux-gnueabi/bin/
-B/media/disk/gcc-inst-new/arm-linux-gnueabi/lib/ -isystem
/media/disk/gcc-inst-new/arm-linux-gnueabi/include -isystem
/media/disk/gcc-inst-new/arm-linux-gnueabi/sys-include -shared 
.libs/gnu_java_awt_peer_gtk_CairoSurface.o .libs/gnu_java_awt_peer_gtk_CairoGraphics2D.o
.libs/gnu_java_awt_peer_gtk_ComponentGraphics.o
.libs/gnu_java_awt_peer_gtk_ComponentGraphicsCopy.o
.libs/gnu_java_awt_peer_gtk_FreetypeGlyphVector.o
.libs/gnu_java_awt_peer_gtk_GdkFontPeer.o
.libs/gnu_java_awt_peer_gtk_GdkGraphicsEnvironment.o
.libs/gnu_java_awt_peer_gtk_GdkPixbufDecoder.o .libs/gnu_java_awt_peer_gtk_GdkRobotPeer.o
.libs/gnu_java_awt_peer_gtk_GdkScreenGraphicsDevice.o
.libs/gnu_java_awt_peer_gtk_GtkButtonPeer.o .libs/gnu_java_awt_peer_gtk_GtkCanvasPeer.o
.libs/gnu_java_awt_peer_gtk_GtkCheckboxMenuItemPeer.o
.libs/gnu_java_awt_peer_gtk_GtkCheckboxPeer.o .libs/gnu_java_awt_peer_gtk_GtkChoicePeer.o
(Continue reading)

ffileppo | 3 Nov 08:36
Picon
Favicon

[GCJ] Performance of GUI applications on embedded systems

Hi all,

I've been investigating about performance of java code compiled with gcj on embedded systems.
In particular I'm interested in testing AWT/SWING application using GTK/Xorg as graphical backend
(this is the only viable solution since QT peers are not well supported).

The embedded device I've been using for testing is a PXA270 processor (armv5te) equipped with 128Mb Ram;
running linux kernel 2.6.24 and using libgcj.so.10. GTK peers are running on Xorg, using matchbox
as window manager. The crosscompiler on my host is gcc 4.4.

During my tests I've noticed that java code using AWT/SWING (for example the test case attached at the end)
with GTK peer cause a very high load on the cpu.
Furthermore the applications take a lot of time to load and also the UI responsiveness is very slow.
Using "top" I can see that CPU is always at 100% during start up (it takes about 2 minutes
to get the application starting, Ram usage is ok).

I've also noticed that using optimizations (-O2, -O3...) does not help with graphical performance.

[On the same device, running WinCE and a commerical JVM (CrEme), applications have extremely better
graphical performance]

From my experience with this particual embedded system I can say that gcj has very high performance
when dealing with non-gui tasks (e.g. array sorting) compared with most of JVMs but gui
performance are very poor.

I would like to ask your opinion about the slowness of gui applications in my setup,
and also about viable solutions to improve this issue.
What do you think is the bottleneck?

-- libgcj itself?
(Continue reading)

Andrew Pinski | 31 Oct 22:26
Picon

Build fails on i386-apple-darwin8.11.1

I get the following build failure on i386-apple-darwin8.11.1.

libtool: link: /Users/apinski/src/local/gcc/objdir/gcc/gcj
-B/Users/apinski/src/local/gcc/objdir/i386-apple-darwin8.11.1/libjava/
-B/Users/apinski/src/local/gcc/objdir/gcc/ -ffloat-store
-fomit-frame-pointer -Usun -g -O2 -o .libs/jv-convert
--main=gnu.gcj.convert.Convert -shared-libgcc
-L/Users/apinski/src/local/gcc/objdir/i386-apple-darwin8.11.1/libjava/.libs
-L/Users/apinski/src/local/gcc/objdir/i386-apple-darwin8.11.1/libjava
./.libs/libgcj.dylib
-L/Users/apinski/src/local/gcc/objdir/i386-apple-darwin8.11.1/libstdc++-v3/src
-L/Users/apinski/src/local/gcc/objdir/i386-apple-darwin8.11.1/libstdc++-v3/src/.libs
-lpthread -ldl
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: Undefined symbols:
__Unwind_GetIPInfo
collect2: ld returned 1 exit status
warning: no debug map in executable (-arch i386)
warning: no debug map in executable (-arch i386)
make[3]: *** [jv-convert] Error 1
make[3]: *** Waiting for unfinished jobs....

Last known build that worked was revision 141116.

Thanks,
Andrew Pinski

BGB | 26 Oct 12:26
Picon
Favicon

wrote misc header, JNI wrapper

well, I wrote a header, mostly for my own uses, which I will call 
'jniwrap.h'.

the purpose is to provide a slightly less ugly interface to the JNI 
functions, and also to add consistency between C and C++.

the structure is a big mass of static inline functions which wrap the 
various JNI calls.

for example:
(*env)->GetVersion(env);    //C
or:
env->GetVersion();            //C++

becomes:
jGetVersion(env);              //C & C++

not sure if this is anything anyone would be interested in, I can send the 
header if needed (just dunno if these lists like attachments).

start of header (partly reformated for OE-reasons...):
---
#ifndef JNIWRAP_H
#define JNIWRAP_H

#include <jni.h>

#ifdef __cplusplus
#define JNIENV env
#else
(Continue reading)

Matthias Klose | 26 Oct 11:14
Picon

feedback on --enable-java-home

Hi,

as "promised" ;), some feedback about the integration of the
java-gcj-compat stuff. please find extracts from a build log at the
end.

Configured with
  --with-java-home=/usr/lib/gcc-snapshot
  --enable-java-home
  --with-jvm-root-dir=/usr/lib/gcc-snapshot/jvm
  --with-jvm-jar-dir=/usr/lib/gcc-snapshot/jvm-exports

 a) having both --with-java-home and --enable-java-home is at least
    confusing, plus with the new schema, --enable-java-home does
    hardcode a part of --with-java-home, without giving the
    possibility to select the jvm name anymore.
    Please merge --with-java-home/--enable-java-home and make it
    possible to give your own name. Where's the value about having to
    use `java-1.5.0-gcj-1.5.0.0'? is this documented?

 b) The symlinks for the header files are wrong, when installed with
    DESTDIR set.

 c) The ecj symlink assumes an installation of ecj in a given
    location, which apparently is only true for installations into
    /usr or /usr/local. This should be configurable.

 d) The javadoc symlink is created unconditionally, but gjdoc is not
    built in all cases.

(Continue reading)

Little | 24 Oct 17:30
Picon

gcj 4.3.2 on windows


Hi,

I tried gcj on windows (mingw). Unfortunately, I could not make it work. I
set two environment variables, PATH to gcj, and CLASSPATH to ecj.jar. The
error message is as follow:

C:\TEMP\java>gcj  -C j1.java
Exception in thread "main" java.lang.NullPointerException
   <<No stacktrace available>>

The file j1.java prints "Hello World". If I used javac (from SUN.COM) to get
class file first, gcj can generate .exe. For example

javac j1.java
gcj --main=j1 j1.class

Executable file a.exe was generated. a.exe works correctly, and prints
"Hello World". 

Could you provide information to help me? thanks.

--

-- 
View this message in context: http://www.nabble.com/gcj-4.3.2-on-windows-tp20152337p20152337.html
Sent from the gcc - java mailing list archive at Nabble.com.

Jary Grove | 18 Oct 23:15
Picon
Favicon

JESSIE - SSL BAD_CERTIFICATE Exception

I am getting the BAD CERTIFICATE exception with jessie, any idea? I am using the latest build. 

Following is the exception log:

SSL HANDSHAKE output to {0}; state:{1}; outBuffer:{2} java.nio.ByteBufferImpl[pos=5 lim=18432 cap=18
432] WRITE_CLIENT_HELLO null
SSL HANDSHAKE loop state={0} WRITE_CLIENT_HELLO
SSL HANDSHAKE {0} struct {
  version: TLSv1.1;
  random:
  struct {
    gmt_unix_time: 1224363825;
    random_bytes:  9a:15:99:6d:25:e3:04:7c:ff:3a:12:e1:ff:19:b1:f6:61:07:a3:2e:57:cc:aa:db:dd:47:82:
f5;
  } Random;  sessionId: ;
  cipher_suites:
  [30] {
    TLS_DHE_DSS_WITH_AES_256_CBC_SHA,
    TLS_DHE_RSA_WITH_AES_256_CBC_SHA,
    TLS_DH_DSS_WITH_AES_256_CBC_SHA,
    TLS_DH_RSA_WITH_AES_256_CBC_SHA,
    TLS_RSA_WITH_AES_256_CBC_SHA,
    TLS_DHE_DSS_WITH_AES_128_CBC_SHA,
    TLS_DHE_RSA_WITH_AES_128_CBC_SHA,
    TLS_DH_DSS_WITH_AES_128_CBC_SHA,
    TLS_DH_RSA_WITH_AES_128_CBC_SHA,
    TLS_RSA_WITH_AES_128_CBC_SHA,
    TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA,
    TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA,
    TLS_DH_DSS_WITH_3DES_EDE_CBC_SHA,
(Continue reading)

ffileppo | 17 Oct 13:50
Picon
Favicon

GTK+ AWT peer on DirectFB (instead of Xorg)

Hi all,

Is there any way to build gcj with GTK+ AWT peer on DirectFB instead of Xorg/X11?

I couldn't find any info on this subject apart from
(http://www.directfb.org/wiki/index.php/Projects:GTK_on_DirectFB_for_Embedded_Systems) but
this is not specific to gcj.

Thank you,

Francesco

ffileppo | 15 Oct 13:29
Picon
Favicon

Problem with AWT/Swing code

Hi everyone,

I'm doing some testing with AWT/Swing applications compiled with gcj 4.4 (which is using classpath 0.97.2).

I'm having some troubles with the following code; it does not show
the JComponent inside the JFrame (I've tried both on x86 and arm).

This code runs fine if compiled with OpenJDK, so I guess that this issue is more related to gcj rather then classpath.

Any thoughts or ideas?

Thank you

Francesco

Code:

import java.awt.BorderLayout;

import javax.swing.DefaultListModel;
import javax.swing.JComponent;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JList;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.ListSelectionModel;
import javax.swing.SwingUtilities;
import javax.swing.event.ListSelectionEvent;
import javax.swing.event.ListSelectionListener;
(Continue reading)

BGB | 15 Oct 11:21
Picon
Favicon

writing custom JVM, wanting people to talk to...

well, ok, don't know if this is off-topic, but oh well...
the text below is from an email I had written, and as noted, my general 
point is to be able to hopefully talk to anyone that might be interested in 
talking.

---

well, I don't know if you would be interested in talking any.

basically, I started writing my own JVM (mostly for my own uses), but would
also like some people to talk to about technical stuff.

in particular, I am considering the possibility of 'extensions' to the
bytecode, since I am actually intending to use it for more non-Java usages,
and felt a need for things like proper dynamic typing, and also support for
pointers.

I am actually starting from the position of already having an existing VM
framework (my case, around 200+ kloc of mostly C), so it is more like I am
adding a "Java module", rather than starting clean (actually, the actual JVM
part thus far is likely to be tiny, and even if I add JIT, I will mostly
just be using stuff I already wrote for more general-purpose dynamic
compilation).

I am also writing my own so that I have good integration with my existing
machinery, ... which would not so likely happen if I used a pre-existing VM.

I also hope if possible to utilize GNU Classpath and GCJ and similar, which
is why I had not just created my own entirely custom bytecode (actually,
this would have been less effort, since I would not have had to gone through
(Continue reading)

Amr Fathey | 13 Oct 00:41
Picon
Favicon

Best Valued For You


Princess Egypt Offers For you The attractions Of The world

Free Collection FOR YOU!!

http://Egypt.tht4.com

if you interesting our site please resend it ..

Many Thanks
Princess Egypt


Gmane