[kaffe] Re: Kaffe porting on MIPS

NaveenYadav naveen.yadav at samsung.com
Thu Aug 17 22:12:21 PDT 2006


Hi ,

I do cross compile kaffe and run hello world program on native and it run successfully. Then I do cross compile and test same program and i got the error .

    compile             Run                     Status
1.  X-86                 X-86                     success
2.  X-86                  MIPS4kec            Fail 
3.  MIPS4Kec        MIPS4Kec            Fail 
4.  MIPS4Kec        X-86                      Success

What May be the Reason 

Best Regards

Naveen  



----- Original Message ----- 
  From: NaveenYadav 
  To: kaffe at kaffe.org ; Sakur.hwa at iasolution.net 
  Sent: Thursday, August 17, 2006 5:19 PM
  Subject: Kaffe porting on MIPS



  Host side ::
  [root at localhost bin]# ./kaffe -vmdebug INIT hello
  initCollector()
  initCollector() done
  initNativeThreads(0x40000)
  Detected stackSize 262144
  initNativeThreads(0x40000) done
  utf8ConstInit()
  utf8ConstInit() done
  initClasspath()
  initClasspath() done, got /home/naveen/jvm/native/jre/lib/glibj.zip:/home/naveen/jvm/native/lib/tools.jar
  initNative()
  got lpath /home/naveen/jvm/native/jre/lib/i386:/home/naveen/jvm/native/lib and libraryPath /home/naveen/jvm/native/jre/lib/i386:/home/naveen/jvm/native/lib
  trying to load /home/naveen/jvm/native/jre/lib/i386/libjavalang
  initNative() done
  create names and signatures
  done
  initBaseClasses()
  initTypes()
  initTypes() done
  finishTypes()
  finishTypes() done
  initBaseClasses() done
  initExceptions()
  initThreads()
  initThreads() done
  Hello #--------------->o/p

  my config file is ..
   ./configure  prefix=/home/naveen/jvm/native \
   --enable-pure-java-math  --disable-alsa --disable-native-awt --disable-xawt-xi18n --without-x  --disable-gtk-peer --without-awt  --disable-sound


  On Target Side.
  my configure is

  CC=mipsel-linux-gcc NM=mipsel-linux-nm \
  AR=mipsel-linux-ar AS=mipsel-linux-as LD=mipsel-linux-ld  KAFFEH=/home/naveen/jvm/kaffe-native/kaffe/kaffeh/kaffeh \
  ./configure --host=mipsel-linux --build=i686-linux prefix=/home/naveen/jvm/cross \
   --enable-pure-java-math  --disable-alsa --disable-native-awt --disable-xawt-xi18n --without-x --with-libraries=/usr/tools/mipsel-linux/libs --with-includes=/usr/tools/mipsel-linux/include  --disable-gtk-peer --without-awt  --disable-sound

  and result is ::
   ./kaffe -vmdebug INIT hello
  initCollector()
  initCollector() done
  initNativeThreads(0x10000)
  Detected stackSize 1048576
  initNativeThreads(0x10000) done
  utf8ConstInit()
  utf8ConstInit() done
  initClasspath()
  initClasspath() done, got /home/naveen/jvm/cross/jre/lib/glibj.zip:/home/naveen/jvm/cross/lib/tools.jar
  initNative()
  got lpath /home/naveen/jvm/cross/jre/lib/mips:/home/naveen/jvm/cross/lib and libraryPath /home/naveen/jvm/cross/jre/lib/mipsbtrying to load /home/naveen/jvm/cross/jre/lib/mips/libjavalang
  initNative() done
  create names and signatures
  done
   initBaseClasses()
  initTypes()
  initTypes() done
  finishTypes()
  finishTypes() done
  check initBaseClasses() done
  In loop0
  kaffe-bin: exception.c:106: vmExcept_setJNIFrame: Assertion `fp != (JNIFrameAddress)0' failed.
  Aborted

  i have done one modification in 

  kaffe-cross/config/mips/common.h
  //#ifdef _R5900
  //#define PS2LINUX
  //#undef HAVE_MIPSII_INSTRUCTIONS
  //#endif 
  #ifdef _R3000
  #define PS2LINUX
  #undef HAVE_MIPSII_INSTRUCTIONS
  #endif
  I have added _R3000

  What may be the Reason;

  Best Regards
  Naveen 













-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://kaffe.org/pipermail/kaffe/attachments/20060818/fa5ff0c5/attachment-0004.htm 


More information about the kaffe mailing list