[kaffe] [HELP] no return from pthread_cond_init()
Donald Gim
donaldgim at gmail.com
Sun Dec 7 03:35:12 PST 2008
Hello,
I'm trying to port Kaffe on a MIPS SoC.
I'm using these libs with kaffe-1.1.9.
- libtool-1.5.26
- zziplib-0.13.49
- classpath-0.97.2
- glib-2.15.4
After managing to build, I got this message.
"Can't modify /opt/local/jre/lib/mips/libkaffe-1.1.9.so's text section.
Use GCC option -fPIC for shared objects, please."
I guess -fPIC option was already used.
So I added these configure options.
--with-staticlib --with-staticvm
Now when I run "kaffe HelloJava", it doesn't show any messages.
I traced it using just printf and I found it didn't return from
pthread_cond_init(), which
is from the function 'jcondvar_initialise() in the file
kaffe-1.1.9/kaffe/kaffevm/sysItems/
unix-pthreads/lock-impl.h.
I used these configure options.
LDFLAGS="-Wl,-rpath-link,$PREFIX/lib" LIBS="-L$PREFIX/lib" \
KAFFEH=/root/work/JVM/kaffeh \
./configure --prefix=$PREFIX --host=mipsel-linux --build=i386-linux \
--disable-mips2 \
--without-x \
--with-classpath-prefix=$PREFIX \
--with-staticlib \
--with-staticvm
What's the problem?
Help me please..
thanks,
ddgim
The following is brief infos on my target.
OS : Linux 2.6.18-5.1-SMP
SoC : Broadcom 97405B0
Compiler Spec :
--target=mipsel-linux-uclibc
--disable-__cxa_atexit
--enable-target-optspace
--with-gnu-ld
--with-float=hard
--enable-threads
--with-arch=mips32
--disable-libmudflap --disable-nls --with-gnu-plts
Thread model: posix
gcc version 4.2.0
libuClibc-0.9.29.so
O32 ABI
More information about the kaffe
mailing list