public inbox for java@gcc.gnu.org
 help / color / mirror / Atom feed
From: Andrew Haley <aph@redhat.com>
To: Andreas Frisch <andreas.frisch@multimedia-labs.de>
Cc: java@gcc.gnu.org
Subject: Re: gcj static crosscompiling raises issues with boehm-gc
Date: Wed, 06 Oct 2010 16:07:00 -0000	[thread overview]
Message-ID: <4CAC9E9F.6010802@redhat.com> (raw)
In-Reply-To: <20101006154451.913B63148A7C@mail.multimedia-labs.de>

On 10/06/2010 04:44 PM, Andreas Frisch wrote:
>> This looks completely broken: it seems to be trying to statically link
>> gainst libgcj.  Try it without -non_shared.
> 
> Hi Andrew, thanks for your prompt help!
> linking statically against libgcj is what i actually intend to do to save a 
> lot of space on the embedded device with very limited capacity.

That is really hard to get working.  It can be done, but you
should at least get dynamic linking working first.

> other than that, if i omit the -non_shared parameter, then it doesn't seem to 
> find the aacskeys.so which is a run-time include of in one of the java files 
> where it does a System.loadLibrary("aacskeys");

It'll be fibn as long as it's in the load path.  You might be better
using a full path to the library.

> the resulting error message is the infamous
> /dream/oe1.6/dm8000/build/tmp/cross/mipsel/lib/gcc/mipsel-oe-
> linux/4.4.4/../../../../mipsel-oe-linux/bin/ld: warning: cannot find entry 
> symbol __start; defaulting to 0000000000406960

Are you forgetting to compile with -jni ?

       -fjni
           With gcj there are two options for writing native methods:
           CNI and JNI.  By default gcj assumes you are using CNI.
           If you are compiling a class with native methods, and
           these methods are implemented using JNI, then you must use
           "-fjni".  This option causes gcj to generate stubs which
           will invoke the underlying JNI methods.

Andrew.

  reply	other threads:[~2010-10-06 16:07 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-06 15:45 Andreas Frisch
2010-10-06 16:07 ` Andrew Haley [this message]
  -- strict thread matches above, loose matches on Subject: below --
2010-10-06 18:50 Andreas Frisch
2010-10-06 19:02 ` David Daney
     [not found] <20101006175323.A6AC03148D76@mail.multimedia-labs.de>
2010-10-06 17:58 ` David Daney
2010-10-06 16:53 Andreas Frisch
2010-10-06 17:07 ` David Daney
2010-10-06  8:43 Andreas Frisch
2010-10-06 14:25 ` Andrew Haley
2010-10-06 15:51   ` David Daney

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4CAC9E9F.6010802@redhat.com \
    --to=aph@redhat.com \
    --cc=andreas.frisch@multimedia-labs.de \
    --cc=java@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).