[kaffe] Kaffe on YOPY, arm-linux PDA

Dalibor Topic robilad at yahoo.com
Mon Jul 14 06:18:01 PDT 2003

Hallo Sebastian,

--- Sebastian Mancke <asteban at gmx.net> wrote:
> Hello.
> I have successfully cross compiled Kaffe 1.1.0 
> for my arm-linux based PDA: YOPY, from GMate.
> (Thanks for the FAQ.cross-compiling)

Cool, good to hear that Kiyo's dosumentation finds its happy readers.

> The YOPY has 207 MHz and 64 MB SD Ram
> (The ram is used for both: filesystem and working memory.)
> Is it possible to optimize Kaffe for such small systems?
> For example by compile options for heap sizes 
> or making the binary size smaller?

Please take a look at FAQ.embedded for a list of things you can do to reduce
kaffe's size on an embedded platform.

> Error message:
> arm-linux-gcc -DHAVE_CONFIG_H -I. -I. -I../../../config -I../../../include \
>     -I../../../kaffe -DKVER=\"1.1.0\" \
>     -I/home/asteban/trash/kaffe-1.1.0/./kaffe/kaffevm \
>     -I/home/asteban/trash/kaffe-1.1.0/./kaffe/kaffevm/systems/unix-jthreads \
>     -I../../../config -I../../../include -DKAFFE_VMDEBUG -g -O2 -Wall \
>     -Wstrict-prototypes -fsigned-char -c InetAddressImpl.c \
>     -Wp,-MD,.deps/InetAddressImpl.TPlo  -fPIC -DPIC -o
> .libs/InetAddressImpl.o
> InetAddressImpl.c: In function \  
>    `java_net_NativeInetAddressImpl_getHostByAddr0':
> InetAddressImpl.c:413: structure has no member named `sin6_scope_id'

this should be fixed in the current CVS sources.

> 2. It inherently uses /usr/lib/libjpeg.so instead of 
> /usr/arm-linux/lib/libjpeg.so
> I also tryed to set the lib dirs by the following options:
> 	LDFLAGS=-L/usr/arm-linux/lib/ 
> 	--with-libraries=/usr/arm-linux/lib/
> 	--with-awtlibpath=/usr/arm-linux/lib/
> Theese had no affects.

That's yet another bug in libtool, AFAIK. It seems to pick up libraries passed
by --with-libraries only after it has tried to find a library in common library
locations like /usr/lib. See
http://mail.gnu.org/archive/html/libtool/2001-10/msg00127.html for a possible
patch, that apparently has a typo somewhere ... sigh.

Please report it as a bug to the libtool project, their web site is
http://www.gnu.org/software/libtool/ and point them to the patch.

dalibor topic

Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

More information about the kaffe mailing list