Re: help needed for sablevm arm
"asutosh gopinath" <[email protected]>
| Newsgroups | gmane.comp.java.vm.sablevm.general |
|---|---|
| Message-ID | <[email protected]> |
Hi Grzegorz,
Thanks for giving lots of information
I have built sablevm and sablevm-classpath again. Do i also have to build sablevm-classpath every time i build sablevm?
I reproduce the steps and my observations below
SABELVM:
1. ./configure --build i686-linux --host=arm-linux --target=arm-linux
--enable-static=yes --enable-debugging-features --disable-errors-on-warnings
a. I deleted "#define malloc rpl_malloc" line in src/include/config.h because it fails "make"
2. make
a. I get one warning hundreds of times "cast increases required alignment of target type". Few of the files are instructions_switch.c, util.c, native.c, interfaces.c, native_interfaces.c
b. While cross compiling make looks for libffi, libltdl in /usr/lib instead of /opt/arm-linux/lib. I copied the arm versions to /usr/lib to make it work.
3. make DESTDIR=/root/sablevm21 install
I tar them and ftp to arm m/c.
SABLEVM_CLASSPATH
1. ./configure --build i686-linux --host=arm-linux --target=arm-linux
--enable-static=yes --with-jikes --enable-gtk-peers --enable-jni
2. make
3. make DESTDIR=/root/sableclp21 install
Tar and copy.
REGARDING LINKS: sablevm gives unsatisfied link error if i dont do this. I think links
are lost when i do tar.
So for all the .so files in classpath-libs I do
:
ln -s libname-1.1.5.so libname.so
When i do /usr/local/bin/sablevm -v noclass
this time it does not hang! but gives:
[verbose class: loading "java/nio/channels/FileChannel"]
[verbose class: loading "java/nio/channels/spi/AbstractInterruptibleChannel"]
[verbose class: loading "java/nio/channels/Channel"]
[verbose class: loading "java/nio/channels/InterruptibleChannel"]
[verbose class: loading "java/nio/channels/ByteChannel"]
[verbose class: loading "java/nio/channels/ReadableByteChannel"]
[verbose class: loading "java/nio/channels/WritableByteChannel"]
[verbose class: loading "java/nio/channels/GatheringByteChannel"]
[verbose class: loading "java/nio/channels/ScatteringByteChannel"]
Segmentation fault
I still need help!!
I dont know how to use "strace sablevm ...." my arm does not have it. I will need your guidance if it is really required and can be done on my linux pc.
I had to set LD_LIBRARY_PATH for libsablevm-1.1.5.so.
I hope my directory structure is correct.
Also i would like to say that libraries like libffi and libltdl did not come with original board I manually copied them (/usr/lib). Did I miss few of them?
Thanks and regards
Asutosh
===============
--
_______________________________________________
Find what you are looking for with the Lycos Yellow Pages
http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10