Menu

#29 JamVM on Linux & PowerPC.

open
nobody
None
5
2008-02-11
2008-02-11
Anonymous
No

Hello,

I'm using JamVM version 1.5.0, GNU Classpath v.0.96.1.

I've cross compiled the JamVM for Linux & Power PC with uClibc support. I've used GCC-3.3.6 for cross compilation.

I have an application, which on a few attempts to be started, makes the JamVM hang (in the other attempts it starts properly). Before hanging, either (a) or (b) is printed on the console:
(a) jamvm: can't resolve symbol 'cpnet_aton'
(b) jamvm: can't resolve symbol 'JCL_malloc'

There is also a "Segmentation fault" problem, which I have observed with my application and the JamVM. It happens relatively rarely at runtime, but it is a stopper to use JamVM for now.

Does anyone have an idea, what might be the reason for the problems, which I'm experiencing?

Discussion

  • Robert Lougher

    Robert Lougher - 2008-02-19

    Logged In: YES
    user_id=717272
    Originator: NO

    Hi,

    The symbols which can't be resolved are within GNU Classpath, not JamVM. The messages are being printed by the dynamic loader, which resolves and fixes up references to shared libraries, etc. It is not being printed by JamVM.

    As a guess, I would say there is a problem with the shared library loader in the uClibc you are using. You say it only does it sometimes. The dynamic loader should definately not be randomly failing.

    I doubt this will fix it, but make sure you clean everything when you build.

    Rob.

     
  • Robert Lougher

    Robert Lougher - 2008-02-19

    Logged In: YES
    user_id=717272
    Originator: NO

    P.S. Is it possible that GNU Classpath/JamVM have been compiled against different versions of uClibc and header files?

    Make sure you compile everything against the same uClibc/header files.

    Rob.

     

Log in to post a comment.